Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add/remove apps from/to Shortcuts-widget #2440

Merged
merged 13 commits into from
Dec 19, 2024
Merged

Conversation

zeitschlag
Copy link
Collaborator

@zeitschlag zeitschlag commented Dec 12, 2024

This PR makes the Widget (#2418) configurable. The widget doesn't show the most recent apps anymore but only those handpicked by the user. To handpick the Webxdc-apps, this PR introduces some new menu-entries to the App-gallery and the menu on the Webxdc-Screen:

2426

The ids of the selected Webxdc-apps (read: messages) and the user-account are stored as JSON in core-config using ui.ios.selected_apps_for_widget as key.

(On another note: An alternative would've been to make the widget really configurable, so that users can pick the apps when editing the widget itself, but this approach made way more sense for our usecase, well, it made more sense to me and it was easier and more straight forward to implement than making a configurable widget)

Closes #2426.

@zeitschlag zeitschlag changed the title 2426 configure widget [WIP] 2426 configure widget Dec 12, 2024
@zeitschlag zeitschlag force-pushed the 2406-most-recent-webxdcs-widget branch from 6ba0d55 to da5599a Compare December 13, 2024 10:02
@zeitschlag zeitschlag force-pushed the 2426-configure-widget branch from 2ed9f5d to 6aed757 Compare December 13, 2024 10:14
@zeitschlag zeitschlag self-assigned this Dec 13, 2024
@zeitschlag zeitschlag changed the title [WIP] 2426 configure widget [WIP] Add/remove apps from/to Webxdc-widget Dec 13, 2024
@zeitschlag zeitschlag force-pushed the 2406-most-recent-webxdcs-widget branch from fab2718 to bcb38e0 Compare December 16, 2024 11:08
@zeitschlag zeitschlag force-pushed the 2426-configure-widget branch 2 times, most recently from 524e07e to 617cf01 Compare December 17, 2024 09:55
@zeitschlag zeitschlag force-pushed the 2406-most-recent-webxdcs-widget branch from a526b41 to 3cc17e4 Compare December 18, 2024 10:30
@zeitschlag zeitschlag force-pushed the 2426-configure-widget branch from 617cf01 to f3a8e53 Compare December 18, 2024 10:31
Base automatically changed from 2406-most-recent-webxdcs-widget to main December 18, 2024 16:04
@zeitschlag zeitschlag force-pushed the 2426-configure-widget branch from f3a8e53 to 4d72725 Compare December 18, 2024 16:08
@zeitschlag zeitschlag changed the title [WIP] Add/remove apps from/to Webxdc-widget Add/remove apps from/to Shortcuts-widget Dec 18, 2024
@zeitschlag zeitschlag marked this pull request as ready for review December 18, 2024 16:12
@zeitschlag zeitschlag requested a review from r10s December 18, 2024 16:12
Copy link
Member

@Simon-Laux Simon-Laux left a comment

Choose a reason for hiding this comment

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

Works, didn't look at the code.

probably not directly related to this pr: While testing usage with multiple accounts it was a bit unclear what happens. Like pinning from different account removed the previously pinned items (my user expectation would have been that it just adds it to the list of apps).

@zeitschlag zeitschlag force-pushed the 2426-configure-widget branch from 4d72725 to cc01e8e Compare December 19, 2024 09:35
Copy link
Member

@r10s r10s left a comment

Choose a reason for hiding this comment

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

lgtm, just a minor suggestion (feel free to ignore :) beside the things we discussed already.

thanks a lot for pushing that forward!

@zeitschlag zeitschlag merged commit ec3d290 into main Dec 19, 2024
1 check passed
@zeitschlag zeitschlag deleted the 2426-configure-widget branch December 19, 2024 11:58
@r10s r10s added widget enhancement actually in development, user visible enhancement labels Dec 26, 2024
@r10s r10s added the webxdc label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement actually in development, user visible enhancement webxdc widget
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make apps on widget configurable
3 participants