Thanks for contributing to TaskMaster.
npm install
npm run dev- Chakra UI is the UI primitive library; prefer Chakra components over raw HTML.
- Use
RouterLink(wrapper around React RouterNavLink) for navigation elements that need active-state styling. - Keep list/task navigation compatible with the “pane stack” route design.
Run before opening a PR (or before pushing to main):
npm run checkamplify/contains Amplify CLI output. Avoid hand-editing generated files underamplify/backend/unless you’re intentionally making Amplify-driven changes.
Amplify codegen may overwrite files under src/graphql/.
- Do not hand-edit or add custom files under
src/graphql/. - Keep handwritten GraphQL documents outside the codegen folder (see
src/api/operationsMinimal.ts). - If you run Amplify/codegen or update the schema, run:
npm run verify:codegen-graphqlThat check fails if src/graphql/ has unexpected files, which is intentional (it prevents runtime regressions when codegen wipes the folder).
If you want an extra local guardrail, enable the repo’s shared git hooks:
git config core.hooksPath .githooksThis runs npm run verify:codegen-graphql on commit.
It also blocks commits if src/amplifyconfiguration.json contains aws_appsync_apiKey (to avoid accidentally committing AppSync API keys).
Prefer comments that explain why something exists (tradeoffs, constraints, invariants), not comments that restate the code.
TODO: Add branch naming + PR process once the repo is collaborative.