feat(website): more relevant date range options for W-ASAP page - #801
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
22b0549 to
ec3ee3d
Compare
ec3ee3d to
1bd0940
Compare
1bd0940 to
48001b3
Compare
188584d to
0624360
Compare
|
I think the thought, but you need a start and an end date? A starting week and an ending week. Something like "Most recent 2 weeks", "Most Recent Month2, "Most recent 3 Months", Or Multiple select the recent weeks? The timeframe uploaded will always be consecutive. |
|
Hmm, I think I don't quite understand what you mean. I'm not sure what the start and end date is needed for, when computing the options. Maybe i can explain a bit better how it works now: I calculate the date ranges for all months and weeks within the last 6 months or so, and then I fetch the start and end date of the available data. And then I look for overlaps. Which of the date ranges have any overlap with the data? And those ranges I put as options into the dropdown. So it is dynamic (maybe that's what you mean?), it fetches the available dates from the data, and then checks which ranges are useful. Maybe we could also have something like "most recent month" or so, but given that it's maybe not the last month, but the one before, it might be confusing? |
0624360 to
3167e01
Compare
3167e01 to
fd7c299
Compare
fd7c299 to
f2d283c
Compare
f2d283c to
0d8174d
Compare
0d8174d to
91e7a6e
Compare
91e7a6e to
e06e922
Compare
e06e922 to
465f5ca
Compare
522c40d to
6300396
Compare
6300396 to
34c8182
Compare
34c8182 to
98c9bcc
Compare
98c9bcc to
793ead1
Compare
793ead1 to
022cdd3
Compare
022cdd3 to
52f6de6
Compare
52f6de6 to
7534807
Compare
7534807 to
14d1774
Compare
14d1774 to
3a1e738
Compare
resolves #814
Summary
weeklyAndMonthlyDateRangeOptionsfunction to generate weekly and monthly date range options using labels like2025-W23for weeks, and2025-08for months.DynamicDateFilterwhich takes a field name, looks at the available date range for that field, and then filters down a given list of date range options to the ones that have overlap with the date range of the field.Screenshot
PR Checklist
All necessary documentation has been adapted.