Skip to content
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

Improve diff panel. Fix switching to code tab when we apply changes #383

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

nichochar
Copy link
Contributor

  • Improve the diff panel
  • Ability to reapply latest diff
  • Fix bug: previously, when calling createFile we finish by opening the file.

I saw 2 fixes:

  1. Keep the open side effect and modify the automatic useEffect in which automatically switches the tab when a file is open. Replace this with a mechanism that switches the tab only when we click on the sidebar
  2. Remove the open side effect, so we can create files and if we want them to open we need to do it manually.

This implements 2 which I think is cleaner and easier to reason about (less side effects).

@nichochar nichochar merged commit f72160f into main Oct 17, 2024
3 checks passed
@nichochar nichochar deleted the file-count-on-diff branch October 17, 2024 22: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