on master help sign in
final commit for mvp
d430582Hunter Miller
desk/desk.docket-0+1−1
@@ -2,7 +2,7 @@
2 info+'An app for answering all your riddles'
2 info+'An app for answering all your riddles'
3 color+0xb2.5068
3 color+0xb2.5068
4 image+'https://nyc3.digitaloceanspaces.com/hmillerdev/nocsyx-lassul/2022.7.16..04.35.22-sphinx-web-shifted.svg'
4 image+'https://nyc3.digitaloceanspaces.com/hmillerdev/nocsyx-lassul/2022.7.16..04.35.22-sphinx-web-shifted.svg'
5− glob-http+['https://nyc3.digitaloceanspaces.com/hmillerdev/sphinx/glob-0v4.hh3jv.4to3r.epjc7.gjvnk.5cu1c.glob' 0v4.hh3jv.4to3r.epjc7.gjvnk.5cu1c]
5+ glob-http+['https://nyc3.digitaloceanspaces.com/hmillerdev/sphinx/glob-0v4.mkqik.qlhbj.1hm8n.opr21.tjb70.glob' 0v4.mkqik.qlhbj.1hm8n.opr21.tjb70]
6 base+'sphinx'
6 base+'sphinx'
7 version+[0 1 4]
7 version+[0 1 4]
8 website+'https://github.com'
8 website+'https://github.com'
desk/lib/sphinx.hoon+4−1
@@ -82,7 +82,10 @@
82 %+ turn
82 %+ turn
83 (get-keys term)
83 (get-keys term)
84 |= item=@t
84 |= item=@t
85+ %+ turn
85− (~(gut by lookup) item *(list entry))
86+ (~(gut by lookup) item *(list entry))
87+ |= =entry
88+ (derank entry 10)
86 ++ get-phonetics
89 ++ get-phonetics
87 |= term=key
90 |= term=key
88 ^- (list entry)
91 ^- (list entry)
ui/src/components/Listings.tsx+6−1
@@ -12,7 +12,7 @@ interface ListingsProps {
12}
12}
13
13
14export const Listings = ({ listings, remove, className }: ListingsProps) => {
14export const Listings = ({ listings, remove, className }: ListingsProps) => {
15− const { outgoing, remove: removePal } = usePals();
15+ const { installed, outgoing, remove: removePal } = usePals();
16 console.log(outgoing);
16 console.log(outgoing);
17 if (!listings) {
17 if (!listings) {
18 return null;
18 return null;
@@ -22,6 +22,11 @@ export const Listings = ({ listings, remove, className }: ListingsProps) => {
22 return (
22 return (
23 <div>
23 <div>
24 <h2 className='text-xl font-semibold'>No Results</h2>
24 <h2 className='text-xl font-semibold'>No Results</h2>
25+ {installed ? (
26+ <p>Try adding more <a href="/pals" className='underline'>pals</a> to see what others have shared</p>
27+ ) : (
28+ <p>Without pals installed you'll only see your own listings</p>
29+ )}
25 </div>
30 </div>
26 )
31 )
27 }
32 }