-
Notifications
You must be signed in to change notification settings - Fork 881
refactor(site): Highlight immutable parameters and do a few tweaks #6490
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
@@ -70,16 +65,16 @@ export const RichParameterInput: FC<RichParameterInputProps> = ({ | |||
onChange, | |||
parameter, | |||
initialValue, | |||
...props | |||
...fieldProps |
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.
Why spread this? Isn't it just id
?
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.
Nops, it passes other props. I probably should fix the types to make it clear... Going to make that.
> | ||
<FormFields> | ||
{props.templateSchema | ||
// We only want to show schema that have redisplay_value equals true |
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.
I like the addition of a comment here, but I'm still unclear as to why we don't want to show schemas with Ah, I see this isn't scoped to this PR; feel free to ignoreredisplay_value=false
FormFooter, | ||
HorizontalForm, | ||
} from "components/HorizontalForm/HorizontalForm" | ||
import { makeStyles } from "@material-ui/core/styles" |
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.
I think it's probably time for this file to be broken apart.
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.
I think it is! I will do that.
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.
Nice! Thanks for the vid
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.
Awesome!
{props.canCreateForUser && ( | ||
<FormSection | ||
title="Workspace owner" | ||
description=" The user that is going to own this workspace. If you are |
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.
nit: " The user <- starting spacebar
Related to #6076 |
Video about the proposed changes:
Screen.Recording.2023-03-03.at.14.23.04.mov
But I decided to move forward with the banner option instead because we have two scenarios:
Aligning the pill with these scenarios and making them look good was kinda hard. I also moved the icon to be left-center aligned with the text to make it easier to align with more generic cases.
Preview:

I added extra stories to make sure we are testing all the cases.