mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-07 16:19:01 +00:00
chore: use correct company name in docs and comments
This commit is contained in:
parent
c7ea829ae3
commit
4677c9d2d2
11 changed files with 22 additions and 22 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Architecture Plan — SeaHaven (Selective Rebuild)
|
||||
# Architecture Plan — Sea Haven (Selective Rebuild)
|
||||
|
||||
> Aligned with IrisLoan.Admin · Vite SPA + React Router · **no Next.js** · Tailwind + MUI
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# SeaHaven Design System
|
||||
# Sea Haven Design System
|
||||
|
||||
Visual foundation for **seaheven.front**, aligned with [seahaven.desing](https://github.com) tokens and IrisLoan.Admin integration patterns (centralized CSS, `@theme inline`, `cn()`).
|
||||
|
||||
|
|
@ -83,7 +83,7 @@ MUI typography variants in `src/lib/theme/mui-theme.ts` mirror this hierarchy.
|
|||
|
||||
### Prefer themed MUI in forms and data tables
|
||||
|
||||
MUI components inherit Seahaven styling via `mui-theme.ts` overrides (`Button`, `TextField`, `Table`, `Chip`, `Paper`, `Dialog`, `Alert`).
|
||||
MUI components inherit Sea Haven styling via `mui-theme.ts` overrides (`Button`, `TextField`, `Table`, `Chip`, `Paper`, `Dialog`, `Alert`).
|
||||
|
||||
### Prefer semantic Tailwind in layout shells
|
||||
|
||||
|
|
@ -119,9 +119,9 @@ import { cn } from "@/lib/utils";
|
|||
| `StatusBadge` / `WorkOrderStatusBadge` | `components/domain/status-badge.tsx` |
|
||||
| `DocBadge` | `components/domain/doc-badge.tsx` |
|
||||
|
||||
## Legacy → Seahaven mapping
|
||||
## Legacy → Sea Haven mapping
|
||||
|
||||
| Legacy | Seahaven | Consumption |
|
||||
| Legacy | Sea Haven | Consumption |
|
||||
| ------------------------- | ------------------------------ | -------------------------------- |
|
||||
| `#0c4f6f` / `--blue-main` | `--primary` (`#1c75bc`) | MUI `primary.main`, `bg-primary` |
|
||||
| `#083a52` / `--blue-dark` | `--primary-hover` | Button hover |
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
# Design System Migration Log
|
||||
|
||||
Migration from legacy CSS (`index.css`, `#0c4f6f` palette) to Seahaven DS tokens. Strategy: **MUI-only**.
|
||||
Migration from legacy CSS (`index.css`, `#0c4f6f` palette) to Sea Haven DS tokens. Strategy: **MUI-only**.
|
||||
|
||||
## Phase 1 — Foundation
|
||||
|
||||
| File | Action | Reason |
|
||||
| --------------------------- | ---------- | --------------------------------------------------------------------- |
|
||||
| `src/styles/theme.css` | Created | SoT: 131+ Seahaven tokens + layout/typography/elevation extensions |
|
||||
| `src/styles/theme.css` | Created | SoT: 131+ Sea Haven tokens + layout/typography/elevation extensions |
|
||||
| `src/styles/fonts.css` | Created | Montserrat, DM Sans, JetBrains Mono via `@fontsource` |
|
||||
| `src/styles/typography.css` | Created | Base html/body/heading/caption/label styles |
|
||||
| `src/styles/motion.css` | Created | Duration and easing tokens |
|
||||
|
|
@ -29,7 +29,7 @@ Migration from legacy CSS (`index.css`, `#0c4f6f` palette) to Seahaven DS tokens
|
|||
| `src/components/layout/app-topbar.tsx` | Created | MUI AppBar + header gradient; replaces `Topbar.js` |
|
||||
| `src/app/(protected)/_layout.tsx` | Modified | Uses new layout components |
|
||||
| `src/main.tsx` | Modified | Removed `index.css` import |
|
||||
| `src/app/v/_components/vendor-portal.css` | Modified | Re-tokenized with Seahaven CSS vars |
|
||||
| `src/app/v/_components/vendor-portal.css` | Modified | Re-tokenized with Sea Haven CSS vars |
|
||||
| `src/index.css` | Deleted | ~487 lines migrated to tokens + TSX shell |
|
||||
| `src/components/Sidebar.js` | Deleted | Replaced by `app-sidebar.tsx` |
|
||||
| `src/components/Topbar.js` | Deleted | Replaced by `app-topbar.tsx` |
|
||||
|
|
@ -59,7 +59,7 @@ Migration from legacy CSS (`index.css`, `#0c4f6f` palette) to Seahaven DS tokens
|
|||
| `src/app/(protected)/settings/dropdowns.tsx` | Modified | Semantic sidebar + active states |
|
||||
| `src/app/(protected)/settings/task-templates.tsx` | Modified | Semantic borders/text |
|
||||
| `src/components/common/settings-nav.tsx` | Modified | `text-primary`, `border-border` |
|
||||
| `src/components/common/calendar/calendar-utils.ts` | Modified | Bootstrap hex → Seahaven CSS vars |
|
||||
| `src/components/common/calendar/calendar-utils.ts` | Modified | Bootstrap hex → Sea Haven CSS vars |
|
||||
| `src/components/common/calendar/calendar-action-bar.tsx` | Modified | Semantic surface classes |
|
||||
| `src/components/common/calendar/event-calendar.tsx` | Modified | Semantic surface classes |
|
||||
| `src/components/common/signature-capture.tsx` | Modified | Canvas colors from CSS vars |
|
||||
|
|
@ -79,8 +79,8 @@ Migration from legacy CSS (`index.css`, `#0c4f6f` palette) to Seahaven DS tokens
|
|||
|
||||
- Primary color: `#0c4f6f` → `#1c75bc` (expected, documented)
|
||||
- Body font: Segoe UI 13px → DM Sans 14px
|
||||
- Sidebar: `#fbfbfb` → `#f6f8fb` with Seahaven active/hover states
|
||||
- Header: flat blue gradient → Seahaven multi-stop gradient
|
||||
- Sidebar: `#fbfbfb` → `#f6f8fb` with Sea Haven active/hover states
|
||||
- Header: flat blue gradient → Sea Haven multi-stop gradient
|
||||
|
||||
## Not migrated (intentional)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Feature Prioritization Matrix — SeaHaven
|
||||
# Feature Prioritization Matrix — Sea Haven
|
||||
|
||||
> Source of truth for legacy → `domain/` + `app/` migration order.
|
||||
> Machine-readable config: [`src/config/feature-priorities.ts`](../src/config/feature-priorities.ts).
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# SeaHaven UI - Complete Architecture Documentation
|
||||
# Sea Haven UI - Complete Architecture Documentation
|
||||
|
||||
> Modern React architecture with Redux Toolkit, React Query, and CSS Modules
|
||||
|
||||
|
|
@ -55,7 +55,7 @@
|
|||
│ 5. BACKEND │
|
||||
│ │
|
||||
│ REST API │
|
||||
│ (SeaHaven Backend) │
|
||||
│ (Sea Haven Backend) │
|
||||
└─────────────────────────────────────────────────────────────┘
|
||||
```
|
||||
|
||||
|
|
@ -539,6 +539,6 @@ const debouncedSearch = useDebounce(search, DEBOUNCE_SEARCH);
|
|||
|
||||
---
|
||||
|
||||
**Welcome to the modern SeaHaven UI! 🎊**
|
||||
**Welcome to the modern Sea Haven UI! 🎊**
|
||||
|
||||
_Last updated: 2026_
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
# Infrastructure & CI/CD — SeaHaven SHOC frontend
|
||||
# Infrastructure & CI/CD — Sea Haven SHOC frontend
|
||||
|
||||
AWS hosting for the Vite SPA, defined as an **AWS CDK** app local to this repo,
|
||||
deployed through the org's **reusable** GitHub Actions workflow.
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ export interface FrontendStackProps extends StackProps {
|
|||
}
|
||||
|
||||
/**
|
||||
* Static SPA hosting for the SeaHaven SHOC frontend:
|
||||
* Static SPA hosting for the Sea Haven SHOC frontend:
|
||||
* - private S3 bucket (no public access; CloudFront reads it via OAC)
|
||||
* - CloudFront distribution (HTTPS, SPA deep-link fallback)
|
||||
* - a GitHub Actions OIDC deploy role
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "shoc-frontend-infra",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"description": "CDK app provisioning S3 + CloudFront hosting and the GitHub OIDC deploy role for the SeaHaven SHOC frontend.",
|
||||
"description": "CDK app provisioning S3 + CloudFront hosting and the GitHub OIDC deploy role for the Sea Haven SHOC frontend.",
|
||||
"bin": {
|
||||
"app": "bin/app.ts"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
import type { StatusVariant } from "./status-badge";
|
||||
|
||||
/** Maps API / legacy status strings to Seahaven status variants. */
|
||||
/** Maps API / legacy status strings to Sea Haven status variants. */
|
||||
const STATUS_ALIASES: Record<string, StatusVariant> = {
|
||||
open: "incomplete",
|
||||
incomplete: "incomplete",
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* Seahaven DS — self-hosted via @fontsource (matches theme.css stacks) */
|
||||
/* Sea Haven DS — self-hosted via @fontsource (matches theme.css stacks) */
|
||||
|
||||
@import "@fontsource/montserrat/600.css";
|
||||
@import "@fontsource/montserrat/700.css";
|
||||
|
|
|
|||
|
|
@ -45,7 +45,7 @@
|
|||
--shadow-lg: 0 10px 15px -3px rgba(22, 30, 56, 0.1), 0 4px 6px -4px rgba(22, 30, 56, 0.08);
|
||||
--shadow-brand-mark: 0 2px 6px -1px rgba(28, 117, 188, 0.45);
|
||||
|
||||
/* ── SHADCN BASE (Seahaven DS) ──────────────────────────────────── */
|
||||
/* ── SHADCN BASE (Sea Haven DS) ──────────────────────────────────── */
|
||||
--background: #ffffff;
|
||||
--foreground: #262262;
|
||||
--placeholder-foreground: color-mix(in srgb, var(--foreground) 50%, transparent);
|
||||
|
|
@ -79,7 +79,7 @@
|
|||
--chart-4: #7c3aed;
|
||||
--chart-5: #dc2626;
|
||||
|
||||
/* ── SIDEBAR (light surface — Seahaven DS) ──────────────────────── */
|
||||
/* ── SIDEBAR (light surface — Sea Haven DS) ──────────────────────── */
|
||||
--sidebar: #f6f8fb;
|
||||
--sidebar-bg: #f6f8fb;
|
||||
--sidebar-foreground: #262262;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue