Skip to content

feat: initialize web apps source code - #12

Merged
pikann merged 7 commits into
7-init-project-initializationfrom
feature/initialize-web-apps-source-code
Mar 20, 2026
Merged

pikann merged 7 commits into
7-init-project-initializationfrom
feature/initialize-web-apps-source-code

Conversation

@pikann

@pikann pikann commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR bootstraps the web frontend and introduces the initial application shell for the Paca web experience.

It adds:

  • TanStack Router and route-based app structure
  • TanStack Query provider integration
  • A styled login screen (UI-only flow)
  • Reusable UI primitives and form wiring
  • Theme mode toggle with persisted preference and system-aware auto mode
  • Base styling, tooling, and workspace config for the web package

Type of Change

  • Repository structure

Checklist

  • Initialized the web app package with Bun + Vite + React + TypeScript setup
  • Added frontend dependencies and lockfile
  • Added lint/format/check/test/build scripts
  • Added app shell and root route wiring
  • Added index route with login form UI and client-side validation
  • Added shared UI components (button, input, label, select, slider, switch, textarea)
  • Added local login-related state helper
  • Added TanStack Query provider and devtools integration
  • Added global stylesheet and theme bootstrapping logic
  • Added public assets (favicon, manifest, robots)
  • Updated the web app README with local development commands

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Bootstraps the new apps/web frontend package, establishing the initial TanStack Start/Router app shell, query provider integration, a UI-only login route, and shared UI primitives/style/tooling to support ongoing web development.

Changes:

  • Added Vite + TanStack Start + TanStack Router setup with generated route tree and root shell.
  • Introduced initial / login screen with client-side validation, theme toggle, and a small demo store.
  • Added base styling (Tailwind v4), shadcn-style UI primitives, and web-package tooling/config (Biome, TS config, workspace scripts, public assets, README).

Reviewed changes

Copilot reviewed 30 out of 34 changed files in this pull request and generated 7 comments.

Show a summary per file
File Description
apps/web/vite.config.ts Vite config with TanStack Start, Router devtools, TS path resolution, Tailwind, React compiler setup
apps/web/tsconfig.json TS config for the web package, including path aliases for #/ and @/
apps/web/src/styles.css Global Tailwind/CSS variables + base styling/theme tokens
apps/web/src/routes/index.tsx Index route implementing the initial login UI and form validation
apps/web/src/routes/__root.tsx Root document shell wiring CSS, query provider, and devtools
apps/web/src/router.tsx Router creation with routeTree and query context integration
apps/web/src/routeTree.gen.ts Generated TanStack Router route tree/types
apps/web/src/lib/utils.ts cn() helper for clsx + tailwind-merge
apps/web/src/lib/login-store.ts Demo login-related store helpers
apps/web/src/integrations/tanstack-query/root-provider.tsx QueryClient/provider setup used by the router context
apps/web/src/integrations/tanstack-query/devtools.tsx React Query devtools panel plugin for TanStack devtools
apps/web/src/hooks/use-login-form.ts TanStack Form hook for login form defaults/submit handler
apps/web/src/components/ui/button.tsx Button primitive with variants (CVA)
apps/web/src/components/ui/input.tsx Input primitive
apps/web/src/components/ui/label.tsx Label primitive
apps/web/src/components/ui/select.tsx Select primitive composition
apps/web/src/components/ui/slider.tsx Slider primitive composition
apps/web/src/components/ui/switch.tsx Switch primitive composition
apps/web/src/components/ui/textarea.tsx Textarea primitive
apps/web/src/components/ThemeToggle.tsx Theme mode toggle with persistence + system-aware auto mode
apps/web/public/robots.txt Robots config
apps/web/public/manifest.json Web app manifest
apps/web/public/logo192.png Public PWA asset
apps/web/public/logo512.png Public PWA asset
apps/web/public/favicon.ico Favicon asset
apps/web/package.json Web package scripts/dependencies (Bun/Vite/React/TanStack/etc.)
apps/web/components.json shadcn configuration for component generation/aliases
apps/web/biome.json Biome lint/format configuration for the web package
apps/web/README.md Local development/build/test/lint instructions
apps/web/.vscode/settings.json Editor defaults for Biome formatting and generated route file handling
apps/web/.gitignore Web package ignore rules
apps/web/.cursorrules Cursor guidance for adding shadcn components
apps/web/.cta.json Create TanStack App metadata/config

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

Comment thread apps/web/public/manifest.json Resolved
Comment thread apps/web/src/components/ui/slider.tsx Resolved
Comment thread apps/web/vite.config.ts Resolved
Comment thread apps/web/src/routes/__root.tsx Resolved
Comment thread apps/web/src/hooks/use-login-form.ts Resolved
Comment thread apps/web/package.json Resolved
@pikann
pikann changed the base branch from master to 7-init-project-initialization March 20, 2026 08:22
pikann and others added 6 commits March 20, 2026 15:23
…cross components and hooks

- Updated import statements to use consistent quotation marks and formatting.
- Refactored Slider, Switch, Textarea components for improved readability and consistency.
- Enhanced useLoginForm hook with better formatting and structure.
- Cleaned up TanStack Query integration files for consistency in code style.
- Improved login-store and utils files with consistent formatting.
- Refactored router and routes files for better readability and structure.
- Updated Vite configuration for consistent import formatting.
@pikann
pikann merged commit 1c00d04 into 7-init-project-initialization Mar 20, 2026
1 check passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in PacaRoadmap Mar 20, 2026
@pikann
pikann deleted the feature/initialize-web-apps-source-code branch March 20, 2026 08:58
@pikann pikann removed this from PacaRoadmap Mar 21, 2026
pikann pushed a commit that referenced this pull request Nov 26, 2026
GET /search?q=&limit= returns matching projects, tasks and people for the
header search. The route is open to any authenticated caller and decides
what it returns in the handler, from the same project set as the workspace
counters:

- projects the caller holds projects:read on;
- tasks they may read in each project (the per-project tasks:read scope),
  matched by title or by task key ("ABC-12", "#12"), with the task's type
  (name, icon, color) so clients can draw it;
- people who are live members of a project whose member list the caller
  may read (project.members:read), i.e. their teams; every user for a
  holder of users:read.

The per-project checks use one AuthorizeMany call. The route is listed in
openRouteGroups next to the other handler-scoped endpoints.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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