From da8e022596d7ae4575d5913a3ea1e404d64db061 Mon Sep 17 00:00:00 2001 From: thororen <78185467+thororen1234@users.noreply.github.com> Date: Wed, 2 Sep 2026 21:25:18 -0400 Subject: [PATCH] ReviewDB: Kill Replies --- src/plugins/experiments/index.tsx | 2 +- src/plugins/reviewDB/auth.tsx | 2 +- .../reviewDB/components/MessageButton.tsx | 22 ------------------- .../reviewDB/components/ReviewsView.tsx | 12 ++++------ src/plugins/reviewDB/entities.ts | 1 - src/plugins/reviewDB/style.css | 2 +- 6 files changed, 7 insertions(+), 34 deletions(-) diff --git a/src/plugins/experiments/index.tsx b/src/plugins/experiments/index.tsx index 1da640292..99f8bc933 100644 --- a/src/plugins/experiments/index.tsx +++ b/src/plugins/experiments/index.tsx @@ -131,7 +131,7 @@ export default definePlugin({ // Expands the experiment regex to allow negative numbers as well as text in the last segment of the URL. find: '"^dev://experiment/', replacement: { - match: /(\[0-9\]\+)/, + match: /\[0-9\]\+(?=\)\)\?\$")/, replace: "[a-zA-Z0-9-]+" } }, diff --git a/src/plugins/reviewDB/auth.tsx b/src/plugins/reviewDB/auth.tsx index cd8728980..7cf7794af 100644 --- a/src/plugins/reviewDB/auth.tsx +++ b/src/plugins/reviewDB/auth.tsx @@ -50,7 +50,7 @@ export function authorize(callback?: () => void) { permissions={0n} clientId="915703782174752809" cancelCompletesFlow={false} - callback={async (response: { location: string }) => { + callback={async (response: { location: string; }) => { try { const url = new URL(response.location); url.searchParams.append("clientMod", "vencord"); diff --git a/src/plugins/reviewDB/components/MessageButton.tsx b/src/plugins/reviewDB/components/MessageButton.tsx index 4acd661ba..10c92db85 100644 --- a/src/plugins/reviewDB/components/MessageButton.tsx +++ b/src/plugins/reviewDB/components/MessageButton.tsx @@ -83,25 +83,3 @@ export function BlockButton({ onClick, isBlocked }: { onClick(): void; isBlocked ); } - -export function ReplyButton({ onClick }: { onClick(): void; }) { - return ( - - {props => ( -
- - - -
- )} -
- ); -} diff --git a/src/plugins/reviewDB/components/ReviewsView.tsx b/src/plugins/reviewDB/components/ReviewsView.tsx index 77a389dc1..fc3a4ffa4 100644 --- a/src/plugins/reviewDB/components/ReviewsView.tsx +++ b/src/plugins/reviewDB/components/ReviewsView.tsx @@ -125,7 +125,7 @@ function ReviewList({ refetch, reviews, hideOwnReview, profileId, type }: { refe } export function ReviewsInputComponent( - { discordId, isAuthor, refetch, name, modalKey, repliesTo }: { discordId: string, name: string; isAuthor: boolean; refetch(): void; modalKey?: string; repliesTo?: number; } + { discordId, isAuthor, refetch, name, modalKey }: { discordId: string, name: string; isAuthor: boolean; refetch(): void; modalKey?: string; } ) { const { token } = Auth; const editorRef = useRef(null); @@ -148,10 +148,9 @@ export function ReviewsInputComponent( placeholder={ !token ? "You need to authorize to review users!" - : repliesTo ? `Reply to @${name}` - : isAuthor - ? `Update review for @${name}` - : `Review @${name}` + : isAuthor + ? `Update review for @${name}` + : `Review @${name}` } type={inputType} disableThemedBackground={true} @@ -160,12 +159,9 @@ export function ReviewsInputComponent( textValue="" onSubmit={ async res => { - // I know this naming is deranged, but for compatibility it has to stay this way - const response = await addReview({ userid: discordId, comment: res.value, - repliesto: repliesTo, }); if (response) { diff --git a/src/plugins/reviewDB/entities.ts b/src/plugins/reviewDB/entities.ts index 8f61acecb..0d40d7e34 100644 --- a/src/plugins/reviewDB/entities.ts +++ b/src/plugins/reviewDB/entities.ts @@ -98,6 +98,5 @@ export interface Review { sender: ReviewAuthor, timestamp: number; type?: ReviewType; - replies?: Review[]; userVote?: boolean | null; } diff --git a/src/plugins/reviewDB/style.css b/src/plugins/reviewDB/style.css index 61b0be011..2ff335759 100644 --- a/src/plugins/reviewDB/style.css +++ b/src/plugins/reviewDB/style.css @@ -189,4 +189,4 @@ .vc-rdb-vote-column-down-selected:hover:not(:disabled) { background: color-mix(in srgb, var(--status-danger) 14%, transparent); color: var(--status-danger); -} +} \ No newline at end of file