Skip to content

Replace yellow pill images for custom view#7658

Open
nalcalag wants to merge 4 commits intodevelopfrom
feature/noelia/migrate_beta_new_pills
Open

Replace yellow pill images for custom view#7658
nalcalag wants to merge 4 commits intodevelopfrom
feature/noelia/migrate_beta_new_pills

Conversation

@nalcalag
Copy link
Contributor

@nalcalag nalcalag commented Feb 4, 2026

Task/Issue URL: https://app.asana.com/1/137249556945/project/488551667048375/task/1213011616457504?focus=true

Description

Replace pillIcon images in ListItem components for the new custom view where we can set text as string

Steps to test this PR

  • Install from branch
  • Go to Settings and check everything looks good
  • Go to Android Design System Preview > List Items
  • Check all the yellow pills there look ok

No UI changes


Note

Medium Risk
Touches shared design-system list item components and their XML attributes, which may break existing layouts relying on the removed showBetaPill/showNewPill and enum-based pillIcon APIs. UI regressions are possible if pill visibility/text or constraint changes behave differently across screens.

Overview
Replaces static Beta/New pill ImageView assets in OneLineListItem, TwoLineListItem, and SettingsListItem with the DaxYellowPill custom text view, allowing the pill label to be provided as a string.

Unifies and changes the public XML API by removing showBetaPill/showNewPill and the enum-based pillIcon, replacing them with pillIcon (boolean) plus new pillText across list item styleables; corresponding sample/preview layouts are updated accordingly, and the legacy pill-handling helpers in DaxListItem are removed.

Written by Cursor Bugbot for commit 78be03b. This will update automatically on new commits. Configure here.

Copy link
Contributor Author

nalcalag commented Feb 4, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@nalcalag nalcalag marked this pull request as ready for review February 4, 2026 11:14
Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 3 potential issues.

app:primaryText="Settings List Item with New Pill"
app:pillIcon="newPill" />
app:pillIcon="true"
app:pillText="Beta" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong pill text "Beta" for "New Pill" item

Medium Severity

The item settingsListItemWithNewTag with primaryText="Settings List Item with New Pill" has app:pillText="Beta" instead of "New". Before the change, this used app:pillIcon="newPill", so the replacement text should be "New" to maintain the same visual appearance. This causes incorrect UI labeling in the settings preview.

Fix in Cursor Fix in Web

app:secondaryText="Checked in disabled state"
app:showBetaPill="true"
app:pillIcon="true"
app:pillText="Whatever"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test placeholder "Whatever" left in pill text

Low Severity

The pillText attribute is set to "Whatever" which appears to be a test or placeholder value. All other similar items in the diff use proper values like "Beta". While this is in a design system preview layout, it creates an inconsistent and unprofessional appearance during testing.

Fix in Cursor Fix in Web


</LinearLayout>
app:pillIcon="true"
app:pillText="Beta"/>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong pill text "Beta" for "New Pill" item

Medium Severity

The item oneLineListItemWithNewPill with primaryText="Item with New Pill" has app:pillText="Beta" instead of "New". Before this change, the item used app:showNewPill="true" which displayed a "New" pill image. The replacement text should be "New" to maintain the same visual appearance.

Fix in Cursor Fix in Web

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.

3 participants