feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes
This commit is contained in:
parent
01ef3293cf
commit
66b6b45ba9
399 changed files with 17828 additions and 11330 deletions
|
|
@ -22,8 +22,13 @@ The canonical place for types and cross-surface logic. Both desktop and web/mobi
|
|||
| Dictation cleaner | `./dictation-cleaner` | **SSOT** for deterministic zero-latency speech disfluency & dictation cleanup (`cleanDictatedText`, added 2026-10-29): strips standalone spoken fillers (`어`, `음`, `그 쓸데없는` while preserving quoted mentions like `어라든가`, `아라든가` and demonstratives), mid-sentence self-corrections (`X 아니 X이 아니라 Y` → `Y`), word stutters (`내가 내가` → `내가`), colloquial suffixes (`예를 들자면은` → `예를 들어`, `보면은` → `보면`), redundant expressions (`쓸데없는 의미없는` → `불필요한`), and clear contextual STT homophones (`스시가 영어로 변경되지` → `PC가 영어로 변경되지`, `그 길을 쓸 이유가` → `그 기능을 쓸 이유가`) while preserving speaker register. |
|
||||
| Personal graph & n-gram | `./personal-graph`, `./personal-ngram` | **SSOT** for relational personalization and n-gram continuation (upgraded 2026-10-28): exact & particle-invariant stemmed continuations (`continuationsFrom`/`stemContinuationsFrom`), IDF-weighted related node scoring (`scoreRelatedNodes`), 2-hop graph path ranking (`rankTwoHopGraphTargets` across `shares_terms→follows` and `follows→follows`), personalized candidate reranking (`scoreCandidatePersonalization`), and frequency-weighted n-gram indexing with Korean stemmed-word bigram fallback (`PersonalNgramModel`). |
|
||||
| Constants | `./constants` | Shared constants |
|
||||
| Guards, CSV & formatters | `./guards`, `./csv`, `./format` | Cross-surface predicate & codec SSOT (2026-11-13, Wave 5 `W5-05`): `isRecord`, `isNonEmptyString`, `isUuid`, `escapeLikePattern`; RFC 4180 `csvCell` / `parseCsvRows`; `formatDurationSec` / `formatDurationMs` / `formatClockTimestampMs` |
|
||||
| Unified search helpers | `./unified-search` | Cross-surface unified search normalization, snippet extraction (`buildSearchSnippet`), and newest-first ranker (`sortUnifiedSearchResults`) shared by desktop `UnifiedSearchService` and mobile `unified-search-service` (2026-11-13, `W5-06`) |
|
||||
| Admin role hierarchy | `./admin-roles` | `ADMIN_ROLE_RANK`, `hasMinimumAdminRole`, `canManageTargetRole` shared across `apps/admin` and Supabase `_shared/admin-auth.ts` via `core-contract.generated.ts` (2026-11-13, `W5-07`) |
|
||||
| Meeting transcript & speakers | `./meeting-transcript` | Timestamped/speaker segment parser & serializer (`toTranscriptSegments`, `parseSegmentText`), `formatPyannoteSpeakerLabel` (`SPEAKER_00` → `화자 1`), `resolveSpeakerColorIndex`, and `extractDistinctSpeakers` (2026-11-13, `GAP-MTG-02`) |
|
||||
| Determinism ports | `./ports` | Injectable `Clock`, `FakeClock` (`createFakeClock`), `Random`, `systemClock`, `systemRandom`, and `createSeededRandom` (Mulberry32) for deterministic tests (2026-11-13, TDD v2.0 Phase 4) |
|
||||
| Crypto license | `./utils/crypto-license` | Ed25519 license sign/verify (used by admin issuer + desktop verifier) |
|
||||
| PII | `pii-redactor`, `secure-memory` | Redaction + secure memory helpers |
|
||||
| PII & ZDR | `pii-redactor`, `secure-memory` | `redactPII`/`redactPIIMessages`/`rehydrateText` (wired into `OnlineLLMService` and `support-handlers`) + `secureZeroBuffer`/`secureWipeAudioChunks` (wired into `VoiceModeService` and `AudioCaptureService`, 2026-11-13 `W5-01`) |
|
||||
| Supabase config | `supabase-config` | Shared Supabase config shape |
|
||||
| Entitlement | `./entitlement` | `EntitlementTier`, `AdminRole`, `EntitlementSnapshot`, `resolveEntitlement`, `normalizeEntitlementTier`/`normalizeAdminRole` — canonical tier/role contract across Supabase, desktop license, and .NET |
|
||||
| Plan catalog | `./plan-catalog` | Tier/price/quota SSOT. `knowledge_embedding` is explicit per tier (Free 5,000/week; Pro 50,000/day; Pro+ 150,000/day; Team 300,000/day; Enterprise unlimited), generated into `server/supabase/functions/_shared/core-contract.generated.ts`, and guarded by `contract:check` |
|
||||
|
|
@ -40,7 +45,7 @@ The canonical place for types and cross-surface logic. Both desktop and web/mobi
|
|||
| `.` | Barrel |
|
||||
| `./theme` | `theme.ts` — `d3roPalette`, `d3roTypo` (13 steps), `d3roShadow` (10), `d3roRadius` (7); 6 themes (dark/Midnight, light, nord, solarized, catppuccin, dracula) + build helpers |
|
||||
| `./theme-vars` | CSS variable map for popups/vanilla surfaces |
|
||||
| `./components/ds` | MUI/Emotion DS components: CrtDisplay, InstrumentPanel, Led, PhysicalButton, MetalCard, PhosphorText (13 variants), MetalDial, ScreenPanel, ButtonGroup, TiltCard, GradientWave, StatRing |
|
||||
| `./components/ds` | MUI/Emotion DS components: CrtDisplay, InstrumentPanel, Led, PhysicalButton, MetalCard, PhosphorText (13 variants), MetalDial, ScreenPanel, SegmentControl (ARIA `tablist`/`tab` + roving `tabIndex` + keyboard `Enter`/`Space`), ButtonGroup, TiltCard, GradientWave, StatRing. Verified by `packages/ui/__tests__/ds-contract.test.tsx` and `npm run check:ds-contract` |
|
||||
|
||||
Peers: React 19, MUI 7, Emotion 11. Depends on `@d3ro/core`.
|
||||
|
||||
|
|
@ -54,6 +59,7 @@ Peers: React 19, MUI 7, Emotion 11. Depends on `@d3ro/core`.
|
|||
|---|
|
||||
| `NativeThemeProvider` / `useNativePalette`; dark/light/get-palette, raw/status, typo/radius/fonts/space/control/weight/motion/numeral tokens. The v4 semantic colors mirror `packages/ui/src/theme-raw.ts`; `d3roNativeControl.h` is the 48dp control floor |
|
||||
| Components: `MetalCard`, `PhosphorText`, `Led`, `PhysicalButton`, `ScreenPanel`, `WaveBars`, `FilterChip` |
|
||||
| Responsive layout (`./responsive`, 2026-11-13 `GAP-UX-08`): `resolveResponsiveLayout` (`>=600dp` tablet/unfolded foldable vs `<600dp` phone, `contentMaxWidth: 880`, `formMaxWidth: 520`, `gridColumns: 2`, `adaptiveBannerHeight: 90`), `useResponsiveLayout`, `useContentWidth`, `<ContentColumn>` |
|
||||
|
||||
Peers: `react`, `react-native`. Consumed by `apps/mobile-rn` via file: workspace dependencies.
|
||||
App-specific `ScreenHeader`, `RecordFab`, and `UnifiedSearchResultRow` stay under `apps/mobile-rn/src/components`; they are not shared package exports.
|
||||
|
|
@ -64,7 +70,8 @@ App-specific `ScreenHeader`, `RecordFab`, and `UnifiedSearchResultRow` stay unde
|
|||
|
||||
| Provides | Notes |
|
||||
|---|---|
|
||||
| 12 locales | `ko` (master), `en`, `ja`, `zh`, `zh-TW`, `es`, `fr`, `de`, `pt`, `ru`, `vi`, `th` in `src/locales/`; 2,742 parity-checked keys, including the 16 native `update.dialog.*` keys |
|
||||
| 12 locales | `ko` (master), `en`, `ja`, `zh`, `zh-TW`, `es`, `fr`, `de`, `pt`, `ru`, `vi`, `th` in `src/locales/`; 2,500 parity-checked keys (253 unreferenced keys pruned on 2026-11-13), guarded by `npm run check:i18n` and `__tests__/locale-contract.test.ts` (15/15 PASS) |
|
||||
| Multi-entry architecture (2026-11-13) | `src/shared.ts` (zero-React/zero-JSON types & `Intl` formatters), `src/index.tsx` (`@d3ro/i18n` — web/desktop renderer entry: `ko`+`en` eager, 10 secondary locales loaded on demand via literal dynamic `import('./locales/<lang>.json')`), `src/main.ts` (`@d3ro/i18n/main` — zero-React Node/Electron main entry reading only the active `locales/<lang>.json` synchronously from disk with per-locale cache), and `src/index.native.tsx` (React Native Metro `.native.tsx` entry supporting all 12 locales with Metro `inlineRequires: true` lazy evaluation on `switch` branch entry) |
|
||||
| Type-safe keys | `TranslationKey` derived from `ko.json` |
|
||||
| React context | `I18nProvider`, `useI18n`, `TFunction` |
|
||||
| Fallback chain | locale → `en` → `ko` → key |
|
||||
|
|
@ -87,7 +94,7 @@ Electron-independent. Rule: no hardcoded Korean/English strings in UI; use `t()`
|
|||
| `transcribe` | STT calls |
|
||||
| `supabase-browser` | Browser client (`getSupabaseBrowserClient`, `isSupabaseConfigured`) |
|
||||
| `supabase-server` | Server client (`createSupabaseServerClient`) |
|
||||
| `types` | Shared DB/domain types — **canonical; do not redefine table types per app**. Includes `PushProvider`, device-bound `PushToken`, `push_tokens` row/insert/update shapes, `register_push_registration`/`unregister_push_registration`, and period-aware `consume_quota` RPC contracts |
|
||||
| `types` | Shared DB/domain types — **canonical; do not redefine table types per app**. Includes `PushProvider`, device-bound `PushToken`, `push_tokens` row/insert/update shapes, `register_push_registration`/`unregister_push_registration`, period-aware `consume_quota` RPC contracts, and immutable `meeting_memos.revision` CAS shape (`20261113000001`) |
|
||||
|
||||
Deps: `@supabase/supabase-js`; optional peer `@supabase/ssr`. The unused `@d3ro/core` dependency was removed in Wave 4. Tests: `__tests__/` (client, transcribe, types) via vitest.
|
||||
|
||||
|
|
@ -113,3 +120,11 @@ Apps depend on packages, never the reverse. Shared package changes ripple to all
|
|||
|
||||
- `apps/mobile-rn` is not an npm workspace member, so root `typecheck`/`test` skip it; use `typecheck:mobile`/`lint:mobile`/`test:mobile` from the repo root.
|
||||
- No versioned publishing of packages (private, source-only); all consumers are in-repo.
|
||||
|
||||
---
|
||||
|
||||
## 8. Wave 6 hardening (2026-11-14)
|
||||
|
||||
- **`@d3ro/core` (Vitest 39 files / 626 tests PASS):** `utils/pii-redactor.ts` hardens placeholder collision avoidance, stateful regex index resets, and length-sorted single-pass `rehydrateText`; `csv.ts` adds UTF-8 BOM and `\r` line-ending escaping; `unified-search.ts`, `utils/meeting-markdown.ts`, and `meeting-transcript.ts` (reusing `formatDurationClockFromMs` and finite date guards) harden boundary inputs (`pii-redactor.test.ts` 5, `shared-utilities.test.ts` 10). Deno-synced contracts (`plan-catalog`, `web-urls`, `guards`, `admin-roles`) untouched (`contract:check` GREEN).
|
||||
- **`@d3ro/i18n` (Vitest 2 files / 25 tests PASS):** extracted `src/shared.ts` (`I18nStorage`, `noopI18nStorage`, `safeLoadStoredLocale`, `safeSaveStoredLocale`, non-finite date guard) shared by `index.tsx` and `index.native.tsx`, with `cancelled`, `userChangedLocaleRef`, and `localeRevisionRef` guards blocking stale async storage loads from overwriting explicit `setLocale()` changes (`__tests__/i18n-provider.test.tsx` 10).
|
||||
- **`@d3ro/ui` & `@d3ro/ui-native` & `@d3ro/api-client`:** `@d3ro/ui` extracted `src/components/ds/wave-math.ts` and cached canvas `LinearGradient` instances in `AudioVisualizerBar.tsx` and `GradientWave.tsx` (`__tests__/wave-visualizer.test.tsx` 3, Vitest 2 files / 7 tests PASS); `@d3ro/ui-native` extracted `resolveContentMaxWidth` (`responsive.tsx`) and guarded non-finite bars (`WaveBars.tsx`); `@d3ro/api-client/src/transcribe.ts` clamped negative latencies (Vitest 4 files / 31 tests PASS).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue