GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

@Shirloin Shirloin commented Oct 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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

01-asker-1440-fox-picked 02-counsellor-1440-magpie-picked 03-counsellor-1440-stored-owl 04-asker-390-row

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.

All reactions
@Shirloin @claude
feat(profile): choose the own avatar in the profile header (#878 phas…
5f10186
…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

coderabbitai Bot commented Oct 7, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@Shirloin
Shirloin requested review from Storypapst, nikunjdecyb, shanzaeimran and shazia-k and removed request for nikunjdecyb and shanzaeimran October 7, 2026 09:30
@Shirloin @claude
fix(profile): make the avatar row one tab stop
4c5f872
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]>
shazia-k
shazia-k approved these changes Oct 7, 2026
View reviewed changes
@Shirloin
Shirloin merged commit b527b8b into dev Oct 7, 2026
9 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Shirloin
Shirloin deleted the feat/878-avatar-choice branch October 7, 2026 12:23
This was referenced Oct 7, 2026
Let people save their avatar from their own profile in the app OpenResilienceInitiative/ORISO-UserService#1240
Closed
Profile settings: introduce 'Sicherheit & Datenschutz' section with grouped security, recovery and privacy options #878
Closed
@Hassan9215 Hassan9215 mentioned this pull request Oct 8, 2026
Release Frontend v2.0.11 #1669
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@shazia-k shazia-k shazia-k approved these changes
@Storypapst Storypapst Awaiting requested review from Storypapst
@shanzaeimran shanzaeimran Awaiting requested review from shanzaeimran
@nikunjdecyb nikunjdecyb Awaiting requested review from nikunjdecyb

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

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.

2 participants

@Shirloin @shazia-k
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.