-
Notifications
You must be signed in to change notification settings - Fork 71
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
KeywordList search attribute support #2420
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
44d405c
to
4a72641
Compare
@@ -18,12 +18,17 @@ | |||
export let hintText = ''; | |||
export let validator: (value: string) => boolean = () => true; | |||
export let removeChipButtonLabel: string | ((chipValue: string) => string); | |||
export let unroundRight = false; | |||
export let unroundLeft = false; | |||
export let external = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we keep the tags here in the input (like start workflow?)
@Alex-Tideman we explored keeping the chips in the input, but after talking with design (cc @tigernaut) we opted for this external
chip option to make sure this works with the existing filter (otherwise there are some questions r.e. the border on the input and responsiveness).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment explaining what external
is?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had added a story for this, might that suffice?
src/lib/components/workflow/search-attribute-input/index.svelte
Outdated
Show resolved
Hide resolved
@@ -18,12 +18,17 @@ | |||
export let hintText = ''; | |||
export let validator: (value: string) => boolean = () => true; | |||
export let removeChipButtonLabel: string | ((chipValue: string) => string); | |||
export let unroundRight = false; | |||
export let unroundLeft = false; | |||
export let external = false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add a comment explaining what external
is?
@@ -163,6 +185,14 @@ | |||
@apply surface-primary inline-block w-full focus:outline-none; | |||
} | |||
|
|||
.unroundRight { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we just do something like first-child:
or whatever?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked into this and it was it not as simple as that (it's not the first child for one thing), but if we can figure out how to get this working with modifiers I'll update this for all our input components.
Description & motivation 💭
KeywordList
search attributes.KeywordList
custom search attributes to a Schedule.Screenshots (if applicable) 📸
Design Considerations 🎨
Testing 🧪
How was this tested 👻
Steps for others to test: 🚶🏽♂️🚶🏽♀️
KeywordList
custom search attribute (e.g.temporal operator search-attribute create --namespace default --name CustomKeywordListField --type KeywordList
)CustomKeywordListField
> enter valuesView Search Input
/schedules
> Create Schedule > + Add a Search AttributeCustomKeywordListField
works as expectedCustomKeywordListField
works as expectedCustomKeywordListField
> enter valuesView Search Input
Checklists
Draft Checklist
Merge Checklist
Issue(s) closed
DT-2505
Docs
Any docs updates needed?