ui-syncup 0.3.13 → 0.4.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agents/skills/ai-spec-workflow/SKILL.md +58 -0
- package/.agents/skills/ai-spec-workflow/references/AI_SPECIFICATION_WORKFLOW.md +1434 -0
- package/.agents/skills/ai-spec-workflow/references/templates/design-template.md +729 -0
- package/.agents/skills/ai-spec-workflow/references/templates/requirements-template.md +179 -0
- package/.agents/skills/ai-spec-workflow/references/templates/tasks-template.md +501 -0
- package/.agents/skills/animation-designer/SKILL.md +688 -0
- package/.agents/skills/animation-designer/manifest.yaml +44 -0
- package/.agents/skills/brainstorming/SKILL.md +54 -0
- package/.agents/skills/contract-driven-ui/SKILL.md +270 -0
- package/.agents/skills/dispatching-parallel-agents/SKILL.md +180 -0
- package/.agents/skills/executing-plans/SKILL.md +76 -0
- package/.agents/skills/executing-specs/SKILL.md +53 -0
- package/.agents/skills/finishing-a-development-branch/SKILL.md +200 -0
- package/.agents/skills/github-workflow-automation/SKILL.md +846 -0
- package/.agents/skills/react-best-practices/AGENTS.md +2249 -0
- package/.agents/skills/react-best-practices/README.md +123 -0
- package/.agents/skills/react-best-practices/SKILL.md +121 -0
- package/.agents/skills/react-best-practices/metadata.json +15 -0
- package/.agents/skills/react-best-practices/rules/_sections.md +46 -0
- package/.agents/skills/react-best-practices/rules/_template.md +28 -0
- package/.agents/skills/react-best-practices/rules/advanced-event-handler-refs.md +55 -0
- package/.agents/skills/react-best-practices/rules/advanced-use-latest.md +49 -0
- package/.agents/skills/react-best-practices/rules/async-api-routes.md +38 -0
- package/.agents/skills/react-best-practices/rules/async-defer-await.md +80 -0
- package/.agents/skills/react-best-practices/rules/async-dependencies.md +36 -0
- package/.agents/skills/react-best-practices/rules/async-parallel.md +28 -0
- package/.agents/skills/react-best-practices/rules/async-suspense-boundaries.md +99 -0
- package/.agents/skills/react-best-practices/rules/bundle-barrel-imports.md +59 -0
- package/.agents/skills/react-best-practices/rules/bundle-conditional.md +31 -0
- package/.agents/skills/react-best-practices/rules/bundle-defer-third-party.md +49 -0
- package/.agents/skills/react-best-practices/rules/bundle-dynamic-imports.md +35 -0
- package/.agents/skills/react-best-practices/rules/bundle-preload.md +50 -0
- package/.agents/skills/react-best-practices/rules/client-event-listeners.md +74 -0
- package/.agents/skills/react-best-practices/rules/client-swr-dedup.md +56 -0
- package/.agents/skills/react-best-practices/rules/js-batch-dom-css.md +82 -0
- package/.agents/skills/react-best-practices/rules/js-cache-function-results.md +80 -0
- package/.agents/skills/react-best-practices/rules/js-cache-property-access.md +28 -0
- package/.agents/skills/react-best-practices/rules/js-cache-storage.md +70 -0
- package/.agents/skills/react-best-practices/rules/js-combine-iterations.md +32 -0
- package/.agents/skills/react-best-practices/rules/js-early-exit.md +50 -0
- package/.agents/skills/react-best-practices/rules/js-hoist-regexp.md +45 -0
- package/.agents/skills/react-best-practices/rules/js-index-maps.md +37 -0
- package/.agents/skills/react-best-practices/rules/js-length-check-first.md +49 -0
- package/.agents/skills/react-best-practices/rules/js-min-max-loop.md +82 -0
- package/.agents/skills/react-best-practices/rules/js-set-map-lookups.md +24 -0
- package/.agents/skills/react-best-practices/rules/js-tosorted-immutable.md +57 -0
- package/.agents/skills/react-best-practices/rules/rendering-activity.md +26 -0
- package/.agents/skills/react-best-practices/rules/rendering-animate-svg-wrapper.md +47 -0
- package/.agents/skills/react-best-practices/rules/rendering-conditional-render.md +40 -0
- package/.agents/skills/react-best-practices/rules/rendering-content-visibility.md +38 -0
- package/.agents/skills/react-best-practices/rules/rendering-hoist-jsx.md +46 -0
- package/.agents/skills/react-best-practices/rules/rendering-hydration-no-flicker.md +82 -0
- package/.agents/skills/react-best-practices/rules/rendering-svg-precision.md +28 -0
- package/.agents/skills/react-best-practices/rules/rerender-defer-reads.md +39 -0
- package/.agents/skills/react-best-practices/rules/rerender-dependencies.md +45 -0
- package/.agents/skills/react-best-practices/rules/rerender-derived-state.md +29 -0
- package/.agents/skills/react-best-practices/rules/rerender-functional-setstate.md +74 -0
- package/.agents/skills/react-best-practices/rules/rerender-lazy-state-init.md +58 -0
- package/.agents/skills/react-best-practices/rules/rerender-memo.md +44 -0
- package/.agents/skills/react-best-practices/rules/rerender-transitions.md +40 -0
- package/.agents/skills/react-best-practices/rules/server-after-nonblocking.md +73 -0
- package/.agents/skills/react-best-practices/rules/server-cache-lru.md +41 -0
- package/.agents/skills/react-best-practices/rules/server-cache-react.md +26 -0
- package/.agents/skills/react-best-practices/rules/server-parallel-fetching.md +79 -0
- package/.agents/skills/react-best-practices/rules/server-serialization.md +38 -0
- package/.agents/skills/react-ui-patterns/SKILL.md +289 -0
- package/.agents/skills/receiving-code-review/SKILL.md +213 -0
- package/.agents/skills/requesting-code-review/SKILL.md +105 -0
- package/.agents/skills/requesting-code-review/code-reviewer.md +146 -0
- package/.agents/skills/reviewing-code/SKILL.md +28 -0
- package/.agents/skills/shadcn/SKILL.md +240 -0
- package/.agents/skills/shadcn/agents/openai.yml +5 -0
- package/.agents/skills/shadcn/assets/shadcn-small.png +0 -0
- package/.agents/skills/shadcn/assets/shadcn.png +0 -0
- package/.agents/skills/shadcn/cli.md +255 -0
- package/.agents/skills/shadcn/customization.md +202 -0
- package/.agents/skills/shadcn/evals/evals.json +47 -0
- package/.agents/skills/shadcn/mcp.md +94 -0
- package/.agents/skills/shadcn/rules/base-vs-radix.md +306 -0
- package/.agents/skills/shadcn/rules/composition.md +195 -0
- package/.agents/skills/shadcn/rules/forms.md +192 -0
- package/.agents/skills/shadcn/rules/icons.md +101 -0
- package/.agents/skills/shadcn/rules/styling.md +162 -0
- package/.agents/skills/steering-creation/SKILL.md +221 -0
- package/.agents/skills/steering-creation/references/STEERING_CREATION_INSTRUCTION.md +850 -0
- package/.agents/skills/subagent-driven-development/SKILL.md +240 -0
- package/.agents/skills/subagent-driven-development/code-quality-reviewer-prompt.md +20 -0
- package/.agents/skills/subagent-driven-development/implementer-prompt.md +78 -0
- package/.agents/skills/subagent-driven-development/spec-reviewer-prompt.md +61 -0
- package/.agents/skills/systematic-debugging/CREATION-LOG.md +119 -0
- package/.agents/skills/systematic-debugging/SKILL.md +296 -0
- package/.agents/skills/systematic-debugging/condition-based-waiting-example.ts +158 -0
- package/.agents/skills/systematic-debugging/condition-based-waiting.md +115 -0
- package/.agents/skills/systematic-debugging/defense-in-depth.md +122 -0
- package/.agents/skills/systematic-debugging/find-polluter.sh +63 -0
- package/.agents/skills/systematic-debugging/root-cause-tracing.md +169 -0
- package/.agents/skills/systematic-debugging/test-academic.md +14 -0
- package/.agents/skills/systematic-debugging/test-pressure-1.md +58 -0
- package/.agents/skills/systematic-debugging/test-pressure-2.md +68 -0
- package/.agents/skills/systematic-debugging/test-pressure-3.md +69 -0
- package/.agents/skills/test-driven-development/SKILL.md +371 -0
- package/.agents/skills/test-driven-development/testing-anti-patterns.md +299 -0
- package/.agents/skills/using-git-worktrees/SKILL.md +217 -0
- package/.agents/skills/using-superpowers/SKILL.md +87 -0
- package/.agents/skills/verification-before-completion/SKILL.md +139 -0
- package/.agents/skills/web-design-guidelines/SKILL.md +36 -0
- package/.agents/skills/writing-plans/SKILL.md +116 -0
- package/.agents/skills/writing-skills/SKILL.md +655 -0
- package/.agents/skills/writing-skills/anthropic-best-practices.md +1150 -0
- package/.agents/skills/writing-skills/examples/CLAUDE_MD_TESTING.md +189 -0
- package/.agents/skills/writing-skills/graphviz-conventions.dot +172 -0
- package/.agents/skills/writing-skills/persuasion-principles.md +187 -0
- package/.agents/skills/writing-skills/render-graphs.js +168 -0
- package/.agents/skills/writing-skills/testing-skills-with-subagents.md +384 -0
- package/.ai/steering/product.md +51 -0
- package/.ai/steering/structure.md +275 -0
- package/.ai/steering/tech.md +188 -0
- package/.claude/agents/database-architect.md +96 -0
- package/.claude/agents/deployment-pipeline-architect.md +122 -0
- package/.claude/agents/nextjs-expert.md +69 -0
- package/.claude/agents/ui-design-expert.md +106 -0
- package/.claudeignore +69 -0
- package/.dockerignore +8 -0
- package/.env.development +86 -0
- package/.env.example +171 -0
- package/.env.production +139 -0
- package/.env.test +58 -0
- package/.gitattributes +2 -0
- package/.github/ISSUE_TEMPLATE/bug_report.yml +33 -0
- package/.github/ISSUE_TEMPLATE/feature_request.yml +20 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +23 -0
- package/.github/workflows/ci.yml +64 -0
- package/.github/workflows/release.yml +131 -0
- package/.nvmrc +1 -0
- package/.releaserc.json +18 -0
- package/.vercelignore +73 -0
- package/AGENTS.md +544 -0
- package/CHANGELOG.md +37 -0
- package/CODE_OF_CONDUCT.md +21 -0
- package/CONTRIBUTING.md +32 -0
- package/Dockerfile +84 -0
- package/LICENSE +21 -0
- package/README.md +328 -59
- package/SECURITY.md +16 -0
- package/bun.lock +3853 -0
- package/cli/README.md +94 -0
- package/cli/bun.lock +306 -0
- package/cli/index.ts +96 -0
- package/cli/package-lock.json +2157 -0
- package/cli/package.json +30 -0
- package/cli/src/commands/backup.ts +78 -0
- package/cli/src/commands/doctor.ts +82 -0
- package/cli/src/commands/init.ts +234 -0
- package/cli/src/commands/logs.ts +26 -0
- package/cli/src/commands/open.ts +23 -0
- package/cli/src/commands/remove.ts +44 -0
- package/cli/src/commands/restart.ts +21 -0
- package/cli/src/commands/restore.ts +90 -0
- package/cli/src/commands/start.ts +26 -0
- package/cli/src/commands/status.ts +25 -0
- package/cli/src/commands/stop.ts +20 -0
- package/cli/src/commands/upgrade.ts +28 -0
- package/cli/src/lib/docker.ts +40 -0
- package/cli/src/lib/env.ts +42 -0
- package/cli/src/lib/ui.ts +43 -0
- package/cli/tsconfig.json +13 -0
- package/cli/tsup.config.ts +12 -0
- package/components.json +24 -0
- package/docker/README.md +430 -0
- package/docker/compose.dev-minio.yml +30 -0
- package/docker/compose.dev.yml +39 -0
- package/docker/compose.local.yml +84 -0
- package/docker/compose.yml +153 -0
- package/docs/VERSIONING.md +117 -0
- package/docs/database/DRIZZLE_COMMANDS_EXPLAINED.md +1779 -0
- package/docs/database/DRIZZLE_ZOD_POSTGRESQL_INSTRUCTION.md +646 -0
- package/docs/database/MIGRATION_BEST_PRACTICES.md +601 -0
- package/docs/database/MIGRATION_ROLLBACK.md +1080 -0
- package/docs/database/MIGRATION_SYSTEM.md +165 -0
- package/docs/database/MIGRATION_TROUBLESHOOTING.md +881 -0
- package/docs/development/ENVIRONMENT_CONFIG.md +896 -0
- package/docs/development/LOCAL_DEVELOPMENT.md +456 -0
- package/docs/development/REMOTE_DATABASE_SETUP.md +786 -0
- package/docs/development/STORAGE_SETUP.md +207 -0
- package/docs/development/SUPABASE_LOCAL_SETUP.md +178 -0
- package/docs/development/TESTING.md +714 -0
- package/docs/feature-architectures/LOADING_ARCHITECTURE.md +343 -0
- package/docs/feature-architectures/NOTIFICATION_ARCHITECTURE.md +858 -0
- package/docs/feature-architectures/RATE_LIMIT_RESET.md +147 -0
- package/docs/feature-architectures/RBAC.md +1132 -0
- package/docs/feature-architectures/RESOURCE_LIMITS.md +69 -0
- package/docs/feature-architectures/SECURITY.md +284 -0
- package/docs/feature-architectures/WORKSPACES.md +278 -0
- package/docs/plans/admin-setup-wizard-routing-plan.md +623 -0
- package/drizzle/0000_purple_wilson_fisk.sql +360 -0
- package/drizzle/0001_drop_instance_public_url.sql +1 -0
- package/drizzle/meta/0000_snapshot.json +3118 -0
- package/drizzle/meta/_journal.json +20 -0
- package/drizzle.config.ts +13 -0
- package/eslint.config.mjs +44 -0
- package/install.sh +180 -0
- package/next.config.ts +91 -0
- package/package.json +128 -22
- package/playwright.config.ts +70 -0
- package/postcss.config.mjs +7 -0
- package/public/file.svg +1 -0
- package/public/globe.svg +1 -0
- package/public/logo.svg +11 -0
- package/public/next.svg +1 -0
- package/public/playground/CPM-101/as-is-image.jpg +0 -0
- package/public/playground/CPM-101/to-be-image.jpg +0 -0
- package/public/playground/TEST-1/LinkedIn-skeleton-screen.png +0 -0
- package/public/playground/TEST-1/https___dev-to-uploads.s3.amazonaws.com_uploads_articles_vuahe90ka1mkx9aepmea.webp +0 -0
- package/public/playground/TEST-1/linkedin_skeletonscreen.jpg +0 -0
- package/public/vercel.svg +1 -0
- package/public/window.svg +1 -0
- package/scripts/__tests__/migrate.integration.test.ts +642 -0
- package/scripts/__tests__/migrate.property.test.ts +1714 -0
- package/scripts/__tests__/migrate.test.ts +536 -0
- package/scripts/admin-reset-password.ts +114 -0
- package/scripts/check-email-queue.ts +99 -0
- package/scripts/check-sessions.ts +50 -0
- package/scripts/db-pull-data.sh +73 -0
- package/scripts/force-verify-email.sh +13 -0
- package/scripts/migrate.ts +693 -0
- package/scripts/process-email-queue.ts +26 -0
- package/scripts/reset-db.ts +47 -0
- package/scripts/reset-rate-limit.sh +26 -0
- package/scripts/reset-remote-db.sql +31 -0
- package/scripts/retry-failed-emails.ts +67 -0
- package/scripts/seed.ts +605 -0
- package/scripts/setup-monitoring.sh +440 -0
- package/scripts/sync-migration-tracking.ts +113 -0
- package/scripts/test-ci-error-handling.sh +237 -0
- package/scripts/test-ci-workflow.sh +200 -0
- package/scripts/test-migration.sh +151 -0
- package/scripts/validate-env.ts +25 -0
- package/scripts/validate-migration-system.ts +566 -0
- package/scripts/verify-ci-status-reporting.sh +206 -0
- package/scripts/verify-user-email.sql +22 -0
- package/scripts/verify-vercel-integration.ts +292 -0
- package/seed_data.md +54 -0
- package/src/app/(protected)/(team)/(routes)/[projectSlug]/error.tsx +89 -0
- package/src/app/(protected)/(team)/(routes)/[projectSlug]/loading.tsx +101 -0
- package/src/app/(protected)/(team)/(routes)/[projectSlug]/page.tsx +91 -0
- package/src/app/(protected)/(team)/(routes)/issue/[issueKey]/README.md +192 -0
- package/src/app/(protected)/(team)/(routes)/issue/[issueKey]/error.tsx +58 -0
- package/src/app/(protected)/(team)/(routes)/issue/[issueKey]/loading.tsx +14 -0
- package/src/app/(protected)/(team)/(routes)/issue/[issueKey]/not-found.tsx +47 -0
- package/src/app/(protected)/(team)/(routes)/issue/[issueKey]/page.tsx +91 -0
- package/src/app/(protected)/(team)/projects/page.tsx +16 -0
- package/src/app/(protected)/(team)/team/settings/(section)/instance/page.tsx +52 -0
- package/src/app/(protected)/(team)/team/settings/(section)/integrations/loading.tsx +5 -0
- package/src/app/(protected)/(team)/team/settings/(section)/integrations/page.tsx +23 -0
- package/src/app/(protected)/(team)/team/settings/(section)/members/loading.tsx +5 -0
- package/src/app/(protected)/(team)/team/settings/(section)/members/page.tsx +35 -0
- package/src/app/(protected)/(team)/team/settings/layout.tsx +72 -0
- package/src/app/(protected)/(team)/team/settings/loading.tsx +5 -0
- package/src/app/(protected)/(team)/team/settings/page.tsx +71 -0
- package/src/app/(protected)/dev/auth/README.md +151 -0
- package/src/app/(protected)/dev/auth/page.tsx +590 -0
- package/src/app/(protected)/layout.test.tsx +209 -0
- package/src/app/(protected)/layout.tsx +28 -0
- package/src/app/(protected)/onboarding/page.tsx +27 -0
- package/src/app/(protected)/settings/integrations/page.tsx +23 -0
- package/src/app/(protected)/settings/layout.tsx +26 -0
- package/src/app/(protected)/settings/notifications/page.tsx +26 -0
- package/src/app/(protected)/settings/other/page.tsx +23 -0
- package/src/app/(protected)/settings/page.tsx +23 -0
- package/src/app/(protected)/settings/preferences/page.tsx +23 -0
- package/src/app/(protected)/settings/security/page.tsx +37 -0
- package/src/app/(public)/forgot-password/page.tsx +20 -0
- package/src/app/(public)/invite/project/[token]/error.tsx +50 -0
- package/src/app/(public)/invite/project/[token]/loading.tsx +39 -0
- package/src/app/(public)/invite/project/[token]/page.tsx +156 -0
- package/src/app/(public)/layout.tsx +9 -0
- package/src/app/(public)/privacy-policy/page.tsx +12 -0
- package/src/app/(public)/reset-password/page.tsx +37 -0
- package/src/app/(public)/setup/__tests__/page.test.tsx +30 -0
- package/src/app/(public)/setup/page.tsx +17 -0
- package/src/app/(public)/share/issue/[token]/page.tsx +51 -0
- package/src/app/(public)/sign-in/page.tsx +55 -0
- package/src/app/(public)/sign-up/page.tsx +23 -0
- package/src/app/(public)/verify-email/page.tsx +22 -0
- package/src/app/(public)/verify-email-confirm/page.tsx +40 -0
- package/src/app/api/auth/[...all]/route.ts +6 -0
- package/src/app/api/auth/delete-account/route.ts +134 -0
- package/src/app/api/auth/dev/force-verify/route.ts +180 -0
- package/src/app/api/auth/dev/reset-rate-limit/route.ts +144 -0
- package/src/app/api/auth/dev/sessions/route.ts +172 -0
- package/src/app/api/auth/forgot-password/__tests__/forgot-password.property.test.ts +397 -0
- package/src/app/api/auth/forgot-password/route.ts +277 -0
- package/src/app/api/auth/logout/route.ts +115 -0
- package/src/app/api/auth/me/route.ts +123 -0
- package/src/app/api/auth/providers/__tests__/route.test.ts +236 -0
- package/src/app/api/auth/providers/route.ts +119 -0
- package/src/app/api/auth/resend-verification/route.ts +262 -0
- package/src/app/api/auth/reset-password/__tests__/reset-password.property.test.ts +493 -0
- package/src/app/api/auth/reset-password/__tests__/route.test.ts +284 -0
- package/src/app/api/auth/reset-password/route.ts +251 -0
- package/src/app/api/auth/verify-email/route.ts +232 -0
- package/src/app/api/example-cors/route.ts +61 -0
- package/src/app/api/health/route.ts +14 -0
- package/src/app/api/invite/project/[token]/__tests__/accept-invitation.integration.test.ts +348 -0
- package/src/app/api/invite/project/[token]/decline/route.ts +99 -0
- package/src/app/api/invite/project/[token]/route.ts +269 -0
- package/src/app/api/issues/[issueId]/activities/route.ts +213 -0
- package/src/app/api/issues/[issueId]/attachments/[attachmentId]/annotations/[annotationId]/comments/[commentId]/route.ts +486 -0
- package/src/app/api/issues/[issueId]/attachments/[attachmentId]/annotations/[annotationId]/comments/route.ts +283 -0
- package/src/app/api/issues/[issueId]/attachments/[attachmentId]/annotations/[annotationId]/read/route.ts +242 -0
- package/src/app/api/issues/[issueId]/attachments/[attachmentId]/annotations/[annotationId]/route.ts +534 -0
- package/src/app/api/issues/[issueId]/attachments/[attachmentId]/annotations/route.ts +514 -0
- package/src/app/api/issues/[issueId]/attachments/[attachmentId]/route.ts +161 -0
- package/src/app/api/issues/[issueId]/attachments/route.ts +376 -0
- package/src/app/api/issues/[issueId]/route.ts +516 -0
- package/src/app/api/notifications/[id]/read/route.ts +131 -0
- package/src/app/api/notifications/__tests__/notifications.integration.test.ts +350 -0
- package/src/app/api/notifications/read-all/route.ts +72 -0
- package/src/app/api/notifications/route.ts +148 -0
- package/src/app/api/notifications/unread-count/route.ts +77 -0
- package/src/app/api/projects/[id]/activities/route.ts +174 -0
- package/src/app/api/projects/[id]/invitations/[invitationId]/resend/route.ts +99 -0
- package/src/app/api/projects/[id]/invitations/[invitationId]/route.ts +96 -0
- package/src/app/api/projects/[id]/invitations/route.ts +254 -0
- package/src/app/api/projects/[id]/issues/route.ts +452 -0
- package/src/app/api/projects/[id]/join/route.ts +207 -0
- package/src/app/api/projects/[id]/members/[memberId]/route.ts +364 -0
- package/src/app/api/projects/[id]/members/me/route.ts +121 -0
- package/src/app/api/projects/[id]/members/route.ts +129 -0
- package/src/app/api/projects/[id]/route.ts +476 -0
- package/src/app/api/projects/route.ts +394 -0
- package/src/app/api/setup/admin/route.ts +255 -0
- package/src/app/api/setup/complete/__tests__/route.test.ts +60 -0
- package/src/app/api/setup/complete/route.ts +244 -0
- package/src/app/api/setup/config/route.ts +195 -0
- package/src/app/api/setup/export/route.ts +111 -0
- package/src/app/api/setup/health/route.ts +74 -0
- package/src/app/api/setup/import/route.ts +154 -0
- package/src/app/api/setup/status/route.ts +82 -0
- package/src/app/api/setup/workspace/route.ts +252 -0
- package/src/app/api/teams/[teamId]/export/route.ts +115 -0
- package/src/app/api/teams/[teamId]/invitations/[invitationId]/resend/route.ts +132 -0
- package/src/app/api/teams/[teamId]/invitations/[invitationId]/route.ts +117 -0
- package/src/app/api/teams/[teamId]/invitations/route.ts +363 -0
- package/src/app/api/teams/[teamId]/members/[userId]/route.ts +335 -0
- package/src/app/api/teams/[teamId]/members/route.ts +184 -0
- package/src/app/api/teams/[teamId]/members/search/route.ts +202 -0
- package/src/app/api/teams/[teamId]/route.ts +423 -0
- package/src/app/api/teams/[teamId]/switch/route.ts +140 -0
- package/src/app/api/teams/[teamId]/transfer-ownership/route.ts +212 -0
- package/src/app/api/teams/invitations/[token]/accept/route.ts +140 -0
- package/src/app/api/teams/invitations/by-id/[id]/accept/route.ts +98 -0
- package/src/app/api/teams/invitations/by-id/[id]/decline/route.ts +90 -0
- package/src/app/api/teams/route.ts +278 -0
- package/src/app/api/uploads/media/route.ts +118 -0
- package/src/app/api/uploads/presigned/route.ts +49 -0
- package/src/app/api/user/linked-accounts/route.ts +35 -0
- package/src/app/email-preview/page.tsx +11 -0
- package/src/app/favicon.ico +0 -0
- package/src/app/global-error.tsx +21 -0
- package/src/app/layout.tsx +50 -0
- package/src/app/page.tsx +5 -0
- package/src/components/icons/atlassian-icon.tsx +22 -0
- package/src/components/icons/index.ts +1 -0
- package/src/components/layout/SIDEBAR_LAYOUT_BEST_PRACTICES.md +240 -0
- package/src/components/layout/app-shell-header-store.tsx +20 -0
- package/src/components/layout/app-shell-skeleton.tsx +89 -0
- package/src/components/layout/app-shell-wrapper.tsx +32 -0
- package/src/components/layout/app-shell.test.tsx +155 -0
- package/src/components/layout/app-shell.tsx +100 -0
- package/src/components/shared/headers/app-header-configurator.tsx +42 -0
- package/src/components/shared/headers/app-header.tsx +103 -0
- package/src/components/shared/headers/header-user-menu.tsx +247 -0
- package/src/components/shared/headers/index.ts +44 -0
- package/src/components/shared/headers/page-header.tsx +25 -0
- package/src/components/shared/notifications/__tests__/notification-bell.test.tsx +159 -0
- package/src/components/shared/notifications/__tests__/notification-dropdown.test.tsx +296 -0
- package/src/components/shared/notifications/__tests__/notification-item.test.tsx +328 -0
- package/src/components/shared/notifications/index.ts +45 -0
- package/src/components/shared/notifications/notification-actions.tsx +295 -0
- package/src/components/shared/notifications/notification-bell-button.tsx +77 -0
- package/src/components/shared/notifications/notification-dropdown.tsx +160 -0
- package/src/components/shared/notifications/notification-group-item.tsx +268 -0
- package/src/components/shared/notifications/notification-item.tsx +193 -0
- package/src/components/shared/notifications/notification-load-more.tsx +50 -0
- package/src/components/shared/notifications/notification-panel.tsx +49 -0
- package/src/components/shared/notifications/utils.tsx +127 -0
- package/src/components/shared/permission-guard/index.ts +1 -0
- package/src/components/shared/permission-guard/permission-tooltip.tsx +45 -0
- package/src/components/shared/relative-time.tsx +53 -0
- package/src/components/shared/section-container.tsx +32 -0
- package/src/components/shared/service-status-banner.tsx +121 -0
- package/src/components/shared/settings-sidebar/index.ts +2 -0
- package/src/components/shared/settings-sidebar/team-setting-aside.tsx +97 -0
- package/src/components/shared/settings-sidebar/user-settings-aside.tsx +66 -0
- package/src/components/shared/sidebar/app-sidebar.tsx +146 -0
- package/src/components/shared/sidebar/index.ts +36 -0
- package/src/components/shared/sidebar/sidebar-main.tsx +81 -0
- package/src/components/shared/sidebar/sidebar-project.tsx +61 -0
- package/src/components/shared/sidebar/sidebar-team-avatar.tsx +126 -0
- package/src/components/shared/sidebar/sidebar-team-switcher.tsx +185 -0
- package/src/components/shared/sidebar/type.ts +97 -0
- package/src/components/ui/alert-dialog.tsx +157 -0
- package/src/components/ui/alert.tsx +66 -0
- package/src/components/ui/avatar-upload.tsx +147 -0
- package/src/components/ui/avatar.tsx +53 -0
- package/src/components/ui/badge.tsx +46 -0
- package/src/components/ui/breadcrumb.tsx +109 -0
- package/src/components/ui/button.tsx +60 -0
- package/src/components/ui/card.tsx +92 -0
- package/src/components/ui/checkbox.tsx +32 -0
- package/src/components/ui/collapsible.tsx +33 -0
- package/src/components/ui/command.tsx +184 -0
- package/src/components/ui/dialog.tsx +143 -0
- package/src/components/ui/dropdown-menu.tsx +257 -0
- package/src/components/ui/empty.tsx +104 -0
- package/src/components/ui/field.tsx +244 -0
- package/src/components/ui/image-cropper-dialog.tsx +167 -0
- package/src/components/ui/input.tsx +21 -0
- package/src/components/ui/label.tsx +24 -0
- package/src/components/ui/optimized-image.tsx +220 -0
- package/src/components/ui/pagination.tsx +127 -0
- package/src/components/ui/popover.tsx +48 -0
- package/src/components/ui/progress.tsx +31 -0
- package/src/components/ui/radio-group.tsx +45 -0
- package/src/components/ui/scroll-area.tsx +58 -0
- package/src/components/ui/select.tsx +187 -0
- package/src/components/ui/separator.tsx +28 -0
- package/src/components/ui/sheet.tsx +139 -0
- package/src/components/ui/sidebar.tsx +733 -0
- package/src/components/ui/skeleton.tsx +13 -0
- package/src/components/ui/sonner.tsx +40 -0
- package/src/components/ui/spinner.tsx +16 -0
- package/src/components/ui/switch.tsx +31 -0
- package/src/components/ui/table.tsx +116 -0
- package/src/components/ui/tabs.tsx +66 -0
- package/src/components/ui/textarea.tsx +23 -0
- package/src/components/ui/tooltip.tsx +61 -0
- package/src/config/__tests__/workspace.property.test.ts +40 -0
- package/src/config/auth.ts +62 -0
- package/src/config/integrations.ts +126 -0
- package/src/config/quotas.ts +20 -0
- package/src/config/roles.ts +463 -0
- package/src/config/settings-nav.ts +39 -0
- package/src/config/team-settings-nav.ts +37 -0
- package/src/config/user-settings-nav.ts +42 -0
- package/src/config/version.ts +1 -0
- package/src/config/workspace.ts +64 -0
- package/src/features/annotations/README.md +283 -0
- package/src/features/annotations/api/annotations-api.ts +194 -0
- package/src/features/annotations/api/comments-api.ts +147 -0
- package/src/features/annotations/api/index.ts +71 -0
- package/src/features/annotations/api/save-annotation.ts +150 -0
- package/src/features/annotations/api/schemas.ts +142 -0
- package/src/features/annotations/components/annotated-attachment-view.tsx +576 -0
- package/src/features/annotations/components/annotation-action-sheet.tsx +140 -0
- package/src/features/annotations/components/annotation-annotations-panel.tsx +213 -0
- package/src/features/annotations/components/annotation-box.tsx +539 -0
- package/src/features/annotations/components/annotation-canvas.tsx +534 -0
- package/src/features/annotations/components/annotation-comment-input.tsx +145 -0
- package/src/features/annotations/components/annotation-context-menu.tsx +164 -0
- package/src/features/annotations/components/annotation-drawer.tsx +231 -0
- package/src/features/annotations/components/annotation-layer.tsx +271 -0
- package/src/features/annotations/components/annotation-pin.tsx +318 -0
- package/src/features/annotations/components/annotation-popover.tsx +562 -0
- package/src/features/annotations/components/annotation-thread-panel.tsx +485 -0
- package/src/features/annotations/components/annotation-thread-preview.tsx +195 -0
- package/src/features/annotations/components/annotation-toolbar.tsx +244 -0
- package/src/features/annotations/components/keyboard-shortcuts-modal.tsx +79 -0
- package/src/features/annotations/docs/ANNOTATIONS_ARCHITECTURE.md +67 -0
- package/src/features/annotations/docs/ANNOTATION_SAVE_ARCHITECTURE.md +422 -0
- package/src/features/annotations/docs/ANNOTATION_SAVE_FEATURE.md +408 -0
- package/src/features/annotations/docs/BOX_ANNOTATION_GUIDE.md +542 -0
- package/src/features/annotations/docs/NEXTSTEP.md +28 -0
- package/src/features/annotations/docs/STALE_CLOSURE_FIX.md +344 -0
- package/src/features/annotations/docs/UNDO_REDO_QUICK_START.md +545 -0
- package/src/features/annotations/docs/local_first_canvas_autosave_architecture.md +674 -0
- package/src/features/annotations/examples/complete-example.tsx +266 -0
- package/src/features/annotations/examples/save-annotation-example.tsx +309 -0
- package/src/features/annotations/hooks/__tests__/use-annotation-permissions.property.test.tsx +493 -0
- package/src/features/annotations/hooks/index.ts +36 -0
- package/src/features/annotations/hooks/use-annotation-batch-save.ts +109 -0
- package/src/features/annotations/hooks/use-annotation-comments.ts +353 -0
- package/src/features/annotations/hooks/use-annotation-drafts.ts +137 -0
- package/src/features/annotations/hooks/use-annotation-edit-state.ts +99 -0
- package/src/features/annotations/hooks/use-annotation-history-tracker.ts +159 -0
- package/src/features/annotations/hooks/use-annotation-integration.ts +916 -0
- package/src/features/annotations/hooks/use-annotation-permissions.ts +210 -0
- package/src/features/annotations/hooks/use-annotation-popover.ts +175 -0
- package/src/features/annotations/hooks/use-annotation-save.ts +208 -0
- package/src/features/annotations/hooks/use-annotation-tools.ts +237 -0
- package/src/features/annotations/hooks/use-annotations-with-history.ts +332 -0
- package/src/features/annotations/hooks/use-auto-save.ts +94 -0
- package/src/features/annotations/index.ts +111 -0
- package/src/features/annotations/types/annotation.ts +201 -0
- package/src/features/annotations/types/index.ts +28 -0
- package/src/features/annotations/utils/history-manager.ts +73 -0
- package/src/features/annotations/utils/index.ts +2 -0
- package/src/features/annotations/utils/map-attachments-to-threads.ts +28 -0
- package/src/features/annotations/utils/position-comment-input.ts +136 -0
- package/src/features/annotations/utils/re-sequence-labels.ts +92 -0
- package/src/features/annotations/utils/validate-annotation-label.ts +120 -0
- package/src/features/auth/api/types.ts +101 -0
- package/src/features/auth/components/__tests__/role-gate.test.tsx +448 -0
- package/src/features/auth/components/__tests__/social-login-buttons.test.tsx +313 -0
- package/src/features/auth/components/auth-card.tsx +36 -0
- package/src/features/auth/components/forgot-password-form.tsx +115 -0
- package/src/features/auth/components/index.ts +14 -0
- package/src/features/auth/components/invite-code-input.tsx +155 -0
- package/src/features/auth/components/invited-user-form.tsx +309 -0
- package/src/features/auth/components/onboarding-form.tsx +195 -0
- package/src/features/auth/components/password-strength-indicator.tsx +113 -0
- package/src/features/auth/components/reset-password-form.tsx +138 -0
- package/src/features/auth/components/role-gate.tsx +124 -0
- package/src/features/auth/components/self-registration-choice.tsx +153 -0
- package/src/features/auth/components/sign-in-form.tsx +159 -0
- package/src/features/auth/components/sign-up-form.tsx +158 -0
- package/src/features/auth/components/social-login-buttons.tsx +219 -0
- package/src/features/auth/hooks/__tests__/use-onboarding.test.tsx +109 -0
- package/src/features/auth/hooks/__tests__/use-session.test.tsx +160 -0
- package/src/features/auth/hooks/index.ts +15 -0
- package/src/features/auth/hooks/use-accept-invitation.ts +194 -0
- package/src/features/auth/hooks/use-delete-account.ts +86 -0
- package/src/features/auth/hooks/use-force-verify.ts +89 -0
- package/src/features/auth/hooks/use-forgot-password.ts +144 -0
- package/src/features/auth/hooks/use-link-account.ts +78 -0
- package/src/features/auth/hooks/use-linked-accounts.ts +88 -0
- package/src/features/auth/hooks/use-onboarding.ts +159 -0
- package/src/features/auth/hooks/use-resend-verification.ts +139 -0
- package/src/features/auth/hooks/use-reset-password.ts +151 -0
- package/src/features/auth/hooks/use-reset-rate-limit.ts +56 -0
- package/src/features/auth/hooks/use-self-registration.ts +202 -0
- package/src/features/auth/hooks/use-session.ts +81 -0
- package/src/features/auth/hooks/use-sessions.ts +59 -0
- package/src/features/auth/hooks/use-sign-in.ts +234 -0
- package/src/features/auth/hooks/use-sign-out.ts +88 -0
- package/src/features/auth/hooks/use-sign-up.ts +194 -0
- package/src/features/auth/hooks/use-unlink-account.ts +100 -0
- package/src/features/auth/hooks/use-verify-email-token.ts +125 -0
- package/src/features/auth/index.ts +75 -0
- package/src/features/auth/screens/forgot-password-screen.tsx +33 -0
- package/src/features/auth/screens/index.ts +7 -0
- package/src/features/auth/screens/onboarding-screen.tsx +49 -0
- package/src/features/auth/screens/reset-password-screen.tsx +33 -0
- package/src/features/auth/screens/sign-in-screen.tsx +61 -0
- package/src/features/auth/screens/sign-up-screen.tsx +37 -0
- package/src/features/auth/screens/verify-email-confirm-screen.tsx +286 -0
- package/src/features/auth/screens/verify-email-screen.tsx +146 -0
- package/src/features/auth/types/index.ts +14 -0
- package/src/features/auth/utils/__tests__/validators.test.ts +331 -0
- package/src/features/auth/utils/password-strength.ts +129 -0
- package/src/features/auth/utils/validators.ts +124 -0
- package/src/features/email-preview/actions/render-email.ts +21 -0
- package/src/features/email-preview/screens/email-preview-screen.tsx +81 -0
- package/src/features/folder-scaffold-template/index.ts +0 -0
- package/src/features/instance-settings/components/index.ts +6 -0
- package/src/features/instance-settings/components/instance-settings-form.tsx +180 -0
- package/src/features/instance-settings/components/instance-status-display.tsx +158 -0
- package/src/features/instance-settings/index.ts +7 -0
- package/src/features/instance-settings/screens/index.ts +5 -0
- package/src/features/instance-settings/screens/instance-settings-screen.tsx +59 -0
- package/src/features/issues/README.md +330 -0
- package/src/features/issues/api/create-issue.ts +19 -0
- package/src/features/issues/api/delete-issue.ts +27 -0
- package/src/features/issues/api/get-issue-activities.ts +58 -0
- package/src/features/issues/api/get-issue-details.ts +25 -0
- package/src/features/issues/api/get-project-issues-server.ts +44 -0
- package/src/features/issues/api/get-project-issues.ts +21 -0
- package/src/features/issues/api/index.ts +44 -0
- package/src/features/issues/api/update-issue.ts +31 -0
- package/src/features/issues/api/upload-attachment.ts +81 -0
- package/src/features/issues/components/activity-timeline.tsx +440 -0
- package/src/features/issues/components/canvas-state-indicator.tsx +90 -0
- package/src/features/issues/components/centered-canvas-view.tsx +739 -0
- package/src/features/issues/components/image-selector.tsx +123 -0
- package/src/features/issues/components/image-upload-zone.tsx +262 -0
- package/src/features/issues/components/infinite-canvas-background.tsx +163 -0
- package/src/features/issues/components/inline-editable-select.tsx +173 -0
- package/src/features/issues/components/inline-editable-text.tsx +225 -0
- package/src/features/issues/components/inline-editable-textarea.tsx +219 -0
- package/src/features/issues/components/inline-editable-user-select.tsx +202 -0
- package/src/features/issues/components/issue-deletion-dialog.tsx +142 -0
- package/src/features/issues/components/issue-details-panel.tsx +101 -0
- package/src/features/issues/components/issues-create-dialog.tsx +578 -0
- package/src/features/issues/components/issues-list-filter.tsx +312 -0
- package/src/features/issues/components/issues-list.tsx +151 -0
- package/src/features/issues/components/issues-priority-badge.tsx +77 -0
- package/src/features/issues/components/issues-status-badge.tsx +100 -0
- package/src/features/issues/components/metadata-section.tsx +389 -0
- package/src/features/issues/components/optimized-attachment-view.tsx +528 -0
- package/src/features/issues/components/optimized-image.tsx +257 -0
- package/src/features/issues/components/panel-header.tsx +186 -0
- package/src/features/issues/components/preload.ts +31 -0
- package/src/features/issues/components/priority-selector.tsx +101 -0
- package/src/features/issues/components/responsive-issue-layout-skeleton.tsx +139 -0
- package/src/features/issues/components/responsive-issue-layout.tsx +617 -0
- package/src/features/issues/components/status-selector.tsx +320 -0
- package/src/features/issues/components/type-selector.tsx +102 -0
- package/src/features/issues/components/upload-progress-overlay.tsx +35 -0
- package/src/features/issues/components/uploaded-image-preview.tsx +173 -0
- package/src/features/issues/components/workflow-control.tsx +318 -0
- package/src/features/issues/components/zoom-controls.tsx +150 -0
- package/src/features/issues/config/index.ts +47 -0
- package/src/features/issues/config/options.ts +323 -0
- package/src/features/issues/config/workflow.ts +102 -0
- package/src/features/issues/docs/ARCHITECTURE_DIAGRAM.md +321 -0
- package/src/features/issues/docs/BACKEND_ARCHITECTURE.md +194 -0
- package/src/features/issues/docs/IMAGE_COMPONENTS_ARCHITECTURE.md +363 -0
- package/src/features/issues/docs/IMAGE_COMPONENTS_IMPORTS.md +412 -0
- package/src/features/issues/docs/IMPLEMENTATION_CHECKLIST.md +210 -0
- package/src/features/issues/docs/ROUTE_SETUP_COMPLETE.md +242 -0
- package/src/features/issues/hooks/index.ts +78 -0
- package/src/features/issues/hooks/use-canvas-transform.ts +255 -0
- package/src/features/issues/hooks/use-create-issue.ts +28 -0
- package/src/features/issues/hooks/use-elastic-scroll.ts +296 -0
- package/src/features/issues/hooks/use-issue-activities.ts +71 -0
- package/src/features/issues/hooks/use-issue-delete.ts +84 -0
- package/src/features/issues/hooks/use-issue-details.ts +70 -0
- package/src/features/issues/hooks/use-issue-filters.ts +50 -0
- package/src/features/issues/hooks/use-issue-update.ts +93 -0
- package/src/features/issues/hooks/use-keyboard-shortcuts.ts +104 -0
- package/src/features/issues/hooks/use-optimized-image.ts +228 -0
- package/src/features/issues/hooks/use-project-issues.ts +14 -0
- package/src/features/issues/index.ts +65 -0
- package/src/features/issues/screens/issue-details-screen.tsx +207 -0
- package/src/features/issues/screens/issue-details-skeletons.tsx +295 -0
- package/src/features/issues/screens/issue-share-screen.tsx +56 -0
- package/src/features/issues/types/index.ts +48 -0
- package/src/features/issues/types/issue.ts +291 -0
- package/src/features/issues/utils/filter-issues.ts +141 -0
- package/src/features/issues/utils/index.ts +14 -0
- package/src/features/legal/index.ts +1 -0
- package/src/features/legal/screens/privacy-policy-screen.tsx +307 -0
- package/src/features/notifications/api/get-notifications.ts +58 -0
- package/src/features/notifications/api/get-unread-count.ts +37 -0
- package/src/features/notifications/api/index.ts +35 -0
- package/src/features/notifications/api/mark-all-as-read.ts +37 -0
- package/src/features/notifications/api/mark-as-read.ts +41 -0
- package/src/features/notifications/api/types.ts +109 -0
- package/src/features/notifications/hooks/__tests__/use-notification-subscription.test.ts +206 -0
- package/src/features/notifications/hooks/index.ts +28 -0
- package/src/features/notifications/hooks/use-mark-all-as-read.ts +106 -0
- package/src/features/notifications/hooks/use-mark-as-read.ts +106 -0
- package/src/features/notifications/hooks/use-notification-subscription.ts +244 -0
- package/src/features/notifications/hooks/use-notification-toast.ts +161 -0
- package/src/features/notifications/hooks/use-notifications.ts +80 -0
- package/src/features/notifications/hooks/use-unread-count.ts +60 -0
- package/src/features/notifications/index.ts +48 -0
- package/src/features/notifications/utils/group-notifications.ts +152 -0
- package/src/features/notifications/utils/index.ts +9 -0
- package/src/features/projects/api/create-invitation.ts +45 -0
- package/src/features/projects/api/create-project.ts +64 -0
- package/src/features/projects/api/delete-project.ts +50 -0
- package/src/features/projects/api/get-project-activities.ts +43 -0
- package/src/features/projects/api/get-project-members.ts +53 -0
- package/src/features/projects/api/get-project.ts +49 -0
- package/src/features/projects/api/get-projects.ts +61 -0
- package/src/features/projects/api/index.ts +27 -0
- package/src/features/projects/api/join-project.ts +52 -0
- package/src/features/projects/api/leave-project.ts +51 -0
- package/src/features/projects/api/list-invitations.ts +36 -0
- package/src/features/projects/api/remove-member.ts +60 -0
- package/src/features/projects/api/resend-invitation.ts +36 -0
- package/src/features/projects/api/revoke-invitation.ts +36 -0
- package/src/features/projects/api/types.ts +286 -0
- package/src/features/projects/api/update-member-role.ts +70 -0
- package/src/features/projects/api/update-project.ts +69 -0
- package/src/features/projects/components/__tests__/project-detail-activity-feed.test.tsx +106 -0
- package/src/features/projects/components/__tests__/project-invitation-dialog.test.tsx +211 -0
- package/src/features/projects/components/__tests__/project-member-manager-dialog.test.tsx +254 -0
- package/src/features/projects/components/index.ts +21 -0
- package/src/features/projects/components/project-actions.tsx +248 -0
- package/src/features/projects/components/project-create-dialog.tsx +410 -0
- package/src/features/projects/components/project-detail-activity-feed.tsx +206 -0
- package/src/features/projects/components/project-detail-header.tsx +103 -0
- package/src/features/projects/components/project-detail-overview.tsx +128 -0
- package/src/features/projects/components/project-icon-selector.test.tsx +49 -0
- package/src/features/projects/components/project-icon-selector.tsx +76 -0
- package/src/features/projects/components/project-invitation-dialog.tsx +368 -0
- package/src/features/projects/components/project-issues.tsx +128 -0
- package/src/features/projects/components/project-leave-button.tsx +69 -0
- package/src/features/projects/components/project-list-card.tsx +246 -0
- package/src/features/projects/components/project-list-filters.tsx +320 -0
- package/src/features/projects/components/project-member-manager-dialog.tsx +419 -0
- package/src/features/projects/components/project-settings-dialog.tsx +204 -0
- package/src/features/projects/components/project-stats.tsx +46 -0
- package/src/features/projects/components/project-title-section.tsx +78 -0
- package/src/features/projects/config/icons.ts +91 -0
- package/src/features/projects/hooks/index.ts +28 -0
- package/src/features/projects/hooks/use-create-invitation.ts +83 -0
- package/src/features/projects/hooks/use-create-project.ts +77 -0
- package/src/features/projects/hooks/use-delete-project.ts +84 -0
- package/src/features/projects/hooks/use-join-project.ts +43 -0
- package/src/features/projects/hooks/use-leave-project.ts +84 -0
- package/src/features/projects/hooks/use-project-activities.ts +39 -0
- package/src/features/projects/hooks/use-project-filters.ts +86 -0
- package/src/features/projects/hooks/use-project-invitations.ts +66 -0
- package/src/features/projects/hooks/use-project-members.ts +57 -0
- package/src/features/projects/hooks/use-project.ts +67 -0
- package/src/features/projects/hooks/use-projects.ts +49 -0
- package/src/features/projects/hooks/use-recent-projects.ts +58 -0
- package/src/features/projects/hooks/use-remove-member.ts +89 -0
- package/src/features/projects/hooks/use-resend-invitation.ts +68 -0
- package/src/features/projects/hooks/use-revoke-invitation.ts +71 -0
- package/src/features/projects/hooks/use-team-member-suggestions.ts +133 -0
- package/src/features/projects/hooks/use-update-member-role.ts +92 -0
- package/src/features/projects/hooks/use-update-project.ts +88 -0
- package/src/features/projects/index.ts +91 -0
- package/src/features/projects/screens/index.ts +3 -0
- package/src/features/projects/screens/invitation-acceptance-screen.tsx +320 -0
- package/src/features/projects/screens/project-detail-screen-wrapper.tsx +47 -0
- package/src/features/projects/screens/project-detail-screen.tsx +661 -0
- package/src/features/projects/screens/projects-list-screen.tsx +161 -0
- package/src/features/projects/types/index.ts +59 -0
- package/src/features/projects/utils/format-helpers.ts +16 -0
- package/src/features/projects/utils/index.ts +2 -0
- package/src/features/projects/utils/role-helpers.ts +25 -0
- package/src/features/setup/api/complete-setup.ts +21 -0
- package/src/features/setup/api/create-admin.ts +21 -0
- package/src/features/setup/api/create-first-workspace.ts +21 -0
- package/src/features/setup/api/get-instance-status.ts +12 -0
- package/src/features/setup/api/get-service-health.ts +12 -0
- package/src/features/setup/api/index.ts +44 -0
- package/src/features/setup/api/save-instance-config.ts +21 -0
- package/src/features/setup/api/types.ts +122 -0
- package/src/features/setup/components/__tests__/setup-wizard-ui.test.tsx +362 -0
- package/src/features/setup/components/admin-account-step.tsx +205 -0
- package/src/features/setup/components/first-workspace-step.tsx +120 -0
- package/src/features/setup/components/index.ts +9 -0
- package/src/features/setup/components/instance-config-step.tsx +107 -0
- package/src/features/setup/components/mail-config-step.tsx +205 -0
- package/src/features/setup/components/sample-data-step.tsx +131 -0
- package/src/features/setup/components/service-health-step.tsx +180 -0
- package/src/features/setup/components/service-status-badge.tsx +50 -0
- package/src/features/setup/components/setup-progress.tsx +103 -0
- package/src/features/setup/components/setup-wizard.tsx +169 -0
- package/src/features/setup/hooks/index.ts +12 -0
- package/src/features/setup/hooks/use-complete-setup.ts +23 -0
- package/src/features/setup/hooks/use-create-admin.ts +25 -0
- package/src/features/setup/hooks/use-create-first-workspace.ts +24 -0
- package/src/features/setup/hooks/use-instance-status.ts +21 -0
- package/src/features/setup/hooks/use-save-instance-config.ts +23 -0
- package/src/features/setup/hooks/use-service-health.ts +21 -0
- package/src/features/setup/hooks/use-setup-wizard.ts +152 -0
- package/src/features/setup/hooks/use-workspace-mode.ts +19 -0
- package/src/features/setup/index.ts +30 -0
- package/src/features/setup/screens/index.ts +1 -0
- package/src/features/setup/screens/setup-screen.tsx +40 -0
- package/src/features/setup/types/index.ts +69 -0
- package/src/features/setup/utils/index.ts +78 -0
- package/src/features/team-settings/components/index.ts +39 -0
- package/src/features/team-settings/components/loading-states.tsx +296 -0
- package/src/features/team-settings/components/permission-guard.tsx +23 -0
- package/src/features/team-settings/components/settings-card.tsx +22 -0
- package/src/features/team-settings/components/settings-context-provider.tsx +51 -0
- package/src/features/team-settings/components/settings-error-boundary.tsx +366 -0
- package/src/features/team-settings/components/settings-navigation.tsx +87 -0
- package/src/features/team-settings/components/settings-section.tsx +23 -0
- package/src/features/team-settings/components/team-danger-zone.tsx +275 -0
- package/src/features/team-settings/components/team-information-form.tsx +116 -0
- package/src/features/team-settings/components/team-invitations-list.tsx +463 -0
- package/src/features/team-settings/components/team-members-list.tsx +342 -0
- package/src/features/team-settings/components/team-permission-guard.tsx +56 -0
- package/src/features/team-settings/components/team-setting-integrations.tsx +27 -0
- package/src/features/team-settings/components/team-setting-member.tsx +28 -0
- package/src/features/team-settings/components/team-settings-general.tsx +131 -0
- package/src/features/team-settings/components/transfer-ownership-modal.tsx +164 -0
- package/src/features/team-settings/components/unauthorized-access.tsx +52 -0
- package/src/features/team-settings/hooks/__tests__/use-team-settings.test.tsx +139 -0
- package/src/features/team-settings/hooks/index.ts +1 -0
- package/src/features/team-settings/hooks/use-team-settings.ts +148 -0
- package/src/features/team-settings/hooks/use-transfer-ownership.ts +45 -0
- package/src/features/team-settings/index.ts +25 -0
- package/src/features/team-settings/screens/index.ts +1 -0
- package/src/features/team-settings/screens/team-settings-screen.tsx +33 -0
- package/src/features/team-settings/types/index.ts +78 -0
- package/src/features/team-settings/utils/index.ts +6 -0
- package/src/features/team-settings/utils/mock-data.ts +40 -0
- package/src/features/teams/api/cancel-invitation.ts +25 -0
- package/src/features/teams/api/create-invitation.ts +28 -0
- package/src/features/teams/api/create-team.ts +14 -0
- package/src/features/teams/api/delete-team.ts +19 -0
- package/src/features/teams/api/get-invitations.ts +25 -0
- package/src/features/teams/api/get-team-members.ts +25 -0
- package/src/features/teams/api/get-team.ts +13 -0
- package/src/features/teams/api/get-teams.ts +19 -0
- package/src/features/teams/api/index.ts +49 -0
- package/src/features/teams/api/leave-team.ts +22 -0
- package/src/features/teams/api/remove-member.ts +25 -0
- package/src/features/teams/api/resend-invitation.ts +26 -0
- package/src/features/teams/api/switch-team.ts +13 -0
- package/src/features/teams/api/types.ts +122 -0
- package/src/features/teams/api/update-member-roles.ts +28 -0
- package/src/features/teams/api/update-team.ts +17 -0
- package/src/features/teams/components/create-team-dialog.tsx +105 -0
- package/src/features/teams/hooks/__tests__/cache-invalidation.property.test.tsx +268 -0
- package/src/features/teams/hooks/index.ts +35 -0
- package/src/features/teams/hooks/use-can-manage-members.ts +21 -0
- package/src/features/teams/hooks/use-can-manage-team.ts +21 -0
- package/src/features/teams/hooks/use-cancel-invitation.ts +52 -0
- package/src/features/teams/hooks/use-create-invitation.ts +59 -0
- package/src/features/teams/hooks/use-create-team.ts +38 -0
- package/src/features/teams/hooks/use-delete-team.ts +43 -0
- package/src/features/teams/hooks/use-invitations.ts +31 -0
- package/src/features/teams/hooks/use-leave-team.ts +43 -0
- package/src/features/teams/hooks/use-remove-member.ts +58 -0
- package/src/features/teams/hooks/use-resend-invitation.ts +52 -0
- package/src/features/teams/hooks/use-switch-team.ts +41 -0
- package/src/features/teams/hooks/use-team-members.ts +31 -0
- package/src/features/teams/hooks/use-team-permissions.ts +102 -0
- package/src/features/teams/hooks/use-team.ts +30 -0
- package/src/features/teams/hooks/use-teams.ts +26 -0
- package/src/features/teams/hooks/use-update-member-roles.ts +64 -0
- package/src/features/teams/hooks/use-update-team.ts +47 -0
- package/src/features/teams/index.ts +111 -0
- package/src/features/user-settings/actions/set-password.ts +63 -0
- package/src/features/user-settings/api/index.ts +16 -0
- package/src/features/user-settings/components/__tests__/security-settings.test.tsx +125 -0
- package/src/features/user-settings/components/delete-account-dialog.tsx +185 -0
- package/src/features/user-settings/components/index.ts +13 -0
- package/src/features/user-settings/components/integrations-list.tsx +152 -0
- package/src/features/user-settings/components/notification-preferences.tsx +112 -0
- package/src/features/user-settings/components/other-settings.tsx +126 -0
- package/src/features/user-settings/components/password-section.tsx +297 -0
- package/src/features/user-settings/components/security-settings.tsx +184 -0
- package/src/features/user-settings/components/user-preferences.tsx +146 -0
- package/src/features/user-settings/hooks/index.ts +8 -0
- package/src/features/user-settings/hooks/use-notification-preferences.ts +65 -0
- package/src/features/user-settings/hooks/use-user-preferences.ts +52 -0
- package/src/features/user-settings/index.ts +22 -0
- package/src/features/user-settings/screens/index.ts +11 -0
- package/src/features/user-settings/screens/integrations-screen.tsx +24 -0
- package/src/features/user-settings/screens/notifications-screen.tsx +29 -0
- package/src/features/user-settings/screens/other-settings-screen.tsx +24 -0
- package/src/features/user-settings/screens/setting-preferences-screen.tsx +24 -0
- package/src/features/user-settings/screens/user-settings-screen.tsx +23 -0
- package/src/features/user-settings/types/index.ts +42 -0
- package/src/features/user-settings/utils/index.ts +8 -0
- package/src/hooks/use-long-press.ts +196 -0
- package/src/hooks/use-media-upload.ts +95 -0
- package/src/hooks/use-mobile.ts +19 -0
- package/src/hooks/use-team.ts +32 -0
- package/src/instrumentation.ts +14 -0
- package/src/lib/__tests__/auth-config.test.ts +166 -0
- package/src/lib/__tests__/config.test.ts +42 -0
- package/src/lib/__tests__/db.test.ts +101 -0
- package/src/lib/__tests__/env.property.test.ts +197 -0
- package/src/lib/__tests__/env.test.ts +177 -0
- package/src/lib/__tests__/health-check.test.ts +87 -0
- package/src/lib/__tests__/oauth-errors.test.ts +184 -0
- package/src/lib/__tests__/oauth-redirect.test.ts +224 -0
- package/src/lib/__tests__/oauth-scopes.test.ts +268 -0
- package/src/lib/__tests__/storage.test.ts +58 -0
- package/src/lib/__tests__/url-validator.test.ts +232 -0
- package/src/lib/api-client.ts +93 -0
- package/src/lib/auth-client.ts +5 -0
- package/src/lib/auth-config.ts +146 -0
- package/src/lib/auth.ts +209 -0
- package/src/lib/config.ts +228 -0
- package/src/lib/cors.ts +96 -0
- package/src/lib/date.ts +16 -0
- package/src/lib/db.ts +88 -0
- package/src/lib/env.ts +489 -0
- package/src/lib/feedback.ts +29 -0
- package/src/lib/health-check.ts +229 -0
- package/src/lib/logger.ts +204 -0
- package/src/lib/oauth-errors.ts +138 -0
- package/src/lib/performance.ts +367 -0
- package/src/lib/query-server.ts +35 -0
- package/src/lib/query.tsx +43 -0
- package/src/lib/resend.ts +36 -0
- package/src/lib/security-headers.ts +165 -0
- package/src/lib/setup-status.ts +34 -0
- package/src/lib/storage.ts +150 -0
- package/src/lib/supabase-client.ts +58 -0
- package/src/lib/testing/test-db.ts +75 -0
- package/src/lib/url-validator.ts +168 -0
- package/src/lib/utils.ts +6 -0
- package/src/mocks/README.md +42 -0
- package/src/mocks/activity.fixtures.ts +281 -0
- package/src/mocks/annotation.fixtures.ts +325 -0
- package/src/mocks/attachment.fixtures.ts +80 -0
- package/src/mocks/email.fixtures.ts +61 -0
- package/src/mocks/index.ts +33 -0
- package/src/mocks/issue.fixtures.ts +364 -0
- package/src/mocks/landing.fixtures.ts +118 -0
- package/src/mocks/notification.fixtures.ts +111 -0
- package/src/mocks/project-activity.fixtures.ts +69 -0
- package/src/mocks/project-invitation.fixtures.ts +95 -0
- package/src/mocks/project-member.fixtures.ts +93 -0
- package/src/mocks/project.fixtures.ts +249 -0
- package/src/mocks/settings.fixtures.ts +56 -0
- package/src/mocks/share.fixtures.ts +48 -0
- package/src/mocks/team-member.fixtures.ts +147 -0
- package/src/mocks/team.fixtures.ts +35 -0
- package/src/mocks/user-settings.fixtures.ts +77 -0
- package/src/mocks/user.fixtures.ts +21 -0
- package/src/providers/theme-provider.tsx +11 -0
- package/src/proxy/__tests__/proxy-setup-gate.test.ts +43 -0
- package/src/proxy.ts +169 -0
- package/src/server/annotations/__tests__/annotation-limit.property.test.ts +291 -0
- package/src/server/annotations/__tests__/attachment-deletion-cascade.property.test.ts +385 -0
- package/src/server/annotations/__tests__/comment-delete-authorization.property.test.ts +419 -0
- package/src/server/annotations/__tests__/sanitize.property.test.ts +302 -0
- package/src/server/annotations/annotation-service.ts +305 -0
- package/src/server/annotations/comment-service.ts +288 -0
- package/src/server/annotations/index.ts +61 -0
- package/src/server/annotations/permission-utils.ts +125 -0
- package/src/server/annotations/sanitize.ts +134 -0
- package/src/server/annotations/types.ts +161 -0
- package/src/server/audit/audit-service.ts +85 -0
- package/src/server/audit/index.ts +11 -0
- package/src/server/audit/types.ts +75 -0
- package/src/server/auth/__tests__/README.md +368 -0
- package/src/server/auth/__tests__/account-linking.integration.test.ts +410 -0
- package/src/server/auth/__tests__/auth-integration.test.ts +811 -0
- package/src/server/auth/__tests__/cookies.test.ts +337 -0
- package/src/server/auth/__tests__/login.property.test.ts +428 -0
- package/src/server/auth/__tests__/oauth-integration.test.ts +555 -0
- package/src/server/auth/__tests__/password.test.ts +194 -0
- package/src/server/auth/__tests__/rate-limiter.test.ts +450 -0
- package/src/server/auth/__tests__/rbac.test.ts +474 -0
- package/src/server/auth/__tests__/session.test.ts +599 -0
- package/src/server/auth/__tests__/signup.property.test.ts +224 -0
- package/src/server/auth/__tests__/token-encryption.test.ts +171 -0
- package/src/server/auth/__tests__/tokens.test.ts +476 -0
- package/src/server/auth/__tests__/verify-email.property.test.ts +372 -0
- package/src/server/auth/cookies.ts +184 -0
- package/src/server/auth/password.ts +94 -0
- package/src/server/auth/rate-limiter.ts +257 -0
- package/src/server/auth/rbac.ts +1168 -0
- package/src/server/auth/session.ts +392 -0
- package/src/server/auth/token-encryption.ts +201 -0
- package/src/server/auth/tokens.ts +397 -0
- package/src/server/db/schema/account.ts +21 -0
- package/src/server/db/schema/annotation-read-status.ts +57 -0
- package/src/server/db/schema/better-auth-verifications.ts +27 -0
- package/src/server/db/schema/email-jobs.ts +24 -0
- package/src/server/db/schema/index.ts +20 -0
- package/src/server/db/schema/instance-settings.ts +42 -0
- package/src/server/db/schema/issue-activities.ts +97 -0
- package/src/server/db/schema/issue-attachments.ts +101 -0
- package/src/server/db/schema/issues.ts +139 -0
- package/src/server/db/schema/notifications.ts +119 -0
- package/src/server/db/schema/project-activities.ts +116 -0
- package/src/server/db/schema/project-invitations.ts +34 -0
- package/src/server/db/schema/project-members.ts +29 -0
- package/src/server/db/schema/projects.ts +46 -0
- package/src/server/db/schema/sessions.ts +17 -0
- package/src/server/db/schema/team-invitations.ts +22 -0
- package/src/server/db/schema/team-members.ts +18 -0
- package/src/server/db/schema/teams.ts +15 -0
- package/src/server/db/schema/user-roles.ts +14 -0
- package/src/server/db/schema/users.ts +17 -0
- package/src/server/db/schema/verification-tokens.ts +15 -0
- package/src/server/email/README.md +258 -0
- package/src/server/email/__tests__/client.property.test.ts +218 -0
- package/src/server/email/__tests__/payload.property.test.ts +205 -0
- package/src/server/email/__tests__/queue.test.ts +407 -0
- package/src/server/email/__tests__/render-template.test.tsx +172 -0
- package/src/server/email/client.ts +70 -0
- package/src/server/email/index.ts +20 -0
- package/src/server/email/providers/console-provider.ts +43 -0
- package/src/server/email/providers/index.ts +5 -0
- package/src/server/email/providers/resend-provider.ts +59 -0
- package/src/server/email/providers/smtp-provider.ts +65 -0
- package/src/server/email/queue.ts +365 -0
- package/src/server/email/render-template.tsx +117 -0
- package/src/server/email/templates/layout.tsx +66 -0
- package/src/server/email/templates/ownership-transfer-email.tsx +75 -0
- package/src/server/email/templates/password-reset-email.tsx +72 -0
- package/src/server/email/templates/project-invitation-email.tsx +70 -0
- package/src/server/email/templates/security-alert-email.tsx +161 -0
- package/src/server/email/templates/team-invitation-email.tsx +68 -0
- package/src/server/email/templates/verification-email.tsx +61 -0
- package/src/server/email/templates/welcome-email.tsx +60 -0
- package/src/server/email/worker.ts +182 -0
- package/src/server/issues/activity-service.ts +422 -0
- package/src/server/issues/attachment-service.ts +379 -0
- package/src/server/issues/index.ts +68 -0
- package/src/server/issues/issue-service.ts +569 -0
- package/src/server/issues/types.ts +233 -0
- package/src/server/notifications/__tests__/notification-service.integration.test.ts +405 -0
- package/src/server/notifications/index.ts +13 -0
- package/src/server/notifications/notification-service.ts +526 -0
- package/src/server/notifications/types.ts +234 -0
- package/src/server/projects/__tests__/activity-logging.integration.test.ts +319 -0
- package/src/server/projects/__tests__/invitation-email.integration.test.ts +258 -0
- package/src/server/projects/__tests__/invitation-service.integration.test.ts +651 -0
- package/src/server/projects/__tests__/member-service.property.test.ts +397 -0
- package/src/server/projects/__tests__/project-service.property.test.ts +116 -0
- package/src/server/projects/activity-service.ts +548 -0
- package/src/server/projects/index.ts +11 -0
- package/src/server/projects/invitation-service.ts +773 -0
- package/src/server/projects/member-service.ts +458 -0
- package/src/server/projects/project-service.ts +491 -0
- package/src/server/projects/schemas.ts +310 -0
- package/src/server/projects/types.ts +166 -0
- package/src/server/projects/utils.ts +128 -0
- package/src/server/setup/__tests__/health-check.property.test.ts +70 -0
- package/src/server/setup/__tests__/sample-data.property.test.ts +82 -0
- package/src/server/setup/__tests__/setup.property.test.ts +95 -0
- package/src/server/setup/health-check-service.ts +294 -0
- package/src/server/setup/index.ts +35 -0
- package/src/server/setup/sample-data-service.ts +233 -0
- package/src/server/setup/setup-service.ts +229 -0
- package/src/server/setup/types.ts +96 -0
- package/src/server/teams/__tests__/export.property.test.ts +542 -0
- package/src/server/teams/__tests__/get-members.integration.test.ts +105 -0
- package/src/server/teams/__tests__/invitation-flow.integration.test.ts +402 -0
- package/src/server/teams/__tests__/invitations.property.test.ts +235 -0
- package/src/server/teams/__tests__/member-management-flow.integration.test.ts +306 -0
- package/src/server/teams/__tests__/members.property.test.ts +180 -0
- package/src/server/teams/__tests__/ownership-transfer.property.test.ts +173 -0
- package/src/server/teams/__tests__/resource-limits.property.test.ts +382 -0
- package/src/server/teams/__tests__/team-context-management.integration.test.ts +396 -0
- package/src/server/teams/__tests__/team-context.property.test.ts +854 -0
- package/src/server/teams/__tests__/team-creation-flow.integration.test.ts +310 -0
- package/src/server/teams/__tests__/team-creation.property.test.ts +280 -0
- package/src/server/teams/errors.ts +396 -0
- package/src/server/teams/export-service.ts +383 -0
- package/src/server/teams/index.ts +10 -0
- package/src/server/teams/invitation-service.ts +708 -0
- package/src/server/teams/member-service.ts +334 -0
- package/src/server/teams/resource-limits.ts +211 -0
- package/src/server/teams/slug.ts +58 -0
- package/src/server/teams/team-context.ts +648 -0
- package/src/server/teams/team-service.ts +660 -0
- package/src/server/teams/types.ts +81 -0
- package/src/server/teams/validation.ts +209 -0
- package/src/styles/globals.css +160 -0
- package/src/types/deployment.ts +39 -0
- package/supabase/config.toml +357 -0
- package/supabase/seed.sql +480 -0
- package/tests/e2e/.gitkeep +0 -0
- package/tests/e2e/QUICK_START.md +98 -0
- package/tests/e2e/README.md +301 -0
- package/tests/e2e/auth.spec.ts +583 -0
- package/tests/e2e/global-setup.ts +23 -0
- package/tests/e2e/global-teardown.ts +23 -0
- package/tests/e2e/helpers/auth-helpers.ts +310 -0
- package/tests/e2e/helpers/test-fixtures.ts +286 -0
- package/tests/e2e/smoke-test.spec.ts +330 -0
- package/tsconfig.json +48 -0
- package/vitest.config.ts +50 -0
- package/vitest.setup.ts +56 -0
- package/dist/index.js +0 -778
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "7",
|
|
3
|
+
"dialect": "postgresql",
|
|
4
|
+
"entries": [
|
|
5
|
+
{
|
|
6
|
+
"idx": 0,
|
|
7
|
+
"version": "7",
|
|
8
|
+
"when": 1768745196770,
|
|
9
|
+
"tag": "0000_purple_wilson_fisk",
|
|
10
|
+
"breakpoints": true
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"idx": 1,
|
|
14
|
+
"version": "7",
|
|
15
|
+
"when": 1742601600000,
|
|
16
|
+
"tag": "0001_drop_instance_public_url",
|
|
17
|
+
"breakpoints": true
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { defineConfig } from "drizzle-kit";
|
|
2
|
+
import * as dotenv from "dotenv";
|
|
3
|
+
|
|
4
|
+
dotenv.config({ path: ".env.local" });
|
|
5
|
+
|
|
6
|
+
export default defineConfig({
|
|
7
|
+
schema: "./src/server/db/schema/index.ts",
|
|
8
|
+
out: "./drizzle",
|
|
9
|
+
dialect: "postgresql",
|
|
10
|
+
dbCredentials: {
|
|
11
|
+
url: process.env.DIRECT_URL!,
|
|
12
|
+
},
|
|
13
|
+
});
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { defineConfig, globalIgnores } from "eslint/config";
|
|
2
|
+
import nextVitals from "eslint-config-next/core-web-vitals";
|
|
3
|
+
import nextTs from "eslint-config-next/typescript";
|
|
4
|
+
|
|
5
|
+
const eslintConfig = defineConfig([
|
|
6
|
+
...nextVitals,
|
|
7
|
+
...nextTs,
|
|
8
|
+
// Override default ignores of eslint-config-next.
|
|
9
|
+
globalIgnores([
|
|
10
|
+
// Default ignores of eslint-config-next:
|
|
11
|
+
".next/**",
|
|
12
|
+
"out/**",
|
|
13
|
+
"build/**",
|
|
14
|
+
"next-env.d.ts",
|
|
15
|
+
// Build artifacts — never lint compiled output
|
|
16
|
+
"cli/dist/**",
|
|
17
|
+
// Agent/skill utility scripts — not app code
|
|
18
|
+
".agents/**",
|
|
19
|
+
]),
|
|
20
|
+
{
|
|
21
|
+
files: ["**/*.ts", "**/*.tsx"],
|
|
22
|
+
rules: {
|
|
23
|
+
// Relax noisy rules while we stabilize CI
|
|
24
|
+
"@typescript-eslint/no-explicit-any": "warn",
|
|
25
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
26
|
+
"react/no-unescaped-entities": "warn",
|
|
27
|
+
"react-hooks/purity": "off",
|
|
28
|
+
"react-hooks/refs": "warn",
|
|
29
|
+
"react-hooks/set-state-in-effect": "warn",
|
|
30
|
+
"react-hooks/preserve-manual-memoization": "off",
|
|
31
|
+
"react-hooks/rules-of-hooks": "warn",
|
|
32
|
+
"@next/next/no-html-link-for-pages": "warn",
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
files: ["**/__tests__/**/*.{ts,tsx}", "tests/**/*.{ts,tsx}"],
|
|
37
|
+
rules: {
|
|
38
|
+
"@typescript-eslint/no-explicit-any": "off",
|
|
39
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
]);
|
|
43
|
+
|
|
44
|
+
export default eslintConfig;
|
package/install.sh
ADDED
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
# =============================================================================
|
|
3
|
+
# UI SyncUp — Quick-start installer
|
|
4
|
+
# =============================================================================
|
|
5
|
+
#
|
|
6
|
+
# Usage:
|
|
7
|
+
# bash install.sh
|
|
8
|
+
# curl -fsSL https://raw.githubusercontent.com/BYKHD/ui-syncup/main/install.sh | bash
|
|
9
|
+
#
|
|
10
|
+
# What it does:
|
|
11
|
+
# 1. Checks Docker is installed and running
|
|
12
|
+
# 2. Downloads docker/compose.yml from the repo
|
|
13
|
+
# 3. Downloads .env.example as .env (skipped if .env already exists)
|
|
14
|
+
# 4. Runs a 4-question wizard (DB / Cache / Storage / Email)
|
|
15
|
+
# 5. Writes completed .env with COMPOSE_PROFILES set
|
|
16
|
+
# 6. Runs docker compose up -d with the selected profiles
|
|
17
|
+
# =============================================================================
|
|
18
|
+
|
|
19
|
+
set -euo pipefail
|
|
20
|
+
|
|
21
|
+
COMPOSE_URL="https://raw.githubusercontent.com/BYKHD/ui-syncup/main/docker/compose.yml"
|
|
22
|
+
ENV_EXAMPLE_URL="https://raw.githubusercontent.com/BYKHD/ui-syncup/main/.env.example"
|
|
23
|
+
|
|
24
|
+
RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[0;33m'
|
|
25
|
+
BLUE='\033[0;34m'; BOLD='\033[1m'; NC='\033[0m'
|
|
26
|
+
|
|
27
|
+
info() { echo -e "${BLUE}ℹ${NC} $*"; }
|
|
28
|
+
success() { echo -e "${GREEN}✔${NC} $*"; }
|
|
29
|
+
warn() { echo -e "${YELLOW}⚠${NC} $*"; }
|
|
30
|
+
error() { echo -e "${RED}✖${NC} $*" >&2; }
|
|
31
|
+
|
|
32
|
+
declare -A ENV_VARS=()
|
|
33
|
+
set_env() { ENV_VARS["$1"]="$2"; }
|
|
34
|
+
|
|
35
|
+
write_env_file() {
|
|
36
|
+
local tmpfile
|
|
37
|
+
tmpfile="$(mktemp)"
|
|
38
|
+
for key in "${!ENV_VARS[@]}"; do
|
|
39
|
+
echo "${key}=${ENV_VARS[$key]}"
|
|
40
|
+
done > "$tmpfile"
|
|
41
|
+
mv "$tmpfile" .env
|
|
42
|
+
chmod 600 .env
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
main() {
|
|
46
|
+
echo -e "\n${BLUE}${BOLD}UI SyncUp — Quick-start installer${NC}\n"
|
|
47
|
+
|
|
48
|
+
# ── Docker check ───────────────────────────────────────────────────────────
|
|
49
|
+
if ! command -v docker &>/dev/null; then
|
|
50
|
+
error "Docker is not installed."
|
|
51
|
+
error "Install guide: https://docs.docker.com/get-docker/"
|
|
52
|
+
exit 1
|
|
53
|
+
fi
|
|
54
|
+
if ! docker info &>/dev/null 2>&1; then
|
|
55
|
+
error "Docker is not running. Please start Docker and try again."
|
|
56
|
+
exit 1
|
|
57
|
+
fi
|
|
58
|
+
success "Docker $(docker --version | awk '{print $3}' | tr -d ',')"
|
|
59
|
+
|
|
60
|
+
# ── Download compose.yml ───────────────────────────────────────────────────
|
|
61
|
+
if [[ -f compose.yml ]]; then
|
|
62
|
+
info "compose.yml already exists — skipping download"
|
|
63
|
+
else
|
|
64
|
+
info "Downloading compose.yml..."
|
|
65
|
+
curl -fsSL "$COMPOSE_URL" -o compose.yml
|
|
66
|
+
success "Downloaded compose.yml"
|
|
67
|
+
fi
|
|
68
|
+
|
|
69
|
+
# ── Setup .env ─────────────────────────────────────────────────────────────
|
|
70
|
+
if [[ -f .env ]]; then
|
|
71
|
+
warn ".env already exists — prompting only for values not yet set"
|
|
72
|
+
while IFS='=' read -r key val || [[ -n "$key" ]]; do
|
|
73
|
+
[[ "$key" =~ ^[[:space:]]*# || -z "$key" ]] && continue
|
|
74
|
+
ENV_VARS["$key"]="${val:-}"
|
|
75
|
+
done < .env
|
|
76
|
+
else
|
|
77
|
+
curl -fsSL "$ENV_EXAMPLE_URL" -o .env
|
|
78
|
+
while IFS='=' read -r key val || [[ -n "$key" ]]; do
|
|
79
|
+
[[ "$key" =~ ^[[:space:]]*# || -z "$key" ]] && continue
|
|
80
|
+
ENV_VARS["$key"]="${val:-}"
|
|
81
|
+
done < .env
|
|
82
|
+
success "Downloaded .env template"
|
|
83
|
+
fi
|
|
84
|
+
|
|
85
|
+
# ── Wizard ─────────────────────────────────────────────────────────────────
|
|
86
|
+
read -r -p "Public URL of your app (e.g. https://syncup.example.com): " APP_URL
|
|
87
|
+
set_env BETTER_AUTH_URL "$APP_URL"
|
|
88
|
+
set_env NEXT_PUBLIC_APP_URL "$APP_URL"
|
|
89
|
+
set_env NEXT_PUBLIC_API_URL "${APP_URL}/api"
|
|
90
|
+
|
|
91
|
+
if [[ -z "${ENV_VARS[BETTER_AUTH_SECRET]:-}" ]]; then
|
|
92
|
+
set_env BETTER_AUTH_SECRET "$(openssl rand -hex 32)"
|
|
93
|
+
success "Generated BETTER_AUTH_SECRET"
|
|
94
|
+
fi
|
|
95
|
+
|
|
96
|
+
PROFILES=()
|
|
97
|
+
|
|
98
|
+
# Database
|
|
99
|
+
echo ""
|
|
100
|
+
echo "Database backend:"
|
|
101
|
+
echo " 1) Bundled PostgreSQL (recommended)"
|
|
102
|
+
echo " 2) External (Supabase / Neon / other)"
|
|
103
|
+
read -r -p "Choice [1]: " DB_CHOICE; DB_CHOICE="${DB_CHOICE:-1}"
|
|
104
|
+
if [[ "$DB_CHOICE" == "1" ]]; then
|
|
105
|
+
PROFILES+=(db)
|
|
106
|
+
read -r -p "PostgreSQL password (min 8 chars): " PG_PASS
|
|
107
|
+
set_env POSTGRES_PASSWORD "$PG_PASS"
|
|
108
|
+
set_env DATABASE_URL "postgresql://syncup:${PG_PASS}@postgres:5432/ui_syncup"
|
|
109
|
+
set_env DIRECT_URL "postgresql://syncup:${PG_PASS}@postgres:5432/ui_syncup"
|
|
110
|
+
else
|
|
111
|
+
read -r -p "DATABASE_URL (postgresql://...): " DB_URL
|
|
112
|
+
set_env DATABASE_URL "$DB_URL"
|
|
113
|
+
read -r -p "DIRECT_URL (non-pooled, press enter to reuse DATABASE_URL): " D_URL
|
|
114
|
+
set_env DIRECT_URL "${D_URL:-$DB_URL}"
|
|
115
|
+
fi
|
|
116
|
+
|
|
117
|
+
# Cache
|
|
118
|
+
echo ""
|
|
119
|
+
echo "Cache backend:"
|
|
120
|
+
echo " 1) Bundled Redis (recommended)"
|
|
121
|
+
echo " 2) External (Upstash / Redis Cloud)"
|
|
122
|
+
read -r -p "Choice [1]: " CACHE_CHOICE; CACHE_CHOICE="${CACHE_CHOICE:-1}"
|
|
123
|
+
if [[ "$CACHE_CHOICE" == "1" ]]; then
|
|
124
|
+
PROFILES+=(cache)
|
|
125
|
+
set_env REDIS_URL "redis://redis:6379"
|
|
126
|
+
else
|
|
127
|
+
read -r -p "REDIS_URL (redis://...): " REDIS_URL
|
|
128
|
+
set_env REDIS_URL "$REDIS_URL"
|
|
129
|
+
fi
|
|
130
|
+
|
|
131
|
+
# Storage
|
|
132
|
+
echo ""
|
|
133
|
+
echo "Storage backend:"
|
|
134
|
+
echo " 1) Bundled MinIO (recommended)"
|
|
135
|
+
echo " 2) External S3 (AWS / R2 / Backblaze)"
|
|
136
|
+
read -r -p "Choice [1]: " STORAGE_CHOICE; STORAGE_CHOICE="${STORAGE_CHOICE:-1}"
|
|
137
|
+
if [[ "$STORAGE_CHOICE" == "1" ]]; then
|
|
138
|
+
PROFILES+=(storage)
|
|
139
|
+
MINIO_PASS="$(openssl rand -hex 16)"
|
|
140
|
+
set_env MINIO_ROOT_USER "minioadmin"
|
|
141
|
+
set_env MINIO_ROOT_PASSWORD "$MINIO_PASS"
|
|
142
|
+
set_env STORAGE_ENDPOINT "http://minio:9000"
|
|
143
|
+
set_env STORAGE_REGION "us-east-1"
|
|
144
|
+
set_env STORAGE_ACCESS_KEY_ID "minioadmin"
|
|
145
|
+
set_env STORAGE_SECRET_ACCESS_KEY "$MINIO_PASS"
|
|
146
|
+
set_env STORAGE_ATTACHMENTS_BUCKET "ui-syncup-attachments"
|
|
147
|
+
set_env STORAGE_MEDIA_BUCKET "ui-syncup-media"
|
|
148
|
+
set_env STORAGE_ATTACHMENTS_PUBLIC_URL "${APP_URL}/storage/attachments"
|
|
149
|
+
set_env STORAGE_MEDIA_PUBLIC_URL "${APP_URL}/storage/media"
|
|
150
|
+
else
|
|
151
|
+
read -r -p "Storage endpoint URL: " S_EP
|
|
152
|
+
read -r -p "Storage access key ID: " S_KEY
|
|
153
|
+
read -r -p "Storage secret access key: " S_SECRET
|
|
154
|
+
set_env STORAGE_ENDPOINT "$S_EP"
|
|
155
|
+
set_env STORAGE_ACCESS_KEY_ID "$S_KEY"
|
|
156
|
+
set_env STORAGE_SECRET_ACCESS_KEY "$S_SECRET"
|
|
157
|
+
fi
|
|
158
|
+
|
|
159
|
+
# Record active profiles so bare `docker compose up -d` works on re-runs
|
|
160
|
+
PROFILES_STR="$(IFS=,; echo "${PROFILES[*]:-}")"
|
|
161
|
+
set_env COMPOSE_PROFILES "$PROFILES_STR"
|
|
162
|
+
|
|
163
|
+
# ── Write .env ─────────────────────────────────────────────────────────────
|
|
164
|
+
write_env_file
|
|
165
|
+
success ".env written (permissions: 0600)"
|
|
166
|
+
|
|
167
|
+
# ── Start the stack ────────────────────────────────────────────────────────
|
|
168
|
+
info "Starting UI SyncUp..."
|
|
169
|
+
PROFILE_FLAGS=()
|
|
170
|
+
for p in "${PROFILES[@]:-}"; do
|
|
171
|
+
PROFILE_FLAGS+=("--profile" "$p")
|
|
172
|
+
done
|
|
173
|
+
docker compose -f compose.yml "${PROFILE_FLAGS[@]}" up -d
|
|
174
|
+
|
|
175
|
+
success "UI SyncUp is running!"
|
|
176
|
+
info "Open: ${APP_URL}"
|
|
177
|
+
[[ ${#PROFILES[@]} -gt 0 ]] && info "Active profiles: ${PROFILES_STR}"
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
main "$@"
|
package/next.config.ts
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import type { NextConfig } from "next"
|
|
2
|
+
|
|
3
|
+
// Validate environment variables at build time
|
|
4
|
+
// This will throw an error and stop the build if validation fails
|
|
5
|
+
import "./src/lib/env"
|
|
6
|
+
|
|
7
|
+
const nextConfig: NextConfig = {
|
|
8
|
+
output: "standalone",
|
|
9
|
+
experimental: {
|
|
10
|
+
// Enable automatic tree-shaking for common libraries
|
|
11
|
+
// This helps reduce bundle size by only including used exports
|
|
12
|
+
optimizePackageImports: [
|
|
13
|
+
"lucide-react",
|
|
14
|
+
"date-fns",
|
|
15
|
+
"@radix-ui/react-icons",
|
|
16
|
+
"lodash-es",
|
|
17
|
+
"framer-motion",
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
async headers() {
|
|
21
|
+
// Get environment-specific origins for CORS
|
|
22
|
+
const appUrl = process.env.NEXT_PUBLIC_APP_URL || "http://localhost:3000"
|
|
23
|
+
const allowedOrigins = [
|
|
24
|
+
appUrl,
|
|
25
|
+
// Allow Vercel preview deployments
|
|
26
|
+
...(process.env.VERCEL_ENV === "preview" ? ["https://*.vercel.app"] : []),
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
return [
|
|
30
|
+
{
|
|
31
|
+
// Apply security headers to all routes
|
|
32
|
+
source: "/:path*",
|
|
33
|
+
headers: [
|
|
34
|
+
// Prevent clickjacking attacks
|
|
35
|
+
{
|
|
36
|
+
key: "X-Frame-Options",
|
|
37
|
+
value: "DENY",
|
|
38
|
+
},
|
|
39
|
+
// Prevent MIME type sniffing
|
|
40
|
+
{
|
|
41
|
+
key: "X-Content-Type-Options",
|
|
42
|
+
value: "nosniff",
|
|
43
|
+
},
|
|
44
|
+
// Enable browser XSS protection
|
|
45
|
+
{
|
|
46
|
+
key: "X-XSS-Protection",
|
|
47
|
+
value: "1; mode=block",
|
|
48
|
+
},
|
|
49
|
+
// Control referrer information
|
|
50
|
+
{
|
|
51
|
+
key: "Referrer-Policy",
|
|
52
|
+
value: "strict-origin-when-cross-origin",
|
|
53
|
+
},
|
|
54
|
+
// Permissions policy (formerly Feature-Policy)
|
|
55
|
+
{
|
|
56
|
+
key: "Permissions-Policy",
|
|
57
|
+
value: "camera=(), microphone=(), geolocation=()",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
// CORS headers for API routes
|
|
63
|
+
source: "/api/:path*",
|
|
64
|
+
headers: [
|
|
65
|
+
{
|
|
66
|
+
key: "Access-Control-Allow-Credentials",
|
|
67
|
+
value: "true",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
key: "Access-Control-Allow-Origin",
|
|
71
|
+
value: appUrl,
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
key: "Access-Control-Allow-Methods",
|
|
75
|
+
value: "GET,POST,PUT,PATCH,DELETE,OPTIONS",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: "Access-Control-Allow-Headers",
|
|
79
|
+
value: "Content-Type, Authorization, X-Requested-With",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: "Access-Control-Max-Age",
|
|
83
|
+
value: "86400", // 24 hours
|
|
84
|
+
},
|
|
85
|
+
],
|
|
86
|
+
},
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export default nextConfig
|
package/package.json
CHANGED
|
@@ -1,30 +1,136 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-syncup",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Self-host UI SyncUp with a single command",
|
|
5
|
-
"bin": {
|
|
6
|
-
"ui-syncup": "./dist/index.js"
|
|
7
|
-
},
|
|
8
|
-
"files": [
|
|
9
|
-
"dist"
|
|
10
|
-
],
|
|
3
|
+
"version": "0.4.0-beta.1",
|
|
11
4
|
"scripts": {
|
|
12
|
-
"
|
|
13
|
-
"dev": "
|
|
5
|
+
"dev": "next dev",
|
|
6
|
+
"dev:stack": "docker compose -f docker/compose.local.yml up -d && supabase start",
|
|
7
|
+
"build": "next build",
|
|
8
|
+
"start": "next start",
|
|
9
|
+
"lint": "eslint .",
|
|
10
|
+
"typecheck": "tsc --noEmit",
|
|
11
|
+
"format": "prettier --write .",
|
|
12
|
+
"clean": "rm -rf .next node_modules",
|
|
13
|
+
"test": "vitest run",
|
|
14
|
+
"test:watch": "vitest",
|
|
15
|
+
"test:ui": "playwright test",
|
|
16
|
+
"test:ui:headed": "playwright test --headed",
|
|
17
|
+
"test:ui:debug": "playwright test --debug",
|
|
18
|
+
"test:ui:report": "playwright show-report",
|
|
19
|
+
"validate-env": "bun run scripts/validate-env.ts",
|
|
20
|
+
"db:generate": "drizzle-kit generate",
|
|
21
|
+
"db:migrate": "bun run scripts/migrate.ts",
|
|
22
|
+
"db:migrate:kit": "drizzle-kit migrate",
|
|
23
|
+
"db:migrate:sync": "bun run scripts/sync-migration-tracking.ts",
|
|
24
|
+
"db:studio": "drizzle-kit studio",
|
|
25
|
+
"db:push": "drizzle-kit push",
|
|
26
|
+
"db:seed": "bun run scripts/seed.ts",
|
|
27
|
+
"db:pull-data": "bash scripts/db-pull-data.sh",
|
|
28
|
+
"db:test-migration": "bash scripts/test-migration.sh",
|
|
29
|
+
"supabase:start": "supabase start",
|
|
30
|
+
"supabase:stop": "supabase stop",
|
|
31
|
+
"supabase:status": "supabase status",
|
|
32
|
+
"minio:start": "docker compose -f docker/compose.dev-minio.yml up -d",
|
|
33
|
+
"minio:stop": "docker compose -f docker/compose.dev-minio.yml down",
|
|
34
|
+
"minio:status": "docker compose -f docker/compose.dev-minio.yml ps",
|
|
35
|
+
"verify:vercel": "bun run scripts/verify-vercel-integration.ts",
|
|
36
|
+
"validate:migration-system": "bun run scripts/validate-migration-system.ts",
|
|
37
|
+
"admin:reset-password": "bun run scripts/admin-reset-password.ts",
|
|
38
|
+
"docker:build-test": "docker build --target builder -t ui-syncup-build-test . && echo '✓ Docker build succeeded' || echo '✗ Docker build failed'"
|
|
14
39
|
},
|
|
15
40
|
"dependencies": {
|
|
16
|
-
"
|
|
17
|
-
"@
|
|
18
|
-
"
|
|
19
|
-
"
|
|
41
|
+
"@aws-sdk/client-s3": "^3.1014.0",
|
|
42
|
+
"@aws-sdk/s3-request-presigner": "^3.1014.0",
|
|
43
|
+
"@hookform/resolvers": "^5.2.2",
|
|
44
|
+
"@node-rs/argon2": "^2.0.2",
|
|
45
|
+
"@radix-ui/react-alert-dialog": "^1.1.15",
|
|
46
|
+
"@radix-ui/react-avatar": "^1.1.11",
|
|
47
|
+
"@radix-ui/react-checkbox": "^1.3.3",
|
|
48
|
+
"@radix-ui/react-collapsible": "^1.1.12",
|
|
49
|
+
"@radix-ui/react-dialog": "^1.1.15",
|
|
50
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
51
|
+
"@radix-ui/react-label": "^2.1.8",
|
|
52
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
53
|
+
"@radix-ui/react-progress": "^1.1.8",
|
|
54
|
+
"@radix-ui/react-radio-group": "^1.3.8",
|
|
55
|
+
"@radix-ui/react-scroll-area": "^1.2.10",
|
|
56
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
57
|
+
"@radix-ui/react-separator": "^1.1.8",
|
|
58
|
+
"@radix-ui/react-slot": "^1.2.4",
|
|
59
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
60
|
+
"@radix-ui/react-tabs": "^1.1.13",
|
|
61
|
+
"@radix-ui/react-tooltip": "^1.2.8",
|
|
62
|
+
"@react-email/components": "^1.0.10",
|
|
63
|
+
"@react-email/render": "^2.0.4",
|
|
64
|
+
"@remixicon/react": "^4.9.0",
|
|
65
|
+
"@supabase/ssr": "^0.9.0",
|
|
66
|
+
"@supabase/supabase-js": "^2.99.3",
|
|
67
|
+
"@tanstack/react-query": "^5.94.5",
|
|
68
|
+
"@tanstack/react-virtual": "^3.13.23",
|
|
69
|
+
"@types/pg": "^8.20.0",
|
|
70
|
+
"@types/uuid": "^9.0.0",
|
|
71
|
+
"@vercel/speed-insights": "^2.0.0",
|
|
72
|
+
"better-auth": "^1.5.5",
|
|
73
|
+
"class-variance-authority": "^0.7.1",
|
|
74
|
+
"clsx": "^2.1.1",
|
|
75
|
+
"cmdk": "^1.1.1",
|
|
76
|
+
"date-fns": "^4.1.0",
|
|
77
|
+
"drizzle-orm": "^0.45.1",
|
|
78
|
+
"fast-check": "^4.6.0",
|
|
79
|
+
"ioredis": "^5.10.1",
|
|
80
|
+
"js-cookie": "^3.0.5",
|
|
81
|
+
"lucide-react": "^0.577.0",
|
|
82
|
+
"motion": "^12.38.0",
|
|
83
|
+
"next": "16.2.1",
|
|
84
|
+
"next-themes": "^0.4.6",
|
|
85
|
+
"nodemailer": "^8.0.3",
|
|
86
|
+
"postgres": "^3.4.8",
|
|
87
|
+
"radix-ui": "^1.4.3",
|
|
88
|
+
"react": "19.2.4",
|
|
89
|
+
"react-dom": "19.2.4",
|
|
90
|
+
"react-easy-crop": "^5.5.6",
|
|
91
|
+
"react-hook-form": "^7.71.2",
|
|
92
|
+
"resend": "^6.9.4",
|
|
93
|
+
"shadcn": "^4.1.0",
|
|
94
|
+
"sonner": "^2.0.7",
|
|
95
|
+
"supabase": "^2.83.0",
|
|
96
|
+
"tailwind-merge": "^3.5.0",
|
|
97
|
+
"zod": "^4.3.6"
|
|
20
98
|
},
|
|
21
99
|
"devDependencies": {
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"@
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
|
|
100
|
+
"@electric-sql/pglite": "^0.4.1",
|
|
101
|
+
"@happy-dom/global-registrator": "^20.8.4",
|
|
102
|
+
"@playwright/test": "^1.58.2",
|
|
103
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
104
|
+
"@semantic-release/commit-analyzer": "^13.0.1",
|
|
105
|
+
"@semantic-release/git": "^10.0.1",
|
|
106
|
+
"@semantic-release/github": "^12.0.6",
|
|
107
|
+
"@semantic-release/npm": "^13.1.5",
|
|
108
|
+
"@semantic-release/release-notes-generator": "^14.1.0",
|
|
109
|
+
"@tailwindcss/postcss": "^4",
|
|
110
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
111
|
+
"@testing-library/react": "^16.3.2",
|
|
112
|
+
"@testing-library/user-event": "^14.6.1",
|
|
113
|
+
"@types/js-cookie": "^3.0.6",
|
|
114
|
+
"@types/node": "^25",
|
|
115
|
+
"@types/nodemailer": "^7.0.11",
|
|
116
|
+
"@types/react": "^19",
|
|
117
|
+
"@types/react-dom": "^19",
|
|
118
|
+
"@vitest/coverage-v8": "^4.1.0",
|
|
119
|
+
"baseline-browser-mapping": "^2.10.10",
|
|
120
|
+
"dotenv": "^17.3.1",
|
|
121
|
+
"drizzle-kit": "^0.31.10",
|
|
122
|
+
"eslint": "^9",
|
|
123
|
+
"eslint-config-next": "16.2.1",
|
|
124
|
+
"happy-dom": "^20.8.4",
|
|
125
|
+
"jsdom": "^29.0.1",
|
|
126
|
+
"pg": "^8.20.0",
|
|
127
|
+
"prettier": "^3.8.1",
|
|
128
|
+
"react-email": "^5.2.10",
|
|
129
|
+
"semantic-release": "^25.0.3",
|
|
130
|
+
"tailwindcss": "^4",
|
|
131
|
+
"ts-node": "^10.9.2",
|
|
132
|
+
"tw-animate-css": "^1.4.0",
|
|
133
|
+
"typescript": "^5",
|
|
134
|
+
"vitest": "^4.1.0"
|
|
135
|
+
}
|
|
30
136
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { defineConfig, devices } from "@playwright/test"
|
|
2
|
+
|
|
3
|
+
const PORT = process.env.PORT ?? "3000"
|
|
4
|
+
const BASE_URL = process.env.PLAYWRIGHT_BASE_URL ?? `http://127.0.0.1:${PORT}`
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Playwright Configuration
|
|
8
|
+
*
|
|
9
|
+
* Supports multiple test environments:
|
|
10
|
+
*
|
|
11
|
+
* Local development (default):
|
|
12
|
+
* bun run test:ui
|
|
13
|
+
*
|
|
14
|
+
* Production verification:
|
|
15
|
+
* PLAYWRIGHT_BASE_URL=https://ui-syncup.com PLAYWRIGHT_SKIP_WEB_SERVER=1 bun run test:ui
|
|
16
|
+
*
|
|
17
|
+
* Preview environment:
|
|
18
|
+
* PLAYWRIGHT_BASE_URL=https://preview-xyz.vercel.app PLAYWRIGHT_SKIP_WEB_SERVER=1 bun run test:ui
|
|
19
|
+
*
|
|
20
|
+
* CI environment:
|
|
21
|
+
* Automatically configures retries and reporters for GitHub Actions
|
|
22
|
+
*/
|
|
23
|
+
export default defineConfig({
|
|
24
|
+
testDir: "./tests/e2e",
|
|
25
|
+
timeout: 60 * 1000,
|
|
26
|
+
expect: {
|
|
27
|
+
timeout: 10 * 1000,
|
|
28
|
+
},
|
|
29
|
+
fullyParallel: true,
|
|
30
|
+
retries: process.env.CI ? 2 : 0,
|
|
31
|
+
reporter: process.env.CI
|
|
32
|
+
? [["html"], ["github"], ["junit", { outputFile: "test-results/junit.xml" }]]
|
|
33
|
+
: "list",
|
|
34
|
+
use: {
|
|
35
|
+
baseURL: BASE_URL,
|
|
36
|
+
trace: "on-first-retry",
|
|
37
|
+
video: "retain-on-failure",
|
|
38
|
+
screenshot: "only-on-failure",
|
|
39
|
+
// Increase timeout for production tests (network latency)
|
|
40
|
+
actionTimeout: process.env.PLAYWRIGHT_BASE_URL ? 15 * 1000 : 10 * 1000,
|
|
41
|
+
},
|
|
42
|
+
projects: [
|
|
43
|
+
{
|
|
44
|
+
name: "chromium",
|
|
45
|
+
use: { ...devices["Desktop Chrome"] },
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
name: "firefox",
|
|
49
|
+
use: { ...devices["Desktop Firefox"] },
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "webkit",
|
|
53
|
+
use: { ...devices["Desktop Safari"] },
|
|
54
|
+
},
|
|
55
|
+
],
|
|
56
|
+
// Only start local dev server if not testing against external URL
|
|
57
|
+
webServer: process.env.PLAYWRIGHT_SKIP_WEB_SERVER
|
|
58
|
+
? undefined
|
|
59
|
+
: {
|
|
60
|
+
command: "bun run dev",
|
|
61
|
+
url: BASE_URL,
|
|
62
|
+
stdout: "pipe",
|
|
63
|
+
stderr: "pipe",
|
|
64
|
+
reuseExistingServer: !process.env.CI,
|
|
65
|
+
timeout: 120 * 1000, // 2 minutes for server startup
|
|
66
|
+
},
|
|
67
|
+
// Global setup and teardown
|
|
68
|
+
globalSetup: process.env.PLAYWRIGHT_SKIP_WEB_SERVER ? undefined : "./tests/e2e/global-setup.ts",
|
|
69
|
+
globalTeardown: process.env.PLAYWRIGHT_SKIP_WEB_SERVER ? undefined : "./tests/e2e/global-teardown.ts",
|
|
70
|
+
})
|
package/public/file.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M14.5 13.5V5.41a1 1 0 0 0-.3-.7L9.8.29A1 1 0 0 0 9.08 0H1.5v13.5A2.5 2.5 0 0 0 4 16h8a2.5 2.5 0 0 0 2.5-2.5m-1.5 0v-7H8v-5H3v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1M9.5 5V2.12L12.38 5zM5.13 5h-.62v1.25h2.12V5zm-.62 3h7.12v1.25H4.5zm.62 3h-.62v1.25h7.12V11z" clip-rule="evenodd" fill="#666" fill-rule="evenodd"/></svg>
|
package/public/globe.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.27 14.1a6.5 6.5 0 0 0 3.67-3.45q-1.24.21-2.7.34-.31 1.83-.97 3.1M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16m.48-1.52a7 7 0 0 1-.96 0H7.5a4 4 0 0 1-.84-1.32q-.38-.89-.63-2.08a40 40 0 0 0 3.92 0q-.25 1.2-.63 2.08a4 4 0 0 1-.84 1.31zm2.94-4.76q1.66-.15 2.95-.43a7 7 0 0 0 0-2.58q-1.3-.27-2.95-.43a18 18 0 0 1 0 3.44m-1.27-3.54a17 17 0 0 1 0 3.64 39 39 0 0 1-4.3 0 17 17 0 0 1 0-3.64 39 39 0 0 1 4.3 0m1.1-1.17q1.45.13 2.69.34a6.5 6.5 0 0 0-3.67-3.44q.65 1.26.98 3.1M8.48 1.5l.01.02q.41.37.84 1.31.38.89.63 2.08a40 40 0 0 0-3.92 0q.25-1.2.63-2.08a4 4 0 0 1 .85-1.32 7 7 0 0 1 .96 0m-2.75.4a6.5 6.5 0 0 0-3.67 3.44 29 29 0 0 1 2.7-.34q.31-1.83.97-3.1M4.58 6.28q-1.66.16-2.95.43a7 7 0 0 0 0 2.58q1.3.27 2.95.43a18 18 0 0 1 0-3.44m.17 4.71q-1.45-.12-2.69-.34a6.5 6.5 0 0 0 3.67 3.44q-.65-1.27-.98-3.1" fill="#666"/></g><defs><clipPath id="a"><path fill="#fff" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
package/public/logo.svg
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<svg width="963" height="218" viewBox="0 0 963 218" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M119.001 109.071V209.071H99.001V132.879L14.002 216.212L0 201.931L84.5166 119.071H9.00098V99.0713H109.001L119.001 109.071ZM186.782 172.711L179.711 179.782L172.641 186.854L132.234 146.447L139.306 139.376L146.376 132.305L186.782 172.711ZM209.001 119.071H151.857V99.0713H209.001V119.071ZM85.7676 71.6953L71.625 85.8379L31.2188 45.4316L45.3613 31.2891L85.7676 71.6953ZM209.001 9.07129L216.071 16.1426L146.376 85.8379L139.306 78.7666L132.234 71.6953L201.93 2L209.001 9.07129ZM119.001 66.2139H99.001V9.07129H119.001V66.2139Z" fill="black"/>
|
|
3
|
+
<path d="M879.686 188.31V77.1101H898.406V87.1901H901.126C903.046 83.9901 905.98 81.1634 909.926 78.7101C913.873 76.1501 919.473 74.8701 926.726 74.8701C933.126 74.8701 939.046 76.4701 944.486 79.6701C950.033 82.7634 954.46 87.3501 957.766 93.4301C961.073 99.5101 962.726 106.87 962.726 115.51V117.91C962.726 126.55 961.073 133.91 957.766 139.99C954.46 146.07 950.086 150.71 944.646 153.91C939.206 157.003 933.233 158.55 926.726 158.55C921.82 158.55 917.713 157.963 914.406 156.79C911.1 155.617 908.433 154.123 906.406 152.31C904.38 150.497 902.726 148.63 901.446 146.71H898.726V188.31H879.686ZM920.966 141.91C927.58 141.91 933.02 139.83 937.286 135.67C941.553 131.51 943.686 125.43 943.686 117.43V115.99C943.686 107.99 941.5 101.91 937.126 97.7501C932.86 93.5901 927.473 91.5101 920.966 91.5101C914.566 91.5101 909.18 93.5901 904.806 97.7501C900.54 101.91 898.406 107.99 898.406 115.99V117.43C898.406 125.43 900.54 131.51 904.806 135.67C909.18 139.83 914.566 141.91 920.966 141.91Z" fill="black"/>
|
|
4
|
+
<path d="M819.489 157.59C813.302 157.59 807.862 156.203 803.169 153.43C798.582 150.657 795.009 146.817 792.449 141.91C789.889 136.897 788.609 131.083 788.609 124.47V77.1101H807.649V123.03C807.649 129.217 809.142 133.857 812.129 136.95C815.222 140.043 819.596 141.59 825.249 141.59C831.649 141.59 836.662 139.457 840.289 135.19C843.916 130.923 845.729 124.95 845.729 117.27V77.1101H864.769V156.31H846.049V145.43H843.169C841.889 148.31 839.436 151.083 835.809 153.75C832.182 156.31 826.742 157.59 819.489 157.59Z" fill="black"/>
|
|
5
|
+
<path d="M740.306 158.55C732.626 158.55 725.64 156.95 719.346 153.75C713.16 150.55 708.253 145.91 704.626 139.83C701.106 133.75 699.346 126.39 699.346 117.75V115.67C699.346 107.03 701.106 99.6701 704.626 93.5901C708.253 87.5101 713.16 82.8701 719.346 79.6701C725.64 76.4701 732.626 74.8701 740.306 74.8701C747.88 74.8701 754.333 76.2035 759.666 78.8701C765.106 81.5368 769.48 85.2168 772.786 89.9101C776.093 94.4968 778.28 99.6701 779.346 105.43L760.946 109.43C760.413 106.123 759.346 103.137 757.746 100.47C756.253 97.8034 754.066 95.7235 751.186 94.2301C748.413 92.6301 744.893 91.8301 740.626 91.8301C736.466 91.8301 732.68 92.7901 729.266 94.7101C725.853 96.5234 723.186 99.2434 721.266 102.87C719.346 106.39 718.386 110.763 718.386 115.99V117.43C718.386 122.657 719.346 127.083 721.266 130.71C723.186 134.23 725.853 136.95 729.266 138.87C732.68 140.683 736.466 141.59 740.626 141.59C747.026 141.59 751.826 139.99 755.026 136.79C758.333 133.483 760.466 129.163 761.426 123.83L779.826 128.31C778.44 133.857 776.093 138.977 772.786 143.67C769.48 148.257 765.106 151.883 759.666 154.55C754.333 157.217 747.88 158.55 740.306 158.55Z" fill="black"/>
|
|
6
|
+
<path d="M612.593 156.31V77.1101H631.313V87.9901H634.033C635.419 85.0034 637.926 82.2301 641.553 79.6701C645.179 77.1101 650.619 75.8301 657.873 75.8301C663.953 75.8301 669.286 77.2167 673.873 79.9901C678.566 82.7634 682.193 86.6034 684.753 91.5101C687.419 96.4167 688.753 102.23 688.753 108.95V156.31H669.713V110.39C669.713 104.203 668.166 99.5634 665.073 96.4701C661.979 93.3767 657.659 91.8301 652.113 91.8301C645.713 91.8301 640.699 93.9634 637.073 98.2301C633.446 102.497 631.633 108.47 631.633 116.15V156.31H612.593Z" fill="black"/>
|
|
7
|
+
<path d="M530.955 188.31V171.67H574.315C577.302 171.67 578.795 170.07 578.795 166.87V145.59H576.075C575.222 147.51 573.835 149.43 571.915 151.35C570.102 153.163 567.595 154.657 564.395 155.83C561.195 157.003 557.195 157.59 552.395 157.59C546.208 157.59 540.768 156.203 536.075 153.43C531.488 150.657 527.915 146.817 525.355 141.91C522.795 136.897 521.515 131.083 521.515 124.47V77.1101H540.555V123.03C540.555 129.217 542.048 133.857 545.035 136.95C548.128 140.043 552.502 141.59 558.155 141.59C564.555 141.59 569.568 139.457 573.195 135.19C576.822 130.923 578.635 124.95 578.635 117.27V77.1101H597.675V171.03C597.675 176.257 596.128 180.417 593.035 183.51C589.942 186.71 585.782 188.31 580.555 188.31H530.955Z" fill="black"/>
|
|
8
|
+
<path d="M471.048 158.55C462.408 158.55 454.781 157.057 448.168 154.07C441.661 150.977 436.541 146.55 432.808 140.79C429.074 134.923 427.208 127.937 427.208 119.83V115.51H446.888V119.83C446.888 126.87 449.074 132.15 453.448 135.67C457.821 139.19 463.688 140.95 471.048 140.95C478.514 140.95 484.061 139.457 487.688 136.47C491.421 133.377 493.288 129.483 493.288 124.79C493.288 121.59 492.381 118.977 490.568 116.95C488.861 114.923 486.301 113.27 482.888 111.99C479.474 110.71 475.314 109.537 470.408 108.47L466.088 107.51C458.621 105.803 452.168 103.67 446.728 101.11C441.288 98.5501 437.074 95.1367 434.088 90.8701C431.208 86.6034 429.768 81.1101 429.768 74.3901C429.768 67.6701 431.368 61.9101 434.568 57.1101C437.874 52.3101 442.461 48.6301 448.328 46.0701C454.194 43.4034 461.128 42.0701 469.128 42.0701C477.021 42.0701 484.061 43.4567 490.248 46.2301C496.434 48.8967 501.288 52.8967 504.808 58.2301C508.434 63.5634 510.248 70.2301 510.248 78.2301V83.3501H490.568V78.2301C490.568 73.8567 489.661 70.3367 487.848 67.6701C486.141 64.8967 483.688 62.8701 480.488 61.5901C477.288 60.3101 473.501 59.6701 469.128 59.6701C462.514 59.6701 457.554 60.9501 454.248 63.5101C451.048 65.9634 449.448 69.4301 449.448 73.9101C449.448 76.7901 450.194 79.2434 451.688 81.2701C453.288 83.2967 455.528 84.9501 458.408 86.2301C461.394 87.5101 465.181 88.6834 469.768 89.7501L474.088 90.7101C481.874 92.3101 488.648 94.4434 494.408 97.1101C500.274 99.7767 504.861 103.297 508.168 107.67C511.474 111.937 513.128 117.483 513.128 124.31C513.128 131.03 511.368 137.003 507.848 142.23C504.434 147.35 499.581 151.35 493.288 154.23C486.994 157.11 479.581 158.55 471.048 158.55Z" fill="black"/>
|
|
9
|
+
<path d="M365.984 156.31V44.3101H385.984V156.31H365.984Z" fill="black"/>
|
|
10
|
+
<path d="M309.52 158.55C300.453 158.55 292.667 156.897 286.16 153.59C279.653 150.283 274.64 145.537 271.12 139.35C267.707 133.163 266 125.803 266 117.27V44.3101H286V117.75C286 125.003 287.973 130.657 291.92 134.71C295.973 138.657 301.84 140.63 309.52 140.63C317.093 140.63 322.853 138.657 326.8 134.71C330.853 130.657 332.88 125.003 332.88 117.75V44.3101H352.88V117.27C352.88 125.803 351.12 133.163 347.6 139.35C344.187 145.537 339.227 150.283 332.72 153.59C326.213 156.897 318.48 158.55 309.52 158.55Z" fill="black"/>
|
|
11
|
+
</svg>
|
package/public/next.svg
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1155 1000"><path d="m577.3 0 577.4 1000H0z" fill="#fff"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.5 2.5h13v10a1 1 0 0 1-1 1h-11a1 1 0 0 1-1-1zM0 1h16v11.5a2.5 2.5 0 0 1-2.5 2.5h-11A2.5 2.5 0 0 1 0 12.5zm3.75 4.5a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5M7 4.75a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0m1.75.75a.75.75 0 1 0 0-1.5.75.75 0 0 0 0 1.5" fill="#666"/></svg>
|