Elffuss BraidHub

kikocis/continue public

Merge pull request #6533 from continuedev/pe/remove-feedback-dialog

chore: remove feedback dialog
Changeset4ad7dac30bffc2d8df714949a682b85d60a54894394e1bcee07506bf44351ed5
AuthorDallin Romney <dallinromney@gmail.com> · 2025-07-09 21:46 -07:00
CommitterGitHub <noreply@github.com> · 2025-07-09 21:46 -07:00
Parents1906c68ce46c, d50b0c70a3f6

Browse the files at this changeset

4 files changed

deleted gui/src/components/dialogs/FeedbackDialog.tsx +0 −64
@@ -1,64 +0,0 @@
1-import { usePostHog } from "posthog-js/react";
2-import { setDialogMessage } from "../../redux/slices/uiSlice";
3-import { useAppDispatch } from "../../redux/hooks";
4-
5-export default function FeedbackDialog() {
6- const posthog = usePostHog();
7- const dispatch = useAppDispatch();
8-
9- return (
10- <div className="p-4 text-center">
11- 👋 Thanks for using Continue. We are always trying to improve and love
12- hearing from users. If you're interested in speaking, enter your name and
13- email. We won't use this information for anything other than reaching out.
14- <br />
15- <br />
16- <form
17- onSubmit={(e: any) => {
18- e.preventDefault();
19- posthog?.capture("user_interest_form", {
20- name: e.target.elements[0].value,
21- email: e.target.elements[1].value,
22- });
23- dispatch(
24- setDialogMessage(
25- <div className="p-4 text-center">
26- Thanks! We'll be in touch soon.
27- </div>,
28- ),
29- );
30- }}
31- style={{
32- display: "flex",
33- flexDirection: "column",
34- gap: "10px",
35- }}
36- >
37- <input
38- style={{ padding: "10px", borderRadius: "5px" }}
39- type="text"
40- name="name"
41- placeholder="Name"
42- required
43- />
44- <input
45- style={{ padding: "10px", borderRadius: "5px" }}
46- type="email"
47- name="email"
48- placeholder="Email"
49- required
50- />
51- <button
52- style={{
53- padding: "10px",
54- borderRadius: "5px",
55- cursor: "pointer",
56- }}
57- type="submit"
58- >
59- Submit
60- </button>
61- </form>
62- </div>
63- );
64-}
modified gui/src/pages/gui/Chat.tsx +0 −20
@@ -16,7 +16,6 @@
1616 import { ErrorBoundary } from "react-error-boundary";
1717 import styled from "styled-components";
1818 import { Button, lightGray, vscBackground } from "../../components";
19-import FeedbackDialog from "../../components/dialogs/FeedbackDialog";
2019 import { useFindWidget } from "../../components/find/FindWidget";
2120 import TimelineItem from "../../components/gui/TimelineItem";
2221 import { NewSessionButton } from "../../components/mainInput/belowMainInput/NewSessionButton";
@@ -37,18 +36,12 @@
3736 newSession,
3837 updateToolCallOutput,
3938 } from "../../redux/slices/sessionSlice";
40-import {
41- setDialogEntryOn,
42- setDialogMessage,
43- setShowDialog,
44-} from "../../redux/slices/uiSlice";
4539 import { streamEditThunk } from "../../redux/thunks/edit";
4640 import { loadLastSession } from "../../redux/thunks/session";
4741 import { streamResponseThunk } from "../../redux/thunks/streamResponse";
4842 import { isJetBrains, isMetaEquivalentKeyPressed } from "../../util";
4943
5044 import { cancelStream } from "../../redux/thunks/cancelStream";
51-import { getLocalStorage, setLocalStorage } from "../../util/localStorage";
5245 import { EmptyChatBody } from "./EmptyChatBody";
5346 import { ExploreDialogWatcher } from "./ExploreDialogWatcher";
5447 import { ToolCallDiv } from "./ToolCallDiv";
@@ -221,19 +214,6 @@
221214 editorToClearOnSend.commands.clearContent();
222215 }
223216 }
224-
225- // Increment localstorage counter for popup
226- const currentCount = getLocalStorage("mainTextEntryCounter");
227- if (currentCount) {
228- setLocalStorage("mainTextEntryCounter", currentCount + 1);
229- if (currentCount === 300) {
230- dispatch(setDialogMessage(<FeedbackDialog />));
231- dispatch(setDialogEntryOn(false));
232- dispatch(setShowDialog(true));
233- }
234- } else {
235- setLocalStorage("mainTextEntryCounter", 1);
236- }
237217 },
238218 [
239219 history,
modified gui/src/redux/slices/uiSlice.ts +0 −11
@@ -83,12 +83,6 @@
8383 ) => {
8484 state.dialogMessage = action.payload;
8585 },
86- setDialogEntryOn: (
87- state,
88- action: PayloadAction<UIState["dialogEntryOn"]>,
89- ) => {
90- state.dialogEntryOn = action.payload;
91- },
9286 setShowDialog: (state, action: PayloadAction<UIState["showDialog"]>) => {
9387 state.showDialog = action.payload;
9488 },
@@ -98,9 +92,6 @@
9892 ) => {
9993 state.isExploreDialogOpen = action.payload;
10094 },
101- setHasDismissedExploreDialog: (state, action: PayloadAction<boolean>) => {
102- state.hasDismissedExploreDialog = action.payload;
103- },
10495 // Tools
10596 addTool: (state, action: PayloadAction<Tool>) => {
10697 state.toolSettings[action.payload.function.name] =
@@ -173,10 +164,8 @@
173164 export const {
174165 setOnboardingCard,
175166 setDialogMessage,
176- setDialogEntryOn,
177167 setShowDialog,
178168 setIsExploreDialogOpen,
179- setHasDismissedExploreDialog,
180169 toggleToolSetting,
181170 setToolPolicy,
182171 clearToolPolicy,
modified gui/src/util/localStorage.ts +0 −1
@@ -6,7 +6,6 @@
66 hasDismissedExploreDialog: boolean;
77 onboardingStatus?: OnboardingStatus;
88 hasDismissedOnboardingCard: boolean;
9- mainTextEntryCounter: number;
109 ide: "vscode" | "jetbrains";
1110 vsCodeUriScheme: string;
1211 ftc: number;