-
Notifications
You must be signed in to change notification settings - Fork 1
334 remove option for non dismissible preparation form create list #335
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: main
Are you sure you want to change the base?
334 remove option for non dismissible preparation form create list #335
Conversation
…g dismissible option and consolidating list handling
…ns for improved user interaction
|
Visit the preview URL for this PR (updated for commit ec26d8a): https://ontime-c63f1--pr335-334-remove-option-fo-vf2sj1be.web.app (expires Wed, 07 Jan 2026 08:34:09 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 7d60a2eae4c4a5839220ed6a57552a3b61cce5a3 |
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 PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| trailingActions: [ | ||
| SwipeAction( | ||
| onTap: (controller) { | ||
| if (preparationStepList.length <= 1) return; |
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.
Swipe action cell stays open when delete is prevented
When preparationStepList.length <= 1, the onTap handler returns early without using the controller to close the SwipeActionCell. This leaves the swipe action in its open state (red delete button visible) after the user taps it, but the deletion is prevented. The original Dismissible implementation properly handled this case by returning false from confirmDismiss, which would animate the item back to closed. The controller parameter should be used to close the cell when the delete action is not performed.
| builder: (context, state) => PreparationEditForm( | ||
| preparationEntity: state.extra as PreparationEntity)), | ||
| preparationEntity: (state.extra as PreparationEntity?) ?? | ||
| const PreparationEntity(preparationStepList: []))), |
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.
Silent fallback masks missing navigation data errors
The change from state.extra as PreparationEntity to (state.extra as PreparationEntity?) ?? const PreparationEntity(preparationStepList: []) silently provides an empty entity when navigation occurs without proper data. The calling code in ScheduleSpareAndPreparingTimeForm passes state.preparation which can be null. Previously this would crash (making the bug obvious); now users may see an unexpectedly empty form. This change doesn't appear related to the PR's stated purpose of removing the non-dismissible option, and could mask navigation bugs.
|
Visit the preview URL for this PR (updated for commit ec26d8a): https://on-time-front-widgetbook--pr335-334-remove-option-fo-xvdtitq9.web.app (expires Wed, 07 Jan 2026 08:34:59 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: e53128a376fed0209d449279de9c0d94c83cdd8b |
Describe your changes
준비과정 form에서 non-dismissible 옵션을 삭제하였습니다.
Issue ticket number and link
#334
Checklist before requesting a review
Screenshots (if appropriate):
Note
Unifies the preparation step list implementation and streamlines deletion behavior.
enableDismissibleoption fromPreparationFormCreateListand deletespreparation_form_reorderable_list_dissmissible.dart; always usesPreparationFormReorderableListSwipeActionCellwith a trailing delete action (blocked when only one item remains); retains reorder, name, and time change eventsPreparationSpareTimeEditScreen) to drop the removed prop/preparationEditnow defaults toPreparationEntity(preparationStepList: [])whenstate.extrais nullScheduleSpareAndPreparingTimeFormWritten by Cursor Bugbot for commit ec26d8a. This will update automatically on new commits. Configure here.