Repository navigation
Conversation
…rug ranking & WCAG a11y fixes
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Fixes #2
This Pull Request addresses the critical offline persistence, clinical safety, autocomplete ranking, UI/UX interaction, and WCAG accessibility defects identified during our comprehensive audit of PrescribePro-Rx (Version 3.0 Pro).
Key Implementations
1. 100% Offline 41k Formulary Engine (IndexedDB + Service Worker)
PrescribeProDB / drugs_cache): Added an IndexedDB layer inscripts.jsto storedata/drugs.json. Bypasses the 5 MB browserlocalStoragequota and enables instant 0ms startup without throwingQuotaExceededError.sw.js): Added a standards-compliant Service Worker pre-caching the application shell and formulary assets with a stale-while-revalidate strategy.manifest.json.2. Clinical Drug Search & Autocomplete Ranking
"Paracetamol"now surfaces Napa, Ace, Fast, and Renova directly at the top.(API),Pellets,Kg,Liter).🐾 Vetbadge for veterinary drugs in search results."Paracetamol 500 mg""500 mg") and auto-populatesddose-${id}on selection.3. Clinical Safety Guardrails
checkDrugSafety(rowId)), highlighting the drug card in red with a prominent warning banner.4. UI / UX & A4 Print Engine
Esckey.Ctrl+P): Upgraded@media printinstyles.cssso that pressing browserCtrl+Pcleanly isolates#rx-a4at210mm × 296.8mmwithout printing the dashboard and background.+ New Prescription.screenshots/Create login.jpgwith a valid screenshot asset.5. Web Accessibility (WCAG 2.1 AA)
for="..."attributes on all 30+ form<label>tags matching their respective inputids across the application.Verification & Testing
node -c scripts.jsandnode -c sw.js.Paracetamolimmediately returns Napa and Ace in top results.Escapekey closes modals.