Skip to content

feat: hide in-app compact widget preview#558

Open
jvsena42 wants to merge 1 commit into
fix/widgets-polishfrom
feat/hide-compact-preview
Open

feat: hide in-app compact widget preview#558
jvsena42 wants to merge 1 commit into
fix/widgets-polishfrom
feat/hide-compact-preview

Conversation

@jvsena42
Copy link
Copy Markdown
Member

@jvsena42 jvsena42 commented May 20, 2026

Description

This PR hides the compact (small) widget size from the in-app widget preview screens. The small home-screen variant cannot be added yet, so showing it in the size carousel was misleading. Each preview (Blocks, Facts, Headlines, Price, Weather) now defaults to and shows only the wide preview, with the carousel's second page and the page-indicator dots hidden. The compact code is left in place (commented) so it can be re-enabled later, and the "WIDE" label spacing above the action buttons was adjusted to compensate for the removed page indicator.

This mirrors the Android change in synonymdev/bitkit-android#952.

Linked Issues/Tasks

Closes #559

QA Notes

Manual Tests

  • 1. Widgets → add widget → open each preview (Blocks, Facts, Headlines, Price, Weather): only the wide card shows, label reads "WIDE", no page-indicator dots, swiping reveals no small variant.
  • 2. Any widget preview → spacing between the "WIDE" label and the Save/Delete buttons: comfortable gap, not cramped.
  • 3. Any widget preview → tap Save widget: widget saves and appears in the list.

Automated Checks

N/A

Screenshot / Video

Simulator.Screen.Recording.-.iPhone.16.-.2026-05-20.at.14.46.13.mp4

@jvsena42 jvsena42 self-assigned this May 20, 2026
@jvsena42 jvsena42 requested a review from pwltr May 20, 2026 17:51
@jvsena42 jvsena42 added this to the 2.3.0 milestone May 20, 2026
Comment on lines 54 to +55
sizeLabel
.padding(.bottom, 16)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This label alone doesn't make any sense in this state, better to hide it too.

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.

2 participants