-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Liveview dashboard datepicker #6000
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Liveview dashboard datepicker #6000
Conversation
zoldar
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢 😄
| phx-value-goal-type="scroll" | ||
| x-data | ||
| x-on:click={Modal.JS.preopen("goals-form-modal")} | ||
| :for={ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice ✨
|
Hey 👋 - I ran this through Ito.ai to test and it flagged a potential issue: ❌️ 1 potential issue flagged — 17 test cases ran
We found it by pulling down the PR, running it in a local environment, and thoroughly testing against it. There may be minor issues because we didn't have a perfect data to seed the environment. I see that the change was already merged so it may have been a visual library issue. 16 other passed testcases:
|

Changes
Note: this PR targets the
liveview-dashboardPOC branch, not master.Adds optimistic datepicker label updates as well as arrows for prev/next period navigation. The arrows currently need to be clicked. Keyboard shortcuts are out of scope. The logic is built up as follows:
relative_date(or today by default) in both directions by 10 units (either day, month, or year). Any future dates are cut off bytoday(site.timezone). Also, currently out of scope, but we should also cut off any dates that fall beforesite.stats_start_date.relative_datealso belongs to this array. Its index is passed as adata-*attribute as well.