-
Notifications
You must be signed in to change notification settings - Fork 42
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
Add frontend checks and guide #447
Conversation
Hi @GabriFila. Thanks for your PR. I am @kingmakerbot.
Make sure this PR appears in the CrownLabs changelog, adding one of the following labels:
|
aa07b8a
to
433b71e
Compare
/deploy-staging |
e606922
to
55ab3a2
Compare
/deploy-staging |
55ab3a2
to
2e139fd
Compare
/deploy-staging |
Your staging environment has been correctly deployed/updated!
|
2e139fd
to
a84f0f2
Compare
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.
/lgtm Thanks @GabriFila
frontend/README.md
Outdated
|
||
The components are in `src/components`. The folder has subdirs, one for each page of the app, plus `misc` for the miscellaneous UI elements (those common between all components) and a `util` dir for custom UI elements used multiple times across the code (custom dialogs, inputs, etc...). | ||
|
||
Each component needs to have its own folder with the following structure, e.g. for an `Exmaple` component: |
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.
Each component needs to have its own folder with the following structure, e.g. for an `Exmaple` component: | |
Each component needs to have its own folder with the following structure, e.g. for an `Example` component: |
frontend/README.md
Outdated
|
||
### File structure | ||
|
||
Refer to the [Example component] for a demo |
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 suppose this should be a link
frontend/README.md
Outdated
|
||
#### Component | ||
|
||
Each component file needs to host a single components and needs to have the following structure: |
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.
Each component file needs to host a single components and needs to have the following structure: | |
Each component file needs to host a single component and needs to have the following structure: |
frontend/README.md
Outdated
- import declarations ( | ||
When you can use non-default imports use them to reduce bundle size) | ||
- general constant declarations for the components(if needed) |
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.
- import declarations ( | |
When you can use non-default imports use them to reduce bundle size) | |
- general constant declarations for the components(if needed) | |
- import declarations (when you can use non-default imports use them to reduce bundle size) | |
- general constant declarations for the components (if needed) |
9128cf1
to
84ea9ac
Compare
The |
Yes we can add it, I do it now |
|
||
## Structure | ||
|
||
Our frontend is a [React](https://it.reactjs.org/) application. We use [antd](https://ant.design/) as the main component library and [Tailwind](https://tailwindcss.com/) utilities to handle specific css scenarios (padding and margin). We also use [Storybook](https://storybook.js.org/) to ease teamwork. We chose to use [Typescript](https://www.typescriptlang.org/) to have a bettere development experience. |
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.
Our frontend is a [React](https://it.reactjs.org/) application. We use [antd](https://ant.design/) as the main component library and [Tailwind](https://tailwindcss.com/) utilities to handle specific css scenarios (padding and margin). We also use [Storybook](https://storybook.js.org/) to ease teamwork. We chose to use [Typescript](https://www.typescriptlang.org/) to have a bettere development experience. | |
Our frontend is a [React](https://it.reactjs.org/) application. We use [antd](https://ant.design/) as the main component library and [Tailwind](https://tailwindcss.com/) utilities to handle specific css scenarios (padding and margin). We also use [Storybook](https://storybook.js.org/) to ease teamwork. We chose to use [Typescript](https://www.typescriptlang.org/) to have a better development experience. |
84ea9ac
to
910b744
Compare
/merge |
Your staging environment has been correctly teared-down! |
Description
This PR includes the necessary checks and automation to ensure proper lifting and formatting of the code:
And adds general guidelines for newcomers