Commit Graph

1514 Commits

Author SHA1 Message Date
c182d4ce25 feat: add resolveDataSource function for context-based data retrieval 2025-12-25 18:40:23 +00:00
4c70eef94b feat: Add hooks for blob storage and cached data management
- Implemented `useBlobStorage` hook for handling blob storage operations including upload, download, delete, list, and metadata retrieval.
- Created `useCachedData` hook for managing cached data with automatic serialization and error handling.
- Added `useDBAL` hook to ensure DBAL initialization before performing operations.
- Introduced `useKVStore` hook for key-value store operations with tenant and user context.
- Added tests for user retrieval with tenant filtering.
- Refactored package export functionality into modular files for better maintainability.
- Implemented utility functions for rendering components and executing Lua scripts.
- Established a declarative component renderer with support for component configuration and Lua script registration.
- Updated access rules to streamline credential access permissions.
2025-12-25 18:40:14 +00:00
d6e9197ce7 feat: restructure security module and add new operations
- Created new utility files for password, schema, and page rendering.
- Refactored secure-db-layer to separate operations into distinct files.
- Added operations for creating, updating, and deleting comments and users.
- Implemented access rules for credential management.
- Enhanced user and credential verification processes.
- Introduced seed data and workflow engine modules.
- Updated security context and access checks for various operations.
2025-12-25 18:33:21 +00:00
071ba1c4d7 refactor: split secure-db rate limit helpers 2025-12-25 18:20:01 +00:00
e48be526e2 docs: add reference to RADIX_TO_MUI_MIGRATION.md in kickstart prompts 2025-12-25 18:16:24 +00:00
326d18d36d feat(security): implement secure database operations with access control and logging 2025-12-25 18:08:27 +00:00
8d5efd2b17 feat(lua): add Lua execution context and security scanning functionality
- Implemented tableToJS function to convert Lua tables to JavaScript arrays/objects.
- Created executeLuaCode function to execute Lua code with a given context and log messages.
- Added setupContextAPI function to set up logging and printing functions in Lua.
- Defined types for Lua execution context and results.
- Introduced SecurityScanner class to wrap security scanning operations for JavaScript, Lua, JSON, and HTML.
- Established access rules for secure database operations and implemented rate limiting and input sanitization functions.
2025-12-25 18:04:04 +00:00
089c93e649 feat(security): add comprehensive security scanning functions and patterns
- Implemented severity color and icon helpers for better UI representation.
- Created a set of security patterns for JavaScript, Lua, and SQL injection detection.
- Developed scanning functions for JavaScript, HTML, JSON, and Lua to identify vulnerabilities.
- Added sanitization utility to clean user input based on content type.
- Introduced types for security scan results and issues to standardize output.
- Enhanced overall severity calculation logic to determine the highest risk level from detected issues.
2025-12-25 18:01:03 +00:00
616d4ad87b feat: Implement CRUD operations for pages, schemas, tenants, users, workflows, and SMTP configurations
- Added functions to set, update, delete, and retrieve page configurations.
- Introduced model schema management with functions for adding, updating, deleting, and retrieving schemas.
- Implemented tenant management with functions for adding, updating, deleting, and retrieving tenants.
- Created user management functions for adding, updating, deleting, and retrieving users.
- Developed workflow management functions for adding, updating, deleting, and retrieving workflows.
- Added SMTP configuration management with functions to get and set SMTP configurations.
- Implemented functions for managing god credentials, including expiry management and first login flags.
- Introduced power transfer request management with functions for adding, updating, deleting, and retrieving requests.
- Added Lua snippet management functions for retrieving snippets by ID and category, and searching snippets.
2025-12-25 17:54:34 +00:00
6b19f12f73 feat: Implement dropdown configuration management and package handling
- Add functions for managing dropdown configurations: add, update, delete, get, and set.
- Introduce package management functions: install, uninstall, toggle enabled state, get installed packages, and set package data.
- Create utility functions for schema operations, including validation, sorting, filtering, and generating default values.
- Establish a SchemaUtils class to encapsulate schema-related utility functions for better organization and accessibility.
2025-12-25 17:49:59 +00:00
0479a7766d docs: clarify LAMBDA_PROMPT.md by explaining the solution to the code length problem 2025-12-25 17:49:37 +00:00
45bbb843f9 feat: add LAMBDA_PROMPT.md to outline project structure for lambda functions 2025-12-25 17:48:36 +00:00
d32c111404 docs: add clarification on class structure in kickstart prompt 2025-12-25 17:44:38 +00:00
4e4cba0c69 Add unit tests for various database operations in the credentials, lua-scripts, pages, schemas, and workflows modules
- Implement tests for password reset token deletion, credential retrieval, password change timestamps, and credential setting.
- Add tests for Lua script management including addition, deletion, retrieval, and updates.
- Create tests for page management functions such as adding, deleting, retrieving, and updating pages.
- Introduce tests for schema management including adding, deleting, retrieving, and updating schemas.
- Implement tests for workflow management functions including adding, deleting, retrieving, and updating workflows.
- Ensure all tests cover various scenarios and edge cases for robust validation of functionality.
2025-12-25 17:43:04 +00:00
215804fc23 fix: update mock path for page-definition-builder to correct module location 2025-12-25 17:36:03 +00:00
097146e4a1 fix: update import paths for Database and PageDefinitionBuilder for consistency 2025-12-25 17:33:36 +00:00
78c2d1af50 feat(seed): add seed data module and tests for database initialization
feat(types): introduce builder and level types for component and user roles

feat(workflow): implement workflow engine with execution context and logging

style(theme): create modular theme exports for consistent styling

chore(tests): add comprehensive tests for workflow execution and Lua nodes
2025-12-25 17:33:26 +00:00
f1ca57d9a0 stuff 2025-12-25 17:16:29 +00:00
07d803505a feat: implement theme structure with colors, typography, layout, and dark/light themes 2025-12-25 17:02:04 +00:00
63ec3ca1f7 feat: refactor theme structure by adding design tokens, component overrides, and updating mui-theme for better customization
chore: remove unused dependency 'cmdk' from package.json
2025-12-25 16:59:48 +00:00
b648837b8c refactor: remove unused UI components and implement MUI theme type extensions
- Deleted unused components: Skeleton, Slider, Sonner, Switch, Table, Tabs, Textarea, Toggle Group, Toggle, Tooltip.
- Added type extensions for MUI theme to support custom properties and design tokens.
- Updated MUI theme file to import type extensions.
2025-12-25 16:57:13 +00:00
ee83f2e3ff feat: add new UI components for Command Palette, Navigation, Pagination, Sheet, Sidebar, and their respective subcomponents
- Introduced Command Palette components including Command, CommandInput, CommandList, CommandEmpty, CommandGroup, CommandItem, CommandSeparator, CommandShortcut, and useCommandShortcut hook.
- Added Navigation components such as Navigation, NavigationMenu, NavigationList, NavigationItem, NavigationTrigger, NavigationContent, NavigationLink, NavigationBrand, NavigationSeparator, NavigationSpacer, NavigationMobileToggle, and useNavigationDropdown hook.
- Implemented Pagination components including Pagination, SimplePagination, TablePagination, PaginationContent, PaginationItem, PaginationLink, PaginationEllipsis, PaginationPrevious, and PaginationNext.
- Created Sheet component with Sheet, SheetTrigger, SheetContent, SheetHeader, SheetFooter, SheetTitle, SheetDescription, and SheetClose.
- Developed Sidebar components including Sidebar, SidebarHeader, SidebarContent, SidebarFooter, SidebarNav, SidebarSection, SidebarSeparator, and SidebarToggle.
- Updated index file to export all new components and types for easy access.
2025-12-25 16:54:39 +00:00
a2932725c3 feat: add custom Table component and refactor Select component to use MUI
- Introduced a new Table component with TableHeader, TableBody, TableFooter, TableRow, TableHead, TableCell, and TableCaption for better UI consistency.
- Refactored Select component to utilize MUI's Select, MenuItem, and FormControl for improved accessibility and styling.
- Created a centralized MUI theme with design tokens, typography, spacing, and component overrides for light and dark modes.
2025-12-25 16:54:22 +00:00
f3b810a7db test: add useAutoRefresh tests (18 tests) - timer, countdown, toggle 2025-12-25 16:36:42 +00:00
d0112953c9 docs: update 8-TESTING-TODO with 403 tests breakdown 2025-12-25 16:34:41 +00:00
b6da0d1769 test: add auth tests (40 tests) - 5-level permission system, role access 2025-12-25 16:34:07 +00:00
829772e7c0 test: add page-renderer tests (16 tests) - permission checking, page registration 2025-12-25 16:33:21 +00:00
9c7ab5f2dc docs: mark declarative-component-renderer tests (41) in DECLARATIVE-UI-TODO 2025-12-25 16:29:44 +00:00
861d7c56e0 docs: mark completed test items in TODO files
- Mark workflow-engine tests (22) in FRONTEND-TODO
- Mark lua-engine tests (51) in LUA-SCRIPTING-TODO
- Mark package-glue tests (45) in PACKAGES-TODO
- Mark security-scanner tests (24) in SECURITY-TODO
- Mark password-utils tests (12) in SECURITY-TODO
2025-12-25 16:28:57 +00:00
5dfa83ad67 docs: update TODOs to reflect completed testing and tooling work
- Mark 91% test coverage achieved (>80% goal)
- Mark parameterized tests pattern completed (325 tests)
- Mark workflow scripts completed (diagnose, test, run-act)
- Mark .actrc configuration for M-series Macs
- Mark parallel test execution setup
- Mark test data factories created
2025-12-25 16:27:18 +00:00
0e91d25ddf Add seed data initialization tests 2025-12-25 16:26:53 +00:00
98e378ade8 chore: add .actrc for local GitHub Actions testing
- Configure medium-size Ubuntu image for M-series Mac compatibility
- Set container architecture to linux/amd64
- Enables 'act' workflow runner for local CI testing
2025-12-25 16:25:02 +00:00
1e58c2a2b8 fix: update components.test.ts expected values to match implementation
- Add missing className, styles, and events properties
- Test now matches actual ComponentConfig structure in components.ts
- All 325 tests pass
2025-12-25 16:23:39 +00:00
c136dcb602 fix: correct broken symlinks in frontends/nextjs/scripts
- Fix check-function-coverage.js pointing to wrong path
- Fix generate-test-coverage-report.js symlink
- Fix setup-packages.cjs symlink
- All now correctly point to ../../../tools/
2025-12-25 16:22:56 +00:00
c3fa4cf8da Add seed data component initialization tests 2025-12-25 16:22:44 +00:00
9f542d5894 test: add comprehensive package-glue.test.ts (45 parameterized tests)
- Test getPackage, getPackagesByCategory utility functions
- Test component/script/example retrieval functions
- Test checkDependencies logic for satisfied/missing deps
- Test installPackage/uninstallPackage database operations
- Test getInstalledPackages and isPackageInstalled
- Test exportAllPackagesForSeed for seed data generation
- Coverage improved: 84% → 91% statements
2025-12-25 16:21:56 +00:00
1d4e1f96be fix: resolve TypeScript errors in workflow-engine.test.ts
- Add createNode() and createWorkflow() helper functions for type-safe test data
- Replace all raw object literals with properly typed helper function calls
- Ensures WorkflowNode includes required 'position' property
- Ensures Workflow includes required 'edges' and 'enabled' properties
- All 276 tests pass with clean typecheck
2025-12-25 16:20:08 +00:00
2e420a99f2 Add password utils tests 2025-12-25 16:16:18 +00:00
98357d0381 test: add comprehensive lua-engine tests (51 parameterized cases)
- Add tests for basic Lua operations (numbers, strings, booleans)
- Add tests for table handling and context data access
- Add tests for function execution (simple, recursive, closures)
- Add tests for control flow (if/else, for/while loops)
- Add tests for logging (log/print capture)
- Add tests for error handling (syntax, runtime, explicit)
- Add tests for multiple return values and standard library
- Coverage improved from 62% to 89% for lua-engine.ts
- Overall coverage now at 83% (up from 63%)
2025-12-25 16:15:34 +00:00
b4350abb9e Add security scanner unit tests 2025-12-25 16:13:11 +00:00
749b8ecb80 test: add unit tests for DeclarativeComponentRenderer functionality 2025-12-25 16:12:28 +00:00
ffdbe99395 docs: add missing instruction to check /docs/TODO/* in kickstart guide 2025-12-25 16:12:16 +00:00
78d47d7ca0 test: add comprehensive workflow-engine tests (22 parameterized cases)
- Add tests for basic workflow execution (trigger, action, transform nodes)
- Add tests for condition evaluation and workflow short-circuit behavior
- Add tests for Lua node execution including script references and errors
- Add tests for security warnings capture and user context passing
- Add tests for complex multi-stage workflows with data flow
- Mark original TODO as resolved with test file reference
- All tests use parameterized it.each() pattern per project conventions
2025-12-25 16:09:39 +00:00
68bd86bf19 feat: add scripts for diagnosing and testing GitHub Actions workflows locally 2025-12-25 16:06:58 +00:00
d825963853 settings 2025-12-25 16:04:01 +00:00
9b9433e8d4 tidy 2025-12-25 16:00:00 +00:00
b2379aee23 feat: add .actrc and .secrets.example files, enhance documentation, and implement pre-push git hook for workflow validation 2025-12-25 15:58:02 +00:00
021612922f commit 2025-12-25 15:53:28 +00:00
22c60c5de5 feat: add .actrc configuration and update file paths in COPILOT_SDLC_SUMMARY.md 2025-12-25 15:47:28 +00:00
3537211368 feat(todos): Add comprehensive TODO lists for various project areas
- Created TODO files for Testing, DBAL, Frontend, Packages, Database, and Lua Scripting.
- Updated README with a quick reference table for all TODO files and their priorities.
- Added specific tasks for improving testing coverage, implementing DBAL features, enhancing frontend components, and refining package management.
- Included documentation tasks to ensure thorough coverage and clarity across all areas.
- Implemented initial unit tests for the useAuth hook and improved password generation logic.
- Enhanced package loader functionality to support modular package seed data retrieval.
- Updated page renderer to include public role in permission checks.
- Added comments for future unit tests in workflow engine and other critical areas.
2025-12-25 15:47:15 +00:00