-
Notifications
You must be signed in to change notification settings - Fork 70
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
fix: automatically open new subform table column in edit mode #14268
base: main
Are you sure you want to change the base?
fix: automatically open new subform table column in edit mode #14268
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #14268 +/- ##
=======================================
Coverage 95.52% 95.52%
=======================================
Files 1829 1829
Lines 23775 23778 +3
Branches 2754 2754
=======================================
+ Hits 22710 22714 +4
Misses 807 807
+ Partials 258 257 -1 ☔ View full report in Codecov by Sentry. |
@@ -12,19 +12,21 @@ export type ColumnElementProps = { | |||
layoutSetName: string; | |||
tableColumn: TableColumn; | |||
columnNumber: number; | |||
initialOpenForEdit: boolean; |
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.
What about changing the name to isColumnInitiallyEditable
or isInitialOpenForEdit
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.
Thx! I will use one of your suggestions :)
@@ -111,6 +112,18 @@ describe('ColumnElement', () => { | |||
|
|||
expect(onDeleteColumnMock).toHaveBeenCalledTimes(1); | |||
}); | |||
|
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.
Here maybe we can add test or update this to test the scenario where the user clicks first on the button Legg til kolonne
and check if the edit mode is showing.
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 agree! :) Nice suggestion!
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.
Nice work! It works as expected
Description
When a user adds a new column to the subform table, it should automatically open in edit mode, eliminating the need for an additional click. The same behavior can be seen in Prosess page when adding "handling" for a task.
initially-open-edit-mode.mp4
Related Issue(s)
Verification
Documentation