Skip to content

fix(customer): surface a staff-panel link when admin/agents land on /support (#60)#61

Merged
mpge merged 1 commit into
mainfrom
fix/issue-60-staff-panel-link-on-customer-index
May 10, 2026
Merged

fix(customer): surface a staff-panel link when admin/agents land on /support (#60)#61
mpge merged 1 commit into
mainfrom
fix/issue-60-staff-panel-link-on-customer-index

Conversation

@mpge
Copy link
Copy Markdown
Member

@mpge mpge commented May 10, 2026

Summary

  • Adds a banner on the customer index (/support) that renders only for users who pass the escalated-admin or escalated-agent gates, with a button to their matching staff panel (/support/admin/tickets or /support/agent/tickets).
  • Closes invisible tickets #60. The customer index scopes its ticket list to the current user, so admins/agents who landed on /support saw 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)
  • Manual: log in as admin, visit /support, see the banner, click the button, land on /support/admin/tickets with the customer-created ticket visible.
  • Manual: log in as agent, visit /support, see the banner, click the button, land on /support/agent/tickets.
  • Manual: log in as a regular customer, visit /support, banner is NOT shown.

…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.
@mpge mpge mentioned this pull request May 10, 2026
@mpge mpge merged commit 64adda4 into main May 10, 2026
7 checks passed
@mpge mpge deleted the fix/issue-60-staff-panel-link-on-customer-index branch May 10, 2026 21: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.

invisible tickets

1 participant