Repository navigation
feat: add notifications feedback form to account notifications page - #281
Conversation
Generalize the Seal of Reliability feedback button into a shared FeedbackButton that takes a `form` prop, and mount it on /account/notifications pointing at the notifications feedback form. Name and email prefill keep working since both forms share field ids. Refs #275 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/ * (Desktop)
*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/feeds * (Desktop)
*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/feeds/gtfs/mdb-2126 * (Desktop)
*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/feeds/gtfs_rt/mdb-2585 * (Desktop)
*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/feeds/gbfs/gbfs-flamingo_porirua * (Desktop)
|
|
LGTM! |
Only show the notifications feedback button once the user's isNotificationsEnabled flag has resolved to true. Refs #275 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary:
Part of #275. Adds the notifications feedback form to
/account/notifications, following the same pattern as the Seal of Reliability feedback button (#242).SealFeedbackButtonis generalized into a sharedFeedbackButtonthat takes aformprop ('seal' | 'notifications'). The Seal pages now render<FeedbackButton form='seal' />; test ids stayseal-feedback-button/seal-feedback-fab.seal-feedback-url.tsbecomesfeedback-url.ts, holding the canonicalviewformURL for each form. The ticket'sforms.glelink was resolved to its long URL because the short link drops prefill parameters on redirect.isNotificationsEnableduser feature flag (hidden until the flag resolves to true).common.sealFeedbackButtonLabelis renamed tocommon.feedbackButtonLabel;common.notificationsFeedbackButtonAriaLabelis added in en and fr.The email-template half of the ticket is in MobilityData/mobility-feed-api#1943.
Expected behavior:
On
/account/notifications, for users whoseisNotificationsEnableduser feature flag is true, a "Got feedback?" tab appears on the right edge on large screens (a floating action button in the bottom-right belowlg). It opens the notifications feedback form in a new tab, prefilled with the signed-in user's name and email. The Seal pages behave as before.Testing tips:
isNotificationsEnabledflag is false, check the button does not appear on/account/notifications./account/notifications, click "Got feedback?" and check the form opens with name and email filled in.lgand check the FAB appears instead of the side tab./seal-of-reliability,/seal-of-reliability/how-it-is-calculated, a feed's reliability view) still open the Seal form.Verified locally:
yarn lint(0 errors),yarn test:ci(604 passed),npx tsc --noEmit(clean). Not yet checked visually in the browser.yarn testto make sure you didn't break anythingGenerated with Claude Code