-
Notifications
You must be signed in to change notification settings - Fork 2.3k
fix: show message instead of empty popover for current checkpoint restore button #8648
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
base: main
Are you sure you want to change the base?
Conversation
…tore button - Added message display when trying to restore the current checkpoint - Fixed empty popover issue reported in #8646 - Added 'alreadyCurrent' translation key to English locale
"cannotUndo": "This action cannot be undone.", | ||
"restoreFilesAndTaskDescription": "Restores your project's files back to a snapshot taken at this point and deletes all messages after this point." | ||
"restoreFilesAndTaskDescription": "Restores your project's files back to a snapshot taken at this point and deletes all messages after this point.", | ||
"alreadyCurrent": "This checkpoint is already current" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The message for "alreadyCurrent" is missing a period at the end. For consistency with other messages in this file (e.g., "cannotUndo"), consider adding a full stop.
"alreadyCurrent": "This checkpoint is already current" | |
"alreadyCurrent": "This checkpoint is already current." |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
"cannotUndo": "Aksi ini tidak dapat dibatalkan.", | ||
"restoreFilesAndTaskDescription": "Mengembalikan file proyek kamu ke snapshot yang diambil pada titik ini dan menghapus semua pesan setelah titik ini." | ||
"restoreFilesAndTaskDescription": "Mengembalikan file proyek kamu ke snapshot yang diambil pada titik ini dan menghapus semua pesan setelah titik ini.", | ||
"alreadyCurrent": "This checkpoint is already current" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new key "alreadyCurrent" is currently using English text in an Indonesian locale file. If this is unintended, please update it to an Indonesian translation for consistency. Otherwise, consider adding a comment clarifying the mixed language usage.
"alreadyCurrent": "This checkpoint is already current" | |
"alreadyCurrent": "Checkpoint ini sudah menjadi yang terbaru" |
This comment was generated because it violated a code review rule: irule_C0ez7Rji6ANcGkkX.
Description
This PR attempts to address Issue #8646 where the restore button for the last/current checkpoint shows an empty floating window.
Problem
When clicking the restore button on a checkpoint marked as "current", the popover opens but displays no content, resulting in an empty floating window that confuses users.
Solution
Changes
CheckpointMenu.tsx
to show appropriate content for current checkpointsalreadyCurrent
translation key toen/chat.json
Testing
Fixes #8646
Feedback and guidance are welcome!
Important
Fixes empty popover issue for current checkpoint restore button by adding a message and restructuring content in
CheckpointMenu.tsx
.CheckpointMenu.tsx
, added a message "This checkpoint is already current" for current checkpoints to prevent empty popover.alreadyCurrent
translation key toen/chat.json
and 19 other locale files.CheckpointMenu.tsx
.This description was created by
for 8ed8186. You can customize this summary. It will automatically update as commits are pushed.