Commit Graph

849 Commits

Author SHA1 Message Date
2f37440ae4 Merge branch 'main' into copilot/update-dependencies-dashboard 2025-12-27 17:13:16 +00:00
4e1f627644 Merge branch 'main' into copilot/fix-pre-deployment-issue 2025-12-27 17:12:32 +00:00
copilot-swe-agent[bot]
ba063117b6 Fix motion package version to match Renovate requirement (12.6.2)
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 17:09:36 +00:00
copilot-swe-agent[bot]
a45a630a76 Update dependencies: replace framer-motion with motion, update actions/checkout to v6, remove deprecated @types/jszip
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 17:03:08 +00:00
copilot-swe-agent[bot]
3afbd7228b Add SQLite adapter for Prisma 7 runtime
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 17:01:37 +00:00
9a7e5bf8c8 refactor: modularize level1 homepage builder 2025-12-27 16:54:45 +00:00
copilot-swe-agent[bot]
23d01a0b11 Final code review improvements
- Use 'prisma/config' import (re-export from @prisma/config for better compatibility)
- Change workflow condition from always() to failure() for proper job triggering
- Fix migration rollback command syntax with proper schema path
- All changes verified and tested successfully

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 16:44:41 +00:00
copilot-swe-agent[bot]
bb25361c97 Address code review feedback
- Remove dotenv import attempt (not needed, DATABASE_URL set via env)
- Remove @ts-ignore directive
- Replace dangerous 'prisma migrate reset' with safer 'prisma migrate resolve' in rollback docs
- Verified Prisma generation still works without dotenv import

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 16:43:00 +00:00
copilot-swe-agent[bot]
def61b1da3 Fix Prisma client generation in CI/CD
- Fix import path from 'prisma/config' to '@prisma/config' in prisma.config.ts
- Add proper output path to generator in schema.prisma for monorepo structure
- Make dotenv import optional with try/catch for CI environments
- Prisma client now generates successfully in frontends/nextjs/node_modules/.prisma/client

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 16:39:50 +00:00
21d5716471 Merge branch 'main' into copilot/create-error-log-screen 2025-12-27 16:11:08 +00:00
copilot-swe-agent[bot]
2458c021ab Merge main branch changes into error log feature branch
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 16:07:54 +00:00
copilot-swe-agent[bot]
428ccfc05c Add security features and tenancy-scoped error logs for God and SuperGod tiers
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 16:00:40 +00:00
1b3687108d Merge branch 'main' into copilot/refactor-typescript-modular-structure 2025-12-27 15:55:04 +00:00
79238fda57 refactor: modularize TypeScript files over threshold 2025-12-27 15:46:44 +00:00
copilot-swe-agent[bot]
d93e6cc174 Add C++ support to lambda refactoring tools with multi-language auto-detection
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 15:44:35 +00:00
4cbd1f335e refactor: modularize select component and scripts 2025-12-27 15:39:39 +00:00
d718f3e455 Merge branch 'main' into copilot/refactor-large-typescript-files 2025-12-27 15:25:43 +00:00
copilot-swe-agent[bot]
97a4f9206a refactor(frontend): modularize useKV hook from 226 to 82 lines
- Extract storage helpers into kv-utils/storage-helpers.ts (48 lines)
- Extract store management into kv-utils/kv-store.ts (39 lines)
- Extract storage ops into kv-utils/storage-operations.ts (85 lines)
- Main hook delegates to extracted utilities

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 15:02:21 +00:00
copilot-swe-agent[bot]
5b3ee91fff Changes before error encountered
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:59:49 +00:00
copilot-swe-agent[bot]
63bdb08bd2 refactor(frontend): modularize user API route from 151 to 8 lines
- Split into separate HTTP handler modules:
  - handlers/get-user.ts (44 lines) - GET handler
  - handlers/patch-user.ts (75 lines) - PATCH handler
  - handlers/delete-user.ts (44 lines) - DELETE handler
- Extract request helpers into utils/request-helpers.ts (27 lines)
- Main route file aggregates and exports handlers

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:56:37 +00:00
copilot-swe-agent[bot]
f5eaa18e16 Add tests for error logging functionality
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:56:18 +00:00
copilot-swe-agent[bot]
3db55d5870 Add ErrorLog model, database utilities, and ErrorLogsTab component
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:52:56 +00:00
copilot-swe-agent[bot]
cf50c17b3f refactor(frontend): modularize multiple files
- default-packages.ts: 208→19 lines (split into package modules)
- auth-store.ts: 157→135 lines (extract utils)
  - Extract role-levels.ts (20 lines)
  - Extract map-user.ts (18 lines)

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:48:48 +00:00
copilot-swe-agent[bot]
98c23b23fa refactor(frontend): modularize lua-examples-data from 210 to 17 lines
- Split examples into categorized files:
  - categories/basic-examples.ts (25 lines)
  - categories/data-examples.ts (45 lines)
  - categories/validation-examples.ts (60 lines)
