Skip to content

Conversation

@gpaoloni
Copy link
Collaborator

@gpaoloni gpaoloni commented Jan 19, 2026

Description

This PR

  • Updates Twilio Paste dependencies to avoid some deps conflicts we had.
  • Minor changes in the codebase.
  • Fix unit tests.

Checklist

Verification steps

  • CI goes ✔️

AFTER YOU MERGE

  1. Cut a release tag using the Github workflow. Wait for it to complete and notify in the #aselo-deploys Slack channel.
  2. Comment on the ticket with the release tag version AND any additional instructions required to configure an environment to test the changes.
  3. Only then move the ticket into the QA column in JIRA

You are responsible for ensuring the above steps are completed. If you move a ticket into QA without advising what version to test, the QA team will assume the latest tag has the changes. If it does not, the following confusion is on you! :-P

@gpaoloni gpaoloni changed the title chore: aselo-webhcat-react-app - fix unit tests [CHI-3613] chore: aselo-webhcat-react-app - fix unit tests [CHI-3624 Jan 21, 2026
@gpaoloni gpaoloni marked this pull request as ready for review January 21, 2026 17:36
@gpaoloni gpaoloni requested a review from stephenhand January 21, 2026 17:36
(localeTranslations: ConfigState['translations'][keyof ConfigState['translations']]) =>
(key: string, parameters: Record<string, string> = {}) => {
const lookedUpValue = localeTranslations[key] || key;
const lookedUpValue = (localeTranslations && localeTranslations[key]) || key;
Copy link
Collaborator

Choose a reason for hiding this comment

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

The translations should always be present with the merged configs

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I know they should but if they don't I'm of the idea is better to have a weird default than a blank page. Also, this way makes testing easier, as we need less mocks.

import { initLogger, getLogger } from './logger';
import { changeExpandedStatus } from './store/actions/genericActions';

const getHelplineConfig = async ({ configUrl }: { configUrl: string | URL }) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This logic seemed more concise and readable inline, especially considering all the result type bloat the separate function adds

A comment indicating that the section of code loads the config would be better than moving it out to a function. Internal functions that are only called from one place generally don't help readability - better to have it inline, commented as appropriate - though there are exceptions

@gpaoloni gpaoloni changed the title chore: aselo-webhcat-react-app - fix unit tests [CHI-3624 chore: aselo-webhcat-react-app - fix unit tests [CHI-3624] Jan 23, 2026
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