Skip to content

[codex] Fix preparation step order#373

Merged
jjoonleo merged 1 commit into
mainfrom
codex/fix-preparation-order
May 5, 2026
Merged

[codex] Fix preparation step order#373
jjoonleo merged 1 commit into
mainfrom
codex/fix-preparation-order

Conversation

@jjoonleo

@jjoonleo jjoonleo commented May 5, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Normalize preparation step API responses by following the nextPreparationId chain.
  • Add model tests for reversed response order and unlinked-step fallback behavior.

Root Cause

The app trusted the raw array order returned by the preparation API. When the backend returned steps in reverse or otherwise unordered form, the preparation screen displayed that reversed order directly.

Validation

  • flutter test test/data/models/get_preparation_step_response_model_test.dart
  • flutter analyze lib/data/models/get_preparation_step_response_model.dart test/data/models/get_preparation_step_response_model_test.dart

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit c72839e):

https://ontime-c63f1--pr373-codex-fix-preparatio-e8chbf7r.web.app

(expires Tue, 12 May 2026 16:08:37 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 7d60a2eae4c4a5839220ed6a57552a3b61cce5a3

@github-actions

github-actions Bot commented May 5, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit c72839e):

https://on-time-front-widgetbook--pr373-codex-fix-preparatio-rzhv6475.web.app

(expires Tue, 12 May 2026 16:09:44 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: e53128a376fed0209d449279de9c0d94c83cdd8b

@jjoonleo jjoonleo marked this pull request as ready for review May 5, 2026 16:13
@jjoonleo jjoonleo merged commit aea0826 into main May 5, 2026
4 checks passed
@jjoonleo jjoonleo deleted the codex/fix-preparation-order branch May 6, 2026 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant