fix(customer): surface a staff-panel link when admin/agents land on /support (#60)#61
Merged
Merged
Conversation
…support (#60) The customer index scopes its ticket list to the current user, so when an admin or agent visits /support they only see tickets they personally filed. The reporter on #60 hit this and concluded that customer-submitted tickets were invisible to staff. Customer-submitted tickets are visible in /support/admin/tickets and /support/agent/tickets — the panel they expected — but nothing on the customer view pointed there. Add a banner that renders on the customer index for users who pass escalated-admin or escalated-agent gates, with a button straight to the matching staff panel.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/support) that renders only for users who pass theescalated-adminorescalated-agentgates, with a button to their matching staff panel (/support/admin/ticketsor/support/agent/tickets)./supportsaw only their own tickets and concluded that customer-submitted tickets were invisible to staff. Customer tickets are visible in the staff panel — the banner just makes that path obvious.Test plan
npx vitest run(522 tests pass)/support, see the banner, click the button, land on/support/admin/ticketswith the customer-created ticket visible./support, see the banner, click the button, land on/support/agent/tickets./support, banner is NOT shown.