Skip to content

Conversation

@ArchILLtect
Copy link
Collaborator

This pull request introduces foundational project infrastructure and documentation improvements, focusing on code quality enforcement, developer workflow, and project clarity. Key additions include ESLint configuration, commit message linting, changelog enforcement, and expanded documentation for architecture, environment variables, authentication, and testing. The CI pipeline is updated to enforce these gates and clarify build steps.

Code Quality & Tooling

  • Added .eslintrc.cjs with TypeScript, React, accessibility, and recommended rules, plus sensible defaults and ignore patterns for build artifacts and types. (.eslintrc.cjs, .eslintrc.cjsR1-R38)
  • Added .eslintignore to exclude dist, build, coverage, and node_modules from linting. (.eslintignore, .eslintignoreR1-R4)
  • Added Husky hooks for commit message linting (.husky/commit-msg) and pre-commit testing (.husky/pre-commit). (.husky/commit-msg, [1]; .husky/pre-commit, [2]
  • Added .gitattributes to enforce LF line endings for shell scripts and Husky hooks. (.gitattributes, .gitattributesR1-R3)
  • Added CHANGELOG.md with Keep a Changelog format and initial release notes; includes guidance for future entries. (CHANGELOG.md, CHANGELOG.mdR1-R87)

Continuous Integration

  • Updated .github/workflows/frontend-ci.yml to remove input-driven conditional steps, standardize Node version, enforce lint/type/test/changelog/build order, and add a changelog check step. (.github/workflows/frontend-ci.yml, [1] [2] [3] [4] [5]

Documentation & Developer Workflow

  • Expanded README.md with planning artifacts, versioning policy, detailed architecture, environment variable table, authentication system overview, runtime debug panel, testing workflow, and quality gates. (README.md, [1] [2] [3]
  • Added a structured pull request template to guide contributors on changelog, testing, and checklist requirements. (.github/pull_request_template/PULL_REQUEST_TEMPLATE.md, .github/pull_request_template/PULL_REQUEST_TEMPLATE.mdR1-R32)

These changes lay the groundwork for a maintainable, high-quality codebase and streamline contributor onboarding and workflow.


Restoration Explanation

Restores the repository contents that were dropped by the earlier merge commit failure on main (a20b436), which pruned most source, test, and docs files.

This branch (commit 1341e39) matches the intended 0.1.0 baseline from feature/auth-login.

Highlights included in restored tree:

  • Auth flow (login/register/me, guarded bootstrap)
  • Chakra UI integration + layout shell
  • Health check card & runtime debug panel
  • Tooling: coverage thresholds, release & changelog scripts, Husky + commitlint
  • Expanded documentation and CHANGELOG snapshot

After merging:

  1. Tag: v0.1.0
  2. Start next branch for test/resilience objectives toward 0.2.0

…ronment

- Added new tests for login and registration forms to validate email and password inputs.
- Updated package.json to include testing libraries: @testing-library/jest-dom, @testing-library/react, @testing-library/user-event, and vitest.
- Configured TypeScript to recognize vitest types in tsconfig files.
- Created vitest.config.ts for test configuration and vitest.setup.ts for global setup.
…hance vite-env.d.ts with environment variable interfaces
… navigation and error handling; update auth context for better user data extraction
…ormation; implement Layout component for consistent page structure
- Added Chakra UI dependencies to package.json.
- Wrapped the application in ChakraProvider and added ColorModeScript for theme management in App.tsx.
- Created AppShell component for consistent layout with header and footer, including a color mode toggle.
- Updated Layout component to use AppShell for rendering child routes.
- Enhanced ProtectedRoute to show a loading spinner using Chakra UI while checking authentication status.
- Introduced a custom theme for Chakra UI with brand colors and default component styles.
…) document and enhance environment variable typings
…ansitions; update Layout to include new transition
…ield component with Chakra UI styling and error handling; create HealthCheckCard component for backend health monitoring with auto-refresh functionality
…UI; improve error handling and loading states in ProtectedRoute
… check functionality and user profile display
… variables and enhance layout with Chakra UI
- Simplified workflow_dispatch inputs in frontend CI configuration.
- Set default Node.js version to 20 and removed conditional checks for linting, type checking, and testing.
- Added changelog check step to CI to enforce documentation of changes.
- Updated README and architecture documentation to reflect recent changes and added planning artifacts.
- Introduced a structured changelog file to document project changes.
- Enhanced developer workflow checklist for clarity and completeness.
- Created a week 3 plan checklist to track progress on authentication and UI enhancements.
- Drafted a week 4 plan focusing on quality hardening and accessibility improvements.
- Updated package version to 0.1.0 and added changelog check script.
…ng auth flow endpoints and testing strategies
Copilot AI review requested due to automatic review settings October 3, 2025 03:24
@netlify
Copy link

netlify bot commented Oct 3, 2025

Deploy Preview for app-sameboat ready!

Name Link
🔨 Latest commit ff35d06
🔍 Latest deploy log https://app.netlify.com/projects/app-sameboat/deploys/68df44abc9f378000860bc14
😎 Deploy Preview https://deploy-preview-11--app-sameboat.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Contributor

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 pull request introduces foundational project infrastructure and comprehensive authentication system to establish a v0.1.0 baseline. The changes transform the basic Vite scaffold into a complete SPA with authentication, UI components, testing framework, and developer tooling.

Key Changes:

  • Complete authentication system with React Context, protected routing, and session management
  • Chakra UI integration with dark theme and responsive components
  • Testing infrastructure using Vitest with coverage thresholds and component tests
  • Developer workflow automation including ESLint configuration, Husky hooks, commitlint, and release scripts

Reviewed Changes

Copilot reviewed 77 out of 80 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
src/state/auth/ New authentication context with login/register/logout actions and error handling
src/components/ Reusable UI components including forms, layout, debug panel, and transitions
src/pages/ Login, Register, Me, and enhanced Home pages with Chakra UI
src/routes/ Router configuration with protected routes and layout transitions
package.json Added dependencies for Chakra UI, testing, linting, and commit hooks
Testing files Vitest configuration, setup, and initial auth flow tests
Tooling configs ESLint, commitlint, Husky hooks, and release automation scripts
Documentation Comprehensive README updates, architecture docs, and workflow guides

Console.log statement replaced with console.debug and guarded by dev env checks

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings October 3, 2025 03:30
Copy link
Contributor

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 77 out of 80 changed files in this pull request and generated 4 comments.

fix(debug): console.log statement replaced with console.debug for consistency

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings October 3, 2025 03:32
Copy link
Contributor

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 77 out of 80 changed files in this pull request and generated no new comments.

Make coverage thresholds configurable via environment variables

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings October 3, 2025 03:36
@ArchILLtect ArchILLtect merged commit ff8ad3b into main Oct 3, 2025
5 checks passed
Copy link
Contributor

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 77 out of 80 changed files in this pull request and generated 2 comments.

@ArchILLtect ArchILLtect deleted the restore-main-fix branch October 15, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants