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: form for editing ws schedule#1634

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
greyscaled merged 4 commits intomainfromvapurrmaid/gh-1455/part-2/form
May 20, 2022

Conversation

greyscaled
Copy link
Contributor

Summary:

This presents a form component and storybook. The UI will be a routed
page and added into the dashboard in a separate PR. It is likely a
XService will be used at the page level to supply errors and actions to
this form.

Impact of Change:

Further progress on#1455

Squashed Commits:

  • refactor: add className prop to Stack

combine classes with internal classes and an optional external className
to better control the Stack.

Summary:This presents a form component and storybook. The UI will be a routedpage and added into the dashboard in a separate PR. It is likely aXService will be used at the page level to supply errors and actions tothis form.Impact of Change:Further progress on#1455Squashed Commits:* refactor: add className prop to Stackcombine classes with internal classes and an optional external classNameto better control the Stack.
@greyscaledgreyscaled self-assigned thisMay 20, 2022
@greyscaledgreyscaled requested a review froma team as acode ownerMay 20, 2022 18:48
@greyscaledgreyscaled mentioned this pull requestMay 20, 2022
@greyscaledgreyscaled changed the titlefeat: ui for editing ws schedulefeat: form for editing ws scheduleMay 20, 2022
@greyscaledgreyscaled requested a review fromjohnstcnMay 20, 2022 18:50
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!

Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM!

control={<Checkbox checked={form.values.saturday} onChange={form.handleChange} name="saturday" />}
label={Language.daySaturdayLabel}
/>
</FormGroup>
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

Review: I can create amap for these as a refactor...will do in follow-up/later.

Comment on lines +51 to +58
initialValues: {
sunday: false,
monday: true,
tuesday: true,
wednesday: true,
thursday: true,
friday: true,
saturday: false,
Copy link
Member

@johnstcnjohnstcnMay 20, 2022
edited
Loading

Choose a reason for hiding this comment

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

(non-blocking): I'm not sure how this is going to be translated into a CRON string, but the below are all valid representations:

MON-FRIMON,TUE,THU,SUN1-32,3,4,5

greyscaled reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

The parent controlling the form will map thestartTime and each of these into an acceptable cron string.

It will likely do, format for simplicity. We will test each of these cases both with code and incrontab.guru.

However, this is all to say - that's a follow-up to the form, that doesn't need to know anything about cron. The code that maps between the form and API is dependency injected viaonSubmit, which allows us to test and maintain it in isolation, should something about our cron format change (which is nice).

@greyscaledgreyscaledenabled auto-merge (squash)May 20, 2022 19:44
@greyscaledgreyscaled merged commit4f75291 intomainMay 20, 2022
@greyscaledgreyscaled deleted the vapurrmaid/gh-1455/part-2/form branchMay 20, 2022 20:26
@greyscaledgreyscaled mentioned this pull requestMay 21, 2022
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
* feat: ui for editing ws scheduleSummary:This presents a form component and storybook. The UI will be a routedpage and added into the dashboard in a separate PR. It is likely aXService will be used at the page level to supply errors and actions tothis form.Impact of Change:Further progress on#1455Squashed Commits:* refactor: add className prop to Stackcombine classes with internal classes and an optional external classNameto better control the Stack.* fix: getFormHelpers helperTextthe helperText logic was incorrect, the helperText would only show if not touched.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

@johnstcnjohnstcnjohnstcn approved these changes

@Kira-PilotKira-PilotKira-Pilot approved these changes

Assignees

@greyscaledgreyscaled

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@greyscaled@BrunoQuaresma@johnstcn@Kira-Pilot

[8]ページ先頭

©2009-2025 Movatter.jp