Skip to content

feat: show a yellow border when staging is active #6819

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jul 29, 2025

Conversation

uinstinct
Copy link
Contributor

@uinstinct uinstinct commented Jul 28, 2025

Description

show a thin yellow border on the top of gui layout when staging is enabled.

resolves CON-2977

Checklist

  • [] I've read the contributing guide
  • [] The relevant docs, if any, have been updated or created
  • [] The relevant tests, if any, have been updated or created

Screen recording or screenshot

Screenshot 2025-07-28 at 2 21 56 PM

Tests

[ What tests were added or updated to ensure the changes work as expected? ]

@uinstinct uinstinct changed the title Staging distinction feat: show a yellow border when staging is active Jul 28, 2025
@uinstinct uinstinct marked this pull request as ready for review July 28, 2025 08:56
@uinstinct uinstinct requested a review from a team as a code owner July 28, 2025 08:56
@uinstinct uinstinct requested review from tingwai and removed request for a team July 28, 2025 08:56
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 28, 2025
Copy link
Contributor

@tingwai tingwai left a comment

Choose a reason for hiding this comment

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

I think we could make add the text "🚧 staging" (something along those lines) somewhere to replace the yellow line. It won't be immediately clear to a newcomer what the yellow means, especially since when vs code is loading the extension a blue line indicator is shown

Comment on lines +71 to +72
"controlPlane/getEnvironment",
"controlPlane/getFreeTrialStatus",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: move these 2 lines above getModelsAddOnUpgradeUrl line above to keep ordering consistent with other files and mostly alphabetical order

"controlPlane/getEnvironment",
undefined,
);
console.log("debug2 response was", response);
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: please remove

@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jul 28, 2025
@uinstinct
Copy link
Contributor Author

How about this small yellow dot indicator?
image

Copy link
Contributor

@tingwai tingwai left a comment

Choose a reason for hiding this comment

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

I like the look of the yellow dot, much cleaner! Just a small adjustment

@@ -236,6 +247,15 @@ const Layout = () => {
<LocalStorageProvider>
<AuthProvider>
<LayoutTopDiv>
{showStagingIndicator && (
<div
title="running on staging"
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
title="running on staging"
title="Staging environment"

@@ -236,6 +247,15 @@ const Layout = () => {
<LocalStorageProvider>
<AuthProvider>
<LayoutTopDiv>
{showStagingIndicator && (
<div
Copy link
Contributor

Choose a reason for hiding this comment

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

Let's change this to a span so there's a tooltip on hover

@uinstinct uinstinct requested a review from tingwai July 29, 2025 08:32
Copy link
Contributor

@tingwai tingwai left a comment

Choose a reason for hiding this comment

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

Nice work!

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 29, 2025
@tingwai tingwai merged commit 35de16f into continuedev:main Jul 29, 2025
42 of 43 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jul 29, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 29, 2025
@uinstinct uinstinct deleted the staging-distinction branch July 29, 2025 16:38
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants