Skip to content

Conversation

0x70b1a5
Copy link
Contributor

@0x70b1a5 0x70b1a5 commented Jun 19, 2024

Problem

  • Notify app needs to exist even a little bit so people can play around with it
  • App store needs mobile UI tune up
  • Homepage should confirm with user if they want to hide a widget

Solution

  • Make notify app with widget
  • Fix up appstore mobile UI
  • Add confirmation dialogue for widget hide on homepage

Testing

  • Verify appstore looks alright on mobile screen sizes
  • Verify widgets ask before hiding
  • Add notifications to notify and watch them show up in the widget

Notes

This is very much a v0.1 for notify, but I think "push things to a widget" is a suitable v0.1 if we're being honest. The next feature is silencing processes. Actual device push notifs will be blocked until the mobile app is approved for TestFlight.

Also, I found some merge conflicts in the Settings and Chess Cargo.lock files that had been committed at some point in the past. I took the more recent of each version where necessary, but would have preferred to regenerate them (deleting them and then kit b and/or rebuilding binary didn't cut it).

@0x70b1a5 0x70b1a5 requested a review from dr-frmr June 19, 2024 15:52
);

const tryRebuildIndex = useCallback(async () => {
if (!window.confirm('Are you sure you want to rebuild the app index? This may take a few seconds.')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

this is good

setFavoriteApps: (favoriteApps: PersistentStore['favoriteApps']) => set({ favoriteApps }),
toggleWidgetVisibility: (package_name: string) => {
const { widgetSettings } = get()
if (!window.confirm(`Really hide this widget?`)) {
Copy link
Contributor

Choose a reason for hiding this comment

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

i really dislike this alert box. IMO it needs to either be an in-page confirmation or have no confirmation at all. i'm not sure why this action needs to be confirmed, given how straightforward it is to re-toggle the widget on.

another option would be to completely remove the "hide widget" button from the home screen and only allow that operation in the settings modal. that would be my preference.

@@ -0,0 +1,266 @@
#![feature(let_chains)]
use std::collections::HashMap;

Copy link
Contributor

Choose a reason for hiding this comment

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

remove blank line in between use statements please

"grant_capabilities": [
"http_server:distro:sys"
],
"public": true
Copy link
Contributor

Choose a reason for hiding this comment

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

should the notify app really be public? shouldn't other apps need to request messaging capabilities in order to push notifications? wondering what the overall security model for this program should look like

@0x70b1a5 0x70b1a5 mentioned this pull request Jun 20, 2024
4 tasks
@0x70b1a5
Copy link
Contributor Author

0x70b1a5 commented Jun 20, 2024

Appstore fixes moved to #418

@0x70b1a5 0x70b1a5 closed this Jun 20, 2024
@0x70b1a5 0x70b1a5 deleted the tm/notify branch June 20, 2024 19:05
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