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

refactor: use glimmer component for search-input #205

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

kennstenicht
Copy link
Contributor

the same procedure as last time. The first commit is formatting the files and the second is the refactoring.

Copy link

netlify bot commented Aug 11, 2024

Deploy Preview for guidemaker-ember-template ready!

Name Link
🔨 Latest commit 4443b0b
🔍 Latest deploy log https://app.netlify.com/sites/guidemaker-ember-template/deploys/674f519253d6d00008a210b8
😎 Deploy Preview https://deploy-preview-205--guidemaker-ember-template.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@kennstenicht kennstenicht force-pushed the refactor-search-input branch 2 times, most recently from 571bf94 to 9a4efb1 Compare August 11, 2024 12:47
@kennstenicht kennstenicht force-pushed the refactor-search-input branch from 9a4efb1 to 126835b Compare August 11, 2024 13:14
Try searching the
<a
href={{this.deprecationsGuideURL}}
target="_deprecations"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@mansona is target="_deprecations" a special guidemaker target?

Copy link
Member

Choose a reason for hiding this comment

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

no this isn't something I'm aware of 😂 We can probably remove it 🤷


set(this, '_focused', false);
}),
closeMenu = task({ restartable: true }, async () => {
Copy link
Member

Choose a reason for hiding this comment

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

it looks like you might have put the restartable on the closeMenu task instead of the search task 🤔

@@ -47,6 +47,7 @@
"ember-cli-inject-live-reload": "^2.1.0",
"ember-cli-sri": "^2.1.1",
"ember-cli-terser": "^4.0.2",
"ember-concurrency": "^4.0.0",
Copy link
Member

Choose a reason for hiding this comment

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

why is this necessary? is it not a a dependency of the actual addon already? 🤔

autocomplete="off"
data-test-search-input
{{on "focus" this.onfocus}}
{{on "blur" (perform this.closeMenu)}}
Copy link
Contributor

Choose a reason for hiding this comment

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

Is using 'perform' the standard in this project? To explicitly indicate the action?
In the line above it's commenly written.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants