Skip to content

Center the hard hat on the coral mascot - #48725

Merged
brennanb2025 merged 5 commits into
mainfrom
brennanb2025/hardhat-align-571
Nov 25, 2026
Merged

brennanb2025 merged 5 commits into
mainfrom
brennanb2025/hardhat-align-571

Conversation

@brennanb2025

@brennanb2025 brennanb2025 commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

The yellow hard hat sat too far left on the coral mascot. It now sits over the middle of its head in the picker, profile, sidebar, phone app, and linked app icons.

What Changed

  • Move the coral hard-hat anchor from 8 to 24 on the 128-unit avatar. Apply the same offset to the phone avatar’s existing sprite.
  • Refresh this look’s cached icon while keeping icon updates working between older and newer app and host versions.

Why

The old anchor put the brim off-center. Moving the existing artwork keeps both eyes visible and preserves the original hat.

Linked Issue

Reported in-app.

Visual Proof

Seeded picker and profile before and after

Coral hard hat before and after in the picker and profile

Testing

  • Checked the phone avatar at 14, 32, and 88 pt with the shipped sprite.
  • Added and ran a test for the linked icon during an upgrade.
  • Verified that test’s legacy request fails without the compatibility change.
  • Set and reopened the hard-hat picker and checked the saved profile in a seeded Linux dev build.

Performance

Older hosts require one additional request for this look when first connected. After the icon settles, window focus adds no requests. Only this look is redrawn and sent after upgrade.

Risk

Level: Low. Older builds can keep the original artwork until both the renderer and host update. A revert restores the old placement and can cause an icon to redraw.

AI Disclosure

Review

Agent skill upstream boundary

  • Not applicable. This change does not copy or mechanically translate upstream skill-installer sources or data.

Notes

Reviewed security, cross-platform support, remote hosts, mobile, backwards compatibility, and performance.

Checklist

  • Small and focused, with the user-facing change and revert described.
  • Seeded before-and-after screenshots attached.
  • Self-reviewed for correctness, security, and performance.
  • Considered cross-platform, remote, and path and shortcut impacts.
  • CI will cover lint, typecheck, tests, and build.

@brennanb2025
brennanb2025 marked this pull request as ready for review November 25, 2026 21:57
@coderabbitai

coderabbitai Bot commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The G1 hard-hat outfit coordinates and mobile sheet positioning change. Its Slack icon look changes to v2, with a v1 legacy mapping. Icon storage, publishing, and avatar synchronization now handle compatible legacy icons alongside the preferred look.

Merge Risk: Minimal · up to 8c45d

The change recenters the coral hard hat and keeps icon updates compatible between older and newer versions. No concrete merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Center the hard hat on the coral mascot" matches the main change. The PR moves the coral hard-hat anchor from 8 to 24 on the 128-unit avatar so the hat sits centered. The title is specific …
Description check Passed The description follows the template sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, Review, Notes, and Checklist. It explains the before and after, the mech…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "Center the hard hat on the coral mascot" matches the main change. The PR moves the coral hard-hat anchor from 8 to 24 on the 128-unit avatar so the hat sits centered. The title is specific and concise, and it does not describe anything absent from the changeset.

Full details: Description check

Explanation

The description follows the template sections: ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, Review, Notes, and Checklist. It explains the before and after, the mechanism (anchor offset change plus cache refresh and compatibility), and the revert path. Several items are incomplete. The Linked Issue section says 'Reported in-app' and has no 'Fixes #' issue reference. The AI Disclosure section is empty. The Risk level is given, but the template asks for specific boundary crossings. The Visual Proof uses a before/after image, which satisfies the template. Testing has checked boxes, but the Checklist leaves CI coverage unchecked.

Resolution

Consider these additions before merge: link an actual issue number in the Linked Issue section (the template asks for one, and 'Reported in-app' does not give a reference), fill in the AI Disclosure section or state that no AI was used, and confirm the pnpm lint, typecheck, test, and build checks in the Checklist.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 8c69bd40-3b6e-4971-9de1-45a5d4d3fd58
Commits

Reviewing files that changed from the base of the PR and between ac69cbd and 8c45de7.

Files selected for processing: 8

  • mobile/src/bots/MobileBotAvatar.tsx
  • mobile/src/bots/mobile-bot-outfit-assets.ts
  • src/main/bots/bot-slack-icon-store.ts
  • src/main/connector-cloud/bot-avatar-sync.test.ts
  • src/main/connector-cloud/bot-avatar-sync.ts
  • src/renderer/src/components/bots/use-bot-slack-icons.ts
  • src/shared/bot-mascots/outfits/hard-hat.json
  • src/shared/bots/bot-slack-icon.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.

@brennanb2025
brennanb2025 enabled auto-merge (squash) November 25, 2026 22:41
@brennanb2025
brennanb2025 merged commit 9a53c19 into main Nov 25, 2026
90 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