dt-multi-text-link component functionality (early version)#192
dt-multi-text-link component functionality (early version)#192brady-lamansky-gtt wants to merge 14 commits intoDiscipleTools:masterfrom
Conversation
✅ Deploy Preview for jade-chebakia-17493f ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
| value: { | ||
| type: Array, | ||
| reflect: true, | ||
| }, | ||
| groups: { type: Array }, | ||
| open: { | ||
| type: Boolean, | ||
| state: true, | ||
| }, | ||
| activeIndex: { | ||
| type: Number, | ||
| state: true, | ||
| }, |
There was a problem hiding this comment.
You shouldn't need to redefine properties that are in the parent class if its type hasn't changed. value is in DtMultiText as an array
|
Other than that, it's looking good-to-go! Nice work! Let's go ahead and work on the PR for the theme to implement this new component for the Links field type. Make sure to find the old js and remove what isn't needed any more in the process. I'll leave this open until we're sure everything is working in the theme too. |
| export const Empty = Template.bind({}) | ||
| Empty.args = { |
There was a problem hiding this comment.
Instead of the Template.bind legacy syntax, can we update this to the modern JSON object notation?
|
@brady-lamansky-gtt This looks like it's ready to go. Let's get the PR for the theme ready to make sure it's working there as well. I'll leave this one open until we can confirm it works as expected in the theme too. |
|
|
||
| const input = el.shadowRoot.querySelector('input'); | ||
|
|
||
| const changeEventPromise = oneEvent(el, 'change'); |
There was a problem hiding this comment.
I recently moved away from using this oneEvent method since it can often cause intermittent timeouts when running the tests. Look at the agents.md file for how to change that. You could ask an AI agent to update it based on the instructions in that file.
There was a problem hiding this comment.
Sounds good! I just updated it.







@cairocoder01 Here's what @jlamanskygitt & I set up for the new multi-text field type. It extends multi-text since it uses a the same base functionality, but I also re-created some functions from HasOptionsList for the dropdown navigation. I'm sure this isn't the optimal way to handle it. Please let us know what suggestions you have for improvements!