@@ -14,6 +14,7 @@ import { UserGroupIcon, UserPlusIcon } from "@heroicons/react/24/solid";
14
14
import { useNavigation } from "@remix-run/react" ;
15
15
import { DiscordIcon , SlackIcon } from "@trigger.dev/companyicons" ;
16
16
import { Fragment , useEffect , useRef , useState } from "react" ;
17
+ import { TaskIcon } from "~/assets/icons/TaskIcon" ;
17
18
import { useFeatures } from "~/hooks/useFeatures" ;
18
19
import { MatchedOrganization } from "~/hooks/useOrganizations" ;
19
20
import { MatchedProject } from "~/hooks/useProject" ;
@@ -54,6 +55,7 @@ import { LogoIcon } from "../LogoIcon";
54
55
import { StepContentContainer } from "../StepContentContainer" ;
55
56
import { UserProfilePhoto } from "../UserProfilePhoto" ;
56
57
import { FreePlanUsage } from "../billing/FreePlanUsage" ;
58
+ import { Badge } from "../primitives/Badge" ;
57
59
import { Button } from "../primitives/Buttons" ;
58
60
import { ClipboardField } from "../primitives/ClipboardField" ;
59
61
import { Dialog , DialogContent , DialogHeader , DialogTrigger } from "../primitives/Dialog" ;
@@ -70,8 +72,6 @@ import {
70
72
import { StepNumber } from "../primitives/StepNumber" ;
71
73
import { SideMenuHeader } from "./SideMenuHeader" ;
72
74
import { MenuCount , SideMenuItem } from "./SideMenuItem" ;
73
- import { Badge } from "../primitives/Badge" ;
74
- import { TaskIcon } from "~/assets/icons/TaskIcon" ;
75
75
76
76
type SideMenuUser = Pick < User , "email" | "admin" > & { isImpersonating : boolean } ;
77
77
type SideMenuProject = Pick <
@@ -269,28 +269,44 @@ export function SideMenu({ user, project, organization, organizations }: SideMen
269
269
target = "_blank"
270
270
/>
271
271
) }
272
-
273
272
< SideMenuItem
274
273
name = "Changelog"
275
274
icon = "star"
276
275
to = "https://trigger.dev/changelog"
277
276
data-action = "changelog"
278
277
target = "_blank"
279
278
/>
280
-
281
- < Feedback
282
- button = {
283
- < Button
284
- variant = "small-menu-item"
285
- LeadingIcon = "log"
286
- data-action = "help & feedback"
287
- fullWidth
288
- textAlignLeft
289
- >
290
- Help & Feedback
291
- </ Button >
292
- }
293
- />
279
+ { project . version === "V2" ? (
280
+ < Feedback
281
+ button = {
282
+ < Button
283
+ variant = "small-menu-item"
284
+ LeadingIcon = "log"
285
+ data-action = "help & feedback"
286
+ fullWidth
287
+ textAlignLeft
288
+ >
289
+ Help & Feedback
290
+ </ Button >
291
+ }
292
+ />
293
+ ) : (
294
+ < Feedback
295
+ defaultValue = "developer preview"
296
+ button = {
297
+ < Button
298
+ variant = "small-menu-item"
299
+ LeadingIcon = "log"
300
+ leadingIconClassName = "text-primary"
301
+ data-action = "help & feedback"
302
+ fullWidth
303
+ textAlignLeft
304
+ >
305
+ < span className = "text-primary" > Give feedback on v3</ span >
306
+ </ Button >
307
+ }
308
+ />
309
+ ) }
294
310
{ currentPlan && ! currentPlan . subscription ?. isPaying && currentPlan . usage . runCountCap && (
295
311
< FreePlanUsage
296
312
to = { organizationBillingPath ( organization ) }
0 commit comments