-
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
UI updates to WorkflowFilterSearch #1613
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
bdb2d40
to
c5435b4
Compare
src/lib/components/workflow/filter-search/close-filter-button.svelte
Outdated
Show resolved
Hide resolved
src/lib/components/workflow/filter-search/close-filter-button.svelte
Outdated
Show resolved
Hide resolved
Couple of thoughts
|
Screen.Recording.2023-09-05.at.1.27.44.PM.movLooks like there is some slightly inconsistent behavior here. If the user has selected "relative" but not specified a duration, should we disable the "Apply" button? Similarly, should we disable it if they select "absolute" and clear the date input? |
@rossedfort I have another task for this (
I'll create a separate task for this and get it approved by product.
I've disabled
The existing behavior for the datetime filter is just to use the current date if there is none specified. I think it would be fine to keep that and allow apply even if the date input is empty. |
9d686f4
to
0492785
Compare
01c0296
to
fe98dd6
Compare
fe98dd6
to
92794ac
Compare
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.
@@ -207,13 +207,15 @@ | |||
error={error(relativeTime)} | |||
unroundRight | |||
class="h-10" | |||
disabled={type !== 'relative'} |
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.
Once future enhancement I thought of is disabling the input(s) in the "Relative" option when user has selected "Absolute" and vice versa. It's a bit odd than you can interact with both even when you only have 1 option selected
@rossedfort added ✅
Description & motivation 💭
Screenshots (if applicable) 📸
Design Considerations 🎨
Testing 🧪
How was this tested 👻
Steps for others to test: 🚶🏽♂️🚶🏽♀️
Checklists
Draft Checklist
Merge Checklist
Issue(s) closed
DT-1359
Docs
Any docs updates needed?