Skip to content

Chore/core 567 dashboard readme updates#296

Merged
musayann merged 3 commits into
mainfrom
chore/CORE-567-dashboard-readme-updates
Jul 17, 2026
Merged

Chore/core 567 dashboard readme updates#296
musayann merged 3 commits into
mainfrom
chore/CORE-567-dashboard-readme-updates

Conversation

@Fidesnoella

@Fidesnoella Fidesnoella commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Ticket: CORE-567

Comment thread frontend-new/src/envService.ts Outdated

export const getFaqTutorialVideoUrl = () => getEnv(EnvVariables.FRONTEND_FAQ_TUTORIAL_VIDEO_URL);

export const getTevetSkillsHidden = () => getEnv(EnvVariables.FRONTEND_HIDE_TEVET_SKILLS).toLowerCase() === "true";

@musayann musayann Jul 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rename this to ProgramSkills instead. getProgramSkillsVisibility, FRONTEND_HIDE_PROGRAM_SKILLS

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR extends Compass Connect’s frontend configurability by adding (1) a country name used in user-facing dashboard copy via i18n interpolation, and (2) a feature flag to hide the TEVET programme-skills section across the dashboard/sidebar/profile. It also updates READMEs/assets and config injection so these values can be set from environment/config.

Changes:

  • Add GLOBAL_COUNTRY_NAME and wire it into i18n default interpolation variables; update multiple locales to use {{country}}.
  • Add FRONTEND_HIDE_TEVET_SKILLS feature flag and apply it to the home sidebar, skills-discovery sidebar, and profile “Education Skills” section.
  • Update config/injection/docs/examples (and top-level README logos) to reflect the new branding/config options.

Reviewed changes

Copilot reviewed 23 out of 23 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
README.md Switches README logo assets to repo-hosted SVGs and adjusts display size.
iac/templates/env.template Documents new env vars (FRONTEND_HIDE_TEVET_SKILLS, GLOBAL_COUNTRY_NAME).
iac/frontend/prepare_frontend.py Emits the new env vars into the generated frontend env JS payload.
frontend-new/src/profile/components/SkillsDiscoveredCard/SkillsDiscoveredCard.tsx Hides the “Education Skills” (TEVET) section when the flag is enabled and adjusts indices accordingly.
frontend-new/src/home/components/Sidebar/SkillsDiscoverySidebar.tsx Hides programme skills block (and related “any skills” logic) behind the new flag.
frontend-new/src/home/components/Sidebar/HomeSidebar.tsx Hides programme skills section behind the new flag.
frontend-new/src/envService.ts Adds GLOBAL_COUNTRY_NAME + FRONTEND_HIDE_TEVET_SKILLS getters and env enum entries.
frontend-new/src/i18n/i18n.ts Adds country as a default i18n interpolation variable via getCountryName().
frontend-new/src/i18n/locales/en-US/translation.json Replaces hardcoded country mentions with {{country}}.
frontend-new/src/i18n/locales/en-GB/translation.json Replaces hardcoded country mentions with {{country}}.
frontend-new/src/i18n/locales/es-ES/translation.json Replaces hardcoded country mentions with {{country}}.
frontend-new/src/i18n/locales/es-AR/translation.json Replaces hardcoded country mentions with {{country}}.
frontend-new/src/i18n/locales/pt-MZ/translation.json Replaces hardcoded country mentions with {{country}}.
frontend-new/src/i18n/locales/sw-KE/translation.json Replaces hardcoded country mentions with {{country}}.
frontend-new/src/i18n/locales/ny-ZM/translation.json Replaces hardcoded country mentions with {{country}}.
frontend-new/src/_test_utilities/envServiceMock.ts Extends envService mocks with getCountryName and getTevetSkillsHidden.
frontend-new/src/home/components/Footer/snapshots/Footer.test.tsx.snap Updates snapshot output to reflect the new {{country}} token in translations.
frontend-new/README.md Documents FRONTEND_HIDE_TEVET_SKILLS.
frontend-new/public/data/env.example.js Adds example values for the new env vars.
config/inject-config.py Maps GLOBAL_COUNTRY_NAME to branding.country for injection.
config/default.json Adds branding.country.
config/njira.json Adds branding.country.
config/CUSTOMIZATION.md Documents branding.country customization.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread frontend-new/src/i18n/i18n.ts
Comment thread frontend-new/src/envService.ts
Comment thread frontend-new/src/envService.ts Outdated
@Fidesnoella
Fidesnoella force-pushed the chore/CORE-567-dashboard-readme-updates branch from 73ccab9 to 272b078 Compare July 17, 2026 14:30
@Fidesnoella
Fidesnoella requested review from musayann July 17, 2026 14:37
@musayann
musayann merged commit 5128295 into main Jul 17, 2026
9 checks passed
@musayann
musayann deleted the chore/CORE-567-dashboard-readme-updates branch July 17, 2026 14:59
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