Skip to content

feat: facts widget v61 + OS widget#552

Merged
jvsena42 merged 55 commits into
feat/os-widgetsfrom
feat/facts-v61
May 18, 2026
Merged

feat: facts widget v61 + OS widget#552
jvsena42 merged 55 commits into
feat/os-widgetsfrom
feat/facts-v61

Conversation

@pwltr
Copy link
Copy Markdown
Contributor

@pwltr pwltr commented May 15, 2026

Description

This PR:

  1. Adds small and medium Bitcoin Facts home screen widgets.
  2. Updates the in-app Bitcoin Facts widget to match the new text-and-logo design, including small and wide previews.
  3. Removes obsolete Bitcoin Facts customization state now that the source row is no longer part of the design.
  4. Reuses the existing localization files for the home screen widget metadata.

Screenshot / Video

Simulator.Screen.Recording.-.iPhone.17.-.2026-05-15.at.21.21.15.mov

QA Notes

Manual Tests

  • 1. Widgets → Bitcoin Facts: small and wide in-app previews render with fact text and Bitcoin logo.
  • 2. Widgets → Bitcoin Facts → Save Widget: widget can be added and removed without edit options.
  • 3. Home screen → add Bitcoin Facts small widget: fact text and logo render correctly in normal mode.
  • 4. Home screen → add Bitcoin Facts medium widget: fact text and top-right logo render without overlap.
  • 5. Home screen → switch to tinted widget mode: Bitcoin Facts logo remains visible.
  • 6. regression: widget gallery: Bitcoin Facts name and description are localized instead of showing raw keys.

jvsena42 added 30 commits May 6, 2026 07:57
…-widget-v61

# Conflicts:
#	BitkitWidget/PriceHomeScreenWidget.swift
@pwltr pwltr requested review from jvsena42 and piotr-iohk May 15, 2026 19:23
@pwltr pwltr changed the title feat: add bitcoin facts widgets feat: facts widget v61 + OS widget May 15, 2026
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e3af505404

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread BitkitWidget/FactsHomeScreenWidget.swift
Copy link
Copy Markdown
Collaborator

@piotr-iohk piotr-iohk left a comment

Choose a reason for hiding this comment

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

Tested on device (iPhone 13) and sim (iPhone 17). LGTM.

Base automatically changed from feat/blocks-v61 to feat/os-widgets May 18, 2026 09:59
@jvsena42
Copy link
Copy Markdown
Member

Starting review...

Comment thread Bitkit/Components/Widgets/FactsWidget.swift
VStack {
Spacer(minLength: 0)
FactsWidgetCompactContent(fact: viewModel.fact)
.frame(width: 163, height: 192)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit: these dimensions could be extracted to a shared constant. I'll do it in other branch

jvsena42

This comment was marked as outdated.

Copy link
Copy Markdown
Member

@jvsena42 jvsena42 left a comment

Choose a reason for hiding this comment

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

❌ Missing changelog entry
❌ BTC icon on medium size is not changing color like on small size
✅ Text changed after 2 minutes
✅ Resize the OS widget -> Keep same text
✅ Widget options not displayed
✅ Preview working
✅ in-App widget

Simulator.Screen.Recording.-.iPhone.16.-.2026-05-18.at.08.13.37.mp4

@pwltr
Copy link
Copy Markdown
Contributor Author

pwltr commented May 18, 2026

❌ Missing changelog entry

No need for that since this PR does not target master, base PR already has a changelog entry

❌ BTC icon on medium size is not changing color like on small size

I don't know, it works for me as you can see from the video. Also don't see how it can differ from the code, both variants use the same image component.

Copy link
Copy Markdown
Member

@jvsena42 jvsena42 left a comment

Choose a reason for hiding this comment

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

The color issue could be related to iOS version, I'll test and fix this behavior for all widgets in a separated branch

@jvsena42 jvsena42 merged commit f67211b into feat/os-widgets May 18, 2026
7 checks passed
@jvsena42 jvsena42 deleted the feat/facts-v61 branch May 18, 2026 12:49
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