Skip to content

Conversation

@bburda
Copy link
Contributor

@bburda bburda commented Jan 25, 2026

Pull Request

Summary

This PR improves developer tooling by adding modern development infrastructure including Vitest for testing, Prettier for code formatting, Husky for Git hooks, and lint-staged for pre-commit checks.

Changes:

  • Added Vitest testing framework with example tests and coverage configuration
  • Added Prettier for consistent code formatting with pre-commit hooks via Husky
  • Added comprehensive developer documentation (AGENTS.md, copilot-instructions.md)
  • Applied Prettier formatting across all TypeScript/TSX files
  • Enhanced CI/CD pipeline with formatting checks, type checking, and test execution

Issue

Link the related issue (required):


Type

  • Bug fix
  • New feature
  • Breaking change
  • Documentation only

Testing

Added CI and unit testing.

Checklist

  • Breaking changes are clearly described (and announced in docs / changelog if needed)
  • Linting passes (npm run lint)
  • Build succeeds (npm run build)
  • Docs were updated if behavior or public API changed

@bburda bburda requested a review from mfaferek93 January 25, 2026 10:36
@bburda bburda self-assigned this Jan 25, 2026
@bburda bburda added the enhancement New feature or request label Jan 25, 2026
Copilot AI review requested due to automatic review settings January 25, 2026 10:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR improves developer tooling by adding modern development infrastructure including Vitest for testing, Prettier for code formatting, Husky for Git hooks, and lint-staged for pre-commit checks.

Changes:

  • Added Vitest testing framework with example tests and coverage configuration
  • Added Prettier for consistent code formatting with pre-commit hooks via Husky
  • Added comprehensive developer documentation (AGENTS.md, copilot-instructions.md)
  • Applied Prettier formatting across all TypeScript/TSX files
  • Enhanced CI/CD pipeline with formatting checks, type checking, and test execution

Reviewed changes

Copilot reviewed 45 out of 49 changed files in this pull request and generated no comments.

Show a summary per file
File Description
vitest.config.ts Vitest configuration with jsdom environment and coverage setup
package.json Added test, format, and pre-commit scripts with new dependencies
.prettierrc/.prettierignore Prettier configuration for consistent formatting
.husky/pre-commit Pre-commit hook running lint-staged
eslint.config.js Added eslint-config-prettier to prevent conflicts
src/test/setup.ts Vitest test setup importing jest-dom matchers
src/lib/utils.test.ts Example unit tests for cn utility function
src/components/EmptyState.test.tsx Component tests for EmptyState
.github/workflows/ci.yml Enhanced CI with format checks, type checking, and tests
AGENTS.md New AI agent reference documentation
.github/copilot-instructions.md New GitHub Copilot context instructions
All .tsx/.ts files Prettier formatting applied (quotes, semicolons, indentation)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bburda bburda force-pushed the feat/improve-tooling branch 2 times, most recently from 884ba31 to 89a3236 Compare January 25, 2026 11:53
@bburda bburda requested a review from Copilot January 25, 2026 12:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 45 out of 51 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 45 out of 51 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bburda bburda force-pushed the feat/improve-tooling branch from 89a3236 to 8fbf5a1 Compare January 25, 2026 16:28
- Use optional chaining for firstChild in store.ts (line 400)
- Add non-null assertions for areaId and componentId in sovd-api.ts (lines 159, 188)
- Add vitest.config.ts to tsconfig.node.json include array
- Add nullish coalescing fallback for componentId in store.ts (lines 591, 612)
@bburda bburda force-pushed the feat/improve-tooling branch from 8fbf5a1 to 5ee593e Compare January 25, 2026 16:37
@bburda
Copy link
Contributor Author

bburda commented Jan 25, 2026

@mfaferek93 Sorry for the size of this PR 😓 Most of this is due to a month of not updating the package.json and adding additional tools. The rest is just trying to use the same formatting in Prettier.

Copy link

@mfaferek93 mfaferek93 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TBH I didn't find anything to fix here, so LTGM!

@bburda bburda merged commit f868cfb into main Jan 25, 2026
3 checks passed
@bburda bburda deleted the feat/improve-tooling branch January 25, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add pre-commit hooks and testing

3 participants