holium / realm

A sovereign network operating system built on Urbit
https://realm-onboarding.vercel.app
Other
5 stars 1 forks source link

Notifications - hark store integration #21

Closed drunkplato closed 2 years ago

drunkplato commented 2 years ago

Designs

Empty state

image

With notifications

image

Popup

image

drunkplato commented 2 years ago

Pausing on this as %graph-store is being removed.

Below is a sample of the %hark-store recent scry.

{
    "more": [
        {
            "timebox": {
                "lid": {
                    "archive": "170.141.184.505.695.783.140.383.789.785.529.974.784"
                },
                "notifications": [
                    {
                        "body": [
                            {
                                "link": "/graph-validator-dm/~labruc-dillyx-lomder-librun/dm-inbox/14221824/170141184505695782988185766278450905088",
                                "title": [
                                    {
                                        "text": "New messages from "
                                    },
                                    {
                                        "ship": "~datryn-ribdun"
                                    }
                                ],
                                "time": 1655772688591,
                                "content": [
                                    {
                                        "text": "nice"
                                    }
                                ]
                            }
                        ],
                        "bin": {
                            "place": {
                                "desk": "landscape",
                                "path": "/graph/~labruc-dillyx-lomder-librun/dm-inbox/14221824"
                            },
                            "path": "/"
                        },
                        "time": 1655772688591
                    }
                ]
            }
        },
    ]
}
drunkplato commented 2 years ago

https://github.com/uqbar-dao/urbit/blob/escape/pkg/escape/app/push-notify.hoon

drunkplato commented 2 years ago

Making this the main issue for notifications / beacon agent