Commit cda8d88
console: render environment-not-ready flow in the standard layout
The environment-not-ready flow used a stripped custom layout with no
navigation, so users without an enabled environment could not see or
reach account-scoped pages like App Passwords, License, or Usage &
Billing. A blocked or trial-expired organization, by contrast, already
rendered the full BaseLayout with those links visible, making the two
states inconsistent.
Render EnvironmentNotReadyRoutes inside BaseLayout instead. The nav
already handles the no-environment state: region-scoped items hide via
HideIfEnvironmentDisabled while account-scoped Admin items carry
forceShow, so new users now get the same chrome as everyone else. The
logo links back to the enable-region flow while no environment is
ready.
The region-ready toast is preserved in a headless RegionReadyToast
component. Its unmount cleanup reads the unstable toast reference
through a ref instead of an eslint-disable, which the react-compiler
lint rule no longer accepts. The custom layout file is deleted.
Adds a test asserting the Admin nav group renders on the enable-region
page with no enabled environment while region-scoped items stay hidden.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>1 parent 7a0234d commit cda8d88
3 files changed
Lines changed: 92 additions & 176 deletions
File tree
- console/src/platform/environment-not-ready
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
94 | 106 | | |
Lines changed: 80 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
10 | 12 | | |
11 | | - | |
| 13 | + | |
12 | 14 | | |
| 15 | + | |
13 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
14 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
15 | 26 | | |
16 | 27 | | |
17 | | - | |
18 | 28 | | |
19 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
20 | 95 | | |
21 | 96 | | |
22 | | - | |
| 97 | + | |
| 98 | + | |
23 | 99 | | |
24 | 100 | | |
25 | 101 | | |
26 | 102 | | |
27 | 103 | | |
28 | | - | |
| 104 | + | |
29 | 105 | | |
30 | 106 | | |
This file was deleted.
0 commit comments