Skip to content

[AI] What to change: The dp icon for a specific registered user (user means all us... - #195

Open
burkongla wants to merge 1 commit into
mainfrom
agent/slack-d8d55d4c-what-to-change-the-dp-icon-for-a-specifi
Open

[AI] What to change: The dp icon for a specific registered user (user means all us...#195
burkongla wants to merge 1 commit into
mainfrom
agent/slack-d8d55d4c-what-to-change-the-dp-icon-for-a-specifi

Conversation

@burkongla

Copy link
Copy Markdown
Contributor

Automated PR

Task: What to change: The dp icon for a specific registered user (user means all us...
Description: What to change: The dp icon for a specific registered user (user means all user groups)
Description and specific values:
• Make sure that the color of the dp icon for a specific user is consistent across all usage contexts. Currently the color of the dp icons changes when you navigate from “List of helpers” into “See profile” within the Helpers page, for Admin. The color shown in the list is different from the color shown in the profile. The color must be the same regardless of context. If a user is registered within multiple user categories, make sure that the color of the dp icon for that specific user, is consistent across all categories (User, Helper, Admin) and pages.
Do not change: Anything else than what is listed.
Acceptance criteria: When all points listed under “Description and specific values” are implemented the task is done.
Source: slack
Requested by: U04E9DZ5ELF
Classification: flow

Changes

Avatar fallback colors are derived deterministically from an id via getAvatarColorHexForId, but different pages key the same person on different ids (helper_id vs user_id vs name), causing the color to change between the Helpers list and the helper profile (and elsewhere). Normalize every avatar color lookup to key on the person's user_id first (falling back to helper_id only for unregistered helpers), so one user always gets one color across Admin/Helper/User contexts.

Security Review

Status: pass
No package.json/import_map changes, so no dependency audit was needed. The diff only threads projects_helpers.user_id (already exposed to clients elsewhere, e.g. the helpers list page) into avatar-color derivation; no new XSS sinks, injection vectors, secrets, auth/CORS changes, or schema/RLS changes. avatarColor safely accepts null/undefined, so the new nullable primaryHelperAvatarKey is handled.

🤖 Generated by githelp-support agent team

…r means all us...

Task: d8d55d4c
Source: slack
Requested by: U04E9DZ5ELF
@netlify

netlify Bot commented Aug 19, 2026

Copy link
Copy Markdown

Deploy Preview for githelp-support ready!

Name Link
🔨 Latest commit 9bcc1ba
🔍 Latest deploy log https://app.netlify.com/projects/githelp-support/deploys/6a85d1766fe8d70008138819
😎 Deploy Preview https://deploy-preview-195--githelp-support.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant