on master help sign in
final commit for mvp
commitd4305829e2240a3e5421548b9d67110da95fa444 authorHunter Miller <hunter@hmiller.dev> dateWed 20 Jul 2022, 18:59 (4 years ago) parente40a064
3 files changed+11−3
desk/desk.docket-0+1−1 desk/lib/sphinx.hoon+4−1 ui/src/components/Listings.tsx+6−1
desk/desk.docket-0+1−1
@@ -2,7 +2,7 @@
22 info+'An app for answering all your riddles'
33 color+0xb2.5068
44 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]
66 base+'sphinx'
77 version+[0 1 4]
88 website+'https://github.com'
desk/lib/sphinx.hoon+4−1
@@ -82,7 +82,10 @@
8282 %+ turn
8383 (get-keys term)
8484 |= item=@t
85− (~(gut by lookup) item *(list entry))
85+ %+ turn
86+ (~(gut by lookup) item *(list entry))
87+ |= =entry
88+ (derank entry 10)
8689 ++ get-phonetics
8790 |= term=key
8891 ^- (list entry)
ui/src/components/Listings.tsx+6−1
@@ -12,7 +12,7 @@ interface ListingsProps {
1212}
1313
1414export const Listings = ({ listings, remove, className }: ListingsProps) => {
15− const { outgoing, remove: removePal } = usePals();
15+ const { installed, outgoing, remove: removePal } = usePals();
1616 console.log(outgoing);
1717 if (!listings) {
1818 return null;
@@ -22,6 +22,11 @@ export const Listings = ({ listings, remove, className }: ListingsProps) => {
2222 return (
2323 <div>
2424 <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+ )}
2530 </div>
2631 )
2732 }