From beb1cdb1eae6d2eca3e602e86a65de213daa6967 Mon Sep 17 00:00:00 2001 From: celine Date: Sun, 1 Feb 2026 22:02:07 -0500 Subject: [PATCH] stray console log eradication --- app/(home-pages)/p/[didOrHandle]/ProfileHeader.tsx | 2 -- app/[leaflet_id]/publish/BskyPostEditorProsemirror.tsx | 2 -- app/lish/[did]/[publication]/[rkey]/ThreadPage.tsx | 1 - .../[publication]/dashboard/PublicationSWRProvider.tsx | 6 +++--- components/ActionBar/NavigationButtons.tsx | 1 - components/Blocks/BaseTextareaBlock.tsx | 1 - components/Tags.tsx | 1 - src/replicache/mutations.ts | 1 - 8 files changed, 3 insertions(+), 12 deletions(-) diff --git a/app/(home-pages)/p/[didOrHandle]/ProfileHeader.tsx b/app/(home-pages)/p/[didOrHandle]/ProfileHeader.tsx index 3fb2b0fd..31de7865 100644 --- a/app/(home-pages)/p/[didOrHandle]/ProfileHeader.tsx +++ b/app/(home-pages)/p/[didOrHandle]/ProfileHeader.tsx @@ -42,8 +42,6 @@ export const ProfileHeader = (props: { @{props.profile.handle} ); - console.log(props.profile); - return (
{ - console.log("view", view); if (!view) return; const { from, to } = range; const tr = view.state.tr; @@ -437,7 +436,6 @@ export const addMentionToEditor = ( }); tr.insert(from, atMentionNode); } - console.log("yo", mention); // Add a space after the mention tr.insertText(" ", from + 1); diff --git a/app/lish/[did]/[publication]/[rkey]/ThreadPage.tsx b/app/lish/[did]/[publication]/[rkey]/ThreadPage.tsx index e8951d4f..180987bb 100644 --- a/app/lish/[did]/[publication]/[rkey]/ThreadPage.tsx +++ b/app/lish/[did]/[publication]/[rkey]/ThreadPage.tsx @@ -298,7 +298,6 @@ const ReplyPost = (props: { e.stopPropagation(); props.toggleCollapsed(parentPostUri); - console.log("reply clicked"); }} /> diff --git a/app/lish/[did]/[publication]/dashboard/PublicationSWRProvider.tsx b/app/lish/[did]/[publication]/dashboard/PublicationSWRProvider.tsx index 4ba0fd87..65217a34 100644 --- a/app/lish/[did]/[publication]/dashboard/PublicationSWRProvider.tsx +++ b/app/lish/[did]/[publication]/dashboard/PublicationSWRProvider.tsx @@ -12,7 +12,8 @@ import { // Derive all types from the RPC return type export type PublicationData = GetPublicationDataReturnType["result"]; -export type PublishedDocument = NonNullable["documents"][number]; +export type PublishedDocument = + NonNullable["documents"][number]; export type PublicationDraft = NonNullable["drafts"][number]; const PublicationContext = createContext({ name: "", did: "" }); @@ -24,7 +25,6 @@ export function PublicationSWRDataProvider(props: { }) { let key = `publication-data-${props.publication_did}-${props.publication_rkey}`; useEffect(() => { - console.log("UPDATING"); mutate(key, props.publication_data); }, [props.publication_data]); return ( @@ -64,7 +64,7 @@ export function useNormalizedPublicationRecord(): NormalizedPublication | null { const { data } = usePublicationData(); return useMemo( () => normalizePublicationRecord(data?.publication?.record), - [data?.publication?.record] + [data?.publication?.record], ); } diff --git a/components/ActionBar/NavigationButtons.tsx b/components/ActionBar/NavigationButtons.tsx index 8a08c591..3e596a81 100644 --- a/components/ActionBar/NavigationButtons.tsx +++ b/components/ActionBar/NavigationButtons.tsx @@ -41,7 +41,6 @@ export const WriterButton = (props: { currentPubUri?: string; compactOnMobile?: boolean; }) => { - console.log(props.currentPage); let current = props.currentPage === "home" || props.currentPage === "looseleafs" || diff --git a/components/Blocks/BaseTextareaBlock.tsx b/components/Blocks/BaseTextareaBlock.tsx index bff3ccd6..26290189 100644 --- a/components/Blocks/BaseTextareaBlock.tsx +++ b/components/Blocks/BaseTextareaBlock.tsx @@ -83,7 +83,6 @@ export function BaseTextareaBlock(props: BaseTextareaBlockProps) { let block = props.block.nextBlock; let coord = getCoordinatesInTextarea(e.currentTarget, selection); - console.log(coord); if (block) { focusBlock(block, { left: coord.left + e.currentTarget.getBoundingClientRect().left, diff --git a/components/Tags.tsx b/components/Tags.tsx index d2266e9a..a5af994b 100644 --- a/components/Tags.tsx +++ b/components/Tags.tsx @@ -109,7 +109,6 @@ export const TagSearchInput = (props: { } function selectTag(tag: string) { - console.log("selected " + tag); props.setSelectedTags([...props.selectedTags, tag]); clearTagInput(); } diff --git a/src/replicache/mutations.ts b/src/replicache/mutations.ts index d8bf93c6..b3438a7c 100644 --- a/src/replicache/mutations.ts +++ b/src/replicache/mutations.ts @@ -661,7 +661,6 @@ const updatePublicationDraft: Mutation<{ localPublishedAt?: string | null; }> = async (args, ctx) => { await ctx.runOnServer(async (serverCtx) => { - console.log("updating"); const updates: { description?: string; title?: string; -- 2.51.2