Skip to content

feat: updated Official Feed badge to allow for community feeds#152

Open
Alessandro100 wants to merge 8 commits into
mainfrom
unofficial-feed-badge
Open

feat: updated Official Feed badge to allow for community feeds#152
Alessandro100 wants to merge 8 commits into
mainfrom
unofficial-feed-badge

Conversation

@Alessandro100

Copy link
Copy Markdown
Contributor

Summary:

closes #142

Updates the Official Feed badge component to allow for false values indicating that it's a community submitted feed

Expected behavior:

When a feed has the explicit value is_official=false it will display it as a community feed in the search page and in the feed detail page

Testing tips:

In the search page, search for "Romania" which should display some community submitted feeds, hover over the new icon to display the tool tip. Click on the community feed and view the community status chip at the top of the page

Please make sure these boxes are checked before submitting your pull request - thanks!

  • 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)
Screenshot 2026-07-07 at 08 35 22 Screenshot 2026-07-07 at 08 35 41 Screenshot 2026-07-07 at 08 35 38 Screenshot 2026-07-07 at 08 35 32

@Alessandro100 Alessandro100 requested a review from Copilot July 7, 2026 12:59
@Alessandro100 Alessandro100 self-assigned this Jul 7, 2026
@vercel

vercel Bot commented Jul 7, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
mobilitydatabase-web Ready Ready Preview, Comment Jul 8, 2026 12:38pm

Request Review

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the “Official Feed” badge UX to support three states of feed verification (official=true, official=false for community-submitted, and unset/unknown), and wires the new badge into the feed search tables and feed detail pages.

Changes:

  • Replaces OfficialChip with a new FeedVerificationChip that can render both Official and Community badges (or nothing when unset).
  • Updates feed search tables and GTFS feed detail summary to use the new verification chip.
  • Adds i18n strings for the new “Community Feed” labels/tooltips and removes the old verification badge style helper. (custom)

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/app/styles/VerificationBadge.styles.ts Removes the old shared verification badge style helper.
src/app/screens/Feeds/SearchTable.tsx Replaces OfficialChip usage with FeedVerificationChip in search results.
src/app/screens/Feeds/AdvancedSearchTable.tsx Replaces OfficialChip usage with FeedVerificationChip in advanced search results.
src/app/screens/Feed/FeedView.tsx Switches GTFS-RT verification display to the new chip (but currently still gated to official === true).
src/app/screens/Feed/components/DataQualitySummary.tsx Updates GTFS detail summary to display the new verification chip (official/community).
src/app/components/OfficialChip.tsx Removes the old chip component.
src/app/components/FeedVerificationChip.tsx Adds the new unified verification chip component.
messages/fr.json Adds French-namespace strings for community feed labels/tooltips.
messages/en.json Adds English strings for community feed labels/tooltips.

Comment thread src/app/components/FeedVerificationChip.tsx
Comment thread src/app/screens/Feed/FeedView.tsx Outdated
Comment thread messages/en.json Outdated
Comment thread src/app/components/FeedVerificationChip.tsx
@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown

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

Performance Accessibility Best Practices SEO
🟢 91 🟢 94 🟢 96 🟢 100

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

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

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

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

*Lighthouse ran on https://mobilitydatabase-k19hidagx-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
🟢 95 🟠 84 🟢 96 🟢 100

*Lighthouse ran on https://mobilitydatabase-k19hidagx-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
🟢 97 🟢 94 🟢 96 🟢 100

@emmambd

emmambd commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

@Alessandro100 Change "Community feed: Not officially confirmed by the transit provider." to "Community feed: Created by a third party unaffiliated with the transit provider."

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.

Styling unofficial feeds

3 participants