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

Add selectNode helper to ember-node and improve types #1188

Merged
merged 4 commits into from
Apr 30, 2024

Conversation

piemonkey
Copy link
Contributor

Overview

I noticed that many of the variable plugin nodes as well as image nodes have a copy-pasted version of this that I wanted to copy-paste into the snippet placeholder, so moved it here instead. I then noticed that there was a modifier to do this that wasn't being used. Since the node args are already a kind of public api for ember nodes, I thought it was better to keep that than switch to the modifier instead.

connected issues and PRs:

Done as part of the snippet placeholder work: https://binnenland.atlassian.net/browse/GN-4782

Setup

N/A

How to test/reproduce

Image nodes still work as expected. Can also be tested as part of the snippet placeholder PR when that lands.

Challenges/uncertainties

N/A

Checks PR readiness

  • UI: works on smaller screen sizes
  • UI: feedback for any loading/error states
  • Check cancel/go-back flows
  • Check database state correct when deleting/updating (especially regarding relationships)
  • changelog
  • npm lint
  • no new deprecations

The previous fix to 1.0.1 was only done due to incorrect peerDeps of
ember-focus-trap, which claim that ember-source `^4.0.0 || ^5.0.0` is
needed. See josemarluedke/ember-focus-trap#82
Copy link
Member

@abeforgit abeforgit left a comment

Choose a reason for hiding this comment

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

nice! indeed makes sense to pass it in as its something almost every node needs

@piemonkey piemonkey merged commit 7e37bce into master Apr 30, 2024
5 checks passed
@piemonkey piemonkey deleted the feat/ember-node-select branch April 30, 2024 07:04
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.

2 participants