Skip to content
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

[ui] Settings page #20310

Merged
merged 1 commit into from
Mar 7, 2024
Merged

[ui] Settings page #20310

merged 1 commit into from
Mar 7, 2024

Conversation

hellendag
Copy link
Member

@hellendag hellendag commented Mar 6, 2024

Summary & Motivation

Introduce consolidated Settings page, to be available at /settings. This is behind a (currently hidden) client-side flag. I'll expose it in User Settings once I have the Cloud side of this ready to go.

Video in Linear task.

How I Tested These Changes

Enable flag.

  • Verify that "Settings" appears in top nav.
  • Click Settings, verify that the pages and panes render properly, and that navigation behaves as expected.
  • Reload definitions, verify success.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @hellendag and the rest of your teammates on Graphite Graphite

@hellendag hellendag requested review from bengotow and salazarm March 6, 2024 20:50
@hellendag hellendag marked this pull request as ready for review March 6, 2024 20:50
@hellendag hellendag force-pushed the dish/settings-page branch from 97d58cc to ae56972 Compare March 6, 2024 20:54
Copy link

github-actions bot commented Mar 6, 2024

Deploy preview for dagit-storybook ready!

✅ Preview
https://dagit-storybook-2qwzmbpwk-elementl.vercel.app
https://dish-settings-page.components-storybook.dagster-docs.io

Built with commit ae56972.
This pull request is being automatically deployed with vercel-action

Copy link

github-actions bot commented Mar 6, 2024

Deploy preview for dagit-core-storybook ready!

✅ Preview
https://dagit-core-storybook-gdjkxqqxc-elementl.vercel.app
https://dish-settings-page.core-storybook.dagster-docs.io

Built with commit ae56972.
This pull request is being automatically deployed with vercel-action

Copy link
Collaborator

@bengotow bengotow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks super clean! Just left one comment inline 🙌

import {useTrackPageView} from '../app/analytics';
import {useDocumentTitle} from '../hooks/useDocumentTitle';

const InstanceConfigStyle = createGlobalStyle`
.CodeMirror.cm-s-instance-config {
.CodeMirror.cm-s-instance-config.cm-s-instance-config {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm the classnames are identical here? Not sure what this second one does in this context but maybe I've just never tried :-o

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, this is just to add a little juice to the specificity to make sure it overrides the default CodeMirror styles. Class names can be repeated to bump the class count in the specificity calculation. :) Right now there's a tie, so we're ending up with whichever style loads last.

@hellendag hellendag merged commit e967edc into master Mar 7, 2024
3 checks passed
@hellendag hellendag deleted the dish/settings-page branch March 7, 2024 14:50
PedramNavid pushed a commit that referenced this pull request Mar 28, 2024
## Summary & Motivation

Introduce consolidated Settings page, to be available at `/settings`.
This is behind a (currently hidden) client-side flag. I'll expose it in
User Settings once I have the Cloud side of this ready to go.

Video in [Linear
task](https://linear.app/dagster-labs/issue/FE-185/implement-new-nav-and-page-header-component).

## How I Tested These Changes

Enable flag.

- Verify that "Settings" appears in top nav.
- Click Settings, verify that the pages and panes render properly, and
that navigation behaves as expected.
- Reload definitions, verify success.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants