Commit Graph

47 Commits

Author SHA1 Message Date
hykocx 5fec68c1fc fix(admin): add profile breadcrumb and fix badge dark mode styling 2026-04-22 17:36:29 -04:00
hykocx e5df0e102b style(ui): replace dark hover bg from neutral-950 to neutral-900 and use RelativeDate component in UsersPage 2026-04-22 17:30:48 -04:00
hykocx 52443591b2 feat(ui): translate Badge component labels to French 2026-04-22 17:26:58 -04:00
hykocx 0f42f202a2 refactor(ui): move hover background styles from tr to td using group utility 2026-04-22 17:15:51 -04:00
hykocx 0e9f70094d style(ui): replace dark mode opacity-based colors with explicit hex values 2026-04-22 17:10:53 -04:00
hykocx bf33754e74 style(ColorPicker): increase custom swatch column width from w-14 to w-18 2026-04-22 17:00:00 -04:00
hykocx 2c781d4223 style(ColorPicker): update preset color palette and improve layout responsiveness 2026-04-22 16:59:01 -04:00
hykocx 60b3022a23 feat(ui): expand color picker preset grid from 9×2 to 10×3 with updated colors 2026-04-22 16:37:59 -04:00
hykocx 2c02890216 refactor(ColorPicker): redesign layout with big custom swatch and extracted Checkmark component 2026-04-22 16:34:10 -04:00
hykocx 866da94f06 feat(ui): add ColorPicker component and replace native color input in RoleEditModal 2026-04-22 16:30:41 -04:00
hykocx db39e7b36a style(ui): adjust font sizes and fix switch toggle alignment 2026-04-22 16:25:17 -04:00
hykocx 71fe05bd2b feat(users): add description field to permission definitions 2026-04-22 16:20:43 -04:00
hykocx f54b2640ad refactor(admin): replace parameterized routes with modal-based editing for users and roles 2026-04-22 16:15:43 -04:00
hykocx 1bdabd8417 style(ui): update semantic color variants to use opacity-based tailwind classes 2026-04-22 16:07:46 -04:00
hykocx f8ef884b63 style(ui): update color palette to use darker sh 2026-04-22 16:04:03 -04:00
hykocx 43fd0fb14f style(ui): reduce badge border opacity to 30% in light mode 2026-04-22 15:27:59 -04:00
hykocx 3ead956571 style(Badge): update light mode border colors from 200 to 800 shade for all variants 2026-04-22 15:27:32 -04:00
hykocx 4ec1a238f9 style(ui): update Badge variant colors to use consistent opacity-based backgrounds 2026-04-22 15:26:52 -04:00
hykocx 834385fd56 style(Badge): update dark mode color shades from 500 to 600 variants 2026-04-22 15:24:21 -04:00
hykocx 18270540cc refactor(admin): replace inline avatar logic with shared UserAvatar component 2026-04-22 15:14:07 -04:00
hykocx 1613bd5275 feat(admin): add dynamic role color support for user badges 2026-04-22 15:08:46 -04:00
hykocx 96c8352dcf refactor(ui): move system badge to dedicated column and update Badge styles 2026-04-22 15:02:10 -04:00
hykocx 7ca818da5a fix(ui): fix missing space between rounded-lg and transition-all in Button class 2026-04-22 14:55:19 -04:00
hykocx c3eeb3ca73 style(ui): update border radius and spacing across shared components 2026-04-22 14:46:30 -04:00
hykocx 0106bc4ea0 feat(core)!: introduce runtime extension registry and flat module conventions
BREAKING CHANGE: sup config now derives entries from package.json#exports and a server/client glob instead of manual lists; module structure follows flat + barrel convention with .server.js/.client.js runtime suffixes
2026-04-22 14:13:30 -04:00
hykocx 61388f04a6 refactor: reorganize feature modules with consistent naming conventions and flattened structure 2026-04-22 14:12:15 -04:00
hykocx e00d6b3c42 refactor(admin): replace inline SVGs with icon components and fix icon imports 2026-04-22 12:58:28 -04:00
hykocx 83672e9325 style(admin): standardize subtitle text size and color across admin pages 2026-04-22 12:43:20 -04:00
hykocx 8752ce168e style(ui): update sidebar width to 230px and refactor StatCard layout 2026-04-22 12:38:26 -04:00
hykocx 138183f3a8 refactor(style): apply new design 2026-04-22 11:30:33 -04:00
hykocx 345371d43c style(admin): reduce header height and simplify layout spacing and menu item focus styles 2026-04-22 11:09:12 -04:00
hykocx f2ddb0f413 style(ui): increase pagination container padding 2026-04-19 17:12:09 -04:00
hykocx e881f04ca2 style(ui): reduce pagination size and hide nav buttons on single page 2026-04-19 17:10:55 -04:00
hykocx f387511c40 refactor(admin): remove group toggle feature and simplify permissions UI in RoleEditPage 2026-04-19 17:04:29 -04:00
hykocx dcd4d9b9f9 refactor(admin): replace raw form elements with shared Input, Textarea, and Switch components in RoleEditPage 2026-04-19 16:56:50 -04:00
hykocx 692a014dd8 refactor(storage): replace configureStorageApi with additive registration pattern 2026-04-19 16:06:32 -04:00
hykocx 962d4c5008 chore(init): remove configureStorageApi initialization from zen setup 2026-04-15 20:52:33 -04:00
hykocx 91dff122c4 feat(storage): configure storage API with default access policies during initialization 2026-04-15 20:50:57 -04:00
hykocx 0eee13542d style(ui): remove hover translate-y animation from StatCard component 2026-04-15 20:46:26 -04:00
hykocx 7ef37e3ebd refactor: reorganize package exports under namespaced paths
- Prefix feature exports with `features/` (auth, admin, provider)
- Prefix shared exports with `shared/` (components, icons, lib, config, logger, rate-limit)
- Add new explicit exports for `shared/logger`, `shared/config`, and `shared/rate-limit`
- Update internal imports to use package self-referencing (`@zen/core/shared/*`) instead of relative paths
2026-04-14 19:57:48 -04:00
hykocx 242ea69664 feat(storage): refactor storage config and remove module registry
Introduce a dedicated `storage-config.js` for registering public
prefixes and access policies via `configureStorageApi()`, replacing the
previous `getAllStoragePublicPrefixes` / `getAllStorageAccessPolicies`
imports from the module registry.

