Fix critical and high audit findings
Fixed findings from the audit reports (SECURITY, QUALITY, PERFORMANCE): - P-001 · Dashboard re-downloads the entire dataset every 5 seconds Re-synced the vendored shared/ snapshot from shared commit 199a5ef. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
7dd0d34383
commit
a84a36349b
31 files changed
+653
-6055
No files matched your search
+49
-20
@@ -21,7 +21,6 @@ The single source of truth for code reused across every project in this workspac
|
||||
|---|---|---|
|
||||
| `@gabriel20xx/design-tokens` | CSS | Colors, typography, spacing, radii, shadows, light/dark theme variables. |
|
||||
| `@gabriel20xx/web-ui` | Svelte | Shared application shell and reusable UI components. The complete public component inventory is documented below. |
|
||||
| `@gabriel20xx/legacy-assets` | Browser JS/CSS | Legacy client-side assets, kept for a handful of older pages. |
|
||||
| `repos.gfranz.ch/Gabriel20xx/shared/backend` | Go | Env config, `pgx` pools/transactions, auth persistence, an AuthGuard client (`authclient`), log shipping (`logshipper`), embedded Goose migrations, and the media-family's shared route/table surface (`mediaauth`, `mediacore`, `carriernodeclient`, `syncsocket`). |
|
||||
| `@gabriel20xx/node-backend` | Node.js | `pg` pool/config/transactions/migrations, auth/session persistence, an AuthGuard client. |
|
||||
| `gabriel20xx-shared-backend` | Python | `asyncpg` pool/config, auth/session persistence, an AuthGuard client. |
|
||||
@@ -29,34 +28,64 @@ The single source of truth for code reused across every project in this workspac
|
||||
|
||||
### Public `web-ui` components
|
||||
|
||||
These are the complete Svelte component exports from `packages/web-ui/src/lib/index.ts` (22 components):
|
||||
These are the complete Svelte component exports from `packages/web-ui/src/lib/index.ts` (22 components), grouped by purpose.
|
||||
|
||||
#### Layout and navigation
|
||||
|
||||
| Component | Includes |
|
||||
|---|---|
|
||||
| `AppShell` | Application layout that composes the header, notification stack, theme, and primary-color handling. |
|
||||
| `Header` | Branded application header with navigation, icons, actions, profile/settings menus, and logout. |
|
||||
|
||||
#### Buttons and controls
|
||||
|
||||
| Component | Includes |
|
||||
|---|---|
|
||||
| `Button` | Button with primary, secondary, outline, ghost, and danger variants; multiple sizes and full-width mode. |
|
||||
| `Pagination` | Page navigation and page-size selection with total/item counts. |
|
||||
| `PrimaryColorPicker` | Per-project primary-color selector backed by the shared color persistence helpers. |
|
||||
|
||||
#### Dialogs
|
||||
|
||||
| Component | Includes |
|
||||
|---|---|
|
||||
| `AboutDialog` | About modal with application branding, description, version, links, and custom content. |
|
||||
| `AppShell` | Application layout that composes the header, notification stack, theme, and primary-color handling. |
|
||||
| `AuthPage` | Login, first-time setup, password-reset, and optional TOTP authentication flows. |
|
||||
| `Badge` | Small inline label with default, primary, success, warning, and danger variants. |
|
||||
| `Button` | Button with primary, secondary, outline, ghost, and danger variants; multiple sizes and full-width mode. |
|
||||
| `Card` | Styled content section for grouping application content. |
|
||||
| `Dialog` | Generic modal dialog with title, description, body, footer, and bindable open state. |
|
||||
| `EmptyState` | Empty-content message with an inbox icon, title, and description. |
|
||||
| `Header` | Branded application header with navigation, icons, actions, profile/settings menus, and logout. |
|
||||
| `MediaPlayer` | Audio/video player with playback, seeking, volume, quality, fullscreen, keyboard controls, and custom end controls. |
|
||||
| `MediaPlayerControls` | Reusable media controls for playback, seeking, volume, quality, fullscreen, optional graph toggling, and custom end controls. |
|
||||
| `Metric` | Labeled metric/value display with optional detail and semantic variants. |
|
||||
| `NotificationStack` | Global stack of dismissible success, error, warning, and informational notifications. |
|
||||
| `Pagination` | Page navigation and page-size selection with total/item counts. |
|
||||
| `PrimaryColorPicker` | Per-project primary-color selector backed by the shared color persistence helpers. |
|
||||
| `ProfileDialog` | Profile username/email/password editing and TOTP settings. |
|
||||
| `SectionTitle` | Section heading with optional description. |
|
||||
| `SettingsDialog` | Generic settings modal with custom content or a default empty-settings message. |
|
||||
|
||||
#### Content and data display
|
||||
|
||||
| Component | Includes |
|
||||
|---|---|
|
||||
| `Badge` | Small inline label with default, primary, success, warning, and danger variants. |
|
||||
| `Card` | Styled content section for grouping application content. |
|
||||
| `EmptyState` | Empty-content message with an inbox icon, title, and description. |
|
||||
| `Metric` | Labeled metric/value display with optional detail and semantic variants. |
|
||||
| `SectionTitle` | Section heading with optional description. |
|
||||
|
||||
#### Feedback and status
|
||||
|
||||
| Component | Includes |
|
||||
|---|---|
|
||||
| `NotificationStack` | Global stack of dismissible success, error, warning, and informational notifications. |
|
||||
| `StatusDialog` | Detailed service health/readiness status modal with refresh support. |
|
||||
| `StatusWidget` | Header-friendly health/readiness indicator that polls `/healthz` and `/ready` and opens `StatusDialog`. |
|
||||
| `TotpSettings` | TOTP status, setup, enable, and disable controls. |
|
||||
| `UserManagement` | Role-aware user administration with listing, creation, editing, deletion, role assignment, and pagination. |
|
||||
|
||||
This inventory describes the public component API only; the package also exports notification helpers, primary-color helpers, and TypeScript types. When a public component is added, removed, renamed, or materially changes responsibility, update this table in the same change as `packages/web-ui/src/lib/index.ts`. Keep the table aligned with that barrel file, and do not add internal or generated components to it.
|
||||
#### Media
|
||||
|
||||
| Component | Includes |
|
||||
|---|---|
|
||||
| `MediaPlayer` | Audio/video player with playback, seeking, volume, quality, fullscreen, keyboard controls, and custom end controls. |
|
||||
|
||||
#### Accounts and access
|
||||
|
||||
| Component | Includes |
|
||||
|---|---|
|
||||
| `AuthPage` | Login, first-time setup, password-reset, and optional TOTP authentication flows. |
|
||||
| `ProfileDialog` | Profile username/email/password editing and TOTP settings. |
|
||||
| `TotpSettings` | TOTP status, setup, enable, and disable controls. |
|
||||
|
||||
This inventory describes the public component API only; the package also exports notification helpers, primary-color helpers, and TypeScript types. When a public component is added, removed, renamed, or materially changes responsibility, update the matching category table in the same change as `packages/web-ui/src/lib/index.ts`. Keep the tables aligned with that barrel file, place each component in the category that matches its primary purpose, and do not add internal or generated components to them.
|
||||
|
||||
The `web-ui` components don't import `$app/state`, `$lib` stores, or a project-specific API — applications provide those through props and callbacks.
|
||||
|
||||
|
||||
Reference in new issue
Block a user