Skip to content

feat(routing): dashboard parity for connector labels, amount note, and rule deletion - #410

Merged
prajjwalkumar17 merged 5 commits into
mainfrom
feat/gateway-labels-and-amount-note
Sep 11, 2026
Merged

prajjwalkumar17 merged 5 commits into
mainfrom
feat/gateway-labels-and-amount-note

Conversation

@prajjwalkumar17

@prajjwalkumar17 prajjwalkumar17 commented Sep 3, 2026 •

Copy link
Copy Markdown
Member

What

Three dashboard-parity fixes requested in juspay/hyperswitch-control-center#5495 (items 4, 5, and 6):

  1. Connector labels in the gateway picker (item 5). A merchant running several accounts of one connector saw identical dropdown rows (adyen / mca_… twice) with only the MCA id to tell them apart. The Hyperswitch dashboard hand-off already carries each account's connector_label (control-center PR feat: deep-link cut-over routing to the Decision Engine with the profile's connectors hyperswitch-control-center#5466), so the picker now shows it beside the connector name and lets the search filter match it. Labels that merely repeat the connector name are dropped so a row never reads "stripe stripe". Standalone (non-hand-off) usage is unchanged — catalogue options carry no label.

  2. Minor-unit amount note in the rule builder (item 6). The Hyperswitch dashboard warns that amounts are entered in the smallest currency unit (cents for USD, yen for JPY); this rule builder had no such note, inviting 100× mistakes in amount conditions. The same note now sits under "Configured Rules".

  3. Rule deletion disabled (item 4). The Hyperswitch dashboard cannot delete routing rules (hyperswitch has no delete endpoint), so offering deletion only here left the two dashboards inconsistent. The /routing/delete route is commented out in src/app.rs, and the Delete actions on the rules, volume-split, and A/B testing pages are hidden behind a RULE_DELETION feature flag (off) so nothing dangles in the UI. Re-enabling is one flag flip plus uncommenting the route, once both dashboards can offer deletion. Nothing else calls the route — hyperswitch never uses /routing/delete.

How tested

  • npx tsc --noEmit clean; vite build clean.
  • Rendered GatewaySelect in an isolated harness with hand-off options: two same-connector accounts are distinguishable by label, long labels truncate without breaking the row, typing a label fragment filters to the matching account, and label-less options render exactly as before.
  • The route removal is a pure comment-out; the delete_routing_rule handler stays pub in the lib crate, so no dead-code warning.
Screen.Recording.2026-09-09.at.14.29.35.mov

…inor-unit amounts

A merchant running several accounts of one connector saw identical rows
("adyen / mca_…" twice) in the gateway dropdowns, with only the MCA id to
tell them apart. The Hyperswitch dashboard hand-off already carries each
account's connector_label, so surface it: the picker now shows the label
beside the connector name (dropped when it merely repeats the name), and
typing filters on the label too.

The rule builder also gains the same smallest-currency-unit note the
Hyperswitch dashboard shows on its rule builder — amount conditions are
matched in minor units, and without the note a 100x mistake is easy.

Requested in juspay/hyperswitch-control-center#5495 (items 5 and 6).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
jagan-jaya
jagan-jaya previously approved these changes Sep 4, 2026
…ashboard

The Hyperswitch dashboard cannot delete routing rules (no delete endpoint
exists in hyperswitch), so offering deletion only here left the two
dashboards inconsistent (juspay/hyperswitch-control-center#5495, item 4).

Comment out the /routing/delete route, and hide the Delete actions on the
rules, volume-split, and A/B testing pages behind a RULE_DELETION feature
flag so nothing dangles in the UI. Re-enabling is one flag flip plus
uncommenting the route, once both dashboards can offer deletion.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@prajjwalkumar17 prajjwalkumar17 changed the title feat(routing): show connector labels in the gateway picker and note minor-unit amounts feat(routing): dashboard parity for connector labels, amount note, and rule deletion Sep 4, 2026
prajjwalkumar17 and others added 2 commits September 8, 2026 15:52
#410 removes the /routing/delete route and hides the Delete UI action
(RULE_DELETION flag) for parity with the Hyperswitch dashboard, but the
E2E suite still asserted deletion succeeds — so every deletion test 404'd.

Update them to the new contract: the delete route 404s and the rule
survives (API), the lifecycle stops at deactivate, and the Delete menu
action is absent rather than merely disabled (UI). The flaky analytics
panel test passed on retry and is unrelated.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@prajjwalkumar17
prajjwalkumar17 merged commit 2564e5f into main Sep 11, 2026
19 checks passed
@prajjwalkumar17
prajjwalkumar17 deleted the feat/gateway-labels-and-amount-note branch September 11, 2026 11:19
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