Skip to content

fix(styleguide): remove broken notifications route#596

Merged
VegasNative merged 1 commit into
mozilla-iam:masterfrom
VegasNative:vegasnative/remove-styleguide-notifications-route
May 21, 2026
Merged

fix(styleguide): remove broken notifications route#596
VegasNative merged 1 commit into
mozilla-iam:masterfrom
VegasNative:vegasnative/remove-styleguide-notifications-route

Conversation

@VegasNative

Copy link
Copy Markdown
Contributor

What changed

Removes the unused /styleguide/notifications Flask route from dashboard/app.py. The route rendered a notifications.html template that does not exist under dashboard/templates/, so any request to it raised a 500. While here, the floating string """useful endpoint for debugging""" between functions is converted to a real # comment. It was a no-op statement, not a docstring.

Why

Dead code. Nothing links to the route, and the template it referenced was never created. There is a .notifications CSS block in dashboard/static/css/base.scss suggesting this was started and abandoned, but there is no in-flight notifications feature to support. The sibling styleguide route /styleguide/dashboard is the actual styleguide entry point and is untouched.

Blast radius

Minimal. The route was effectively unreachable: not linked from any template or navigation, and any direct visitor (e.g. a stale bookmark) was already hitting a 500. The only behavior change is that the response code becomes a 404 instead of a 500. FakeUser remains in use via /styleguide/dashboard.

Cross-repo coordination

None. No schema, contract, or apps.yml format changes.

Test plan

  • tox passes locally (lint + types + tests + style).
  • No browser verification required: this is a deletion of an unreachable code path.
  • grep across the repo confirms no other file references styleguide_notifications or notifications.html.

Caveats

The .notifications CSS block remains in static/css/base.scss. Cheap to leave; if a notifications feature ever comes back the CSS is there to build against, and if not it can be removed in a separate cleanup PR.

The `/styleguide/notifications` route rendered a `notifications.html`
template that does not exist, returning a 500 to anyone who hit it.
The sibling `/styleguide/dashboard` route remains as the styleguide
entry point.

Also converts a floating string-statement between functions into a
real `#` comment.
@VegasNative VegasNative requested a review from bheesham May 21, 2026 16:37

@bheesham bheesham 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.

🚀

Once merged, you should be able to deploy this in GCP.

@VegasNative VegasNative merged commit d1ffad8 into mozilla-iam:master May 21, 2026
1 check 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.

2 participants