docs: mark Phase 0+1 complete in DRY migration roadmap with commit hashes
This commit is contained in:
parent
ea2cb4c0e6
commit
f5d64d58ce
@ -12,8 +12,8 @@
|
||||
|
||||
| Phase | Name | New Packages | Repos Touched | Est. Effort | Status |
|
||||
| ----- | --------------------------------------------------- | ------------ | ------------- | ----------- | ------ |
|
||||
| **0** | Quick Wins (no new packages) | 0 | 9 | 1 day | ⬜ |
|
||||
| **1** | `@bytelyst/fastify-auth` | 1 | 10 | 3 days | ⬜ |
|
||||
| **0** | Quick Wins (no new packages) | 0 | 9 | 1 day | ✅ |
|
||||
| **1** | `@bytelyst/fastify-auth` | 1 | 10 | 3 days | ✅ |
|
||||
| **2** | `@bytelyst/backend-config` + DB_PROVIDER cleanup | 1 | 12 | 3 days | ⬜ |
|
||||
| **3** | Backend utilities (flags, telemetry, domain events) | 3 | 3 | 2 days | ⬜ |
|
||||
| **4** | Web client DRY (telemetry, diagnostics, config) | 0 | 7 | 2 days | ⬜ |
|
||||
@ -67,6 +67,11 @@ These files exist in 8 repos and contain only re-exports from `@bytelyst/errors`
|
||||
|
||||
**Commit:** `refactor(backend): remove errors.ts re-export, import @bytelyst/errors directly`
|
||||
|
||||
**Completed commits:**
|
||||
|
||||
- PeakPulse `6381597`, MindLyst `2f18801`, LysnrAI `dfa289b`, ChronoMind `b4a6c62`
|
||||
- JarvisJr `6432a21`, NomGap `5f842c6`, NoteLett `2a32a54`, ActionTrail `232990e`
|
||||
|
||||
### 0.2 Add `product-config.ts` to repos that hardcode product IDs
|
||||
|
||||
Six repos hardcode `const PRODUCT_ID = '<name>'` in `request-context.ts` instead of reading from `shared/product.json`.
|
||||
@ -120,6 +125,11 @@ Six repos hardcode `const PRODUCT_ID = '<name>'` in `request-context.ts` instead
|
||||
|
||||
**Commit:** `refactor(backend): load product identity from shared/product.json`
|
||||
|
||||
**Completed commits:**
|
||||
|
||||
- PeakPulse `f4c91f8`, MindLyst `211107f`, LysnrAI `541d389`
|
||||
- ChronoMind `3087246`, JarvisJr `7e9f9c9`, NomGap `d8da403`
|
||||
|
||||
### 0.3 Verification checkpoint
|
||||
|
||||
```bash
|
||||
@ -232,6 +242,10 @@ export function createRequestContext(config: RequestContextConfig): {
|
||||
|
||||
**Commit:** `feat(fastify-auth): new package — extractAuth, requireRole, createRequestContext`
|
||||
|
||||
**Completed commits:**
|
||||
|
||||
- common-plat: `f61a1f0` (create), `ea2cb4c` (getter fn support)
|
||||
|
||||
### 1.2 Migrate all 9 product backends
|
||||
|
||||
**For each repo, the migration is identical:**
|
||||
@ -291,6 +305,11 @@ export const getRequestProductId = ctx.getRequestProductId;
|
||||
|
||||
**Per-repo commit:** `refactor(backend): migrate auth to @bytelyst/fastify-auth`
|
||||
|
||||
**Completed commits:**
|
||||
|
||||
- PeakPulse `7d2aa7b`, LysnrAI `1399de8`, MindLyst `770a8f2`, ChronoMind `a7b0ae9`
|
||||
- JarvisJr `2abf0b5`, NomGap `25970f4`, FlowMonk `8a324bf`, NoteLett `942d00c`, ActionTrail `e21fb48`
|
||||
|
||||
### 1.3 Delete `auth.test.ts` from repos that test shared logic
|
||||
|
||||
After migration, the `auth.test.ts` files in each repo test the same JWT logic that's now in the shared package. Keep only product-specific auth behavior tests; delete the ones testing `extractAuth()` and `requireRole()` directly (those now live in `packages/fastify-auth`).
|
||||
|
||||
Loading…
Reference in New Issue
Block a user