Skip to content

fix(tanstack-start): cut redundant OMSA ticket requests on homepage a… - #207

Open
jorgenosberg wants to merge 1 commit into
mainfrom
fix/repeated-requests-homepage
Open

jorgenosberg wants to merge 1 commit into
mainfrom
fix/repeated-requests-homepage

Conversation

@jorgenosberg

Copy link
Copy Markdown
Collaborator

…nd env switch

Copilot AI balanced review requested due to automatic review settings October 16, 2026 09:21

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

No blocking issues were identified in the changes or their storage and query integrations.

0 open findings

What changed in this PR

Reduces redundant OMSA ticket requests on the homepage and during environment switches.

Changes:

  • Shares scope-aware local ticket loading between ticket views.
  • Fetches homepage travel documents only for confirmed packages.
  • Removes per-query retry overrides.
File Description
clients/​tanstack-start/​src/​routes/​tickets/​index.tsx Uses shared stored-package loading and reload behavior.
clients/​tanstack-start/​src/​hooks/​use-stored-packages.ts Prevents stale-scope package IDs from triggering requests.
clients/​tanstack-start/​src/​components/​search/​ActiveTicketsSection.tsx Uses shared loading and gates document requests on confirmation.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@github-actions

Copy link
Copy Markdown

Docker Scan - Alert(s) found with threshold matching severity high

Results

  • critical: 0
  • high: 9
  • medium: 2
  • low: 0

Docker Scan Report can be found here

Allowlist

Use the allowlist if you want to ignore vulnerabilities that do not affect the repository.
See the Docker Scan documentation on how to use allowlist.

This branch has not been deployed

No deployments
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