Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

shleewhite
Copy link
Contributor

@shleewhite shleewhite commented Oct 10, 2025

📌 Summary

If merged, this PR would some small tasks related to converting the showcase to gts format:

  • standardize how the style modifier
  • fix the casing for the model-from-route file name
  • convert the application template to gts
    • this includes changing the function to replace the mock-state-value attributes with classes to a modifier
  • convert the index template to gts
  • delete tag + file input controllers that got missed when the page was initially converted to gts
  • delete route files for /page-{name} because we don't have templates for those routes

Note: Each of these changes is broken into its own commit so its easier to review.


👀 Component checklist

  • Percy was checked for any visual regression

💬 Please consider using conventional comments when reviewing this PR.

📋 PCI review checklist
  • If applicable, I've documented a plan to revert these changes if they require more than reverting the pull request.
  • If applicable, I've worked with GRC to document the impact of any changes to security controls.
    Examples of changes to controls include access controls, encryption, logging, etc.
  • If applicable, I've worked with GRC to ensure compliance due to a significant change to the in-scope PCI environment.
    Examples include changes to operating systems, ports, protocols, services, cryptography-related components, PII processing code, etc.

Copy link

vercel bot commented Oct 10, 2025

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

Project Deployment Preview Updated (UTC)
hds-showcase Ready Ready Preview Oct 13, 2025 7:51pm
hds-website Ready Ready Preview Oct 13, 2025 7:51pm

Copy link
Contributor

@dchyun dchyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small issue with the mock states, but everything else looks good to me.

return this.router?.currentURL?.includes('frameless') ?? false;
}

addMockStateClasses = modifier(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Issue] On route change the mock classes aren't getting added. If I go to the accordion route from the homepage, the mock states aren't present for the card. If I refresh the accordion page, then the modifier is getting called. Locally I added back some of the original app controller logic for calling addMockStateClasses on route change and that seemed to fix it.

constructor(owner: Owner, args: Record<string, never>) {
  super(owner, args);
  this.router.on('routeDidChange', this.routeDidChange.bind(this));
}

routeDidChange = () => {
  // eslint-disable-next-line ember/no-runloop
  scheduleOnce('afterRender', this, this.addMockStateClasses.bind(this));
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just checked the percy diff and it is also not picking up the states as expected.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I got over eager with modifiers and forgot they only run when the component is initially put in the dom. Changed it back to use routeDidChange.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good on route change, but think we still need the modifier to set it on reload.

get isFrameless() {
return this.router?.currentURL?.includes('frameless') ?? false;
}
addMockStateClasses = () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Issue] This is working on route change, and in percy now, but on reload the state is getting removed and not shown. Think we still need the modifier for that.

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.