-
Notifications
You must be signed in to change notification settings - Fork 78
fix(FR-1686): fix edit button not reappearing after no-change submission in folder name editor #4663
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(FR-1686): fix edit button not reappearing after no-change submission in folder name editor #4663
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 4.69% | 547/11673 |
| 🔴 | Branches | 3.82% | 314/8227 |
| 🔴 | Functions | 2.91% | 104/3576 |
| 🔴 | Lines | 4.63% | 529/11414 |
Test suite run success
125 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from 3d654df
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.
Pull Request Overview
This PR fixes a bug where the inline edit button for folder names would not reappear after clicking edit and submitting without making changes. The root cause was that the onEditEnd callback was not being invoked when the form was submitted with unchanged values, leaving the parent component's editingColumn state in an inconsistent state.
Key Changes
- Added
onEditEnd?.()callback invocation in the early-return path when folder name hasn't changed
nowgnuesLee
left a comment
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.
LGTM
Merge activity
|
…ion in folder name editor (#4663) Resolves #4650 ([FR-1686](https://lablup.atlassian.net/browse/FR-1686)) ## Changes Fixed a bug where the inline edit button (hover edit icon) for folder names would not reappear after: 1. Clicking the edit button to enter edit mode 2. Pressing Enter without making any changes ### Root Cause When the form was submitted with no changes, the `onEditEnd` callback was not being called, leaving the `editingColumn` state in VFolderNodes in an inconsistent state. This prevented the hover edit button from being displayed again. ### Solution Added `onEditEnd?.()` callback invocation in the form submission handler when the folder name hasn't changed, ensuring proper cleanup of the editing state. ## Test Case 1. Navigate to the Data & Storage page 2. Hover over a folder name to see the edit button 3. Click the edit button to enter edit mode 4. Press Enter without making any changes 5. Hover over the folder name again 6. ✅ The edit button should reappear (previously it would not) **Checklist:** - [x] Test case verified: Edit button now reappears correctly after no-change submission [FR-1686]: https://lablup.atlassian.net/browse/FR-1686?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
cd7fe52 to
3d654df
Compare

Resolves #4650 (FR-1686)
Changes
Fixed a bug where the inline edit button (hover edit icon) for folder names would not reappear after:
Root Cause
When the form was submitted with no changes, the
onEditEndcallback was not being called, leaving theeditingColumnstate in VFolderNodes in an inconsistent state. This prevented the hover edit button from being displayed again.Solution
Added
onEditEnd?.()callback invocation in the form submission handler when the folder name hasn't changed, ensuring proper cleanup of the editing state.Test Case
Checklist: