Commit c682e67
authored
refactor(comp-510): fix mock price data generation (#547)
Fixes: #546 - Ref: https://coss.com/origin/calendar-date-picker
<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Fixed mock price data generation in comp-510 so the calendar renders once and shows prices for the next 180 days. Also updated the registry item metadata to align with the calendar dependency.
- **Bug Fixes**
- Generate mock prices once on mount using a local todayDate, removing the unstable today dependency.
- Keep date disabling tied to the price map by formatted date key.
- **Refactors**
- comp-510.json now declares name/type and the calendar registry dependency.
- Normalized meta tags and file entry format.
<sup>Written for commit b99a9a3. Summary will update automatically on new commits.</sup>
<!-- End of auto-generated description by cubic. -->1 parent 7a0a5c9 commit c682e67
File tree
2 files changed
+17
-10
lines changed- apps/origin
- public/r
- registry/default/components
2 files changed
+17
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
3 | 8 | | |
4 | 9 | | |
5 | | - | |
6 | 10 | | |
| 11 | + | |
7 | 12 | | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
11 | 16 | | |
12 | 17 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | | - | |
26 | | - | |
| 26 | + | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments