asepharyana
d54aa7e2c2
feat: close remaining gaps — middleware, demo wiring, error UX, env validation
...
CI / lint + typecheck + test + build (push) Canceled after 0s
- Auth: middleware.ts guards /protected via better-auth session cookie;
protected page reads session server-side (auth.api.getSession)
- Demo wiring (app/demo + components/demo): react-markdown + remark-gfm +
shiki CodeBlock, RHF+zod form with react-query mutation + sonner toast,
react-table items list (legacy API, table v9), /api/items GET+POST
(zod v4 coercion, schema in lib/items.ts shared with unit tests)
- Error UX: app/error.tsx (retry + digest), not-found.tsx (404), loading.tsx
- Env: lib/env.ts zod-validated (no import-time throw), .env.example sync
(NEXT_PUBLIC_BETTER_AUTH_URL), auth-client uses env
- Tooling: @vitest/coverage-v8 (test:coverage works), tsconfig cleanup
(drop .next/dev/dev/types artifact), README rewrite, demo e2e specs
2026-09-19 22:47:26 +07:00
asepharyana
8093dd2b7f
feat: setup full Next.js toolchain and core dependencies
...
- Add runtime deps: react-query, react-hook-form+zod, zustand, ky, openapi-fetch,
better-auth, react-markdown, shiki, recharts, next-themes, nuqs, sonner, cmdk,
vaul, embla-carousel-react, motion, date-fns, tailwind-merge, clsx, cva
- Add dev tooling: vitest, testing-library, playwright, prettier(+tailwind plugin),
husky, lint-staged, jsdom
- Wire providers (QueryClient, Theme, NuqsAdapter, Tooltip, Sonner) into layout
- Add vitest/playwright/prettier configs + lint-staged pre-commit hook
- Add lib/query-client + lib/http (ky) helpers and sample unit test
- Fix react-hooks/set-state-in-effect lint errors (use-mobile useSyncExternalStore,
carousel async init)
- Remove committed Next-generated types/ duplicates (regenerated under .next/types)
2026-09-19 19:24:48 +07:00
asepharyana
046f201e63
feat: initialize Next.js project with TypeScript, ESLint, and Tailwind CSS
...
- Added ESLint configuration for Next.js with custom global ignores.
- Created Next.js configuration file with basic setup.
- Initialized package.json with dependencies for Next.js, React, and TypeScript.
- Set up PostCSS configuration for Tailwind CSS.
- Added SVG assets for the project.
- Created TypeScript configuration file with strict settings and Next.js support.
- Defined custom type declarations for Next.js cache life and routing parameters.
- Implemented validation types for Next.js pages and layouts.
2026-09-19 18:34:05 +07:00