mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-19 00:12:18 +00:00
refactor(geo): move the offline-geo admin notice out of the resolver
auditLog resolves login locations through lib/geo.ts, and the resolver imported the notification dispatcher for the offline-database notice. The dispatcher's collaborators write audit rows, so audit, geo, the dispatcher, channel state, delivery identity, managed-profile lifecycle, the OAuth connect target and the grants formed one strongly connected cluster. The notice now lives in lib/notifications/offline-geo-notice.ts. The resolver keeps deciding when it runs (first public-IP lookup of a process, again after a runtime database fetch) through a slot the notice module fills at boot from instrumentation.ts. Runtime import cycles fall from 13 to 7.
This commit is contained in:
1 parent
ee1561496b
commit
0139c22ae3
5 files changed
+231
-133
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"$comment": "Runtime import cycles under src/: the back-edge count and the strongly connected components. Maintained by src/__tests__/import-cycle-guard.test.ts.",
|
||||
"cycles": 13,
|
||||
"cycles": 7,
|
||||
"components": [
|
||||
[
|
||||
"components/command-palette/command-palette.tsx",
|
||||
@@ -19,15 +19,8 @@
|
||||
"lib/medications/scheduling/schedule-eras.ts"
|
||||
],
|
||||
[
|
||||
"lib/auth/audit.ts",
|
||||
"lib/geo.ts",
|
||||
"lib/integrations/oauth-kit/connect-target.ts",
|
||||
"lib/jobs/offhost-purge.ts",
|
||||
"lib/managed-profiles/lifecycle.ts",
|
||||
"lib/notifications/channel-state.ts",
|
||||
"lib/notifications/delivery-identity.ts",
|
||||
"lib/notifications/dispatch-localised.ts",
|
||||
"lib/notifications/dispatcher.ts",
|
||||
"lib/sharing/grants.ts"
|
||||
],
|
||||
[
|
||||
|
||||
Reference in new issue
Block a user