Skip to content

Comments

feat/communityforum#32

Merged
CMolinaBetancourt merged 1 commit intomainfrom
feat/communityforum
Dec 8, 2025
Merged

feat/communityforum#32
CMolinaBetancourt merged 1 commit intomainfrom
feat/communityforum

Conversation

@CMolinaBetancourt
Copy link
Collaborator

🎯Type of Change (Select one or more):

  • Feat ✨: Community and community responses pages.

This PR...

  • New Pages: Implements the Community and Forum Responses views (ForumResponses.jsx, Community.jsx).
  • Data Integration: Connects both pages to Firebase to save and retrieve user responses from the journal.
  • Privacy Control: Incorporates the "Opt out of sharing in the Community Forum" option in DailySummary.jsx. The ForumResponses.jsx logic enforces this preference, ensuring that only comments that do not have optOut: true are publicly visible ((anonymously).

📝 What I Did (Detailed Work):

  • Coded the Community and Community Responses pages.
  • Configured the pages so that the information is saved in Firebase.
  • Incorporated the opt-out of sharing in the Community Forum option into the daily summary feature.

🧪 How to Test (Steps to Verify):

1. Setup

  1. Navigate to the previous deployment or preferably pull the information from the branch feat/communityForum.
  2. Sign in.

2. Test Privacy and Saving (Daily Summary)

  • Open the Daily Summary window for any given day.
  • Inclusion Test : Write a comment and uncheck the "Opt out of sharing..." box. Save the entry.
    • Verify in Firebase: Confirm that the saved entry in the journals collection has the optOut field as false or is missing entirely.
  • Exclusion Test : Open the window again and check the "Opt out of sharing..." box. Save the entry.
    • Verify in Firebase: Confirm that this new entry has the optOut field set to true.

3. Test the Community Page (/community)

  • Navigate to the main Community route (/community).
  • Verify that the list of all questions is displayed correctly.
  • Click the arrow icon on any question.
  • Confirm that the navigation leads to the correct responses page for that day (/community/responses/[day]).

4. Test the Responses Page and Privacy Logic

  • Navigate to the responses page for the day you tested in Step 2.
  • Verify Inclusion: Confirm that the comment from the Inclusion Test is displayed in the list of responses as "Anonymous."
  • Verify Exclusion: Confirm that the comment from the Exclusion Test does not appear in the list of responses.

5. Test Redirection (Empty Case)

  • Navigate to the responses page for a day without any shared responses.
  • Click the arrow icon that appears next to the "Be the first to share..." message.
  • Expected Result: The application must redirect to the /journal page and automatically open the Daily Summary for that specific day.

🤔 What I learned (gotchas):

I didn't know Firebase, and it's a very friendly database.

@netlify
Copy link

netlify bot commented Dec 7, 2025

Deploy Preview for mint-chip ready!

Name Link
🔨 Latest commit 6fc5fc8
🔍 Latest deploy log https://app.netlify.com/projects/mint-chip/deploys/6935bdb0041d5f000805c302
😎 Deploy Preview https://deploy-preview-32--mint-chip.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.

Copy link
Collaborator

@magali-la magali-la left a comment

Choose a reason for hiding this comment

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

Everything works perfectly, ready to merge

@nkabembo
Copy link
Collaborator

nkabembo commented Dec 7, 2025

Very well done ready to merge

@CMolinaBetancourt CMolinaBetancourt merged commit 3611e79 into main Dec 8, 2025
5 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