-
Notifications
You must be signed in to change notification settings - Fork 157
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(onboarding-ui): Administrator information form and Organization …
…information form (#489) * new: admin & org form * fix: components name * Mock ResizeObserver on tests * fix: Form component location * new: react-hook-form implementation * chore: loki * fix: review * fix: wrong export * Upgrade dependencies * Add more props to the form * Disable submit button until any field become dirty * Expose more props for OrganizationInfoForm * Use single translation for FormSteps * Use single translations for form actions * Move translation * Add AdminInfoPage and OrganizationInfoPage * Add minor refactorings Co-authored-by: gabriellsh <40830821+gabriellsh@users.noreply.github.com> Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat>
- Loading branch information
1 parent
6c360bd
commit b289f68
Showing
73 changed files
with
1,819 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"React component": { | ||
"scope": "typescriptreact", | ||
"prefix": "onboard-comp", | ||
"body": [ | ||
"import { ReactElement } from 'react';", | ||
"", | ||
"type $1Props = {};", | ||
"", | ||
"const $1 = (props: $1Props): ReactElement => {", | ||
" props;", | ||
"", | ||
" return <></>;", | ||
"};", | ||
"", | ||
"export default $1;", | ||
"" | ||
], | ||
"description": "React component for onboarding-ui" | ||
}, | ||
"Storybook story": { | ||
"scope": "typescriptreact", | ||
"prefix": "onboard-story", | ||
"body": [ | ||
"import { Meta, Story } from '@storybook/react';", | ||
"import { ComponentProps } from 'react';", | ||
"", | ||
"import $1 from './$1';", | ||
"", | ||
"type Args = ComponentProps<typeof $1>;", | ||
"", | ||
"export default {", | ||
" title: '$2/$1',", | ||
" component: $1,", | ||
" parameters: {", | ||
" layout: 'centered',", | ||
" actions: { argTypesRegex: '^on.*' },", | ||
" },", | ||
"} as Meta<Args>;", | ||
"", | ||
"export const _$1: Story<Args> = (args) => (", | ||
" <$1 {...args} />", | ||
");", | ||
"_$1.storyName = '$1';" | ||
], | ||
"description": "Storybook story for onboarding-ui" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.