- Main file now aggregates and re-exports from categories
- Improves maintainability and organization

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:46:46 +00:00
88526931f5 Merge branch 'main' into copilot/update-dependencies-and-refactor-api 2025-12-27 14:44:28 +00:00
13324f0c18 Merge branch 'main' into copilot/fix-npm-run-test-unit 2025-12-27 14:39:54 +00:00
copilot-swe-agent[bot]
1f48f3c1f3 Add stub implementations for GitHub workflow log analysis
- analyze-workflow-logs.ts: Basic log analysis with error/warning detection
- fetch-workflow-run-logs.ts: Stub for fetching workflow logs from GitHub API
- parse-workflow-run-logs-options.ts: Parse query parameters for log options

These stubs resolve build errors and can be fully implemented later.
2025-12-27 14:37:50 +00:00
copilot-swe-agent[bot]
37f48497a0 Update dependencies to latest versions and refactor API calls
- Updated Prisma from 6.19.1 to 7.2.0 (major version)
- Migrated Prisma schema to remove datasource URL (Prisma 7.x requirement)
- Updated PrismaClient initialization to pass datasourceUrl
- Fixed API route handlers to accept NextRequest parameter
- Updated MUI Grid component to include component prop for v7 compatibility
- Added AWS SDK dependencies to DBAL development module
- Created stub implementations for GitHub workflow log analysis functions

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:37:27 +00:00
copilot-swe-agent[bot]
aa005a1189 Fix remaining 4 test failures - import paths and test matchers
- Fixed LevelsClient test: replaced toBeInTheDocument with toBeTruthy (avoids need for jest-dom)
- Fixed transfer-super-god-power test: added mock for get-dbal.server to prevent import errors
- Fixed critical bug: corrected import path in 5 DBAL server files
  - Changed './get-dbal.server' to '../core/get-dbal.server'
  - Files: dbal-add-user, dbal-delete-user, dbal-get-user-by-id, dbal-get-users, dbal-update-user
- Result: 100% test pass rate (370/370 tests passing)

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:36:26 +00:00
copilot-swe-agent[bot]
3dc1bf1148 Fix level system tests for 6-level hierarchy
- Updated getRoleLevel test to include new 'moderator' level at position 3
- Fixed auth.test.ts canAccessLevel tests to match new level assignments:
  - admin: level 4 (was 3)
  - god: level 5 (was 4)
  - supergod: level 6 (was 5)
