Skip to content

feat: show branch switching confirmation modal if changes detected

Description

Issue: [UX Polish] Only show branch switching confirma... (#109 - closed)

Use source control status to detect any changes. If there are no changes detected, the RELOAD_COMMAND_ID command will be executed instead of RELOAD_WITH_WARNING_COMMAND_ID.

Demo:

No changes detected

Changes detected

Does not show warning modal when switching to existing branch

branch_no-change.mov

Show warning modal when switching to existing branch

branch_change.mov

Does not show warning modal when switching to new branch

new-branch_no-changes.mov

Show warning modal when switching to new branch

new-branch_changes.mov

Edited by Cindy Halim

Merge request reports

Loading