···5757 permission_token = res.data?.permission_tokens;
5858 }
59596060- if (!permission_token) return <div>no home page wierdly</div>;
6060+ if (!permission_token)
6161+ return (
6262+ <div className="p-4 text-lg text-center">
6363+ <p>Sorry, home page not found!</p>
6464+ <p>
6565+ This may be a glitch on our end. If you see this repeatedly please{" "}
6666+ <a href="mailto:contact@leaflet.pub">send us a note</a>.
6767+ </p>
6868+ </div>
6969+ );
6170 let [homeLeafletFacts, allLeafletFacts] = await Promise.all([
6271 supabaseServerClient.rpc("get_facts", {
6372 root: permission_token.root_entity,
+19-2
app/lish/[did]/[publication]/[rkey]/page.tsx
···4949 params: Promise<{ publication: string; did: string; rkey: string }>;
5050}) {
5151 let did = decodeURIComponent((await props.params).did);
5252- if (!did) return <div> can't resolve handle</div>;
5252+ if (!did)
5353+ return (
5454+ <div className="p-4 text-lg text-center">
5555+ <p>Sorry, can't resolve handle.</p>
5656+ <p>
5757+ This may be a glitch on our end. If you see this repeatedly please{" "}
5858+ <a href="mailto:contact@leaflet.pub">send us a note</a>.
5959+ </p>
6060+ </div>
6161+ );
5362 let agent = new BskyAgent({ service: "https://public.api.bsky.app" });
5463 let [{ data: document }, { data: profile }] = await Promise.all([
5564 supabaseServerClient
···6574 agent.getProfile({ actor: did }),
6675 ]);
6776 if (!document?.data || !document.documents_in_publications[0].publications)
6868- return <div>notfound</div>;
7777+ return (
7878+ <div className="p-4 text-lg text-center">
7979+ <p>Sorry, post not found!</p>
8080+ <p>
8181+ This may be a glitch on our end. If you see this repeatedly please{" "}
8282+ <a href="mailto:contact@leaflet.pub">send us a note</a>.
8383+ </p>
8484+ </div>
8585+ );
6986 let record = document.data as PubLeafletDocument.Record;
7087 let firstPage = record.pages[0];
7188 let blocks: PubLeafletPagesLinearDocument.Block[] = [];
+19-2
app/lish/[did]/[publication]/dashboard/page.tsx
···3939}) {
4040 let params = await props.params;
4141 let identity = await getIdentityData();
4242- if (!identity || !identity.atp_did) return <div>not logged in</div>;
4242+ if (!identity || !identity.atp_did)
4343+ return (
4444+ <div className="p-4 text-lg text-center">
4545+ <p>Sorry, looks like you're not logged in.</p>
4646+ <p>
4747+ This may be a glitch on our end. If you see this repeatedly please{" "}
4848+ <a href="mailto:contact@leaflet.pub">send us a note</a>.
4949+ </p>
5050+ </div>
5151+ );
4352 let did = decodeURIComponent(params.did);
4453 if (!did) return <PubNotFound />;
4554 let { result: publication } = await get_publication_data.handler(
···100109}
101110102111const PubNotFound = () => {
103103- return <div>ain't no pub here</div>;
112112+ return (
113113+ <div className="p-4 text-lg text-center">
114114+ <p>Sorry, publication not found!</p>
115115+ <p>
116116+ This may be a glitch on our end. If you see this repeatedly please{" "}
117117+ <a href="mailto:contact@leaflet.pub">send us a note</a>.
118118+ </p>
119119+ </div>
120120+ );
104121};
+9-1
app/lish/[did]/[publication]/page.tsx
···161161}
162162163163const PubNotFound = () => {
164164- return <div>ain't no pub here</div>;
164164+ return (
165165+ <div className="p-4 text-lg text-center">
166166+ <p>Sorry, publication not found!</p>
167167+ <p>
168168+ This may be a glitch on our end. If you see this repeatedly please{" "}
169169+ <a href="mailto:contact@leaflet.pub">send us a note</a>.
170170+ </p>
171171+ </div>
172172+ );
165173};