Skip to content

[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

Merged
merged 1 commit into from
May 15, 2023
Merged

[dashboard] update document title on setup #17603

merged 1 commit into from
May 15, 2023

Conversation

svenefftinge
Copy link
Contributor

@svenefftinge svenefftinge commented May 12, 2023

Description

Related Issue(s)

Fixes WEB-344

How to test

Documentation

Preview status

gitpod:summary

Build Options:

  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • analytics=segment
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

/hold

@svenefftinge svenefftinge requested a review from a team May 12, 2023 13:16
@svenefftinge svenefftinge requested a review from gtsiolis as a code owner May 12, 2023 13:16
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label May 12, 2023

type Props = {
onComplete: () => void;
};
const DedicatedSetup: FC<Props> = ({ onComplete }) => {
useDocumentTitle("Welcome - Gitpod");
Copy link
Member

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.

Copy link
Member

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?

Copy link
Contributor Author

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"

Comment on lines +9 to +15
export function useDocumentTitle(title?: string) {
useEffect(() => {
if (title && title.length > 0) {
document.title = title;
}
}, [title]);
}
Copy link
Member

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?

@svenefftinge
Copy link
Contributor Author

/unhold

@roboquat roboquat merged commit ac26599 into main May 15, 2023
@roboquat roboquat deleted the se/update-title branch May 15, 2023 08:02
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels May 15, 2023
@gtsiolis gtsiolis mentioned this pull request Aug 28, 2023
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production size/M team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants