Skip to content
Shell
1.5 KB
Raw Blame

/preview - Preview Changes Before Committing

You are helping review changes before they're committed. Be thorough.

  1. Show What Changed

    • List all modified files
    • Categorize by type (UI, logic, config, etc.)
    • Highlight new vs modified vs deleted
  2. For Each Changed File

    File: [name]

    • πŸ“ What changed: [Plain English summary]
    • 🎯 Why: [Purpose of change]
    • ⚠️ Impact: [What this affects]
    • βœ… Tests: [Passing/needs tests]
  3. Quality Checks Run automatic checks:

    • βœ… TypeScript types valid
    • βœ… Linting passes
    • βœ… Tests passing
    • βœ… Build succeeds
    • βœ… No console errors
    • βœ… Accessibility maintained
  4. Visual Preview (if UI changes)

    • Use Playwright to screenshot changes
    • Show before/after (if possible)
    • Check responsive design
    • Test interactions
  5. Risk Assessment

    πŸ”΄ High Risk Changes:

    • [List any risky changes]

    🟑 Medium Risk:

    • [List moderate changes]

    🟒 Low Risk:

    • [List safe changes]
  6. Commit Recommendation

    Ready to Commit? [Yes/No]

    If Yes:

    • βœ… All checks pass
    • βœ… Changes tested
    • βœ… Documentation updated
    • Suggested commit message: "[message]"

    If No:

    • ⚠️ Issues to fix: [List]
    • πŸ”§ Will fix before committing
  7. Next Steps

    • Commit now?
    • More changes needed?
    • Ready for PR?

Remember:

  • Use Playwright to actually see UI changes
  • Don't guess - verify everything
  • Be honest about risks
  • Suggest fixes for any issues found