From cc773c64c6dcf7ac71924d9167da2dba934848be Mon Sep 17 00:00:00 2001 From: Zak Burke Date: Mon, 10 Jun 2024 09:22:50 -0400 Subject: [PATCH] STCOR-859 list UI apps under apps/modules/interfaces column (#1489) Follow-up to the original PR (#1385, STCOR-773). There were at least two gotchas there: 1. The attribute key in the response changed from `ui-modules` to `uiModules` 2. Since frontend and backend applications are stored under separate keys, the discovery reducer needed to grab values from both keys. Refs STCOR-859 --- CHANGELOG.md | 1 + .../About/AboutApplicationVersions.js | 1 + src/components/About/AboutModules.js | 8 +++- src/discoverServices.js | 31 +++++++++----- src/discoverServices.test.js | 42 +++++++++++++++++++ 5 files changed, 70 insertions(+), 13 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 96170f618..fc1c2f155 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,7 @@ * Use keycloak URLs in place of users-bl for tenant-switch. Refs US1153537. * Fix 404 error page when logging in after changing password in Eureka. Refs STCOR-845. * Always retrieve `clientId` and `tenant` values from `config.tenantOptions` in stripes.config.js. Retires `okapi.tenant`, `okapi.clientId`, and `config.isSingleTenant`. Refs STCOR-787. +* List UI apps in "Applications/modules/interfaces" column. STCOR-773 ## [10.1.1](https://github.com/folio-org/stripes-core/tree/v10.1.1) (2024-03-25) [Full Changelog](https://github.com/folio-org/stripes-core/compare/v10.1.0...v10.1.1) diff --git a/src/components/About/AboutApplicationVersions.js b/src/components/About/AboutApplicationVersions.js index 7de809407..26b2e7ca9 100644 --- a/src/components/About/AboutApplicationVersions.js +++ b/src/components/About/AboutApplicationVersions.js @@ -21,6 +21,7 @@ const AboutApplicationVersions = ({ message, applications }) => { {message} {Object.values(applications) + .sort((a, b) => a.name.localeCompare(b.name)) .map((app) => { return (