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 log modal open transition #2944

Closed
yomybaby opened this issue Dec 12, 2024 · 0 comments · Fixed by #2943
Closed

Improve log modal open transition #2944

yomybaby opened this issue Dec 12, 2024 · 0 comments · Fixed by #2943
Assignees

Comments

@yomybaby
Copy link
Member

yomybaby commented Dec 12, 2024

The log modal currently does not utilize useTransition hook, which can lead to suboptimal user experience. By applying the same method used in PR #2934 , we can achieve a more concise codebase and provide a better UX. When the user clicks, a loading state modal will open more immediately.

@yomybaby yomybaby self-assigned this Dec 12, 2024
agatha197 pushed a commit that referenced this issue Dec 12, 2024
Resolves #2944

**Changes:**
- Refactored session log modal opening mechanism to use React transitions for smoother loading states
- Added proper cleanup of selected kernel when container log modal closes
- Improved modal state management by moving logic to a dedicated component

**Rationale:**
The changes improve the user experience when opening session logs by:
- Preventing UI jank during loading with transition states
- Ensuring cleaner state management between modal opens/closes

**Effects:**
Users will experience:
- Smoother transitions when opening session logs
- More consistent behavior when closing and reopening logs
- Better handling of loading states with visual feedback
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 a pull request may close this issue.

1 participant