GeezerVison is showing github.com — feat(profile): choose the own avatar in the profile header (#878 phas… by Shirloin · Pull Request #1656 · OpenResilienceInitiative/ORISO-Frontend
Conversation
Shirloin
commented
Oct 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
Phase 4 of #878: people choose their avatar in "Mein Profil". The app had a picker component (#1540), but no page used it and nothing could be saved.
Fix
ProfileAvatarChoice: a horizontally scrolling avatar row under the profile header. It saves at once through PATCH /users/data and reloads the user data; a failed save shows the usual error notification.
- Advice seekers pick an animal and keep the colours derived from their id, so only the animal changes. Counsellors pick from Admin's motif set (the same 61 ids, without the crane) on primary / on-primary.
- The first tile ("Standard") brings back the default avatar.
- The row is one tab stop (the picked tile, else the default); the arrows, Home and End move focus, Enter or Space picks.
- The profile header and the user's own chat bubbles show the pick (
UserAvatar and MessageAvatar take an optional choice).
- New texts
profile.avatar.label and profile.avatar.default in every catalogue; the Tigrinya strings need a native check.
Tests
ProfileAvatarChoice.test.tsx 5, AvatarPicker.test.tsx 3 (one tab stop, arrows move focus without picking, busy state keeps focus), avatarChoice.test.ts 4, UserAvatar.test.tsx +2, i18n guard 44/44.
- Storybook in Chromium for every story that renders the Profile page:
PracticeFlow 4/4, HelpTours 11/11, ProfileSettingsStage 10/10, the avatar stories 6/6. tsc (app and Storybook), eslint and stylelint clean.
- Sending a counsellor's default tile as ICON turns the counsellor test red.
Screenshots
Verified where
Storybook "Pages/Profile avatar choice", on the real Profile page with a stage that answers PATCH /users/data like the backend: advice seeker at 1440 px (pick, keep, default), counsellor at 1440 px (pick, stored motif preselected), phone at 390 px (the row scrolls sideways, the page does not). Not yet against a backend: needs OpenResilienceInitiative/ORISO-UserService#1365 on Dev.
Known limit
Other people still see an advice seeker's default animal: session and chat data do not carry the choice yet.
Reviewer test plan (on Dev, after both PRs are deployed)
- Profile on desktop and phone: the avatar row is under the header and scrolls sideways.
- Pick an avatar and reload: it stays selected, and the header and your own messages show it.
- Pick "Standard": the default avatar comes back.
Part of #878, Refs OpenResilienceInitiative/ORISO-UserService#1240
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…e 4)
A horizontally scrolling avatar row under the profile header lets people
pick their picture; it saves at once through PATCH /users/data (US#1240).
Advice seekers pick an animal and keep the colours derived from their id;
counsellors pick from Admin's motif set and appear on primary /
on-primary, so Admin shows the same choice. The first tile brings back
the default. The header and the user's own chat bubbles show the pick.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
coderabbitai
Bot
commented
Oct 7, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
⚙️ Run configuration
- Configuration used: Repository: OpenResilienceInitiative/ORISO-Frontend/.coderabbit.yaml
- Review profile: ASSERTIVE
- Plan: Advanced
- Run ID:
9af25bde-c56f-4fb0-aeb9-51457612d450
- Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Comment @coderabbitai help to get the list of available commands.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The header row added 62 tab stops before the profile navigation, so
keyboard users had to tab through every avatar, and the practice story
that tabs to "Übung starten" ran out of steps. The group is now one tab
stop (the picked tile, else the default); the arrows, Home and End move
focus, Enter or Space picks. While a pick saves, tiles are aria-disabled
instead of disabled, so focus stays where it was.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 7, 2026
Reviewers
shazia-k
shazia-k approved these changes
Storypapst
Awaiting requested review from Storypapst
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|