Commit d005633
committed
refactor(crm): drop redundant currency format/prefix from dashboard configs
The metric/table widgets now derive currency formatting from the
`Field.currency()` definition on the bound object — there's no need to
restate `format: '$0,0'` or `prefix: '$'` per widget. Drop the
duplication on the executive and CRM dashboards (headline KPIs +
opportunity Amount / account Annual Revenue table columns).
To customize the displayed currency code, set `defaultCurrency` on the
field definition itself instead of formatting at the widget level.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 61dafc8 commit d005633
4 files changed
Lines changed: 5 additions & 16 deletions
File tree
- apps/cloud
- examples/app-crm
- dist
- src/dashboards
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14878 | 14878 | | |
14879 | 14879 | | |
14880 | 14880 | | |
14881 | | - | |
14882 | | - | |
14883 | 14881 | | |
14884 | 14882 | | |
14885 | 14883 | | |
| |||
14976 | 14974 | | |
14977 | 14975 | | |
14978 | 14976 | | |
14979 | | - | |
14980 | | - | |
14981 | 14977 | | |
14982 | 14978 | | |
14983 | 14979 | | |
| |||
15172 | 15168 | | |
15173 | 15169 | | |
15174 | 15170 | | |
15175 | | - | |
15176 | | - | |
| 15171 | + | |
15177 | 15172 | | |
15178 | 15173 | | |
15179 | 15174 | | |
| |||
15279 | 15274 | | |
15280 | 15275 | | |
15281 | 15276 | | |
15282 | | - | |
15283 | | - | |
15284 | 15277 | | |
15285 | 15278 | | |
15286 | 15279 | | |
| |||
15576 | 15569 | | |
15577 | 15570 | | |
15578 | 15571 | | |
15579 | | - | |
15580 | | - | |
| 15572 | + | |
15581 | 15573 | | |
15582 | 15574 | | |
15583 | 15575 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
| |||
127 | 126 | | |
128 | 127 | | |
129 | 128 | | |
130 | | - | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
| |||
230 | 228 | | |
231 | 229 | | |
232 | 230 | | |
233 | | - | |
| 231 | + | |
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
241 | 240 | | |
242 | 241 | | |
243 | 242 | | |
244 | | - | |
| 243 | + | |
245 | 244 | | |
246 | 245 | | |
247 | 246 | | |
| |||
0 commit comments