Skip to content

feat: hide in-app compact widget preview#558

Merged
jvsena42 merged 2 commits into
feat/os-widgetsfrom
feat/hide-compact-preview
May 21, 2026
Merged

feat: hide in-app compact widget preview#558
jvsena42 merged 2 commits into
feat/os-widgetsfrom
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-21.at.09.07.27.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 thread Bitkit/Views/Widgets/BlocksWidgetPreviewView.swift Outdated
@jvsena42 jvsena42 force-pushed the fix/widgets-polish branch from 3374163 to 78b5f58 Compare May 21, 2026 11:16
@jvsena42 jvsena42 marked this pull request as draft May 21, 2026 12:01
@jvsena42 jvsena42 force-pushed the feat/hide-compact-preview branch from 7ec0358 to 19447c9 Compare May 21, 2026 12:03
@jvsena42 jvsena42 marked this pull request as ready for review May 21, 2026 12:04
Base automatically changed from fix/widgets-polish to feat/os-widgets May 21, 2026 17:45
@jvsena42 jvsena42 merged commit 1ac9a81 into feat/os-widgets May 21, 2026
15 of 17 checks passed
@jvsena42 jvsena42 deleted the feat/hide-compact-preview branch May 21, 2026 17:45
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