Skip to content

fix: history redo entries display order#2112

Open
maxy-shpfy wants to merge 1 commit into04-21-fix_validation_of_the_componentref_of_taskfrom
04-21-fix_history_redo_entries_display_order
Open

fix: history redo entries display order#2112
maxy-shpfy wants to merge 1 commit into04-21-fix_validation_of_the_componentref_of_taskfrom
04-21-fix_history_redo_entries_display_order

Conversation

@maxy-shpfy
Copy link
Copy Markdown
Collaborator

@maxy-shpfy maxy-shpfy commented Apr 22, 2026

Description

Fixes incorrect redo step calculation in the history panel. Previously, the redo queue was being reversed before display, and the number of steps forward was calculated using displayIndex + 1. The redo queue is no longer reversed, and the steps forward calculation is corrected to redoEntries.length - displayIndex, ensuring that clicking a redo entry in the history panel navigates to the correct position in the history.

Related Issue and Pull requests

Type of Change

  • Bug fix

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

Screen Recording 2026-04-22 at 7.56.16 AM.mov (uploaded via Graphite)

Test Instructions

  1. Open the editor and make several changes to create a history.
  2. Undo multiple steps to populate the redo queue.
  3. Open the history panel and click on various redo entries.
  4. Verify that clicking each entry navigates to the correct point in the history.

Additional Comments

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 22, 2026

🎩 Preview

A preview build has been created at: 04-21-fix_history_redo_entries_display_order/711cfd9

@maxy-shpfy maxy-shpfy force-pushed the 04-21-fix_history_redo_entries_display_order branch from 66a4318 to 711cfd9 Compare April 22, 2026 06:49
@maxy-shpfy maxy-shpfy force-pushed the 04-21-fix_validation_of_the_componentref_of_task branch from 4856021 to 450df9e Compare April 22, 2026 06:49
@maxy-shpfy maxy-shpfy marked this pull request as ready for review April 22, 2026 06:54
@maxy-shpfy maxy-shpfy requested a review from a team as a code owner April 22, 2026 06:54
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.

3 participants