Repository navigation
Commit 8211454
authored
Showcase grid follow ups (#1405)
* perf(grid): Unique keys from a name counter; index-based column ordering (26112201 T-01)
AddColumn counts the names already given out, so a key never repeats even if an earlier column's header text changes. GetOrderedColumns uses a key map and a set instead of repeated list scans, and the chooser computes row positions once. Chooser members are private and in coding-standard order.
* fix(grid): Name unnamed sort buttons, re-announce statuses, safe translations (26112201 T-02)
- A sortable column with neither header text nor property name names its
button through the new UnnamedSortColumnText ("Sort column {0}", 4.1.0).
- Export with no exportable column shows ExportNoDataText and downloads
nothing.
- The same export or chooser status twice in a row is announced again: the
region is cleared and rendered before the message is set.
- A translated text whose placeholders do not match falls back to the text
instead of throwing while rendering (chooser, filter, and move texts).
- Chooser drags carry an empty text payload so Firefox starts the drag.
- Docs: saved column order and hidden columns apply whether or not the
chooser is on.
* fix(grid): Neutralize every text value in CSV export (26112201 T-03)
Only built-in numbers, dates, times, and enums are written as values; custom IFormattable output and other text are neutralized, and a formula character after leading spaces is caught too.
* refactor(demo): Share link and search helpers; one Plural and LowerFirst per site (26112201 T-04)
Foundation gains ShowcaseLinks.IsSiteLink and ShowcaseSearch.Rank; the nine site states delegate to them. Each kept site keeps one Plural (display class, or the site state where services use it) and one LowerFirst.
* refactor(demo): Trim unused shared options; harden saved views (26112201 T-05)
ShowcaseDataState, ShowcaseGlobalSearch, and ShowcaseNotificationsMenu lose options and marker classes nobody sets. The saved-view store loads once for concurrent callers and never saves over views it could not read; a restored page size no list offers, or a page before the first, falls back to the list's defaults. Healthcare's audit names billing for Billing's edits; the account menu leaves out a blank role.
* perf(demo): Store only Help Desk's changes from a fresh tab (26112201 T-06)
New Foundation ShowcaseSnapshotDelta (Diff by JSON, Overlay). Help Desk's snapshot holds the records changed or added, the keys of seeded records removed, and the ID counters; the restore rebuilds the full help desk from a fresh tab and runs the existing validation. SnapshotVersion 5: an older snapshot is ignored and the site starts from its seed.
* perf(demo): Store only HR's changes from a fresh tab (26112201 T-07)
HrState.Snapshot.cs stores the records changed or added and the keys of seeded records removed for all nine lists, plus the ID counters; the restore rebuilds from a fresh tab and runs the existing validation. SnapshotVersion 4: an older snapshot is ignored.
* perf(demo): Store only Monitoring's changes from a fresh tab (26112201 T-08)
MonitoringState.Snapshot.cs stores the changed or added records and removed keys of all eleven lists, the notification preferences only when they differ, and the ID counters; the restore rebuilds from a fresh tab and runs the existing validation. SnapshotVersion 5: an older snapshot is ignored.
* fix(demo): No sideways scroll at 320 px on the kept sites (26112201 T-09)
On the nine kept sites the site bar's theme switcher shows only its icon (its accessible name is unchanged); Online Learning and Travel keep the label. SaaS Customers' result badge wraps, and the Pricing billing toggle is tighter below 400 px.
* docs: Grid follow-up parameters and a draft 4.1.0 upgrade post (26112201 T-10)
grid.mdx lists UnnamedSortColumnText and says saved column order and hidden columns apply whether or not the chooser is on. A draft (unpublished) Upgrade to v4.1.0 post lists the Grid, MindMap, and PdfViewer markup consumers may target and the new localizable texts.
* fix(grid): Re-announce repeated statuses reliably; review follow-ups (26112201 rework)
A shown export or chooser status stays empty for 150 ms before the next message, so the change reaches the accessibility tree. Export with no exportable column stops before reading rows. The saved-view store never caches a faulted load. Doc comment fixes in Grid and Help Desk; the upgrade post's translation note covers the listed texts only.1 parent 2ffb32a commit 8211454
92 files changed
Lines changed: 1549 additions & 551 deletions
File tree
- BlazorBootstrap.Demo.RCL
- Components/Pages/Showcase
- Ecommerce
- Fintech
- Healthcare
- HelpDesk
- Monitoring
- ProjectBoard
- Saas
- Services/Showcase
- AiAssistant
- Ecommerce
- Fintech
- Foundation
- Healthcare
- HelpDesk
- HrPortal
- Monitoring
- ProjectBoard
- Saas
- wwwroot/css
- blazorbootstrap
- Components/Grid
- Models
- Utils
- wwwroot
- docs
- blog
- docs/05-components
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
108 | | - | |
109 | 107 | | |
110 | 108 | | |
111 | 109 | | |
| |||
424 | 422 | | |
425 | 423 | | |
426 | 424 | | |
427 | | - | |
| 425 | + | |
428 | 426 | | |
429 | 427 | | |
430 | 428 | | |
431 | 429 | | |
432 | 430 | | |
433 | | - | |
| 431 | + | |
434 | 432 | | |
435 | 433 | | |
436 | 434 | | |
| |||
453 | 451 | | |
454 | 452 | | |
455 | 453 | | |
456 | | - | |
| 454 | + | |
457 | 455 | | |
458 | 456 | | |
459 | 457 | | |
| |||
468 | 466 | | |
469 | 467 | | |
470 | 468 | | |
471 | | - | |
| 469 | + | |
472 | 470 | | |
473 | 471 | | |
474 | 472 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
127 | | - | |
128 | | - | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
| |||
158 | 156 | | |
159 | 157 | | |
160 | 158 | | |
161 | | - | |
162 | | - | |
| 159 | + | |
| 160 | + | |
163 | 161 | | |
164 | 162 | | |
165 | 163 | | |
| |||
170 | 168 | | |
171 | 169 | | |
172 | 170 | | |
173 | | - | |
174 | | - | |
| 171 | + | |
| 172 | + | |
175 | 173 | | |
176 | 174 | | |
177 | 175 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
54 | 58 | | |
55 | 59 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
| |||
176 | 174 | | |
177 | 175 | | |
178 | 176 | | |
179 | | - | |
180 | | - | |
| 177 | + | |
| 178 | + | |
181 | 179 | | |
182 | 180 | | |
183 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | 139 | | |
143 | 140 | | |
144 | 141 | | |
| |||
243 | 240 | | |
244 | 241 | | |
245 | 242 | | |
246 | | - | |
| 243 | + | |
247 | 244 | | |
248 | 245 | | |
249 | 246 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
137 | | - | |
138 | 136 | | |
139 | 137 | | |
140 | 138 | | |
| |||
160 | 158 | | |
161 | 159 | | |
162 | 160 | | |
163 | | - | |
| 161 | + | |
164 | 162 | | |
165 | 163 | | |
166 | 164 | | |
| |||
243 | 241 | | |
244 | 242 | | |
245 | 243 | | |
246 | | - | |
| 244 | + | |
247 | 245 | | |
248 | 246 | | |
249 | 247 | | |
| |||
332 | 330 | | |
333 | 331 | | |
334 | 332 | | |
335 | | - | |
| 333 | + | |
336 | 334 | | |
337 | 335 | | |
338 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
152 | 152 | | |
153 | 153 | | |
154 | 154 | | |
155 | | - | |
156 | | - | |
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
| |||
197 | 195 | | |
198 | 196 | | |
199 | 197 | | |
200 | | - | |
| 198 | + | |
201 | 199 | | |
202 | 200 | | |
203 | 201 | | |
| |||
365 | 363 | | |
366 | 364 | | |
367 | 365 | | |
368 | | - | |
369 | | - | |
| 366 | + | |
| 367 | + | |
370 | 368 | | |
371 | 369 | | |
372 | 370 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
136 | 140 | | |
137 | 141 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | | - | |
146 | 144 | | |
147 | 145 | | |
148 | 146 | | |
| |||
183 | 181 | | |
184 | 182 | | |
185 | 183 | | |
186 | | - | |
| 184 | + | |
187 | 185 | | |
188 | 186 | | |
189 | 187 | | |
| |||
213 | 211 | | |
214 | 212 | | |
215 | 213 | | |
216 | | - | |
217 | | - | |
| 214 | + | |
| 215 | + | |
218 | 216 | | |
219 | 217 | | |
220 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
87 | | - | |
88 | 86 | | |
89 | 87 | | |
90 | 88 | | |
| |||
97 | 95 | | |
98 | 96 | | |
99 | 97 | | |
100 | | - | |
| 98 | + | |
101 | 99 | | |
102 | 100 | | |
103 | 101 | | |
| |||
0 commit comments