-
Notifications
You must be signed in to change notification settings - Fork 1
Frontend Development Workflow Guide
This guide outlines the step-by-step workflow for frontend development in our project. It covers everything from reading an issue to merging a Pull Request (PR) and verifying the deployed feature in production.
Following this guide ensures consistency, quality, and smooth collaboration within the team.
Before writing any code:
- Read the GitHub issue carefully.
- Check all requirements, designs (Figma), and references.
- Ask questions on GitHub or Slack if anything is unclear.
- Make sure you fully understand the task before starting.
- Use the GitHub issue page to create a new branch directly.
- Follow the project's branch naming convention to maintain consistency.
Tip: If unsure about branch naming, check previous branches or ask your mentor.
- Open a Pull Request (PR) from your newly created branch.
- Use the provided PR description template and fill it out accurately:
- Reference the related GitHub issue.
- Clearly explain what changes are being made.
- Add any relevant screenshots or GIFs if applicable.
Note: A PR should be opened at the beginning of the task, not at the end.
- Checkout the new branch locally.
- Commit and push your work daily.
- Ensure all CI checks pass at the end of each day.
- Coderabbit AI will review your code and provide feedback.
- The CI/CD pipeline will generate a sandbox link where you can preview your changes.
- Follow the task list in the GitHub issue.
- After completing each task:
- Manually test your changes.
- Verify the design matches Figma (pixel-perfect implementation).
- Test across all screen resolutions to ensure responsiveness.
Tip: Use browser DevTools to simulate different screen sizes.
- Every morning, check the Coderabbit AI review comments.
- Fix the suggested improvements before continuing with new tasks.
Reminder: This ensures code quality remains high throughout development.
Once you have implemented and tested everything:
- Request a review from your manager.
- Address feedback and make necessary fixes.
- Only proceed to the next step after manager approval.
After manager approval:
- The QA team will test the feature.
- You must fix any bugs they report.
- QA must approve the feature before moving forward.
Important: Do not write automated tests until the feature passes QA.
Before merging, you must cover your code with the following tests:
- E2E (End-to-End) Tests: Validate core user flows.
- Visual Tests: Ensure UI matches expected branding and design.
- React Testing Library Tests: Check React components under different scenarios.
- Unit Tests: Ensure logic correctness.
- Mutation Tests: Measure test quality.
- Memory Leak Tests: Detect leaks in complex states or third-party libraries.
- Load Tests: Ensure performance and scalability.
Reminder: All tests must pass before merging.
- Coderabbit AI for automated feedback.
- Manager review for final approval.
Note: A PR cannot be merged until all CI checks pass.
Before merging:
- Review your own code one last time.
-
Manually test the feature again on:
- Different browsers (Chrome, Firefox, Edge, Safari).
- Multiple devices (desktop, tablet, mobile).
Once everything is approved:
-
Request the manager to merge your PR into the
mainbranch. - Wait for automatic deployment to production.
- Test the feature in production to confirm it works as expected.
Reminder: Always verify your feature after deployment to catch any last-minute issues.
| Step | Description |
|---|---|
| 1 | Read the issue and clarify any doubts. |
| 2 | Create a branch from the issue. |
| 3 | Open a PR and provide a detailed description. |
| 4 | Work locally, commit daily, and ensure CI checks pass. |
| 5 | Implement tasks and manually test. |
| 6 | Fix AI comments each morning. |
| 7 | Request and address manager review. |
| 8 | Pass QA testing and fix any reported bugs. |
| 9 | Write and pass all required tests. |
| 10 | Get a final code review from AI and manager. |
| 11 | Perform self-review and final manual tests. |
| 12 | Merge, deploy, and verify in production. |
By following this workflow, you will ensure high-quality, well-tested code that meets our project standards.
- Use Slack for communication if you are blocked.
- Check GitHub notifications daily for updates.
- Follow our PR review guidelines to ensure a smooth approval process.
If you have any questions, ask your manager or teammates.
Happy coding! 🚀