Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

refactor(site): improve parameters field#11802

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
BrunoQuaresma merged 5 commits intomainfrombq/simplify-parameters
Jan 26, 2024

Conversation

BrunoQuaresma
Copy link
Collaborator

Before:
Screenshot 2024-01-24 at 13 11 31

After:
Screenshot 2024-01-24 at 13 11 11

@BrunoQuaresmaBrunoQuaresma requested a review froma teamJanuary 24, 2024 16:13
@BrunoQuaresmaBrunoQuaresma self-assigned thisJan 24, 2024
@BrunoQuaresmaBrunoQuaresma requested review fromKira-Pilot and removed request fora teamJanuary 24, 2024 16:13
@BrunoQuaresmaBrunoQuaresma changed the titlerefactor(site): improve parameters fieldsrefactor(site): improve parameter fieldsJan 24, 2024
@BrunoQuaresmaBrunoQuaresma changed the titlerefactor(site): improve parameter fieldsrefactor(site): improve parameters fieldJan 24, 2024
This decision was made because rich parameter inputs are more visually dense than standard text fields.
*/}
<div css={{ display: "flex", flexDirection: "column", gap: 36 }}>
{parameters.map((parameter, index) => {
Copy link
Member

Choose a reason for hiding this comment

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

NIT: I might lift this function outside of the JSX.

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

Which function? The map?

Copy link
Member

Choose a reason for hiding this comment

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

the callback that the map takes

Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I think it is quite normal in react codebases but any specific concern?

Copy link
Member

Choose a reason for hiding this comment

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

I feel like it lowers general readability because its a longer callback that defines multiple variables, but no strong concerns!

BrunoQuaresma reacted with thumbs up emoji
Copy link
CollaboratorAuthor

Choose a reason for hiding this comment

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

I see! But in this case, we would have to pass 3+ arguments to the function so I'm not sure if extracting it to a new function or component would improve that much but I can understand the reasoning.

Copy link
Member

Choose a reason for hiding this comment

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

good point, good point

Copy link
Member

@Kira-PilotKira-Pilot left a comment

Choose a reason for hiding this comment

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

Nice! I'll defer to your design expertise - I'm assuming we feel that the orange "immutable" label is still a strong enough signal to communicate that a new workspace must be made if an owner ever wants to change those values.

BrunoQuaresma reacted with thumbs up emoji
Copy link
CollaboratorAuthor

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

Design is updated to

image.png

@BrunoQuaresmaBrunoQuaresma merged commit0ba035a intomainJan 26, 2024
@BrunoQuaresmaBrunoQuaresma deleted the bq/simplify-parameters branchJanuary 26, 2024 14:31
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsJan 26, 2024
@BrunoQuaresma
Copy link
CollaboratorAuthor

Related to#11742

Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@Kira-PilotKira-PilotKira-Pilot approved these changes

Assignees

@BrunoQuaresmaBrunoQuaresma

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@BrunoQuaresma@Kira-Pilot

[8]ページ先頭

©2009-2025 Movatter.jp