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

feat: add experimental workspace parameters page for dynamic params#17841

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
jaaydenh merged 7 commits intomainfromjaaydenh/dynamic-params-workspace-settings
May 21, 2025

Conversation

jaaydenh
Copy link
Contributor

@jaaydenhjaaydenh commentedMay 14, 2025
edited
Loading

Screenshot 2025-05-20 at 22 26 40

@jaaydenhjaaydenh self-assigned thisMay 14, 2025
@jaaydenhjaaydenhforce-pushed thejaaydenh/dynamic-params-workspace-settings branch from2d8b95a to0c7f4c1CompareMay 19, 2025 22:49
@jaaydenhjaaydenh requested a review fromaslilacMay 20, 2025 21:27
@jaaydenhjaaydenh marked this pull request as ready for reviewMay 20, 2025 21:27
Copy link
Member

Choose a reason for hiding this comment

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

this isn't a very general purpose hook. could we put this in modules/workspaces or something instead?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

This hook will eventually be used a many different places, TemplateEmbedPage, WorkspaceSettingsPage, CreateWorkspacePage, UpdateBuildParametersDialog, BuildParametersPopover, WorkspaceParametersForm. Its not general purpose but it also doesn't feel like it should be buried in a subfolder. Maybe we don't currently have a good place for things like this?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Moved to modules/hooks, modules are the place to gather all coder business logic that is not in pages so seems like the best place to put coder specific non-general purpose hooks

Comment on lines 41 to 47
newParameterValues.some(
(p) =>
!currentFormValues.find(
(formValue) =>
formValue.name === p.name && formValue.value === p.value,
),
);
Copy link
Member

Choose a reason for hiding this comment

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

this is O(n^2), but could pretty easily be rewritten to be O(n) usingMap.groupBy or something similar

I guess it was already like this tho 🤷‍♀️

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Good call out, I can improve.

@jaaydenhjaaydenh merged commitcb7ce18 intomainMay 21, 2025
34 checks passed
@jaaydenhjaaydenh deleted the jaaydenh/dynamic-params-workspace-settings branchMay 21, 2025 17:48
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMay 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@aslilacaslilacaslilac approved these changes

Assignees

@jaaydenhjaaydenh

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jaaydenh@aslilac

[8]ページ先頭

©2009-2025 Movatter.jp