Skip to content

Conversation

@hashicc
Copy link
Collaborator

@hashicc hashicc commented Nov 20, 2025

Description

Use conditional around the two different {{component}} helper usages instead of one where the conditional is for the first string argument to the helper. This results in some redundancy for the args passed in but it makes the first argument for the {{component}} helper a static string and can therefore be statically analyzable by ember's build and is embroider-safe, see:
https://github.com/embroider-build/embroider/blob/main/docs/replacing-component-helper.md

How to Test

  1. Navigate to rose forms and ensure that editable forms with showEditToggle=true show the correct 'rose/form/actions/edit-toggle' component ("Edit Form" button) , otherwise 'rose/form/actions' is shown ("Save" and "Cancel" button). Many forms use this case @showEditToggle={{if @model.isNew false true}} like the targets detail page.
  2. Tests continue to pass

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.

@vercel
Copy link

vercel bot commented Nov 20, 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 26, 2025 6:12pm
boundary-ui-desktop Ready Ready Preview Comment Nov 26, 2025 6:12pm

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