Skip to content

Initial framework for NHSN App UI integration/component - #1699

Draft
seanmcilvenna wants to merge 23 commits into
devfrom
nhsn-app-component
Draft

Initial framework for NHSN App UI integration/component#1699
seanmcilvenna wants to merge 23 commits into
devfrom
nhsn-app-component

Conversation

@seanmcilvenna

@seanmcilvenna seanmcilvenna commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

🛠️ Description of Changes

  • Two new projects/services (UI and Server services/components)
  • UI can be built as a standalone framework/service for lower-env testing
  • UI can also be built as a webpack'd set of components resulting in a single .js file for delivery to NHSN App
  • BFF has basic RBAC tables, has support for JWT validation, and requires that authorization bearer be passed into (with the JWT) for the user. Has a userinfo endpoint that the UI uses to determine their role (according to the BFF).

🧪 Testing Performed

Launched using docker compose and the UI fundamentally works, with the BFF

🧑‍🔬 Unit Testing

  • I have written or updated unit tests to cover my changes
  • Coverage: 0.0%

📓 Documentation Updated

READMEs created in each project folder

- UI and Server services/components
- UI can be built as a standalone framework/service for lower-env testing
- UI can also be built as a webpack'd set of components resulting in a single .js file for delivery to NHSN App
- BFF has basic RBAC tables, has support for JWT validation, and requires that authorization bearer be passed into (with the JWT) for the user. Has a userinfo endpoint that the UI uses to determine their role (according to the BFF).
@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c2df0099-ccb9-4573-a0fa-07e300f17d6e

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch nhsn-app-component

Comment @coderabbitai help to get the list of available commands.

Comment on lines +17 to +19
app.get('*', (_req, res) => {
res.sendFile(path.join(root, 'index.html'));
});
seanmcilvenna and others added 18 commits July 6, 2026 10:36
…Link and UserInfoService, and update relevant documentation.
- Replace Roles and UserRoles with `IsAdmin` flag for simplified RBAC.
- Add facility-related administrative functionalities.
- Extend middleware, services, and endpoints to support facility onboarding management.
- Implement frontend components for onboarding and facility administration.
- Update database schema with migrations for groups-based RBAC and facility table addition.
… simulated header logic:

- Added JWT signing with private key PEM in the UI shell for lower-env requests.
- Updated BFF to validate and log JWTs, replacing simulated header support.
- Removed SimulatedUserHeaderPayload model and related logic.
- Extended UI TestUserProfile model for JWT signing fields.
- Introduced `/shell-config.js` for UI JWT defaults in Docker.
- Enhanced middleware and configuration for stricter auth handling.
…tTestingMode` logic; implement token renewal and max token age validation.
var filePath = BuildFilePath(resourceDirectory, candidateLocale, namespaceName);
if (filePath is null || !File.Exists(filePath))
{
_logger.LogDebug("Localization resource not found for locale/namespace. Locale={Locale}; Namespace={Namespace}", candidateLocale, namespaceName);
var filePath = BuildFilePath(resourceDirectory, candidateLocale, namespaceName);
if (filePath is null || !File.Exists(filePath))
{
_logger.LogDebug("Localization resource not found for locale/namespace. Locale={Locale}; Namespace={Namespace}", candidateLocale, namespaceName);
var rootNode = JsonNode.Parse(json) as JsonObject;
if (rootNode is null)
{
_logger.LogWarning("Localization resource file does not contain a JSON object. File={File}", filePath);
}
catch (JsonException ex)
{
_logger.LogWarning(ex, "Localization resource JSON is malformed. File={File}", filePath);
}
catch (IOException ex)
{
_logger.LogError(ex, "Localization resource file could not be read. File={File}", filePath);

if (!resourceByLocale.ContainsKey(DefaultLocale))
{
_logger.LogError("Default English localization was not found for namespace. Namespace={Namespace}", namespaceName);
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.

3 participants