Skip to content

Fix website crash in MaintainersList by adding missing maintainer5 role config (regression from #321)#322

Merged
MustafaMulla29 merged 1 commit intotscircuit:mainfrom
rushabhcodes:fix/maintainerslist-add-maintainer5
Mar 20, 2026
Merged

Fix website crash in MaintainersList by adding missing maintainer5 role config (regression from #321)#322
MustafaMulla29 merged 1 commit intotscircuit:mainfrom
rushabhcodes:fix/maintainerslist-add-maintainer5

Conversation

@rushabhcodes
Copy link
Contributor

This PR fixes a production-breaking regression introduced in #321, where the website crashed while rendering maintainers.

Root cause
MAINTAINERS included maintainer5, but MAINTAINER_ROLES did not define maintainer5, causing:
TypeError: Cannot read properties of undefined (reading 'priority') during sort/render.

Impact
Restores website stability for the maintainers section.
Prevents this specific regression pattern from breaking the UI again.

Copilot AI review requested due to automatic review settings March 19, 2026 19:16
@vercel
Copy link

vercel bot commented Mar 19, 2026

@rushabhcodes is attempting to deploy a commit to the tscircuit Team on Vercel.

A member of the Team first needs to authorize it.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes a production crash in the MaintainersList UI caused by a mismatch between the MAINTAINERS role values and the role configuration used for sorting/rendering.

Changes:

  • Add missing maintainer5 entry to MAINTAINER_ROLES.
  • Reassign role priority values to keep a consistent ordering with the new role.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@MustafaMulla29
Copy link
Contributor

Why's deployment failing

@rushabhcodes
Copy link
Contributor Author

@MustafaMulla29 Authorization required to deploy.

@MustafaMulla29 MustafaMulla29 merged commit 0a1ffc8 into tscircuit:main Mar 20, 2026
8 of 9 checks passed
@rushabhcodes rushabhcodes deleted the fix/maintainerslist-add-maintainer5 branch March 20, 2026 06:22
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