Skip to content

PM-4393: Link project access support email#1801

Merged
jmgasper merged 1 commit into
devfrom
PM-4393-4
May 4, 2026
Merged

PM-4393: Link project access support email#1801
jmgasper merged 1 commit into
devfrom
PM-4393-4

Conversation

@jmgasper

@jmgasper jmgasper commented May 4, 2026

Copy link
Copy Markdown
Collaborator

What was broken
Unauthorized Work project access messages displayed support@topcoder.com as plain text, so users could not click it to contact support.

Root cause
The shared Work ErrorMessage component rendered message text as plain content and did not link the support email used by PM-4393 denial copy.

What was changed
Updated ErrorMessage to convert support@topcoder.com in plain text messages into a standard mailto:support@topcoder.com link while preserving the existing message text and styling. Updated ProjectRouteAccessGuard expectations for the split text/link rendering.

Any added/updated tests
Added ErrorMessage coverage for the mailto support link and updated ProjectRouteAccessGuard denial tests to assert the support link href.

Validation run:

  • yarn test:no-watch src/apps/work/src/lib/components/ErrorMessage/ErrorMessage.spec.tsx src/apps/work/src/lib/components/ProjectRouteAccessGuard/ProjectRouteAccessGuard.spec.tsx src/apps/work/src/pages/challenges/ChallengesListPage/ChallengesListPage.spec.tsx src/apps/work/src/pages/challenges/ChallengeEditorPage/ChallengeEditorPage.spec.tsx
  • yarn lint
  • yarn run build
  • yarn test:no-watch --silent still fails in existing unrelated PaymentView and ChallengeEditorForm specs on current dev.

What was broken
Unauthorized Work project access messages displayed support@topcoder.com as plain text, so users could not click it to contact support.

Root cause
The shared Work ErrorMessage component rendered message text as plain content and did not link the support email used by PM-4393 denial copy.

What was changed
Updated ErrorMessage to convert support@topcoder.com in plain text messages into a standard mailto:support@topcoder.com link while preserving the existing message text and styling. Updated ProjectRouteAccessGuard expectations for the split text/link rendering.

Any added/updated tests
Added ErrorMessage coverage for the mailto support link and updated ProjectRouteAccessGuard denial tests to assert the support link href.
@jmgasper jmgasper requested a review from kkartunov as a code owner May 4, 2026 06:19
@jmgasper jmgasper merged commit bffdbde into dev May 4, 2026
8 checks passed
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.

1 participant