Skip to content

Feat/wheel service details - #53

Merged
HaritMT25 merged 5 commits into
mainfrom
feat/wheel-service-details
Aug 5, 2026
Merged

Feat/wheel service details#53
HaritMT25 merged 5 commits into
mainfrom
feat/wheel-service-details

Conversation

@HaritMT25

Copy link
Copy Markdown
Collaborator

No description provided.

DIMENSION_SUB_KEYS stays the survey vocabulary that established_subcat_keys() text-matches. The 14 interview-coded sub-keys move to a new DIMENSION_INTERVIEW_SUB_KEYS, never text-matched: service_matches_label() is prefix-tolerant, so free text 'Mindfulness' would capture wellness_spiritual_mindfulness_embedded and 'Daily meals for teens' would capture wellness_physical_meals, tagging orgs with services no coder assigned. DIMENSION_ALL_SUB_KEYS is the derived union used for display and filtering. Also drops a stale comment describing a <dim>_other catch-all removed earlier, and rewrites check_label_collisions.R's header now that its premise holds structurally.
interview_subcat_keys() reads other_services, gated to survey-established dimensions and to declared taxonomy keys. org_subcat_keys() unions it with established_subcat_keys(); both the details wheel (data-active-subcats) and the organizations cards (data-established-subcats) now read through it, so a filter hit and the wheel cannot disagree. Previously the cards used survey-only matching, so new filter checkboxes would have matched zero orgs. WHEEL_META extended to match, with a test that parses app.js and compares against DIMENSION_ALL_SUB_KEYS.
Plaintext English-only data/service_details.json maps irb_participant_id -> dimension -> sub_key -> text, authored by hand one org at a time; a .enc file would make every small edit an unreviewable binary diff. get_service_details() scopes text to the keys the wheel actually renders and drops blank values, so partial coverage is safe and an unwritten service renders no box. subcat_details_attr() returns NULL when empty so Shiny omits the attribute entirely. createWheel stacks the box under the label inside a new .subcat-body element, since .subcats li is a flex row; text is HTML-escaped as this is the first hand-authored prose in the panel string. Includes YSP04 (Boston Private Industry Council) as the first coded organization, 9 of its 13 rendered sub-keys.
build_manifest_app_files() listed only R/data.R, but that file is a loader that sources ten modules in R/data/ at boot, so regenerating the manifest would have produced a bundle that cannot start. Also adds interview_data.json.enc, interview_translations.json and service_details.json: all three degrade to rendering nothing when absent, so omitting them fails silently rather than loudly.
Adds main_ui.R, footer_ui.R, about_ui.R and the three optional runtime data files, including the new service_details.json; drops the three www/html entries no longer on disk. Platform left pinned at 4.5.2 rather than the local 4.6.0 so this does not silently change the R version Connect Cloud deploys under.
@HaritMT25
HaritMT25 merged commit c5b079c into main Aug 5, 2026
1 check failed
@HaritMT25
HaritMT25 deleted the feat/wheel-service-details branch August 5, 2026 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant