project-nomad/admin
Chris 374ccda92a feat(drug-reference): rework into an opt-in medicine-standard tier dataset
Reshapes the offline FDA drug reference from a built-in feature into curated
content installed by selecting the Medicine / Standard tier, per maintainer
direction.

- install-state: the ingest writes an installed_resources 'dataset' row on
  ready (version = the openFDA export_date), threaded installer to download to
  ingest; the tier-status math and the home-tile gate read it. Manual ingests
  write no row, so install-state stays tied to the curated path.
- manifest: declare the dataset in the medicine-standard tier (runtime fetches
  the remote manifest, so this also needs to land upstream).
- install-gating: the drug-reference home tiles render only when installed.
- uninstall: DrugReferenceService.uninstall() stops the two drug queues, deletes
  the on-disk parts, truncates drug_labels (schema kept), clears the KV markers,
  and drops the install row. Best-effort, logged, scoped to drug data only.
- downloads: the download phase reports the canonical {percent, downloadedBytes,
  totalBytes} shape as one drug-data card in the Active Downloads aggregator with
  cancel/remove; the heavy ingest stays in the IngestStatus surface with an
  Indexing handoff on the card.
- auto-update: a daily DrugAutoUpdateJob compares the manifest export_date and
  re-downloads when newer, gated on installed + no active job.

typecheck clean; the drug standalone suites pass. Three points are flagged in
code for the maintainer: the InstalledResource 'dataset' approach, the tier
home, and the export_date string format.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-24 17:41:29 -05:00
..
app feat(drug-reference): rework into an opt-in medicine-standard tier dataset 2026-06-24 17:41:29 -05:00
bin feat: curated content system overhaul 2026-02-11 15:44:46 -08:00
commands feat(drug-reference): rework into an opt-in medicine-standard tier dataset 2026-06-24 17:41:29 -05:00
config feat(zim): add zim uploader in content manager 2026-06-23 04:47:08 +00:00
constants feat: configurable internet test url override in new Advanced Settings page 2026-06-23 04:47:10 +00:00
database fix(drug-reference): address review — defer FULLTEXT, fallback remedies prop, strip fork refs 2026-06-23 07:14:34 -05:00
docs docs(release): finalize v1.33.0 release notes [skip ci] 2026-06-23 04:49:49 +00:00
inertia feat(drug-reference): rework into an opt-in medicine-standard tier dataset 2026-06-24 17:41:29 -05:00
providers fix(kiwix): self-heal a missing or corrupt library XML on startup 2026-06-23 04:46:56 +00:00
public feat: switch all PNG images to WEBP (#575) 2026-04-03 14:26:50 -07:00
resources feat(Maps): regional map downloads via go-pmtiles extract (#780) 2026-05-20 10:16:00 -07:00
scripts feat(supply-depot): add MeshCore Web with self-signed HTTPS 2026-06-23 04:47:06 +00:00
start feat(drug-reference): rework into an opt-in medicine-standard tier dataset 2026-06-24 17:41:29 -05:00
tests feat(drug-reference): rework into an opt-in medicine-standard tier dataset 2026-06-24 17:41:29 -05:00
types feat(drug-reference): rework into an opt-in medicine-standard tier dataset 2026-06-24 17:41:29 -05:00
util feat(drug-reference): rework into an opt-in medicine-standard tier dataset 2026-06-24 17:41:29 -05:00
views feat: initial commit 2025-06-29 15:51:08 -07:00
.editorconfig feat: initial commit 2025-06-29 15:51:08 -07:00
.env.example fix(system): prevent false offline reports when Cloudflare endpoint is unreachable 2026-06-23 04:47:01 +00:00
ace.js feat: initial commit 2025-06-29 15:51:08 -07:00
adonisrc.ts feat(GPU): auto-remediate nomad_ollama passthrough loss on admin boot (#755) 2026-05-20 10:16:00 -07:00
eslint.config.js feat: openwebui+ollama and zim management 2025-07-09 09:08:21 -07:00
package-lock.json feat(drug-reference): offline FDA drug labels, conditions, and remedies 2026-06-23 07:14:34 -05:00
package.json feat(drug-reference): offline FDA drug labels, conditions, and remedies 2026-06-23 07:14:34 -05:00
tailwind.config.ts feat: initial commit 2025-06-29 15:51:08 -07:00
tsconfig.json fix(drug-reference): address review — defer FULLTEXT, fallback remedies prop, strip fork refs 2026-06-23 07:14:34 -05:00
vite.config.ts fix(Maps): ensure proper parsing of hostnames (#640) 2026-04-03 14:26:50 -07:00