a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

some small fixes

celine 010c0a7a c0b97b4a

+26 -11
+4 -1
app/[leaflet_id]/Actions.tsx
··· 24 24 let handle = identity?.resolved_did?.alsoKnownAs?.[0].slice(5)!; 25 25 let name = props.publication.name; 26 26 return ( 27 - <Link href={`/lish/${handle}/${name}/`} className="hover:!no-underline"> 27 + <Link 28 + href={`/lish/${handle}/${name}/dashboard`} 29 + className="hover:!no-underline" 30 + > 28 31 <ActionButton 29 32 icon={<GoBackSmall className="shrink-0" />} 30 33 label="To Pub"
+2 -2
app/lish/[handle]/[publication]/[rkey]/page.tsx
··· 58 58 blocks = firstPage.blocks || []; 59 59 } 60 60 return ( 61 - <div className="postPage w-full h-screen bg-bg-leaflet flex items-stretch"> 61 + <div className="postPage w-full h-screen bg-[#FDFCFA] flex items-stretch"> 62 62 <div className="pubWrapper flex flex-col w-full "> 63 63 <div className="pubContent flex flex-col px-3 sm:px-4 py-3 sm:py-9 mx-auto max-w-prose h-full w-full overflow-auto"> 64 64 <div className="flex flex-col pb-8"> ··· 76 76 <p className="text-sm text-tertiary pt-3"> 77 77 Published{" "} 78 78 {new Date(record.publishedAt).toLocaleDateString(undefined, { 79 - year: "2-digit", 79 + year: "numeric", 80 80 month: "long", 81 81 day: "2-digit", 82 82 })}
+1 -1
app/lish/[handle]/[publication]/dashboard/PublishedPostsLists.tsx
··· 48 48 {new Date(record.publishedAt).toLocaleDateString( 49 49 undefined, 50 50 { 51 - year: "2-digit", 51 + year: "numeric", 52 52 month: "long", 53 53 day: "2-digit", 54 54 },
+11 -4
app/lish/[handle]/[publication]/page.tsx
··· 50 50 try { 51 51 return ( 52 52 <ThemeProvider entityID={null}> 53 - <div className="publicationWrapper w-screen h-screen flex place-items-center bg-bg-leaflet"> 53 + <div className="publicationWrapper w-screen h-screen flex place-items-center bg-[#FDFCFA]"> 54 54 <div className="publication max-w-prose w-full mx-auto h-full pt-9"> 55 55 <div className="flex flex-col pb-6 w-full text-center justify-center "> 56 56 <h2 className="text-accent-contrast">{publication.name}</h2> ··· 81 81 <div className="flex w-full "> 82 82 <Link 83 83 href={`/lish/${params.handle}/${params.publication}/${uri.rkey}`} 84 - className="publishedPost grow flex flex-col gap-2 hover:!no-underline" 84 + className="publishedPost grow flex flex-col hover:!no-underline" 85 85 > 86 86 <h3 className="text-primary">{record.title}</h3> 87 87 <p className="italic text-secondary"> 88 - This is a placeholder for description 88 + {record.description}{" "} 89 89 </p> 90 90 <p className="text-sm text-tertiary pt-2"> 91 - {record.publishedAt} PlaceholderDate 91 + {new Date(record.publishedAt).toLocaleDateString( 92 + undefined, 93 + { 94 + year: "numeric", 95 + month: "long", 96 + day: "2-digit", 97 + }, 98 + )}{" "} 92 99 </p> 93 100 </Link> 94 101 </div>
+8 -3
components/Pages/PublicationMetadata.tsx
··· 9 9 import { AutosizeTextarea } from "components/utils/AutosizeTextarea"; 10 10 import { Separator } from "components/Layout"; 11 11 import { AtUri } from "@atproto/syntax"; 12 + import { PubLeafletDocument } from "lexicons/api"; 12 13 export const PublicationMetadata = ({ 13 14 cardBorderHidden, 14 15 }: { ··· 19 20 let { data: publicationData, mutate } = useLeafletPublicationData(); 20 21 let pub = publicationData?.[0]; 21 22 let [titleState, setTitleState] = useState(pub?.title || ""); 22 - let [descriptionState, setDescriptionState] = useState(pub?.title || ""); 23 + let [descriptionState, setDescriptionState] = useState( 24 + pub?.description || "", 25 + ); 26 + let record = pub.publications?.record as PubLeafletDocument.Record; 23 27 24 28 useEffect(() => { 25 29 setTitleState(pub?.title || ""); ··· 49 53 > 50 54 <div className="flex gap-2"> 51 55 <Link 52 - href={`/lish/${identity?.resolved_did?.alsoKnownAs?.[0].slice(5)}/${pub.publications.name}`} 56 + href={`/lish/${identity?.resolved_did?.alsoKnownAs?.[0].slice(5)}/${pub.publications.name}/dahsboard`} 53 57 className="text-accent-contrast font-bold hover:no-underline" 54 58 > 55 59 {pub.publications?.name} ··· 76 80 /> 77 81 {pub.doc ? ( 78 82 <div className="flex flex-row items-center gap-2 pt-3"> 79 - <p className="text-sm text-tertiary">Published XX/XX/XXX</p> 83 + <p className="text-sm text-tertiary">Published </p> 84 + 80 85 <Separator classname="h-4" /> 81 86 <Link 82 87 target="_blank"