-
Notifications
You must be signed in to change notification settings - Fork 1.3k
[dashboard] update document title on setup #17603
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
Conversation
|
||
type Props = { | ||
onComplete: () => void; | ||
}; | ||
const DedicatedSetup: FC<Props> = ({ onComplete }) => { | ||
useDocumentTitle("Welcome - Gitpod"); |
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.
Would we want to swap the ordering? The more tabs I have open, the fewer characters I will see and as such showing Gitpod instead of Welcome may be preferrable.
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.
If we're setting the title here, do we need to also reset it elsewhere such that after you complete the setup, we no longer show this?
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.
It is set elsewhere using the pattern " - Gitpod"
export function useDocumentTitle(title?: string) { | ||
useEffect(() => { | ||
if (title && title.length > 0) { | ||
document.title = title; | ||
} | ||
}, [title]); | ||
} |
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.
There are many occurences of something like
useEffect(() => {
document.title = "New Organization — Gitpod";
}, []);
Could you update these to use the effect?
6c7b060
to
368821e
Compare
/unhold |
Description
Related Issue(s)
Fixes WEB-344
How to test
Documentation
Preview status
gitpod:summary
Build Options:
Run the build with werft instead of GHA
Run Leeway with
--dont-test
Publish Options
Installer Options
Add desired feature flags to the end of the line above, space separated
Preview Environment Options:
If enabled this will build
install/preview
If enabled this will create the environment on GCE infra
Valid options are
all
,workspace
,webapp
,ide
,jetbrains
,vscode
,ssh
/hold