Skip to content

Commit

Permalink
feat: move change homepage dashboard button (#20246)
Browse files Browse the repository at this point in the history
* feat: move change homepage dashboard button

* Update UI snapshots for `chromium` (1)

* Update frontend/src/scenes/project-homepage/ProjectHomepage.tsx

Co-authored-by: Raquel Smith <[email protected]>

* Update UI snapshots for `chromium` (2)

* Update UI snapshots for `chromium` (2)

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Raquel Smith <[email protected]>
  • Loading branch information
3 people authored Feb 11, 2024
1 parent 6b258dc commit 97a0db2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 8 additions & 10 deletions frontend/src/scenes/project-homepage/ProjectHomepage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ export function ProjectHomepage(): JSX.Element {
{!!featureFlags[FEATURE_FLAGS.YEAR_IN_HOG] && window.POSTHOG_APP_CONTEXT?.year_in_hog_url && (
<YearInHogButton url={`${window.location.origin}${window.POSTHOG_APP_CONTEXT.year_in_hog_url}`} />
)}
<LemonButton
type="secondary"
size="small"
data-attr="project-home-customize-homepage"
onClick={showSceneDashboardChoiceModal}
>
Customize homepage
</LemonButton>
<LemonButton
data-attr="project-home-invite-team-members"
onClick={() => {
Expand Down Expand Up @@ -81,16 +89,6 @@ export function ProjectHomepage(): JSX.Element {
</>
)}
</div>
<div className="flex items-center gap-2">
<LemonButton
type="secondary"
size="small"
data-attr="project-home-change-dashboard"
onClick={showSceneDashboardChoiceModal}
>
Change dashboard
</LemonButton>
</div>
</div>
<LemonDivider className="mt-3 mb-4" />
<Dashboard
Expand Down

0 comments on commit 97a0db2

Please sign in to comment.