Skip to content

feat: add notifications feedback form to account notifications page - #281

Merged
Alessandro100 merged 2 commits into
mainfrom
feat/275-notifications-feedback-form
Nov 25, 2026
Merged

Alessandro100 merged 2 commits into
mainfrom
feat/275-notifications-feedback-form

Conversation

@Alessandro100

@Alessandro100 Alessandro100 commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary:

Part of #275. Adds the notifications feedback form to /account/notifications, following the same pattern as the Seal of Reliability feedback button (#242).

  • SealFeedbackButton is generalized into a shared FeedbackButton that takes a form prop ('seal' | 'notifications'). The Seal pages now render <FeedbackButton form='seal' />; test ids stay seal-feedback-button / seal-feedback-fab.
  • seal-feedback-url.ts becomes feedback-url.ts, holding the canonical viewform URL for each form. The ticket's forms.gle link was resolved to its long URL because the short link drops prefill parameters on redirect.
  • The notifications form shares the Seal form's Name/Email entry ids, so name and email prefill work the same way.
  • On the notifications page the button is gated behind the isNotificationsEnabled user feature flag (hidden until the flag resolves to true).
  • Translations: common.sealFeedbackButtonLabel is renamed to common.feedbackButtonLabel; common.notificationsFeedbackButtonAriaLabel is 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 whose isNotificationsEnabled user feature flag is true, a "Got feedback?" tab appears on the right edge on large screens (a floating action button in the bottom-right below lg). 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:

  • With a user whose isNotificationsEnabled flag is false, check the button does not appear on /account/notifications.
  • Sign in as a user with the flag on, open /account/notifications, click "Got feedback?" and check the form opens with name and email filled in.
  • Resize below lg and check the FAB appears instead of the side tab.
  • Check the Seal pages (/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.

  • Run the unit tests with yarn test to make sure you didn't break anything
  • Add or update any needed documentation to the repo
  • Format the title like "feat: [new feature short description]". Title must follow the Conventional Commit Specification(https://www.conventionalcommits.org/en/v1.0.0/).
  • Linked all relevant issues
  • Include screenshot(s) showing how this pull request works and fixes the issue(s)

Generated with Claude Code

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>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
mobilitydatabase-web Ready Ready Preview Nov 24, 2026 7:27pm UTC

Request Review

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/ * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🟠 62 🟢 90 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/feeds * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🟠 87 🟠 87 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/feeds/gtfs/mdb-2126 * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🔴 44 🟢 95 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/feeds/gtfs_rt/mdb-2585 * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🟢 99 🟠 84 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-pz7eq791g-mobility-data.vercel.app/feeds/gbfs/gbfs-flamingo_porirua * (Desktop)
⚡️ HTML Report Lighthouse report for the changes in this PR:

Performance Accessibility Best Practices SEO
🔴 46 🟢 94 🟢 96 🟢 100

@Alessandro100
Alessandro100 marked this pull request as ready for review November 24, 2026 14:08
@emmambd

emmambd commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

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>

@davidgamez davidgamez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@Alessandro100
Alessandro100 merged commit 103f05d into main Nov 25, 2026
5 checks passed

This branch was successfully deployed

1 active deployment
Preview — 40c7c3bb Deployed Nov 24, 2026 by vercel[bot]
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