Onboarding
The redesigned VTEX Admin is a collaborative effort. We want to make contributing to this project as easy and transparent as possible, and this document aims to guide you through the process.
If you are a VTEXer, and your questions were not clarified here, feel free to reach us through slack at #dev-design-system. Follow the steps below to contribute to our redesigned VTEX Admin's development.
Tools and conventionsβ
Issues: where the conversation happensβ
We are using GitHub Issues for our public bugs, new features, and discussions. We keep a close eye on them and try to make it clear when we have an internal fix or feature in progress. Feel free to create new issues and open discussions about anything that you think is relevant to the project. However, before filing a new task, make sure your issue does not already exist.
Storybookβ
We use storybook as a canvas to create stories and as a preview of our components' features. It is really useful to share with the designers and check if the component has the expected behavior.
Commit messagesβ
It is essential that all commits follow an established convention. We ask you to please take the time to understand semantic versioning before committing.
- Tools: we use commitlint and commitizen to automate enforcement of Conventional Commits.
- Messages: as a shorthand, we always use the
git cz
command to ensure that we are following our commitlint.
Development Workflowβ
Follow the instructions below to get started on development with Admin UI.
Getting startedβ
- Clone the repository
vtex/admin-ui
. - Run
yarn
to fetch its dependencies. - Run commands of your choosing.
- Run
yarn test
.
Scriptsβ
Check out the list of scripts available for getting started with Admin UI:
Command | Description |
---|---|
yarn build | Builds the entire repository and its packages |
yarn test | Runs the complete test suite |
yarn lint | Checks the code style |
yarn docs | Runs the documentation site locally |
yarn build:docs | Builds the documentation site |
yarn storybook | Runs the storybook locally |
yarn buid:storybook | Builds storybook |
yarn commit | Runs the git-cz cli |
Your First Pull Requestβ
To help you get your feet wet and get you familiar with our contribution process, we have a list of good first issues that contain bugs that have a relatively limited scope. This is a great place to get started.
If you decide to fix an issue, please be sure to check the comment thread in case somebody is already working on a fix. If nobody is working on it at the moment, please leave a comment, and assign yourself to the issue, stating that you intend to work on it so other people donβt accidentally duplicate your effort.
Sending a Pull Requestβ
The core team is monitoring for pull requests. We will review your pull request and either merge it, request changes to it, or close it with an explanation. Weβll do our best to provide updates and feedback throughout the process.
Before submitting a pull request:, please make sure the following is done:
- Clone the repository and create your branch from main.
- Run yarn: in the repository root.
- If you have fixed a bug or added code that should be tested, add tests.
- If you have created a new component or added a new feature, add stories in the storybook.
- Ensure the test suite passes (yarn test).
- Format your code with prettier (yarn prettier).
- Make sure your code lints (yarn lint).
- Run
yarn build
, yarnbuild:storybook
oryarn build:site
to ensure that the builds are still working.
Contributing with documentationβ
Our Admin UI documentation is constantly updated and improved to support you in your journey with the VTEX design system. And to make this a collaborative effort, check out how to contribute with our documentation in the sections below.
Editing a pageβ
Our documentation site is built using Docusaurus, a static website generator. All of our documentation is stored in the /docs folder of our Github Repository.
To edit any page in the Admin UI website:
- In the selected page, click on the
Edit this page
button that appears at the bottom. You will be redirected to the page on our Admin UI Github Repository. - In the Edit file space, make the desired changes to our documentation. Note that we use Markdown in our files to make editing accessible.
- Select the option Create a new branch for this commit and start a pull request.
- Add comments to your Pull Request.
- Click on
Propose changes
.
We will review your Pull request and update our documentation accordingly!
If using Github is not really your thing, you can also contribute to our documentation by creating an issue in our repository. Learn more about how to create an issue on Github.
Guidelines for writing documentationβ
Keep the following recommendations in mind when editing our documentation, so we can create a consistent documentation experience for users all around the world:
- Regardless of what you are writing about, you must always aim for the following goals:
- Clarity: make sure your content is free from any possible ambiguities.
- Precision: stick to the main message you want to communicate and cut everything else.
- Be concise. Yes, documentation is where you add more context about a project, but be careful when creating docs that are too long to read.
- Use Markdown formatting to make your documentation scannable when users skim through it. Avoid walls of text.
- Prefer direct, informative and clear language, written specifically for an identified audience.
- Be gender neutral. Avoid gender-specific pronouns such as he or she, and prefer the non-binary pronoun they when referring to a singular person.
- Prefer active voice instead of passive voice. In the active voice, the subject of the sentence performs the action, instead of being acted upon. That's because in documentation it's essential that the reader clearly understands who or what is responsible for each action.