-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproject_items.json
More file actions
791 lines (791 loc) · 56.3 KB
/
project_items.json
File metadata and controls
791 lines (791 loc) · 56.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
{
"items": [
{
"content": {
"body": "#### Context\n\n`SyncClient` wraps `undici`'s `fetch` with cookie injection and automatic session refresh. It is the single point of HTTP communication with DUK. All scrapers and sync-back operations use this client.\n\n#### Task\n\nCreate `packages/sync/src/client.ts` and implement the `SyncClient` class.\n\n#### Instructions\n\n1. Create `packages/sync/src/client.ts`.\n2. Import `fetch` from `undici` and `ILogger` from `@domus/core/contract/logger`.\n3. Define the `SyncClientOptions` interface: `{ baseUrl: string; logger: ILogger }`.\n4. Implement `SyncClient` class:\n - Private field `cookie: string | null = null`\n - Private field `auth: { login: () => Promise<void> } | null = null`\n - Method `setAuth(auth: { login: () => Promise<void> }): void`\n - Method `getCookie(): string | null`\n - Method `setCookie(cookie: string): void`\n - Private method `isLoginRedirect(res: Response): boolean` — returns `true` if status is 302 and `location` header contains `/auth/login`\n - Method `request(path: string, init?: RequestInit): Promise<Response>` — prepends `baseUrl`, injects cookie header, detects login redirect and retries once after re-login\n5. Export `SyncClient` as named export.\n\n#### Acceptance Criteria\n\n- [x] `SyncClient` class exists in `packages/sync/src/client.ts`\n- [x] `request()` injects cookie header when cookie is set\n- [x] `request()` triggers re-login and retries on session expiry\n- [x] `pnpm typecheck` passes with no errors",
"number": 214,
"repository": "paroki/domus",
"title": "SYNC-009 — Implement `SyncClient` HTTP client with session management",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/214"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpq08g",
"iteration": {
"duration": 7,
"iterationId": "54cf5c95",
"startDate": "2026-04-13",
"title": "Iteration 2"
},
"labels": ["sync"],
"milestone": {
"description": "packages/sync Scaffold",
"dueOn": "",
"title": "SYNC Phase 1"
},
"repository": "https://github.com/paroki/domus",
"status": "In review",
"title": "SYNC-009 — Implement `SyncClient` HTTP client with session management"
},
{
"content": {
"body": "#### Context\n\n`packages/sync` follows the JIT package pattern used by all other internal packages in the Domus monorepo. Study `packages/core/package.json` and `packages/db/package.json` as reference for the correct structure.\n\n#### Task\n\nCreate the `packages/sync` package scaffold with correct `package.json`, `tsconfig.json`, and entry point.\n\n#### Instructions\n\n1. Create `packages/sync/package.json`:\n ```json\n {\n \"name\": \"@domus/sync\",\n \"version\": \"0.0.0\",\n \"private\": true,\n \"exports\": {\n \".\": \"./src/index.ts\",\n \"./client\": \"./src/client.ts\",\n \"./errors\": \"./src/errors.ts\",\n \"./scraper/*\": \"./src/scraper/*.ts\",\n \"./transform/*\": \"./src/transform/*.ts\",\n \"./sync/*\": \"./src/sync/*.ts\"\n },\n \"dependencies\": {\n \"@domus/core\": \"workspace:*\",\n \"@domus/db\": \"workspace:*\",\n \"cheerio\": \"^1.0.0\",\n \"undici\": \"^7.0.0\"\n }\n }\n ```\n2. Create `packages/sync/tsconfig.json` extending the monorepo base tsconfig (look at other packages for the correct `extends` path).\n3. Create `packages/sync/src/index.ts` with an empty exported class: `export class SyncClient {}`.\n4. Create the directory `packages/sync/docs/` and place `sync-tdd.md` and `issues.md` there.\n5. Add `packages/sync` to `pnpm-workspace.yaml` if not already included via glob pattern.\n6. Run `pnpm install` from the monorepo root.\n\n#### Acceptance Criteria\n\n- [x] `packages/sync/package.json` exists with correct name and exports\n- [x] `packages/sync/tsconfig.json` exists\n- [x] `packages/sync/src/index.ts` exports empty `SyncClient`\n- [x] `packages/sync/docs/` directory exists\n- [x] `pnpm install` completes without errors\n- [x] `pnpm typecheck` passes with no errors",
"number": 213,
"repository": "paroki/domus",
"title": "SYNC-008 — Initialize `packages/sync` package",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/213"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpq08A",
"iteration": {
"duration": 7,
"iterationId": "54cf5c95",
"startDate": "2026-04-13",
"title": "Iteration 2"
},
"labels": ["sync"],
"milestone": {
"description": "packages/sync Scaffold",
"dueOn": "",
"title": "SYNC Phase 1"
},
"repository": "https://github.com/paroki/domus",
"status": "In review",
"title": "SYNC-008 — Initialize `packages/sync` package"
},
{
"content": {
"body": "#### Context\n\n`parishes` no longer references `dioceses` directly. The new hierarchy is `dioceses → vicariates → parishes`. This is a breaking change — all existing references to `parishes.dioceseId` must be updated across the codebase.\n\n#### Task\n\nUpdate `packages/db/src/schema/parishes.ts` and all files referencing `parishes.dioceseId`.\n\n#### Instructions\n\n1. Open `packages/db/src/schema/parishes.ts`.\n2. Remove the `dioceseId` column.\n3. Add the following columns:\n - `vicariateId`: `varchar('vicariate_id').notNull().references(() => vicariates.id)` — import `vicariates` from `./vicariates`\n - `syncId`: `integer('sync_id')` — nullable\n4. Search the entire codebase for all references to `parishes.dioceseId` or `dioceseId` in the context of parishes (repository files, service files, query builders). Update all references to use `vicariateId`.\n5. Run `pnpm typecheck` and fix all resulting type errors.\n\n#### Acceptance Criteria\n\n- [x] `parishes` schema no longer contains `dioceseId`\n- [x] `parishes` schema contains `vicariateId` (FK → `vicariates`) and `syncId`\n- [x] No TypeScript errors reference `parishes.dioceseId` anywhere in the monorepo\n- [x] `pnpm typecheck` passes with no errors",
"number": 208,
"repository": "paroki/domus",
"title": "SYNC-003 — Modify `parishes` schema: replace `dioceseId` with `vicariateId`",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/208"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpq050",
"iteration": {
"duration": 7,
"iterationId": "54cf5c95",
"startDate": "2026-04-13",
"title": "Iteration 2"
},
"labels": ["status: in-progress", "sync"],
"milestone": {
"description": "ERD & Schema Migration",
"dueOn": "",
"title": "SYNC Phase 0"
},
"repository": "https://github.com/paroki/domus",
"status": "In review",
"title": "SYNC-003 — Modify `parishes` schema: replace `dioceseId` with `vicariateId`"
},
{
"content": {
"body": "### Description\n\nImplement the `joinId` system: member self-registration via join link, and periodic rotation of join IDs via Cloudflare Workers cron job.\n\n### Subtasks\n\n- [x] ORG-03-ST-01 Build join page UI at `src/pages/org/ui/JoinPage.tsx` (`/join/[joinId]` route)\n- [x] ORG-03-ST-02 Registration form fields: `fullName` (required), `idCardPhoto` (required), `unitId` (optional), `position` (default: `anggota`)\n- [x] ORG-03-ST-03 On submit: create `parishioners` record + `org_enrollments` record with `status: pending`\n- [x] ORG-03-ST-04 Validate `joinId` — return clear error if expired or invalid\n- [x] ORG-03-ST-05 Send success notification after registration\n- [x] ORG-03-ST-06 Implement `joinId` rotation in `apps/cron` (Cloudflare Workers scheduled task)\n\n### Acceptance Criteria\n\n- [x] ORG-03-AC-01 Invalid or expired `joinId` shows a clear error message\n- [x] ORG-03-AC-02 Successful registration sets `org_enrollments.status: pending`\n- [x] ORG-03-AC-03 New user account created with `accountStatus: pending` on first registration\n- [x] ORG-03-AC-04 User receives success notification after submitting\n- [x] ORG-03-AC-05 Cron job rotates all non-null `joinId` values simultaneously\n\n### Technical Notes\n\n- Docs: [PRD#61-registration--enrollment-management](https://github.com/paroki/domus/blob/main/docs/prd.md#61-registration--enrollment-management) · [ERD#23-organizations](https://github.com/paroki/domus/blob/main/docs/erd.md#23-organizations)\n- Screen spec: `docs/screen.md` → Join Organization\n- Relevant files: `apps/dash/app/(pubs)/join/[joinId]/page.tsx`, `apps/cron/src/`",
"number": 110,
"repository": "paroki/domus",
"title": "[ORG-03] Implement `joinId` — Join Page & Cron Rotation",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/110"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRQQ",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-3", "org", "status: in-progress"],
"linked pull requests": [
"https://github.com/paroki/domus/pull/134",
"https://github.com/paroki/domus/pull/156",
"https://github.com/paroki/domus/pull/167"
],
"milestone": {
"description": "Core Features: ORG, MEMBER, EVENT. Gate: self-registration and attendance functional.",
"dueOn": "",
"title": "Phase 3 — Core Features"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[ORG-03] Implement `joinId` — Join Page & Cron Rotation"
},
{
"content": {
"body": "### Description\n\nImplement CRUD for organizational units (`org_units`) — divisions or committees within an organization, displayed during enrollment registration.\n\n### Subtasks\n\n- [x] ORG-02-ST-01 Create unit form (name, description, organizationId, position)\n- [x] ORG-02-ST-02 Implement `UnitService` CRUD with permission check\n- [x] ORG-02-ST-03 Display units on the organization detail page (sorted by `position`)\n- [x] ORG-02-ST-04 Expose units on the join page for member selection\n\n### Acceptance Criteria\n\n- [x] ORG-02-AC-01 Only org `admin` and `owner` can manage units\n- [x] ORG-02-AC-02 Units appear as optional selection on the join page\n- [x] ORG-02-AC-03 Units displayed sorted by `position` ascending\n- [x] ORG-02-AC-04 Soft delete applied\n\n### Technical Notes\n\n- Docs: [PRD#52-categorical-organizations](https://github.com/paroki/domus/blob/main/docs/prd.md#52-categorical-organizations) · [ERD#23-organizations](https://github.com/paroki/domus/blob/main/docs/erd.md#23-organizations)\n- Screen spec: `docs/screen.md` → Organization Detail",
"number": 109,
"repository": "paroki/domus",
"title": "[ORG-02] Implement Unit Management",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/109"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRP0",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-3", "org", "status: done"],
"milestone": {
"description": "Core Features: ORG, MEMBER, EVENT. Gate: self-registration and attendance functional.",
"dueOn": "",
"title": "Phase 3 — Core Features"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[ORG-02] Implement Unit Management"
},
{
"content": {
"body": "### Description\n\nImplement CRUD operations for organizations — both territorial (Region, Station, BEC) and categorical types.\n\n### Subtasks\n\n- [x] ORG-01-ST-01 Create organization form (name, type, parentId, logo, cover)\n- [x] ORG-01-ST-02 Implement organization creation via Better Auth API (auth.api.createOrganization)\n- [x] ORG-01-ST-03 Implement update and soft delete\n- [x] ORG-01-ST-04 Build organization list and detail pages\n- [x] ORG-01-ST-05 Wire up Server Actions following `ActionResult<T>` convention\n- [x] ORG-01-ST-06 Enforce hierarchy rules per `OrgType`:\n - `region` → `parentId: null`\n - `station` → `parentId` must be `region | null`\n - `bec` → `parentId` must be `region | station | null`\n - `categorical` → max 3 levels deep\n\n### Acceptance Criteria\n\n- [x] ORG-01-AC-01 Only `parish-admin` and `super-admin` can create organizations\n- [x] ORG-01-AC-02 Territorial hierarchy rules enforced per `OrgType` at service layer\n- [x] ORG-01-AC-03 Categorical organizations support max 3 levels of nesting\n- [x] ORG-01-AC-04 Soft delete used — records not physically removed\n\n### Technical Notes\n\n- Docs: [PRD#5-organization-structure](https://github.com/paroki/domus/blob/main/docs/prd.md#5-organization-structure) · [ERD#23-organizations](https://github.com/paroki/domus/blob/main/docs/erd.md#23-organizations)\n- Screen spec: `docs/screen.md` → Organization List, Organization Create\n- Relevant files: `packages/core/src/service/organization.ts`, `apps/dash/src/features/organization/`",
"number": 108,
"repository": "paroki/domus",
"title": "[ORG-01] Implement Organization Management",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/108"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRPU",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-3", "org", "status: done"],
"linked pull requests": [
"https://github.com/paroki/domus/pull/134",
"https://github.com/paroki/domus/pull/135",
"https://github.com/paroki/domus/pull/156",
"https://github.com/paroki/domus/pull/167"
],
"milestone": {
"description": "Core Features: ORG, MEMBER, EVENT. Gate: self-registration and attendance functional.",
"dueOn": "",
"title": "Phase 3 — Core Features"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[ORG-01] Implement Organization Management"
},
{
"content": {
"body": "### Description\n\nImplement the Go-style Result pattern and CoreError hierarchy used across all services.\n\n### Subtasks\n\n- [x] CORE-03-ST-01 `utils/result.ts` — `Result<T>`, `ok()`, `fail()`\n- [x] CORE-03-ST-02 `error/core-error.ts` — `CoreError` base class\n- [x] CORE-03-ST-03 `error/not-found-error.ts` — `NotFoundError`\n- [x] CORE-03-ST-04 `error/unauthorized-error.ts` — `UnauthorizedError`\n- [x] CORE-03-ST-05 `error/forbidden-error.ts` — `ForbiddenError`\n\n### Acceptance Criteria\n\n- [x] CORE-03-AC-01 Services never throw — always return `Result<T>`\n- [x] CORE-03-AC-02 `ok()` and `fail()` work correctly with TypeScript inference\n- [x] CORE-03-AC-03 All error classes extend `CoreError` with correct `code` and `status`\n\n### Technical Notes\n\n- Docs: [TDD#42-error-layer](https://github.com/paroki/domus/blob/main/docs/tdd.md#42-error-layer) · [TDD#43-utils-layer--result-pattern](https://github.com/paroki/domus/blob/main/docs/tdd.md#43-utils-layer--result-pattern)\n- Relevant files: `packages/core/src/utils/result.ts`, `packages/core/src/error/`",
"number": 79,
"repository": "paroki/domus",
"title": "[CORE-03] Implement Result Pattern & CoreError",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/79"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRO4",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "core"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[CORE-03] Implement Result Pattern & CoreError"
},
{
"content": {
"body": "### Description\n\nImplement all application enums in `packages/core/src/entity/enums.ts` using the `const` object + `as const` pattern.\n\n### Subtasks\n\n- [x] CORE-02-ST-01 User & Parishioner: `AccountStatus`, `Gender`, `EducationLevel`\n- [x] CORE-02-ST-02 Organization: `OrgType` (`Region`, `Station`, `BEC`, `Categorical`), `EnrollmentStatus`\n- [x] CORE-02-ST-03 Event: `EventVisibility`, `EventStatus`\n- [x] CORE-02-ST-04 Attendance & RSVP: `AttendanceMethod`, `AttendanceStatus`, `RsvpStatus`\n- [x] CORE-02-ST-05 Finance: `TransactionType`, `PeriodStatus`\n- [x] CORE-02-ST-06 Notification: `NotificationChannel`, `NotificationStatus`\n\n### Acceptance Criteria\n\n- [x] CORE-02-AC-01 All enums use `const` object + `as const` pattern (no TypeScript `enum`)\n- [x] CORE-02-AC-02 All enums exported from `@domus/core/entity/enums`\n- [x] CORE-02-AC-03 Drizzle ORM can consume enum values directly\n- [x] CORE-02-AC-04 `OrgType` uses `Region: 'region' | Station: 'station' | BEC: 'bec' | Categorical: 'categorical'`\n- [x] CORE-02-AC-05 `EnrollmentStatus` uses `Pending: 'pending' | Active: 'active' | Inactive: 'inactive'`\n\n### Technical Notes\n\n- Docs: [TDD#46-enum-conventions](https://github.com/paroki/domus/blob/main/docs/tdd.md#46-enum-conventions) · [ERD#1-enum-definitions](https://github.com/paroki/domus/blob/main/docs/erd.md#1-enum-definitions)\n- Relevant files: `packages/core/src/entity/enums.ts`",
"number": 78,
"repository": "paroki/domus",
"title": "[CORE-02] Implement All Enums",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/78"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqROg",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "core"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[CORE-02] Implement All Enums"
},
{
"content": {
"body": "### Description\n\nInitialize the `packages/core` package with the correct folder structure and JIT exports in `package.json`.\n\n### Subtasks\n\n- [x] CORE-01-ST-01 Create folder structure: `entity/`, `contract/`, `service/`, `error/`, `utils/`\n- [x] CORE-01-ST-02 Configure JIT exports in `package.json`\n\n### Acceptance Criteria\n\n- [x] CORE-01-AC-01 `@domus/core/entity/*`, `@domus/core/service/*`, `@domus/core/error`, `@domus/core/utils`, `@domus/core/contract/*` all resolvable\n\n### Technical Notes\n\n- Docs: [TDD#3-monorepo-architecture](https://github.com/paroki/domus/blob/main/docs/tdd.md#3-monorepo-architecture) · [TDD#33-package-conventions](https://github.com/paroki/domus/blob/main/docs/tdd.md#33-package-conventions)",
"number": 77,
"repository": "paroki/domus",
"title": "[CORE-01] Setup `packages/core`",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/77"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqROM",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "core"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[CORE-01] Setup `packages/core`"
},
{
"content": {
"body": "### Description\n\nImplement all repository interface contracts in `packages/core/src/contract/`. These define the boundary between services and database implementations.\n\n### Subtasks\n\n- [x] CORE-05-ST-01 `contract/diocese.ts` — `IDioceseRepository`\n- [x] CORE-05-ST-02 `contract/parish.ts` — `IParishRepository`\n- [x] CORE-05-ST-03 `contract/parishioner.ts` — `IParishionerRepository`\n- [x] CORE-05-ST-04 `contract/organization.ts` — `IOrganizationRepository`\n- [x] CORE-05-ST-05 `contract/unit.ts` — `IUnitRepository`\n- [x] CORE-05-ST-06 `contract/enrollment.ts` — `IEnrollmentRepository`\n- [x] CORE-05-ST-07 `contract/term.ts` — `ITermRepository`\n- [x] CORE-05-ST-08 `contract/placement.ts` — `IPlacementRepository`\n- [x] CORE-05-ST-09 `contract/event.ts` — `IEventRepository`\n- [x] CORE-05-ST-10 `contract/attendance.ts` — `IAttendanceRepository`\n- [x] CORE-05-ST-11 `contract/rsvp.ts` — `IRsvpRepository`\n- [x] CORE-05-ST-12 `contract/financial-period.ts` — `IFinancialPeriodRepository`\n- [x] CORE-05-ST-13 `contract/transaction.ts` — `ITransactionRepository`\n- [x] CORE-05-ST-14 `contract/notification.ts` — `INotificationRepository`\n\n### Acceptance Criteria\n\n- [x] CORE-05-AC-01 All contracts use `I` prefix naming convention\n- [x] CORE-05-AC-02 All contracts are flat (no subdirectories) under `contract/`\n- [x] CORE-05-AC-03 All method signatures have TSDoc comments\n\n### Technical Notes\n\n- Docs: [TDD#45-contract-layer](https://github.com/paroki/domus/blob/main/docs/tdd.md#45-contract-layer) · [ERD#3-entity-relationships](https://github.com/paroki/domus/blob/main/docs/erd.md#3-entity-relationships)\n- Relevant files: `packages/core/src/contract/`",
"number": 81,
"repository": "paroki/domus",
"title": "[CORE-05] Implement Repository Contracts",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/81"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRNY",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "core"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[CORE-05] Implement Repository Contracts"
},
{
"content": {
"body": "### Description\n\nImplement all business service classes in `packages/core/src/service/`. Services are framework-agnostic pure TypeScript classes using constructor injection.\n\n### Subtasks\n\n- [x] CORE-06-ST-01 `service/diocese.ts` — `DioceseService`\n- [x] CORE-06-ST-02 `service/parish.ts` — `ParishService`\n- [x] CORE-06-ST-03 `service/parishioner.ts` — `ParishionerService`\n- [x] CORE-06-ST-04 `service/organization.ts` — `OrganizationService`\n- [x] CORE-06-ST-05 `service/unit.ts` — `UnitService`\n- [x] CORE-06-ST-06 `service/enrollment.ts` — `EnrollmentService`\n- [x] CORE-06-ST-07 `service/term.ts` — `TermService`\n- [x] CORE-06-ST-08 `service/placement.ts` — `PlacementService`\n- [x] CORE-06-ST-09 `service/event.ts` — `EventService`\n- [x] CORE-06-ST-10 `service/attendance.ts` — `AttendanceService`\n- [x] CORE-06-ST-11 `service/rsvp.ts` — `RsvpService`\n- [x] CORE-06-ST-12 `service/financial-period.ts` — `FinancialPeriodService`\n- [x] CORE-06-ST-13 `service/transaction.ts` — `TransactionService`\n- [x] CORE-06-ST-14 `service/notification.ts` — `NotificationService`\n\n### Acceptance Criteria\n\n- [x] CORE-06-AC-01 All services return `Result<T>` — never throw exceptions\n- [x] CORE-06-AC-02 Write operations accept `AuthContext` as explicit parameter\n- [x] CORE-06-AC-03 Read operations do not require `AuthContext`\n- [x] CORE-06-AC-04 No framework dependencies (Next.js, HTTP, etc.)\n- [x] CORE-06-AC-05 `OrganizationService` enforces hierarchy rules per `OrgType` (region/station/bec/categorical)\n\n### Technical Notes\n\n- Docs: [TDD#47-service-layer](https://github.com/paroki/domus/blob/main/docs/tdd.md#47-service-layer) · [TDD#6-naming-conventions](https://github.com/paroki/domus/blob/main/docs/tdd.md#6-naming-conventions)\n- Relevant files: `packages/core/src/service/`",
"number": 82,
"repository": "paroki/domus",
"title": "[CORE-06] Implement Business Services",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/82"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQrc",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "core"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[CORE-06] Implement Business Services"
},
{
"content": {
"body": "### Description\n\nInitialize the `packages/db` package with Drizzle ORM configuration, Neon PostgreSQL connection for production, and local PostgreSQL for development.\n\n### Subtasks\n\n- [x] DB-01-ST-01 Configure Drizzle ORM with Neon serverless driver (prod)\n- [x] DB-01-ST-02 Configure local PostgreSQL connection (dev)\n- [x] DB-01-ST-03 Setup `drizzle.config.ts`\n\n### Acceptance Criteria\n\n- [x] DB-01-AC-01 `pnpm db:migrate` runs migrations successfully\n- [x] DB-01-AC-02 `pnpm db:studio` opens Drizzle Studio\n\n### Technical Notes\n\n- Docs: [TDD#2-tech-stack](https://github.com/paroki/domus/blob/main/docs/tdd.md#2-tech-stack)\n- Relevant files: `packages/db/drizzle.config.ts`, `packages/db/src/client.ts`",
"number": 83,
"repository": "paroki/domus",
"title": "[DB-01] Setup `packages/db`",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/83"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQrQ",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "db", "status: done"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[DB-01] Setup `packages/db`"
},
{
"content": {
"body": "Implement Google OAuth login functionality using the following components:\n\n- Login Page: Create a dedicated login page that incorporates a \"Login with Google\" button. This page should initiate the OAuth authentication flow when the button is clicked.\n- Callback Handler: Develop a callback login component that securely handles the OAuth response and processes user authentication data upon return from Google.\n- Turborepo Integration: Ensure these components align with the existing architecture and conventions within the turborepo setup.\n\n**Acceptance Criteria:**\n- Google OAuth login is fully functional and easy to use\n- Appropriate user feedback is provided for success or failure states\n- All logic is secure and sensitive data is protected\n- Clear documentation/explanation is added to the codebase\n\n_References: [Google OAuth Documentation](https://developers.google.com/identity)_\n\n<img width=\"1919\" height=\"1037\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/fc3a9472-225e-49aa-97b8-1cb61881dfa5\" />",
"number": 27,
"repository": "paroki/domus",
"title": "Implement Google OAuth login page and callback login components",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/27"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQp8",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"linked pull requests": ["https://github.com/paroki/domus/pull/29"],
"milestone": {
"description": "Auth & Shell: AUTH, UI. Gate: login flow working, routing by accountStatus functional.",
"dueOn": "",
"title": "Phase 2 — Auth & Shell"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "Implement Google OAuth login page and callback login components"
},
{
"content": {
"body": "### Description\n\nBuild the login page UI and wire up the Google OAuth sign-in flow.\n\n### Subtasks\n\n- [x] AUTH-04-ST-01 Build login page at `src/pages/login` using `PublicShell` layout\n- [x] AUTH-04-ST-02 Create thin export at `app/(auth)/login/page.tsx`\n- [x] AUTH-04-ST-03 Wire up \"Masuk dengan Google\" button to Better Auth Google OAuth\n- [x] AUTH-04-ST-04 Handle post-login redirect to `/` for `approved` users\n- [x] AUTH-04-ST-05 Handle redirect to `/pending` or `/rejected` based on `accountStatus`\n\n### Acceptance Criteria\n\n- [x] AUTH-04-AC-01 Unauthenticated users can access `/login`\n- [x] AUTH-04-AC-02 Authenticated users are redirected away from `/login` to `/`\n- [x] AUTH-04-AC-03 Google OAuth sign-in creates a session and sets `accountStatus: pending` for new users\n\n### Technical Notes\n\n- Docs: [TDD#7-authentication](https://github.com/paroki/domus/blob/main/docs/tdd.md#7-authentication) · [PRD#7-authentication--access](https://github.com/paroki/domus/blob/main/docs/prd.md#7-authentication--access)\n- Screen spec: `docs/screen.md` → Login section",
"number": 127,
"repository": "paroki/domus",
"title": "[AUTH-04] Implement Login Page and Google OAuth Flow",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/127"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRTY",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-2", "status: done", "auth", "ui"],
"linked pull requests": ["https://github.com/paroki/domus/pull/129"],
"milestone": {
"description": "Auth & Shell: AUTH, UI. Gate: login flow working, routing by accountStatus functional.",
"dueOn": "",
"title": "Phase 2 — Auth & Shell"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[AUTH-04] Implement Login Page and Google OAuth Flow"
},
{
"content": {
"body": "### Description\n\nRun the initial database migration and verify all tables and constraints match the ERD specification.\n\n### Subtasks\n\n- [x] DB-03-ST-01 Run `pnpm db:migrate` against local PostgreSQL\n- [x] DB-03-ST-02 Verify all tables, columns, and constraints against ERD\n- [x] DB-03-ST-03 Verify soft delete fields (`deletedAt`) present on all applicable tables\n- [x] DB-03-ST-04 Verify UNIQUE constraints (e.g., `(parishionerId, organizationId)`, `(month, year)`)\n\n### Acceptance Criteria\n\n- [x] DB-03-AC-01 All tables created with correct structure\n- [x] DB-03-AC-02 No migration errors\n- [x] DB-03-AC-03 Schema matches ERD v1.0.6\n\n### Technical Notes\n\n- Docs: [ERD#2-entities--table-schemas](https://github.com/paroki/domus/blob/main/docs/erd.md#2-entities--table-schemas) · [ERD#5-soft-delete-strategy](https://github.com/paroki/domus/blob/main/docs/erd.md#5-soft-delete-strategy)",
"number": 85,
"repository": "paroki/domus",
"title": "[DB-03] Run Initial Migration and Verify Schema",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/85"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQpo",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "db", "status: done"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[DB-03] Run Initial Migration and Verify Schema"
},
{
"content": {
"body": "### Description\n\nImplement Drizzle ORM schema definitions for all database tables as specified in the ERD.\n\n### Subtasks\n\n- [x] DB-02-ST-01 `schema/users.ts` — extends Better Auth schema\n- [x] DB-02-ST-02 `schema/parishioners.ts`\n- [x] DB-02-ST-03 `schema/dioceses.ts`\n- [x] DB-02-ST-04 `schema/parishes.ts`\n- [x] DB-02-ST-05 `schema/organizations.ts` — extends Better Auth schema, includes `parishId`\n- [x] DB-02-ST-06 `schema/org-units.ts` — includes `position` integer field (sort order for display, default: 0)\n- [x] DB-02-ST-07 `schema/members.ts` — Better Auth managed\n- [x] DB-02-ST-08 `schema/org-enrollments.ts`\n- [x] DB-02-ST-09 `schema/org-terms.ts`\n- [x] DB-02-ST-10 `schema/org-placements.ts` — includes `order` integer field (sort order within unit, default: 0)\n- [x] DB-02-ST-11 `schema/events.ts`\n- [x] DB-02-ST-12 `schema/rsvp.ts`\n- [x] DB-02-ST-13 `schema/attendances.ts`\n- [x] DB-02-ST-14 `schema/financial-periods.ts`\n- [x] DB-02-ST-15 `schema/transaction-categories.ts`\n- [x] DB-02-ST-16 `schema/transactions.ts`\n- [x] DB-02-ST-17 `schema/notifications.ts`\n\n### Acceptance Criteria\n\n- [x] DB-02-AC-01 Table names in `snake_case`, field names in `camelCase`\n- [x] DB-02-AC-02 Better Auth tables use `text` PK; custom tables use `uuid v7`\n- [x] DB-02-AC-03 All custom tables have `deletedAt` for soft delete\n- [x] DB-02-AC-04 All FK types match PK conventions (text for Better Auth tables, uuid for custom tables)\n- [x] DB-02-AC-05 `OrgType` enum values: `region`, `station`, `bec`, `categorical`\n- [x] DB-02-AC-06 `EnrollmentStatus` enum values: `pending`, `active`, `inactive`\n\n### Technical Notes\n\n- Docs: [ERD#2-entities--table-schemas](https://github.com/paroki/domus/blob/main/docs/erd.md#2-entities--table-schemas) · [TDD#6-naming-conventions](https://github.com/paroki/domus/blob/main/docs/tdd.md#6-naming-conventions) · [TDD#10-primary-key--foreign-key-conventions](https://github.com/paroki/domus/blob/main/docs/tdd.md#10-primary-key--foreign-key-conventions)\n- Relevant files: `packages/db/src/schema/`",
"number": 84,
"repository": "paroki/domus",
"title": "[DB-02] Implement Drizzle Schemas for All Tables",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/84"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQqc",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "db", "status: done"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[DB-02] Implement Drizzle Schemas for All Tables"
},
{
"content": {
"body": "### Description\n\nImplement concrete repository classes in `packages/db` that fulfill all contracts defined in `packages/core/src/contract/`.\n\n### Subtasks\n\n- [x] DB-04-ST-01 `repository/diocese.ts`\n- [x] DB-04-ST-02 `repository/parish.ts`\n- [x] DB-04-ST-03 `repository/parishioner.ts`\n- [x] DB-04-ST-04 `repository/organization.ts`\n- [x] DB-04-ST-05 `repository/unit.ts`\n- [x] DB-04-ST-06 `repository/enrollment.ts`\n- [x] DB-04-ST-07 `repository/term.ts`\n- [x] DB-04-ST-08 `repository/placement.ts`\n- [x] DB-04-ST-09 `repository/event.ts`\n- [x] DB-04-ST-10 `repository/attendance.ts`\n- [x] DB-04-ST-11 `repository/rsvp.ts`\n- [x] DB-04-ST-12 `repository/financial-period.ts`\n- [x] DB-04-ST-13 `repository/transaction.ts`\n- [x] DB-04-ST-14 `repository/notification.ts`\n\n### Acceptance Criteria\n\n- [x] DB-04-AC-01 All repositories implement their respective `I*Repository` interface\n- [x] DB-04-AC-02 All default queries filter `WHERE deletedAt IS NULL`\n- [x] DB-04-AC-03 No explicit `any` usage\n\n### Technical Notes\n\n- Docs: [TDD#45-contract-layer](https://github.com/paroki/domus/blob/main/docs/tdd.md#45-contract-layer) · [TDD#6-naming-conventions](https://github.com/paroki/domus/blob/main/docs/tdd.md#6-naming-conventions)\n- Relevant files: `packages/db/src/repository/`",
"number": 86,
"repository": "paroki/domus",
"title": "[DB-04] Implement Repository Classes",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/86"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQpY",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "db", "status: done"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[DB-04] Implement Repository Classes"
},
{
"content": {
"body": "### Description\n\nAudit and remove all explicit `any` usage across `packages/db`. Replace with proper types, generics, or `unknown`.\n\n### Subtasks\n\n- [x] DB-06-ST-01 Audit all files in `packages/db` for `any` usage\n- [x] DB-06-ST-02 Replace `any` with proper types\n- [x] DB-06-ST-03 Ensure Biome `noExplicitAny` rule passes\n\n### Acceptance Criteria\n\n- [x] DB-06-AC-01 Zero `any` usage in `packages/db`\n- [x] DB-06-AC-02 `pnpm typecheck` passes with no errors\n\n### Technical Notes\n\n- Docs: [AGENTS.md#no-explicit-any](https://github.com/paroki/domus/blob/main/docs/../AGENTS.md#no-explicit-any)\n\n---\n\n# 🔐 Phase 2 — Auth & Shell\n\n**Milestone:** `Phase 2 — Auth & Shell`\n**Gate:** Login flow working end-to-end, routing by `accountStatus` functional, app shell renders.",
"number": 88,
"repository": "paroki/domus",
"title": "[DB-06] Remove Explicit `any` and Ensure Full Type Safety",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/88"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQo8",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "db", "status: done"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[DB-06] Remove Explicit `any` and Ensure Full Type Safety"
},
{
"content": {
"body": "### Description\n\nSet up the monorepo structure using Turborepo + pnpm workspaces. Configure `turbo.json` and define all workspace packages.\n\n### Subtasks\n\n- [x] INFRA-01-ST-01 Initialize Turborepo with pnpm workspaces\n- [x] INFRA-01-ST-02 Configure `turbo.json` with build, lint, typecheck, test pipelines\n- [x] INFRA-01-ST-03 Define workspace packages: `apps/dash`, `apps/cron`, `packages/core`, `packages/db`, `packages/auth`, `packages/config`\n\n### Acceptance Criteria\n\n- [x] INFRA-01-AC-01 `pnpm install` works from root\n- [x] INFRA-01-AC-02 `pnpm build` builds all packages in correct order\n- [x] INFRA-01-AC-03 `pnpm dev` starts `apps/dash` locally\n\n### Technical Notes\n\n- Docs: [TDD#3-monorepo-architecture](https://github.com/paroki/domus/blob/main/docs/tdd.md#3-monorepo-architecture) · [TDD#33-package-conventions](https://github.com/paroki/domus/blob/main/docs/tdd.md#33-package-conventions)\n- Relevant files: `turbo.json`, `package.json`, `pnpm-workspace.yaml`",
"number": 89,
"repository": "paroki/domus",
"title": "[INFRA-01] Setup Monorepo Structure",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/89"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQos",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "infra"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[INFRA-01] Setup Monorepo Structure"
},
{
"content": {
"body": "### Description\n\nWrite unit tests for all repository classes and data mappers with a minimum of 80% coverage.\n\n### Subtasks\n\n- [x] DB-05-ST-01 Write tests for all repository methods (happy path + error path)\n- [x] DB-05-ST-02 Write tests for all mapper functions\n- [x] DB-05-ST-03 Configure Vitest coverage threshold at 80%\n\n### Acceptance Criteria\n\n- [x] DB-05-AC-01 Coverage ≥ 80% for `packages/db`\n- [x] DB-05-AC-02 Tests use `vitest-mock-extended` for mocking — no real DB connections\n- [x] DB-05-AC-03 Both happy path and error paths tested\n\n### Technical Notes\n\n- Docs: [AGENTS.md#testing](https://github.com/paroki/domus/blob/main/docs/../AGENTS.md#testing)\n- Relevant files: `packages/db/src/repository/*.spec.ts`",
"number": 87,
"repository": "paroki/domus",
"title": "[DB-05] Repository & Mapper Tests (80%+ Coverage)",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/87"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQpM",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "db", "status: done"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[DB-05] Repository & Mapper Tests (80%+ Coverage)"
},
{
"content": {
"body": "### Description\n\nCreate a shared base TypeScript configuration package to be extended by all workspaces.\n\n### Subtasks\n\n- [x] INFRA-02-ST-01 Create `packages/tsconfig/base.json`\n- [x] INFRA-02-ST-02 Extend base config in all workspace `tsconfig.json` files\n\n### Acceptance Criteria\n\n- [x] INFRA-02-AC-01 All packages extend `@domus/tsconfig/base`\n- [x] INFRA-02-AC-02 `pnpm typecheck` passes across all workspaces\n\n### Technical Notes\n\n- Docs: [TDD#2-tech-stack](https://github.com/paroki/domus/blob/main/docs/tdd.md#2-tech-stack)\n- Relevant files: `packages/tsconfig/base.json`",
"number": 90,
"repository": "paroki/domus",
"title": "[INFRA-02] Setup Shared `packages/tsconfig`",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/90"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQoQ",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "infra"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[INFRA-02] Setup Shared `packages/tsconfig`"
},
{
"content": {
"body": "### Description\n\nCreate the Better Auth route handler as a thin export following the FSD architecture pattern.\n\n### Subtasks\n\n- [x] Implement handler logic in `src/app/api-routes/auth.ts`\n- [x] Create thin export at `app/api/auth/[...all]/route.ts`\n\n### Acceptance Criteria\n\n- [x] `app/api/auth/[...all]/route.ts` contains only a thin export — no logic\n- [x] Better Auth handles all `/api/auth/*` routes correctly\n\n### Technical Notes\n\n- Docs: [TDD#71-route-handler](https://github.com/paroki/domus/blob/main/docs/tdd.md#71-route-handler) · [TDD#31-appsdash-structure](https://github.com/paroki/domus/blob/main/docs/tdd.md#31-appsdash-structure)\n- Relevant files: `apps/dash/app/api/auth/[...all]/route.ts`, `apps/dash/src/app/api-routes/auth.ts`\n\n---",
"number": 126,
"repository": "paroki/domus",
"title": "[AUTH-03] Implement Auth Route Handler",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/126"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRSk",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-2", "status: done", "auth"],
"milestone": {
"description": "Auth & Shell: AUTH, UI. Gate: login flow working, routing by accountStatus functional.",
"dueOn": "",
"title": "Phase 2 — Auth & Shell"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[AUTH-03] Implement Auth Route Handler"
},
{
"content": {
"body": "### Description\n\nImplement the `/pending` and `/rejected` pages shown to users based on their `accountStatus` after login.\n\n### Subtasks\n\n- [x] AUTH-05-ST-01 Build `/pending` page at `src/pages/pending`\n- [x] AUTH-05-ST-02 Build `/rejected` page at `src/pages/rejected`\n- [x] AUTH-05-ST-03 Create thin exports at `app/(auth)/pending/page.tsx` and `app/(auth)/rejected/page.tsx`\n\n### Acceptance Criteria\n\n- [x] AUTH-05-AC-01 `/pending` only accessible to users with `accountStatus: pending`\n- [x] AUTH-05-AC-02 `/rejected` only accessible to users with `accountStatus: rejected`\n- [x] AUTH-05-AC-03 Both pages use `PublicShell` layout\n\n### Technical Notes\n\n- Docs: [PRD#7-authentication--access](https://github.com/paroki/domus/blob/main/docs/prd.md#7-authentication--access)\n- Screen spec: `docs/screen.md` → Pending Approval & Access Rejected sections\n\n---\n\n# 🏛️ Phase 3 — Core Features\n\n**Milestone:** `Phase 3 — Core Features`\n**Gate:** Self-registration flow end-to-end, attendance recording functional.",
"number": 128,
"repository": "paroki/domus",
"title": "[AUTH-05] Implement Account Status Pages",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/128"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRUA",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-2", "status: done", "auth", "ui"],
"linked pull requests": ["https://github.com/paroki/domus/pull/129"],
"milestone": {
"description": "Auth & Shell: AUTH, UI. Gate: login flow working, routing by accountStatus functional.",
"dueOn": "",
"title": "Phase 2 — Auth & Shell"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[AUTH-05] Implement Account Status Pages"
},
{
"content": {
"body": "### Description\n\nConfigure Biome as linter and formatter, Husky for git hooks, and Commitlint for commit message convention enforcement.\n\n### Subtasks\n\n- [x] INFRA-03-ST-01 Configure Biome across all workspaces\n- [x] INFRA-03-ST-02 Setup Husky `pre-commit` hook: Biome lint & format\n- [x] INFRA-03-ST-03 Setup Husky `commit-msg` hook: Commitlint (Conventional Commits)\n\n### Acceptance Criteria\n\n- [x] INFRA-03-AC-01 `pnpm lint` runs Biome across all workspaces\n- [x] INFRA-03-AC-02 Non-conventional commit messages are rejected\n- [x] INFRA-03-AC-03 Pre-commit hook runs Biome automatically\n\n### Technical Notes\n\n- Docs: [TDD#2-tech-stack](https://github.com/paroki/domus/blob/main/docs/tdd.md#2-tech-stack) · [TDD#92-cicd-pipeline](https://github.com/paroki/domus/blob/main/docs/tdd.md#92-cicd-pipeline)\n- Relevant files: `biome.json`, `.husky/`, `commitlint.config.ts`",
"number": 91,
"repository": "paroki/domus",
"title": "[INFRA-03] Setup Biome, Husky, and Commitlint",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/91"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQoA",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "infra"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[INFRA-03] Setup Biome, Husky, and Commitlint"
},
{
"content": {
"body": "",
"number": 135,
"repository": "paroki/domus",
"title": "phase 3 - ORG-01",
"type": "PullRequest",
"url": "https://github.com/paroki/domus/pull/135"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRVA",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"milestone": {
"description": "Core Features: ORG, MEMBER, EVENT. Gate: self-registration and attendance functional.",
"dueOn": "",
"title": "Phase 3 — Core Features"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "phase 3 - ORG-01"
},
{
"content": {
"body": "There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.\n\n",
"number": 150,
"repository": "paroki/domus",
"title": "Action Required: Fix Renovate Configuration",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/150"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqRVY",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "Action Required: Fix Renovate Configuration"
},
{
"content": {
"body": "### Description\n\nSet up GitHub Actions workflows for CI (lint, type check, build, test, coverage) and CD (Vercel deploy via CLI).\n\n### Subtasks\n\n- [x] INFRA-04-ST-01 Create `ci.yml`: Biome check → type check → build check → test + coverage\n- [x] INFRA-04-ST-02 Create `deploy.yml`: Vercel production deploy on tag push\n- [x] INFRA-04-ST-03 Create `release-please.yml`: automated release PR generation\n- [x] INFRA-04-ST-04 Configure Codecov integration\n\n### Acceptance Criteria\n\n- [x] INFRA-04-AC-01 CI pipeline runs on every PR and push to `main`\n- [x] INFRA-04-AC-02 Production deploy triggered on version tag (`v*.*.*`)\n- [x] INFRA-04-AC-03 Coverage report uploaded to Codecov\n\n### Technical Notes\n\n- Docs: [TDD#92-cicd-pipeline](https://github.com/paroki/domus/blob/main/docs/tdd.md#92-cicd-pipeline)\n- Relevant files: `.github/workflows/ci.yml`, `.github/workflows/deploy.yml`",
"number": 92,
"repository": "paroki/domus",
"title": "[INFRA-04] Setup GitHub Actions CI/CD Pipeline",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/92"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQnk",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "infra"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[INFRA-04] Setup GitHub Actions CI/CD Pipeline"
},
{
"content": {
"body": "### Description\n\nCreate and configure the `@domus/config` package for shared configuration and environment variable validation across all workspaces.\n\n### Subtasks\n\n- [x] INFRA-05-ST-01 Create `packages/config` with JIT exports\n- [x] INFRA-05-ST-02 Implement environment variable validation (e.g., using Zod or `t3-env`)\n- [x] INFRA-05-ST-03 Export shared config to `apps/dash` and `apps/cron`\n\n### Acceptance Criteria\n\n- [x] INFRA-05-AC-01 Missing required env vars cause a build-time error with a clear message\n- [x] INFRA-05-AC-02 `@domus/config` importable from all workspaces\n\n### Technical Notes\n\n- Docs: [TDD#33-package-conventions](https://github.com/paroki/domus/blob/main/docs/tdd.md#33-package-conventions)",
"number": 93,
"repository": "paroki/domus",
"title": "[INFRA-05] Create `@domus/config` Package",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/93"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQnM",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "infra"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[INFRA-05] Create `@domus/config` Package"
},
{
"content": {
"body": "### Description\n\nAdd a standardized `typecheck` command (`tsc --noEmit`) to all packages and configure it as a Turborepo task.\n\n### Subtasks\n\n- [x] INFRA-06-ST-01 Add `typecheck` script to all `package.json` files\n- [x] INFRA-06-ST-02 Configure `typecheck` task in `turbo.json`\n\n### Acceptance Criteria\n\n- [x] INFRA-06-AC-01 `pnpm typecheck` runs across all workspaces via Turborepo\n- [x] INFRA-06-AC-02 TypeScript errors are caught before deploy\n\n### Technical Notes\n\n- Docs: [TDD#2-tech-stack](https://github.com/paroki/domus/blob/main/docs/tdd.md#2-tech-stack)",
"number": 94,
"repository": "paroki/domus",
"title": "[INFRA-06] Add Standardized `typecheck` Command",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/94"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQm8",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "infra"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[INFRA-06] Add Standardized `typecheck` Command"
},
{
"content": {
"body": "### Description\n\nAdd TSDoc comments to all exported symbols in `@domus/core` and `@domus/db` as per documentation standards defined in `AGENTS.md`.\n\n### Subtasks\n\n- [x] INFRA-07-ST-01 Add TSDoc to all exported functions, classes, interfaces, and Zod schemas in `packages/core`\n- [x] INFRA-07-ST-02 Add TSDoc to all exported repository classes and mappers in `packages/db`\n\n### Acceptance Criteria\n\n- [x] INFRA-07-AC-01 All exported symbols have a TSDoc summary comment\n- [x] INFRA-07-AC-02 Comments written in English, concise, no type restating\n\n### Technical Notes\n\n- Docs: [AGENTS.md#documentation](https://github.com/paroki/domus/blob/main/docs/../AGENTS.md#documentation)",
"number": 95,
"repository": "paroki/domus",
"title": "[INFRA-07] Add TSDoc Documentation to `@domus/core` and `@domus/db`",
"type": "Issue",
"url": "https://github.com/paroki/domus/issues/95"
},
"id": "PVTI_lADOADFkWM4BUTmGzgpqQmw",
"iteration": {
"duration": 8,
"iterationId": "381c7c80",
"startDate": "2026-04-05",
"title": "Iteration 1"
},
"labels": ["phase-1", "status: done", "infra"],
"milestone": {
"description": "Foundation: INFRA, CORE, DB. Gate: all unit tests green, schema finalized.",
"dueOn": "",
"title": "Phase 1 — Foundation"
},
"repository": "https://github.com/paroki/domus",
"status": "Done",
"title": "[INFRA-07] Add TSDoc Documentation to `@domus/core` and `@domus/db`"
}
],
"totalCount": 113
}