Remove `getAllApiRoutes()` from the router so module-level routes are no
longer auto-collected; feature routes must now be registered explicitly
via `registerFeatureRoutes()` during `initializeZen()`.

Update `.env.example` to document separate `ZEN_STORAGE_PROVIDER`,
`ZEN_STORAGE_B2_*` variables for Backblaze B2 alongside the existing
Cloudflare R2 variables, making provider selection explicit.

Clean up admin navigation and page components to drop module-injected
nav entries, keeping only core and system sections.
2026-04-14 17:43:06 -04:00
hykocx 59fce3cd91 refactor(api): update README and refactor api route registration
Restructure the core API to separate infrastructure routes from feature
routes. Key changes:

- Add `runtime.js` for global state: session resolver and feature route
  registry
- Add `file-response.js` for streaming file responses (storage endpoint)
- Remove feature routes (auth/users) from `core-routes.js`, keeping only
  true infrastructure routes (health, storage)
- Introduce `registerFeatureRoutes()` so features self-register during
  `initializeZen()` instead of being hardcoded in `core-routes.js`
- Add `UserFacingError` class to safely surface client-facing errors
  without leaking internal details
- Fix import path for `rateLimit.js` to use shared lib location
- Update README to reflect new two-step registration flow and clarify
  the role of `core-routes.js`
2026-04-13 17:20:14 -04:00
hykocx e87bd05fa4 refactor: replace console.log with structured logger calls
Replace raw `console.log`/`console.error` calls across CLI, API
handlers, and module files with structured logger functions (`step`,
`done`, `warn`, `fail`) from the shared logger library.

This improves log consistency, readability, and makes it easier to
control output formatting and log levels from a single place.
2026-04-12 21:44:00 -04:00
hykocx 8c66ca60d7 chore: bump version to 1.3.6 and remove unused dependencies
- Remove `react-email`, `react-grid-layout` from dependencies
- Remove `tailwindcss`, `@tailwindcss/cli`, `@tailwindcss/postcss`,
  `autoprefixer`, `postcss`, and `typescript` from devDependencies
- Update package-lock.json to reflect dependency removals
- Bump package version from 1.3.5 to 1.3.6
2026-04-12 18:42:10 -04:00
hykocx 81172bda94 chore: rename package from @hykocx/zen to @zen/core
Update all references across source files, documentation, and
configuration to reflect the new package scope and name. This includes
updating `.npmrc` registry config, install instructions, module
examples, and all import path comments throughout the codebase.
2026-04-12 15:09:26 -04:00
hykocx 99a56d2c39 feat(modules): add external module registration and defineModule support
- Add `./modules/define` export path pointing to `defineModule.js`
- Implement `registerExternalModules()` to handle modules passed via `zen.config.js`, with env var gating (`ZEN_MODULE_<NAME>=true`)
- Extract `buildAdminConfig()` helper to consolidate admin navigation/page config building
- Refactor `loadModuleConfig()` to use `buildAdminConfig()` and simplify public routes check
- Improve `initializeModuleTables()` to gracefully skip modules without `db.js` instead of erroring
- Update module discovery JSDoc to reflect external module registration support
2026-04-12 13:39:56 -04:00
hykocx 65ae3c6788 chore: import codes 2026-04-12 12:50:14 -04:00