Skip to content

feat: show active route badge in Postman request builder - #69

Merged
Kr1sh-gupta merged 2 commits into
Inilax:developfrom
slegarraga:feat/target-route-badge
Aug 6, 2026
Merged

feat: show active route badge in Postman request builder#69
Kr1sh-gupta merged 2 commits into
Inilax:developfrom
slegarraga:feat/target-route-badge

Conversation

@slegarraga

Copy link
Copy Markdown
Contributor

Adds a compact route badge next to the URL input and Send button so developers can see whether requests go through the Cloudflare edge, another public tunnel, or local loopback.

  • Shows Cloudflare Edge for active trycloudflare tunnels, Public Tunnel for other tunnels, and Local Loopback when no tunnel is active.
  • The badge shows the active public URL as a tooltip.

Verified with npm run build --workspace=packages/desktop.

Closes #66

Comment thread packages/desktop/src/index.css Outdated
text-transform: uppercase; white-space: nowrap;
}
.route-tunnel { color: #b7e05a; border-color: rgba(183, 224, 90, 0.45); }
.route-local { color: var(--muted); }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

CSS Design System Tokens (index.css):
The generic CSS variables (var(--line), var(--surface-2), var(--muted)) should be mapped to our M3 design tokens (var(--color-outline-variant), var(--color-surface-container-high), var(--color-on-surface-variant)).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Good call. I mapped the route badge list to the M3 tokens in dba0d2b (--color-surface-container-high, --color-outline-variant, --color-on-surface-variant, and the primary tokens for selection). The desktop build passes. Thank you!

@slegarraga

Copy link
Copy Markdown
Contributor Author

Updated the route badge to use M3 design tokens: var(--color-outline-variant), var(--color-surface-container-high), and var(--color-on-surface-variant).

@Kr1sh-gupta

Copy link
Copy Markdown
Contributor

Hi @slegarraga 👋
Thanks for the contribution! Could you please update the target base branch of this PR from main to develop?

How to update: Click the Edit button next to the PR title at the top, change the base branch dropdown from main to develop, and click Save.
All new features and enhancements should be merged into develop first. Thank you!

@slegarraga
slegarraga changed the base branch from main to develop August 6, 2026 13:56
@slegarraga

Copy link
Copy Markdown
Contributor Author

Done - I updated the base branch to develop as requested. Thanks!

@slegarraga
slegarraga force-pushed the feat/target-route-badge branch 2 times, most recently from b3e56c8 to ee7e0d6 Compare August 6, 2026 13:59
@Kr1sh-gupta
Kr1sh-gupta merged commit 9f92390 into Inilax:develop Aug 6, 2026
@Kr1sh-gupta

Copy link
Copy Markdown
Contributor

Great job fixing the target branch 'develop' and cleanup of the M3 design tokens..
The Target Route Badge looks crisp and gives developers instant feedback on network routing.

Approved & ready to merge!

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.

Explicit Target Route Badge in Postman Playground

3 participants