Skip to content

Improve user achievements alignment on profile

What does this MR do and why?

When the same achievement is awarded to the same user multiple times a badge appears. The badge was left aligned by default, but looks smarter centered.

This MR addresses that.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
image image

How to set up and validate locally

You should find http://gdk.test:3000/root has some achievements out of the box

If not, use the rails console to issue a few:

a = Achievements::Achievement.last || FactoryBot.create(:achievement)
u = User.find(1)
FactoryBot.create_list(:user_achievement, 2, user: u, achievement: a, awarded_by_user: u)

Now visit the user profile.

Merge request reports