Skip to content

Implement state management for a popup modal to display selected story details#146

Merged
Piyushydv08 merged 2 commits into
Piyushydv08:mainfrom
Papia-tech:main
May 30, 2026
Merged

Implement state management for a popup modal to display selected story details#146
Piyushydv08 merged 2 commits into
Piyushydv08:mainfrom
Papia-tech:main

Conversation

@Papia-tech
Copy link
Copy Markdown
Contributor

Added state management for a popup modal to display selected story details, including reactions and media. Updated the UI to handle story selection and display translations appropriately.

🛠️ Pull Request Template

🏷️ PR Type

Select the type of PR (check one):

  • 🐞 Bug Fix
  • ✨ Feature
  • 🛠️ Improvement / Refactor
  • 📚 Documentation

🔗 Related Issue

✨ Description of Changes

  • State Management: Added selectedStoryForPopup to safely handle modal visibility and targeted content.

  • UI Expansion: Built a Tailwind-styled modal backdrop with whitespace-pre-wrap to preserve story formatting.

  • Event Streamlining: Configured click propagation safely so translation selectors and action buttons function independently of the modal trigger.

  • Frontend

    • Storiex.tsx updated

🧪 Testing Instructions

  • Open the dashboard and click any card to verify the smooth popup transition.
  • Test the language dropdown inside the modal to confirm state persistence.
  • Note: I do not have direct live Firebase access to test writing data right now. The code perfectly mirrors the exact query syntax of the previous version, but please run a quick database sync check on your end before merging!

👀 Impact Assessment

Analyze the impact of this PR:

  • User-facing changes (UI / UX)
  • Performance considerations

🖼️ Screenshots / GIFs (if applicable)

Screen.Recording.2026-05-24.093826.mp4

⚡ Checklist

  • Code follows project’s coding style and guidelines
  • Changes are tested locally
  • Automated tests added/updated
  • Documentation updated (if applicable)
  • User-facing changes are documented
  • Related issue linked
  • No new warnings/errors introduced
  • All reviewers guidance addressed

⚠️ Breaking Changes

None

Added state management for a popup modal to display selected story details, including reactions and media. Updated the UI to handle story selection and display translations appropriately.
@netlify
Copy link
Copy Markdown

netlify Bot commented May 24, 2026

Deploy Preview for safevoiceforwomen ready!

Name Link
🔨 Latest commit 42b6b3b
🔍 Latest deploy log https://app.netlify.com/projects/safevoiceforwomen/deploys/6a1aeeac6fd8280008d1e996
😎 Deploy Preview https://deploy-preview-146--safevoiceforwomen.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.

@github-actions github-actions Bot added gssoc'26 Contribution for Girlscript Summer of Code'26 level:intermediate GSSoC: Intermediate difficulty - 35 pts type:accessibility GSSoC: Accessibility improvements type:bug GSSoC: Bug fix labels May 24, 2026
@Papia-tech
Copy link
Copy Markdown
Contributor Author

@Piyushydv08 I've updated the file to address the issue. I've implemented the detailed story popup modal.
Since I don't have direct Firebase access to test the live database connection locally, could you please verify that everything syncs correctly on your end before merging? Let me know if any adjustments are needed!

@Piyushydv08 Piyushydv08 added quality:exceptional GSSoC: Exceptional quality - x1.5 multiplier type:performance GSSoC: Performance improvements type:design GSSoC: UI or UX design changes gssoc:approved PR approved by Admin and removed type:bug GSSoC: Bug fix labels May 30, 2026
@Piyushydv08 Piyushydv08 merged commit b855c8c into Piyushydv08:main May 30, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gssoc:approved PR approved by Admin gssoc'26 Contribution for Girlscript Summer of Code'26 level:intermediate GSSoC: Intermediate difficulty - 35 pts quality:exceptional GSSoC: Exceptional quality - x1.5 multiplier type:accessibility GSSoC: Accessibility improvements type:design GSSoC: UI or UX design changes type:performance GSSoC: Performance improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix Truncated Story Headlines & Add Story Details Popup

2 participants