Skip to content

[Due for payment 2026-08-08] [M2] Unify avatar sizes #95598

Description

@mountiny

Problem

CONST.AVATAR_SIZE has confusing, overlapping names (LARGE_NORMAL < MEDIUM, LARGE_BORDERED = 80px + border baked in, one-off sizes used once). This makes avatar sizing hard to reason about and blocks clean primitive APIs.

Solution

Rename/consolidate CONST.AVATAR_SIZE to a consistent ordinal scale. Remove rarely-used sizes by mapping call sites to nearest existing size. Separate border width from size enum (e.g. LARGE_BORDEREDX_LARGE size + border via StyleUtils, not size + 8px).

PR

#95275

Origin

#94682 (comment)

Dependencies

Independent of M1/M3/M4 but touches many of the same files — coordinate merge/rebase with M1.

Issue OwnerCurrent Issue Owner: @ChavdaSachin

Activity

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2InternalRequires API changes or must be handled by Expensify staffTask

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions