-
Notifications
You must be signed in to change notification settings - Fork 33
Icu 18005 UI create component ttl tts inputs #3091
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
base: llb/app-tokens
Are you sure you want to change the base?
Icu 18005 UI create component ttl tts inputs #3091
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
| @tracked days; | ||
| @tracked hours; | ||
| @tracked minutes; | ||
| @tracked data = this.createDataRow(); |
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.
does data need to be initialized if we already did so in initializeTimeFields in the constructor
| maxSeconds %= 86400; | ||
| this.hours = Math.floor(maxSeconds / 3600); | ||
| maxSeconds %= 3600; | ||
| this.minutes = Math.floor(maxSeconds / 60); |
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.
Thoughts on converting all the values used to calculate the different units of time (e.g. 86400, 3600, 60) into const vars? Since they are used more than once and it could help w/ readability.
Description
This is a component that will be used for App Tokens. It uses 3 inputs that track a single model attribute. The component will handle the calculations and the consumer simply needs to provide the attribute and update callback.
🎟️ Jira ticket
Screenshots (if appropriate)
Screen.Recording.2025-11-24.at.3.30.28.PM.mov
How to Test
To test, you will need to pull down this branch and add the component to a form as seen in the screenshot above.
Checklist
a11y-testslabel to run a11y audit tests if neededPCI review checklist
Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.