Skip to content
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

Remove MeshManagerComponent input render modifiers #8308

Conversation

michaelchadwick
Copy link
Contributor

placeholder={{t "general.search"}}
{{on "input" this.update}}
{{on "keyup" this.keyUp}}
/>
Copy link
Member

Choose a reason for hiding this comment

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

XHTML 👊

Copy link
Member

@stopfstedt stopfstedt left a comment

Choose a reason for hiding this comment

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

this moveFocus() action doesn't seem to be wired up.

stefan@nichtsnutz: ~/dev/projects/frontend on remove-mesh-manager-input-render-modifiers[$]
$ grep -r 'moveFocus' packages --exclude-dir=dist --exclude-dir=node_modules
packages/ilios-common/addon/components/search-box.js:  moveFocus() {
packages/ilios-common/addon/components/search-box.js:    this.moveFocus();
packages/ilios-common/addon/components/mesh-manager.js:  moveFocus() {
packages/frontend/app/components/locale-chooser.js:  moveFocus(event) {
packages/frontend/app/components/locale-chooser.hbs:          {{on "keyup" this.moveFocus}}

proposing complete removal of this action and the horse that it rode in on, including the id/element stuff.

@michaelchadwick
Copy link
Contributor Author

this moveFocus() action doesn't seem to be wired up.

@stopfstedt Excellent catch. I think I just assumed there was a magnifying glass icon in the Mesh Manager search input just like there is one in the Learning Materials one (and the general search box at the top). It's like that method was never wired up, actually.

However, since we already use the magnifying glass in other search inputs, should we not just add one here so it has one? To add an icon in one place or to remove the method across the board seems like a global question outside the scope of this PR.

@stopfstedt
Copy link
Member

this moveFocus() action doesn't seem to be wired up.

@stopfstedt Excellent catch. I think I just assumed there was a magnifying glass icon in the Mesh Manager search input just like there is one in the Learning Materials one (and the general search box at the top). It's like that method was never wired up, actually.

However, since we already use the magnifying glass in other search inputs, should we not just add one here so it has one? To add an icon in one place or to remove the method across the board seems like a global question outside the scope of this PR.

that sounds even better than complete removal. go for it! the generic SearchBox component might be a good place to pilfer this from.

@michaelchadwick michaelchadwick force-pushed the remove-mesh-manager-input-render-modifiers branch from ffba5f4 to f07b40c Compare January 15, 2025 22:50
@michaelchadwick
Copy link
Contributor Author

@stopfstedt Well, after trying to implement the magnifying glass icon in the search input, I realized why it probably isn't there: the input just autocompletes as you type. There's no reason to ever click an icon to "submit", so adding it is worthless at best, and potentially confusing at worst. I'm now not sure why we have it on the other search boxes, except for maybe accessibility reasons?

Copy link
Member

@stopfstedt stopfstedt left a comment

Choose a reason for hiding this comment

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

sorry for giving you the runaround on this, but the since the need for getting a hold of this element within the component class is gone, some of this can be scrapped and the template can be reverted to the previous state (but leaving the nice cleanup intact).

packages/ilios-common/addon/components/mesh-manager.js Outdated Show resolved Hide resolved
packages/ilios-common/addon/components/mesh-manager.hbs Outdated Show resolved Hide resolved
@michaelchadwick michaelchadwick force-pushed the remove-mesh-manager-input-render-modifiers branch from f07b40c to b572edc Compare January 16, 2025 00:35
Copy link
Member

@stopfstedt stopfstedt left a comment

Choose a reason for hiding this comment

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

LGTM

@dartajax dartajax added the run ui tests Run the expensive UI tests label Jan 16, 2025
@dartajax dartajax merged commit 3da354a into ilios:master Jan 16, 2025
42 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run ui tests Run the expensive UI tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants