Skip to content

fix(ui): several improvement part 3#2617

Merged
RemiBonnet merged 8 commits intonew-navigationfrom
fix/new-nav/ui-feedback-3
Apr 23, 2026
Merged

fix(ui): several improvement part 3#2617
RemiBonnet merged 8 commits intonew-navigationfrom
fix/new-nav/ui-feedback-3

Conversation

@RemiBonnet
Copy link
Copy Markdown
Member

@RemiBonnet RemiBonnet commented Apr 22, 2026

Summary

  • Add Sentry
  • Add NX_PUBLIC_INSTATUS_APP_ID environment variable to Dockerfile
  • Fix delete environment redirect and refetch environment overview query (slack)
  • Fix "override from" text for configure terraform values (slack)
  • Add clear status banner for job (slack)

Screenshots / Recordings

Screenshot 2026-04-23 at 12 07 55

Testing

  • Changes tested locally in the relevant Console's pages and Storybooks
  • yarn test or yarn test -u (if you need to regenerate snapshots)
  • yarn format
  • yarn lint

PR Checklist

  • I followed naming, styling, and TypeScript rules (see .cursor/rules)
  • I performed a self-review (diff inspected, dead code removed)
  • I titled the PR using Conventional Commits with a scope when possible (e.g. feat(service): add new Terraform service) - required for semantic-release
  • I only kept necessary comments, written in English (watch for useless AI comments)
  • I involved a designer to validate UI changes if I am not a designer
  • I covered new business logic with tests (unit)
  • I confirmed CI is green (Codecov red can be accepted)
  • I reviewed and executed locally any AI-assisted code

@RemiBonnet RemiBonnet added the V5 label Apr 22, 2026
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 22, 2026

Codecov Report

❌ Patch coverage is 89.47368% with 2 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (new-navigation@0e9ac1e). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...s/use-create-environment/use-create-environment.ts 0.00% 1 Missing ⚠️
...form-variables-table/terraform-variables-table.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##             new-navigation    #2617   +/-   ##
=================================================
  Coverage                  ?   43.87%           
=================================================
  Files                     ?      634           
  Lines                     ?    15247           
  Branches                  ?     4469           
=================================================
  Hits                      ?     6689           
  Misses                    ?     7411           
  Partials                  ?     1147           
Flag Coverage Δ
unittests 43.87% <89.47%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@RemiBonnet RemiBonnet changed the title fix(ui): several improvement part 3 fix(ui): several improvement part 3 Apr 22, 2026
@RemiBonnet RemiBonnet marked this pull request as ready for review April 23, 2026 10:08
@RemiBonnet RemiBonnet force-pushed the fix/new-nav/ui-feedback-3 branch from 2ed7183 to b10c4ed Compare April 23, 2026 10:14
@TheoGrandin74
Copy link
Copy Markdown
Contributor

@RemiBonnet Quick feedback, but can you put the callout with clear status just above the instances table (and below the "instances" title?). Would be more logical since it's written "Look at the table below to..." in the callout

Comment thread apps/console-v5/src/main.tsx Outdated
Comment on lines +158 to +179
const [router] = useState(() => {
const nextRouter = createRouter({
routeTree,
context: { auth, queryClient },
defaultNotFoundComponent: NotFoundPage,
})

if (!isSentryInitialized && NODE_ENV === 'production') {
Sentry.init({
release: GIT_SHA,
dsn: SENTRY_DSN,
integrations: [Sentry.tanstackRouterBrowserTracingIntegration(nextRouter), Sentry.replayIntegration()],
tracesSampleRate: 1.0,
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
})

isSentryInitialized = true
}

return nextRouter
})
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.

Why do we need a local state here?

Copy link
Copy Markdown
Member Author

@RemiBonnet RemiBonnet Apr 23, 2026

Choose a reason for hiding this comment

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

The goal was just to keep a stable router instance across renders, not really to use state. I switched it to useRef since it’s clearer, especially because Sentry is attached to that router instance !

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

useTerraformVariablesContext()
const { environmentId = '' } = useParams({ strict: false })
const [isVariablePopoverOpen, setIsVariablePopoverOpen] = useState(false)
const [, setIsVariablePopoverOpen] = useState(false)
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.

I think we can remove this local state altogether

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Apr 23, 2026

View your CI Pipeline Execution ↗ for commit e80205a


☁️ Nx Cloud last updated this comment at 2026-04-23 12:38:09 UTC

1 similar comment
@nx-cloud
Copy link
Copy Markdown

nx-cloud Bot commented Apr 23, 2026

View your CI Pipeline Execution ↗ for commit e80205a


☁️ Nx Cloud last updated this comment at 2026-04-23 12:38:09 UTC

Copy link
Copy Markdown
Contributor

@rmnbrd rmnbrd left a comment

Choose a reason for hiding this comment

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

LGTM

@RemiBonnet RemiBonnet merged commit 8e72415 into new-navigation Apr 23, 2026
11 checks passed
@RemiBonnet RemiBonnet deleted the fix/new-nav/ui-feedback-3 branch April 23, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants