Skip to content

Conversation

@kyle-a-wong
Copy link
Contributor

Previously, statement details routes included the implicitTxn parameter in the URL path (e.g., /statement/true/:statementId). This was unnecessary complexity since the implicit transaction status can be retrieved from the statement details themselves.

This change simplifies the statement details routing by:

  • Removing all redirect routes that used RedirectToStatementDetails
  • Updating StatementLinkTarget to generate simpler URLs without implicitTxn
  • Removing implicitTxn from StatementLinkProps and related types
  • Updating all link generators across the codebase to use the new simpler URL format /statement/:statementId
  • Removing the now-unused implicitTxnAttr constant
  • Deleting the RedirectToStatementDetails component

Epic: None

Release note (ui change): Simplified statement details page URLs from /statement/{implicitTxn}/{statementId} to
/statement/{statementId}. Existing bookmarks using the old URL format will no longer work.

🤖 Generated with Claude Code

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Previously, statement details routes included the `implicitTxn` parameter
in the URL path (e.g., `/statement/true/:statementId`). This was
unnecessary complexity since the implicit transaction status can be
retrieved from the statement details themselves.

This change simplifies the statement details routing by:
- Removing all redirect routes that used `RedirectToStatementDetails`
- Updating `StatementLinkTarget` to generate simpler URLs without
  `implicitTxn`
- Removing `implicitTxn` from `StatementLinkProps` and related types
- Updating all link generators across the codebase to use the new
  simpler URL format `/statement/:statementId`
- Removing the now-unused `implicitTxnAttr` constant
- Deleting the `RedirectToStatementDetails` component

Epic: None

Release note (ui change): Simplified statement details page URLs
from `/statement/{implicitTxn}/{statementId}` to
`/statement/{statementId}`. Existing bookmarks using the old URL
format will no longer work.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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