Commit e547529
ref(provisioning): Rehaul form pt. 1 (#87138)
Updates:
- No more hardcoded plans! Parent component passes down billing config
(we query the endpoint for this in the parent component so we can reuse
it for other customer overview actions)
- Only shows relevant fields; this means if I am provisioning AM3, I
won't see any performance unit fields, if I am provisioning AM2, I won't
see any spans fields, etc.
- Category/SKU fields are generated based on plan, so no more manually
adding fields on the frontend when new categories are being launched
- Autofills form based on existing subscription, even if existing
subscription is not already enterprise
- Adds some enterprise plans to our fixtures + updates enterprise plan
names in fixtures to reflect recent update
- Uses the plan category name (ie. if an AM1 plan is selected, we say
"Transactions" over "Performance Units")
- Uses paygCpe over onDemandCpe so we can begin removing references to
the latter in the backend
In follow up PRs I'd like to:
- Convert all deprecated field components to their modern versions
- Convert to functional component and clean up state management where
possible
Depends on getsentry/getsentry#16995
https://github.com/user-attachments/assets/0e202f2c-f822-4e71-be39-e029eb4320d9
---------
Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>1 parent 3147000 commit e547529
File tree
17 files changed
+1289
-1620
lines changed- static
- gsAdmin
- components
- customers
- views
- gsApp
- types
- utils
- views/subscriptionPage
- tests/js/getsentry-test/fixtures
17 files changed
+1289
-1620
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
| 142 | + | |
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | | - | |
| 218 | + | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
348 | 350 | | |
349 | 351 | | |
350 | 352 | | |
| |||
369 | 371 | | |
370 | 372 | | |
371 | 373 | | |
372 | | - | |
373 | 374 | | |
374 | 375 | | |
375 | 376 | | |
| |||
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
381 | | - | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
382 | 385 | | |
383 | 386 | | |
384 | 387 | | |
| |||
0 commit comments