Skip to content

feat: add config option to hide developer messages for clinical users#1813

Open
MaryamMehd wants to merge 2 commits intomainfrom
issue/1805
Open

feat: add config option to hide developer messages for clinical users#1813
MaryamMehd wants to merge 2 commits intomainfrom
issue/1805

Conversation

@MaryamMehd
Copy link
Collaborator

Adds a showDeveloperMessages configuration option to allow hiding developer-focused messages from clinical/production deployments.

Changes:

  • Add showDeveloperMessages field to ConfigFile interface (optional, defaults to true)
  • Update FALLBACK_CONFIG with showDeveloperMessages: true
  • Add showDeveloperMessages: true to main branch config.json
  • Update usePopulate hook to conditionally show pre-population issue snackbar
  • Keep console.warn() output for developer debugging (not visible to end users)
  • Add comprehensive tests for both enabled and disabled states

For health-checks-pilot branch deployment:

  • Set showDeveloperMessages: false in config.json to hide messages like "Form partially populated, there might be pre-population issues. View console for details."

Related issue: #1805

Adds a `showDeveloperMessages` configuration option to allow hiding
developer-focused messages from clinical/production deployments.

Changes:
- Add showDeveloperMessages field to ConfigFile interface (optional, defaults to true)
- Update FALLBACK_CONFIG with showDeveloperMessages: true
- Add showDeveloperMessages: true to main branch config.json
- Update usePopulate hook to conditionally show pre-population issue snackbar
- Keep console.warn() output for developer debugging (not visible to end users)
- Add comprehensive tests for both enabled and disabled states

For health-checks-pilot branch deployment:
- Set showDeveloperMessages: false in config.json to hide messages like
  "Form partially populated, there might be pre-population issues.
   View console for details."

Related issue: #1805
@MaryamMehd MaryamMehd requested a review from clinnygee February 6, 2026 04:51
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.

2 participants