Skip to content

Conversation

@jujulcrane
Copy link
Collaborator

@jujulcrane jujulcrane commented Nov 30, 2025

Summary

Added weekly prompt asnwers to View Profile and Preview Profile.

If there is no active prompt I have it set as "No active prompt"

If the user did not answer the prompt it says: "No comment."

I'm open to changing either of these defaults - I just picked them arbritarily.

Also let me know what you think about the positioning of the prompt answer as I also decided that completely arbritarily...

Test Plan

Screen.Recording.2025-11-30.at.5.28.42.PM.mov

Breaking Changes

Added new endpoint to get prompt answer by netid (you must be matched with them to access this)

@netlify
Copy link

netlify bot commented Nov 30, 2025

Deploy Preview for redi-love ready!

Name Link
🔨 Latest commit 3283a8d
🔍 Latest deploy log https://app.netlify.com/projects/redi-love/deploys/692fa3469e344d0008055b07
😎 Deploy Preview https://deploy-preview-103--redi-love.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

@clementroze clementroze left a comment

Choose a reason for hiding this comment

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

Nice, ty Juju! I had originally put this weekly prompt thing at the bottom of the screen (with teh rest of the regular profile prompts), but surfacing it higher in the profile makes sense to me!

Copy link
Collaborator

@abrar-amin abrar-amin left a comment

Choose a reason for hiding this comment

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

Looks good; just had 2 smallish comments.


if (!answer) {
// Return null/empty response instead of 404 when there's no answer
return res.status(200).json(null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not the biggest fan sending null responses back; could we do an empty string instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Wait yeah good point just changed to returning empty string!

checkIfBlocked();
if (promptId) {
fetchNudgeStatus();
fetchPromptData();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I believe Clement made it so that everything is pre-fetched whenever the app is opened; is there a way to maybe use the information from the prompt tab here instead of fetching? I don't think this will affect performance drastically though.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ahh yes I changed it to pass the active prompt as a url param so it doesnt have to re fetch - thanks for catching that Abrar!

@jujulcrane jujulcrane merged commit 4d49f76 into main Dec 3, 2025
10 checks passed
@jujulcrane jujulcrane deleted the weekly-prompt-view branch December 3, 2025 03:01
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.

4 participants