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

UI updates to WorkflowFilterSearch #1613

Merged
merged 14 commits into from
Sep 7, 2023
Merged

Conversation

laurakwhit
Copy link
Contributor

@laurakwhit laurakwhit commented Sep 1, 2023

Description & motivation 💭

Screenshots (if applicable) 📸

Screenshot 2023-09-06 at 3 55 52 PM Screenshot 2023-09-06 at 3 56 12 PM
Before After
Screenshot 2023-09-01 at 3 43 34 PM Screenshot 2023-09-01 at 3 44 02 PM
Screenshot 2023-09-01 at 3 44 42 PM Screenshot 2023-09-01 at 3 45 02 PM
Screenshot 2023-09-01 at 3 45 39 PM Screenshot 2023-09-01 at 3 46 02 PM
Screenshot 2023-09-01 at 3 46 33 PM Screenshot 2023-09-01 at 3 46 49 PM

Design Considerations 🎨

Testing 🧪

How was this tested 👻

  • Manual testing
  • E2E tests added
  • Unit tests added

Steps for others to test: 🚶🏽‍♂️🚶🏽‍♀️

  • Verify all types of filters have the close button and it works/looks as expected
  • Verify Relative and Absolute Datetime filters work as expected
  • Verify Start/End time Datetime filter works as expected

Checklists

Draft Checklist

Merge Checklist

Issue(s) closed

DT-1359

Docs

Any docs updates needed?

@vercel
Copy link

vercel bot commented Sep 1, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
holocene ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 7, 2023 4:54pm
storybook ❌ Failed (Inspect) Sep 7, 2023 4:54pm

@laurakwhit laurakwhit force-pushed the DT-1359-updates-to-filter-search branch from bdb2d40 to c5435b4 Compare September 1, 2023 22:56
@vercel vercel bot temporarily deployed to Preview – storybook September 1, 2023 22:57 Inactive
@rossedfort
Copy link
Contributor

Couple of thoughts

  1. Were you going to fix the issue where clicking away from the Workflow Status filter doesn't reset it in the dropdown?
  2. Should we also use this PR to remove the labs mode check from the new filters?

@rossedfort
Copy link
Contributor

Screen.Recording.2023-09-05.at.1.27.44.PM.mov

Looks 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?

@vercel vercel bot temporarily deployed to Preview – storybook September 6, 2023 18:36 Inactive
@laurakwhit
Copy link
Contributor Author

Were you going to fix the issue where clicking away from the Workflow Status filter doesn't reset it in the dropdown?

@rossedfort I have another task for this (DT-1360), but we also may be removing this filter entirely with the addition of Workflow counts.

Should we also use this PR to remove the labs mode check from the new filters?

I'll create a separate task for this and get it approved by product.

Looks 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?

I've disabled Apply if relative is selected and there is an error or no specified duration (b006720).

Similarly, should we disable it if they select "absolute" and clear the date input?

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.

@laurakwhit laurakwhit force-pushed the DT-1359-updates-to-filter-search branch from 9d686f4 to 0492785 Compare September 6, 2023 20:17
@vercel vercel bot temporarily deployed to Preview – storybook September 6, 2023 20:18 Inactive
@vercel vercel bot temporarily deployed to Preview – storybook September 6, 2023 20:41 Inactive
@laurakwhit laurakwhit force-pushed the DT-1359-updates-to-filter-search branch from 01c0296 to fe98dd6 Compare September 6, 2023 21:02
@vercel vercel bot temporarily deployed to Preview – storybook September 6, 2023 21:02 Inactive
@laurakwhit laurakwhit force-pushed the DT-1359-updates-to-filter-search branch from fe98dd6 to 92794ac Compare September 6, 2023 21:37
@vercel vercel bot temporarily deployed to Preview – storybook September 6, 2023 21:37 Inactive
@vercel vercel bot temporarily deployed to Preview – storybook September 6, 2023 21:55 Inactive
@vercel vercel bot temporarily deployed to Preview – storybook September 6, 2023 22:08 Inactive
@vercel vercel bot temporarily deployed to Preview – storybook September 7, 2023 15:43 Inactive
@vercel vercel bot temporarily deployed to Preview – storybook September 7, 2023 16:33 Inactive
Copy link
Contributor

@rossedfort rossedfort left a comment

Choose a reason for hiding this comment

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

LGTM

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
Screenshot 2023-09-07 at 10 34 50 AM

@vercel vercel bot temporarily deployed to Preview – storybook September 7, 2023 16:53 Inactive
@@ -207,13 +207,15 @@
error={error(relativeTime)}
unroundRight
class="h-10"
disabled={type !== 'relative'}
Copy link
Contributor Author

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 ✅

Screenshot 2023-09-07 at 10 50 11 AM Screenshot 2023-09-07 at 10 50 19 AM

@laurakwhit laurakwhit merged commit 2a1e8b7 into main Sep 7, 2023
10 checks passed
@laurakwhit laurakwhit deleted the DT-1359-updates-to-filter-search branch September 7, 2023 17:55
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