Skip to content

Sourabh implementation slashdot autoposter#4627

Merged
one-community merged 17 commits intodevelopmentfrom
sourabh_implementation_slashdot_autoposter
Mar 31, 2026
Merged

Sourabh implementation slashdot autoposter#4627
one-community merged 17 commits intodevelopmentfrom
sourabh_implementation_slashdot_autoposter

Conversation

@sourabhbagde
Copy link
Copy Markdown
Contributor

Description

Implements the Slashdot auto-poster workflow.
Adds a dedicated Slashdot tab in the Announcements section where volunteers can compose Slashdot submissions, copy the prepared content, and follow the correct posting steps.
Validates required fields, provides clipboard copy buttons, and updates dark-mode styling so the new UI stays readable.
Suggest tags suggests for first 6 keywords from the headline and summary fields for the words that has added as stop words. Later can be added manually to the tags section on additional tags separated with comma.

Related PRS (if any):

None.

Main changes explained:

  • Create src/components/Announcements/platforms/slashdot/index.jsx for the Slashdot auto-poster form (headline/source URL/dept/tags/summary, copy buttons, preview, submit shortcut, tag suggestions).
  • Update src/components/Announcements/index.jsx to route the Slashdot tab to the new component instead of the generic SocialMediaComposer.
  • Extend src/components/Announcements/Announcements.css with Slashdot-specific card styling, dark-mode overrides, long-text wrapping, and chip truncation.

How to test:

  1. Checkout this branch.
  2. yarn install then npm run start:local
  3. Sign in as an admin and navigate to /announcements. (From Dashboard > Other Links > Send Emails > Slashdot)
  4. Select the “Slashdot” tab.
  5. Fill each field (headline 12–95 chars, valid URL, dept slug, at least one tag, 80+ char summary).
  6. Click the copy buttons to ensure clipboard feedback appears; hit “Copy full draft” once inputs are valid.
  7. Click “Open slashdot.org/submit” and confirm it opens in a new tab.
  8. Toggle dark mode and check if UI works same for dark mode.
  9. Enter very long URLs/tags/summary to verify the layout wraps without breaking cards.
  10. Check if success message upon copy fields and context is copied.
  11. Check if able to schedule the post by clicking schedule this post button.
  12. Check if date and time are working fine and able to assign to post.
  13. All buttons are working fine in Make Post and Scheduled Post tabs.

Screenshots or videos of changes:

slashdot.submit.mov

Note:

Slashdot still lacks a public submission API, this UI prepares content for manual submission.
Scheduled Post - now can be scheduled with calendar date and time as shown below.
Dark Mode still needs to be modified for friendly and Intro / Summary width will be adjusted with extra space.

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 26, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit e01d3c5
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/69ca2e76559d5600088e140b
😎 Deploy Preview https://deploy-preview-4627--highestgoodnetwork-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Prettier error fixed
Refactor slugify function for improved readability and performance.
Replaced the commented-out createScheduleId function with a new implementation that uses getSecureBase36.
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jan 9, 2026

Anusha-Gali
Anusha-Gali previously approved these changes Jan 31, 2026
Copy link
Copy Markdown

@Anusha-Gali Anusha-Gali left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi Sourabh,

I have reviewed your PR locally and i was able to follow the exact instructions. I was able perform and verify all the options in both light and dark mode. I do understand that there isn't any API connected so we cannot verify if we it is actually posted or not. However in Scheduled post, the moment we click on Submit, technically it should be posted but since no API, there is no such action taking place. Shouldn't the scheduled post maybe disappear once we click submit basically assuming that the person clicking submit has posted it?

Image Image Image Image Image Image Image Image Image Image Image Image Image Image

@sourabhbagde
Copy link
Copy Markdown
Contributor Author

Hi Sourabh,

I have reviewed your PR locally and i was able to follow the exact instructions. I was able perform and verify all the options in both light and dark mode. I do understand that there isn't any API connected so we cannot verify if we it is actually posted or not. However in Scheduled post, the moment we click on Submit, technically it should be posted but since no API, there is no such action taking place. Shouldn't the scheduled post maybe disappear once we click submit basically assuming that the person clicking submit has posted it?

Image Image Image Image Image Image Image Image Image Image Image Image Image Image

Hi Anusha,
Thanks for taking time to review this PR. I do take your points as a feedback.

Deletion of scheduled posts will be erased with DELETE API once backend is ready for this PR, thanks for highlighting.

@sonarqubecloud
Copy link
Copy Markdown

@one-community
Copy link
Copy Markdown
Member

Thank you all, merging!

@one-community one-community merged commit 7621f7b into development Mar 31, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants