Skip to content

Conversation

@cameronperera
Copy link
Collaborator

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
Screenshot 2025-11-24 at 3 34 22 PM

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

  • I have added before and after screenshots for UI changes
  • I have added JSON response output for API changes
  • I have added steps to reproduce and test for bug fixes in the description
  • I have commented on my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • I have added a11y-tests label to run a11y audit tests if needed

PCI review checklist

  • I have documented a clear reason for, and description of, the change I am making.
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've documented the impact of any changes to security controls.
    Examples of changes to security controls include using new access control methods, adding or removing logging pipelines, etc.

@cameronperera cameronperera self-assigned this Nov 24, 2025
@cameronperera cameronperera requested a review from a team as a code owner November 24, 2025 21:53
@vercel
Copy link

vercel bot commented Nov 24, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
boundary-ui Ready Ready Preview Comment Nov 24, 2025 10:50pm
boundary-ui-desktop Ready Ready Preview Comment Nov 24, 2025 10:50pm

@tracked days;
@tracked hours;
@tracked minutes;
@tracked data = this.createDataRow();
Copy link
Collaborator

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);
Copy link
Collaborator

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants