feat: blocks widget v61 + OS widget#922
Open
jvsena42 wants to merge 25 commits intofeat/headlines-v61from
Open
feat: blocks widget v61 + OS widget#922jvsena42 wants to merge 25 commits intofeat/headlines-v61from
jvsena42 wants to merge 25 commits intofeat/headlines-v61from
Conversation
…ocks-v61 # Conflicts: # CHANGELOG.md
…ocks-v61 # Conflicts: # app/src/main/java/to/bitkit/appwidget/config/AppWidgetConfigActivity.kt # app/src/main/java/to/bitkit/appwidget/config/AppWidgetConfigScreen.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FIGMA
BlockCard,BlocksEditScreen, andBlocksPreviewScreento the v61 designAppWidgetConfigActivity/ preferences store / refresh workerAppWidgetConfigScreenstays a thin dispatcherDescription
Adds
BlocksGlanceWidget(registered viaBlocksGlanceReceiver) usingSizeMode.Exactwith aLazyColumn-backed Wide layout (icon + label + value rows, scrollable) and a 4-row Compact layout (icon + value), reusingGlanceWidgetScaffold, the Brand-tinted icon set, and tap-to-edit. The shared config flow is extended with aBlocksPreferences/HomeBlocksPreferencespair, seven toggle actions, and a DATA section; save warms the cache via a newAppWidgetDataRepository.fetchBlock()andAppWidgetRefreshWorkernow refreshes Blocks alongside Price and Headlines.In-app,
BlockCardis split into wide and compact variants andBlocksPreviewScreenis rebuilt to mirror the price/headlines preview (top-bar title, description, divider, Widget Settings row,WidgetSizeCarousel, Save / Delete).BlocksEditScreenis restructured into a DATA section withCaption13Upheaders and toggle rows. Manifest,appwidget_info_blocks.xml, and a staticappwidget_preview_blocks.xmlregister the new provider with a 4x2 default placement.Preview
os-widget.webm
in-app-widget.webm
QA Notes
System widget
AppWidgetConfigActivityreopens with previously-saved toggles preserved.appWidgetId).appwidget_data.json(adb shell "run-as to.bitkit.dev cat files/datastore/appwidget_data.json").In-app widget
BlocksEditScreen— rows toggle between Brand and White50; Reset disables at defaults; Preview disables when all toggles are off.Code quality
./gradlew compileDevDebugKotlinclean./gradlew detektclean./gradlew testDevDebugUnitTestgreen