Commit 3df7e3c
committed
chore(release): 1.0.0 — legacy collector code deleted (plan 61 C1.d/e)
BREAKING:
- Deleted classes: Collector, CollectorClient, CollectorInvite (~1420 LOC).
- AppManagingAccount: removed createCollector/getCollectors/getCollectorById/
getContacts; now a thin Application subclass.
- AppClientAccount: removed handleIncomingRequest/getCollectorClients/
getContacts; now a thin Application subclass.
- Contact: removed sources/collectorClients/invites fields + their add*
methods. Removed legacy getters (primaryCollectorClient, isPending,
hasPendingUpdate, pendingUpdateClients, acceptPendingInvite,
refusePendingInvite, formSections, chatStreams, chatPost, collectorSources,
bridgeSources). Removed static groupByContact/sourceFromAccess.
- Contact.status / isActive / appStreamIds / allPermissions / accessIds /
hasChat rewritten to derive from cmcRelationships (+ accessObjects for
accessIds). hds-webapp's wrapper getters and ItemInputDialog's
formSections consumer continue to work.
- interfaces.ts: removed ContactSource/ContactSourceType/ChatStreams +
AccessUpdateRequest types. Permission/CollectorSectionInterface/
RequestSectionType retained.
- itemLabels.collectItemLabels(itemKey, contacts) now walks
cmcRelationships[].hdsFormSpec.sections (was CollectorClient.getSections).
KEPT:
- CollectorRequest (used by hds-forms-js FormBuilder UI per Path B).
- Contact.accessObjects (still populated by aggregateCmc; backs
initStreamCache / eventIsAccessible / eventIsFromContact).
Tests: 499 passing. Deleted 5 legacy test suites (accessUpdate,
apptemplates, and the legacy parts of contact / applicationClass /
apptemplatesRequest). New CTDE getter tests for the rewritten Contact
derivations.
Live verified: doctor signin → sidebar lists FormSpecs → PatientsPage
reads form by id → existing invite still visible.
Consumers still on legacy: bridge-redcap (frozen on hds-lib#0fedc1d in
bridge-redcap@d5acb30).1 parent 0fedc1d commit 3df7e3c
18 files changed
Lines changed: 191 additions & 3358 deletions
File tree
- tests
- test-utils
- ts/appTemplates
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 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 | + | |
3 | 28 | | |
4 | 29 | | |
5 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
6 | 5 | | |
7 | 6 | | |
| |||
137 | 136 | | |
138 | 137 | | |
139 | 138 | | |
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 | 139 | | |
173 | 140 | | |
174 | 141 | | |
| |||
0 commit comments