Skip to content

Conversation

@sourabhbagde
Copy link

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.

Screenshots or videos of changes:

slashdotMakeAPost.mov

Note:

Slashdot still lacks a public submission API, this UI prepares content for manual submission.
Currently scheduled post tab is just a textarea.
Dark Mode still needs to be modified for friendly and Intro / Summary width will be adjusted with extra space and moved down to other fields in next PR along with schedule post tab.

@netlify
Copy link

netlify bot commented Oct 15, 2025

Deploy Preview for highestgoodnetwork-dev ready!

Name Link
🔨 Latest commit b95ec6d
🔍 Latest deploy log https://app.netlify.com/projects/highestgoodnetwork-dev/deploys/690d8f57d08d9c0008b9df0b
😎 Deploy Preview https://deploy-preview-4216--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.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2025

Quality Gate Failed Quality Gate failed

Failed conditions
2 Security Hotspots
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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.

2 participants