-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[grid] UI Sessions capability fields to display as additional columns #15759
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
base: trunk
Are you sure you want to change the base?
Conversation
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
Signed-off-by: Viet Nguyen Duc <[email protected]>
a3318ee
to
8df92cb
Compare
@ VietND96, feature-wise, it looks great, goes beyond my request, and everybody will find this feature useful. A few questions/suggestions, since it is not clear based on the code (also, not a React dev):
|
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'd like to see some component tests for the new component.
Yes, this feature has existed for a long time. With this change, now you can have a separate column of
For key with simple string, we can beautify it, but I am wondering on few cases with prefix |
I think this is good as it is, we can always iterate based on feedback. I am more concerned about having tests running in our CI for this. |
I was not aware that the Session column can use se:name :) Beautified properties would be more user-friendly: make the first letter uppercase and add a space for every lower case -> upper case. Some properties would not be as beautiful, but most will be. Anyway, beautification aside, the feature is very nice, thanks. |
User description
🔗 Related Issues
Fixes #15599
💥 What does this PR do?
Enhances the Sessions view in Selenium Grid UI to support additional dynamic columns that can be selected from a list of checkboxes. These columns display values parsed from the merged running sessions capabilities JSON data, and users can sort the table by clicking on the column headers.
Dialog for selecting additional dynamic columns

After selected

When all columns are selected, horizontal scrolling is enabled

🔧 Implementation Notes
💡 Additional Considerations
🔄 Types of changes
PR Type
Enhancement
Description
Added dynamic column selection for sessions table.
Implemented ColumnSelector component with dialog UI.
Persisted selected columns and capability keys in localStorage.
Enabled sorting and display of custom capability columns.
Changes walkthrough 📝
ColumnSelector.tsx
Add ColumnSelector component for dynamic session columns
javascript/grid-ui/src/components/RunningSessions/ColumnSelector.tsx
localStorage.
RunningSessions.tsx
Integrate dynamic columns and selection into sessions table
javascript/grid-ui/src/components/RunningSessions/RunningSessions.tsx
session-data.ts
Allow dynamic properties in SessionData interface
javascript/grid-ui/src/models/session-data.ts