-
Notifications
You must be signed in to change notification settings - Fork 35
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
✨ Change label selector from searchable dropdown to clickable buttons #110
Conversation
foysalit
commented
May 1, 2024
•
edited
Loading
edited
- Change the label form to use clickable buttons instead of searchable dropdown. The searchable dropdown package has been removed as dependency. Labels can still be searched and custom labels can be added.
- Add cypress tests around the label add/remove and search behavior.
- Refactor cypress test code to make them more shareable.
Your Render PR Server URL is https://ozone-staging-pr-110.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cop3k1u3e1ms73bq9l1g. |
Your Render PR Server URL is https://ozone-sandbox-pr-110.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cop3k363e1ms73bq9lag. |
@@ -15,6 +15,7 @@ export const Dropdown = ({ | |||
children, | |||
items, | |||
containerClassName, | |||
...rest |
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.
This allows us to pass params like data-cy
to the wrapper component/
@@ -375,7 +375,7 @@ const EventFilterPanel = ({ | |||
type="datetime-local" | |||
id="createdAfter" | |||
name="createdAfter" | |||
className="block w-full" | |||
className="block w-full dark:[color-scheme:dark]" |
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.
The date picker, by default, adds a calendar icon in the input field. This classname ensures that the icon's color changes based on the browser's scheme.
}) | ||
} | ||
/> | ||
{Object.keys(reasonTypeOptions).map((typeValue) => { |
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.
Move the report type selector from searchable dropdown to clickable buttons just like labels.
|
||
export default defineConfig({ | ||
e2e: { | ||
setupNodeEvents(on, config) { | ||
// implement node event listeners here | ||
on('before:browser:launch', (browser, launchOptions) => { |
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.
Make sure the browser window is reasonably wide and tall enough so that tests can run without scrolling too much.
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.
Looks good!
Let's just ensure the lint and updated cypress tests pass here. Seems like they hung on the first run, so I've restarted them.