diff --git a/CHANGELOG.md b/CHANGELOG.md index e821dade..87d4b449 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ - [x] Improve paste support - [x] Add timestamps to messages - [x] Support installation as a PWA +- [x] Fix social share image, add description +- [x] Clean up person detail actions, maybe click one circle and show the rest +- [x] Add person popover to notes/alerts ## 0.2.13 diff --git a/ROADMAP.md b/ROADMAP.md index 7a46c99a..7a2c6b63 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -1,6 +1,8 @@ # Current - [ ] Fix iOS +- [ ] Hover badge to view profile like twitter + - [ ] Cache follower numbers to avoid re-fetching so much - [ ] Make the note relays button modal make sense, one relay with no explanation is not good # Lightning @@ -18,22 +20,17 @@ # More +- [ ] Allow the user to disable likes/zaps - [ ] Polls - Find the best implementation https://github.com/nostr-protocol/nips/search?q=poll&type=issues - Comment on all three nip drafts which one I implemented - [ ] Micro app DSL -- [ ] Fix social share image, add description - [ ] Sort feeds by created date on profile page? - [ ] Implement https://media.nostr.band/ -- [ ] Cache follower numbers to avoid re-fetching so much - [ ] Groups - may need a new NIP, or maybe use topics - [ ] Support https://github.com/nostr-protocol/nips/pull/211 as a bech32 entity - [ ] Add new DM button to dms list - [ ] Add suggested relays based on follows or topics -- [ ] Combine alerts/messages and any other top-level subscriptions to avoid sub limit -- [ ] Clean up person detail actions, maybe click one circle and show the rest -- [ ] Hover badge to view profile like twitter -- [ ] Show created date as bitcoin block height (add a setting?) - [ ] Support relay auth - [ ] Following indicator on person info - [ ] Share button for notes, shows qr code and nevent @@ -75,6 +72,7 @@ - [ ] Release to android - https://svelte-native.technology/docs - https://ionic.io/blog/capacitor-everything-youve-ever-wanted-to-know + - Or just wrap it - [ ] When publishing fails, enqueue and retry - Track which relays the events should be published to, and which ones have succeeded - Maybe notify and ask user which events to re-publish. diff --git a/package-lock.json b/package-lock.json index d27befb9..8a0558ff 100644 Binary files a/package-lock.json and b/package-lock.json differ diff --git a/package.json b/package.json index 112d7c5a..e2dca72c 100644 --- a/package.json +++ b/package.json @@ -51,6 +51,7 @@ "svelte-routing": "^1.6.0", "svelte-switch": "^0.0.5", "throttle-debounce": "^5.0.0", + "tippy.js": "^6.3.7", "vite-plugin-node-polyfills": "^0.5.0", "vite-plugin-pwa": "^0.14.4" } diff --git a/src/app.css b/src/app.css index 7fd032bc..b1eb9678 100644 --- a/src/app.css +++ b/src/app.css @@ -57,3 +57,22 @@ html, body, #app, #app > div { height: 100%; } + +/* Tippy */ + +.tippy-box { + background-color: #0f0f0e !important; + border: 1px solid #403D39; + box-shadow: 3px 3px 20px #0f0f0e, + 3px -3px 20px #0f0f0e, + -3px 3px 20px #0f0f0e, + -3px -3px 20px #0f0f0e; +} + +.tippy-box[data-placement^=top]>.tippy-arrow:before { + border-top-color: #403D39 !important; +} + +.tippy-box[data-placement^=top]>.tippy-arrow { + bottom: -1px !important; +} diff --git a/src/partials/Popover.svelte b/src/partials/Popover.svelte new file mode 100644 index 00000000..ef1fd3ad --- /dev/null +++ b/src/partials/Popover.svelte @@ -0,0 +1,62 @@ + + + { + instance.hide() + }} /> + + { + if (e.key === 'Escape') { + instance.hide() + } + }} /> + +
+ +
+ + diff --git a/src/views/SideNav.svelte b/src/views/SideNav.svelte index 46e1e50f..bbc675e3 100644 --- a/src/views/SideNav.svelte +++ b/src/views/SideNav.svelte @@ -23,7 +23,7 @@