Production-ready: bug fixes, data expansion, a11y, i18n, CI, tests#1
Merged
Conversation
…ocab, file sync - Guard sendPrompt calls with typeof check to prevent ReferenceError when "Send to Chat" is clicked outside a chat host environment - Remove incorrect senior exclusion from adult Medicaid (ages 60-64 qualify) - Fix mo-resources.json schema: replace invalid domain "all" and "childcare" with standard vocabulary, fix "adults" population to "all" - Sync sdoh-intake-tool.jsx with intake-app.jsx: add missing "School Meals (Reduced)" program, add domain field to all programs, add currentBenefits to initial state, align Section 8 and SSI wording - Remove unused useEffect import from intake-app.jsx https://claude.ai/code/session_01Qz7ppbXg1Qvnu7WVBgqqdN
Repository foundation: - Add README.md with full project documentation, screening domains, benefits table, resource coverage map, and usage guide - Add Apache-2.0 LICENSE (CC-BY-4.0 for resource data) - Add CONTRIBUTING.md with resource submission guide and checklists - Add .gitignore Data quality: - Expand mo-resources.json from 31 to 58 entries: FQHCs (6), shelters (3), DV services (2), VA medical centers (2), SUD treatment (2), reentry (2), community action agencies (2), housing authorities (2), immigration (2), veteran crisis line, child care referral, statewide job centers - Add coverage for KC metro, Mid-MO, SE MO (Bootheel), and rural regions - Add mo-resources.schema.json (JSON Schema draft 2020-12) - Add scripts/validate.js: schema validation, vocabulary checks, freshness alerts, coverage analysis Code quality: - Consolidate two redundant JSX files into single intake-app.jsx - Add accessibility: semantic HTML (header, nav, section, fieldset), ARIA attributes (radiogroup, aria-checked, role=switch, aria-modal, aria-current, aria-label), label/htmlFor associations, Escape key handler for modal, role=status for live updates - Fix 0% FPL bug: !pct was truthy for zero-income households - Export constants for testability Testing: - Add tests/eligibility.test.js with 58 automated tests covering FPL calculations, eligibility filtering for all population types, resource directory integrity, and screening score logic - All tests passing, validation clean https://claude.ai/code/session_01Qz7ppbXg1Qvnu7WVBgqqdN
CI/CD: - Add GitHub Actions workflow (validate.yml) that runs schema validation and all 58 tests on every push/PR to main Session persistence: - Save screening progress to localStorage on every state change - Restore previous session on page load (survives refresh/close) - Clear session on "Start New Screening" Internationalization: - Create i18n.js with complete English and Spanish translations for all UI strings, screening questions, domain labels, and form fields - Add language selector dropdown in header (English / Español) - Reports always generate in English for case notes interoperability - Refactor DOMAINS array to DOMAIN_IDS with i18n-driven labels Project scaffolding: - Add package.json with validate/test/check scripts - Add SECURITY.md covering data handling, localStorage, and crisis resources - Add GitHub issue templates (add-resource, data-issue) - Add PR template with validation checklist https://claude.ai/code/session_01Qz7ppbXg1Qvnu7WVBgqqdN
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
intake-app.jsxhttps://claude.ai/code/session_01Qz7ppbXg1Qvnu7WVBgqqdN