-
Notifications
You must be signed in to change notification settings - Fork 166
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
Fix #1428 - Update Browser Tab Title When Notebook is Renamed #1496
Conversation
The latest updates on your projects. Learn more about Vercel for Git βοΈ
|
CLA Assistant Lite bot All contributors have signed the CLA βοΈ β |
I have read the CLA Document and I hereby sign the CLA |
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.
Thank you for this PR!
There's one more thing to handle. Notebooks can already override the browser tab title with the app title configuration. If an app title is already set, then that should take precedence.
App titles were added in this PR: #1264
Got it! thanks for the feedback, and for pointing out PR #1264, which introduced the app title feature! I 've updated the implementation in 3dcb623 to ensure that the app title (
BTW this is handled both during the renaming process and whenever the app title or filename changes.
marimopr1-2024-05-27_18.37.48.mp4 |
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.
looks great- thanks for the fix!
π Development release published. You may be able to view the changes at https://marimo.app?v=0.6.11-dev4 |
π Summary
This pull request addresses the issue where the browser tab title does not update when a notebook is renamed. Fixes #1428 .
π Description of Changes
handleFilenameChange
function in the EditApp component to setdocument.title
with the new filename.useEffect
hook to updatedocument.title
whenever the filename changes, ensuring the browser tab title stays in sync with the notebook name.marimotab1-2024-05-23_12.53.43.mp4
π Checklist
π Reviewers
@akshayka #1428