- Updated API levels route test to expect 6 levels instead of 5
- Fixed capability keyword test to use existing capabilities
- Reduced failing tests from 11 to 4 (96% success rate)

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:27:55 +00:00
2d525bfa4d Merge branch 'main' into copilot/document-atom-prop-interfaces 2025-12-27 14:23:32 +00:00
copilot-swe-agent[bot]
fb8f103042 Fix mock import paths in 69 test files
- Updated vi.mock() paths to match actual source file imports
- Changed '../dbal-client' to correct relative paths (../../core/dbal-client, ../../../core/dbal-client, etc.)
- Fixed tests in users, pages, workflows, components, sessions, packages, etc.
- Reduced failing tests from 82 to 11 (87% reduction)
- Reduced failing test files from 97 to 64 (34% reduction)

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 14:22:27 +00:00
037f2e27d6 Merge branch 'main' into copilot/split-oversized-organisms 2025-12-27 14:17:06 +00:00
4ac90ecd4f Merge branch 'main' into copilot/fix-npm-run-build-issue 2025-12-27 14:05:06 +00:00
45bdcb3a2a Merge branch 'main' into copilot/add-missing-ui-atoms 2025-12-27 13:58:10 +00:00
copilot-swe-agent[bot]
5491597a79 fix: improve AWS SDK optional import handling
- Added @ts-ignore for optional AWS SDK import to prevent TypeScript errors
- Changed webpack config to use resolve.fallback instead of externals
- Improved error message for missing AWS SDK
- Made S3 storage truly optional with better runtime error handling

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:57:46 +00:00
copilot-swe-agent[bot]
7fbd575f91 Make new atoms available in God Tier panel via @/components/ui
- Added exports for Icon, Radio, Link, Text, TextArea, and AtomSelect to ui/atoms/index.ts
- Updated ui/index.ts to re-export all new atoms with proper types
- New atoms now accessible via `import { Icon, Radio, etc } from '@/components/ui'`
- God Tier panel (/builder) can now use all new atoms

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:55:11 +00:00
copilot-swe-agent[bot]
f2795107b9 fix: resolve getAdapter export path and mark AWS SDK as external
- Fixed core/dbal-client index path to use ../dbal-client (not ../../)
- Added AWS SDK to webpack externals to prevent build errors
- S3 storage is optional - will throw error if @aws-sdk/client-s3 not installed
- Fixed circular re-export issue between core/dbal-client and dbal-client

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:54:09 +00:00
copilot-swe-agent[bot]
892e2e491b fix: create DBAL shared UI components for status and daemon page
- Created dbal/shared/ui directory for shared UI components
- Implemented getStatusResponse() for status API endpoint
- Implemented DBALDaemonPage component with metadata
- Updated tsconfig.json @dbal-ui path to point to dbal/shared/ui
- Updated next.config.ts webpack alias for @dbal-ui
- Components support both development and production DBAL modes

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:50:20 +00:00
copilot-swe-agent[bot]
68e2dfd950 fix: remove DBAL stub, use real implementation only
- Removed all stub files (dbal-stub, database-lib/dbal-stub)
- Updated all imports to use real DBAL from @/dbal
- Updated tsconfig.json to add @/dbal path (without wildcard)
- Updated next.config.ts webpack alias to dbal/development/src
- Updated dbal-state, get-dbal, and dbal-client to use real DBALClient
- Frontend now exclusively uses real DBAL (development or production mode)
- No fallback to stub - proper error handling only

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:48:16 +00:00
copilot-swe-agent[bot]
1511a42280 Fix Select component ref type from any to HTMLDivElement
- Changed forwardRef type from any to HTMLDivElement to match MUI Select
- Addressed code review feedback for type safety

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:46:18 +00:00
copilot-swe-agent[bot]
d6a67bd1c6 Fix TypeScript errors and complete missing base UI atoms implementation
- Fixed Select component TypeScript interface to properly extend MuiSelectProps
- Added placeholder prop to SelectProps interface
- Removed non-existent legacy exports from index.ts
- All 36 atom tests passing
- Marked TODO item as complete

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:43:39 +00:00
copilot-swe-agent[bot]
efe56340f7 fix: merge DBAL refactor and update import paths
- Merged main branch with DBAL restructure (ts -> development, cpp -> production)
- Updated initialize-dbal.server.ts imports to use @/dbal path alias
- Fixed dbal-stub import path to @/lib/dbal/dbal-stub
- Updated core/dbal-client index.ts to use correct relative path (../../dbal-client)
- Resolved merge conflicts from DBAL refactor
- Frontend now supports both development (TypeScript) and production (C++ daemon) DBAL

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:43:25 +00:00
copilot-swe-agent[bot]
6daa178c05 Merge branch 'main' into copilot/fix-npm-run-build-issue
# Conflicts:
#	dbal/development/src/core/validation/index.ts
#	frontends/nextjs/src/lib/dbal/database-dbal/core/initialize-dbal.server.ts
2025-12-27 13:40:59 +00:00
copilot-swe-agent[bot]
e0bb913c6c fix: correct blob-storage import paths and add TypeScript annotations
- Fixed import paths in blob providers (filesystem, memory, s3, tenant-aware) to use ../blob-storage
- Added type annotation to prisma-adapter createMany method
- Fixed package-lib/package-catalog.ts path to use ../packages/core
- Cleared Next.js build cache to resolve stale module issues

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:37:21 +00:00
copilot-swe-agent[bot]
52786b73fd fix: replace stub implementations with proper functions
- Removed stub dbal-client directory, fixed import path to use real implementation
- Implemented proper workflow log analysis functions (analyze, fetch, parse)
- Created workflows/analysis/logs directory with real implementations
- Fixed package catalog circular import (now points to packages/core)
- Fixed prisma-adapter updateMany TypeScript error with type annotation
- All GitHub workflow functions now properly implemented using Octokit API

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:33:42 +00:00
copilot-swe-agent[bot]
2180f608fb Restructure dbal folder: development, production, and shared
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:30:57 +00:00
copilot-swe-agent[bot]
ee2797932c fix: create stub DBAL client and fix audit log export
- Created stub dbal-client directory with get-adapter, close-adapter, and types
- Fixed secure-db index.ts to export listAuditLogs as getAuditLogs
- Fixed database-lib/database.ts to export from db/core directly

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:22:33 +00:00
acaf163c32 Merge branch 'main' into copilot/identify-organisms-categorization 2025-12-27 13:20:25 +00:00
copilot-swe-agent[bot]
a9c1f602e7 Move SecurityWarningDialog from dialogs to organisms/security
Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
2025-12-27 13:18:51 +00:00