Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions web/ce/helpers/dashboard.helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ import { TSidebarUserMenuItemKeys } from "@/plane-web/types/dashboard";

// eslint-disable-next-line @typescript-eslint/no-unused-vars
export const isUserFeatureEnabled = (featureKey: TSidebarUserMenuItemKeys) => true;

export const getProductUpdatesLink = () => "https://plane.so/changelog/community";
6 changes: 5 additions & 1 deletion web/core/components/workspace/sidebar/help-section.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ import { usePlatformOS } from "@/hooks/use-platform-os";
// plane web components
import { PlaneVersionNumber } from "@/plane-web/components/global";
import { WorkspaceEditionBadge } from "@/plane-web/components/workspace";
// plane web helpers
import { getProductUpdatesLink } from "@/plane-web/helpers/dashboard.helper";

export interface WorkspaceHelpSectionProps {
setSidebarActive?: React.Dispatch<React.SetStateAction<boolean>>;
Expand All @@ -33,6 +35,8 @@ export const SidebarHelpSection: React.FC<WorkspaceHelpSectionProps> = observer(
// states
const [isNeedHelpOpen, setIsNeedHelpOpen] = useState(false);
const [isChangeLogOpen, setIsChangeLogOpen] = useState(false);
// derived values
const productUpdatesLink = getProductUpdatesLink();

const handleCrispWindowShow = () => {
toggleIntercom(!isIntercomToggle);
Expand Down Expand Up @@ -138,7 +142,7 @@ export const SidebarHelpSection: React.FC<WorkspaceHelpSectionProps> = observer(
<a
target="_blank"
type="button"
href="https://plane.so/changelog/community"
href={productUpdatesLink}
className="flex w-full items-center justify-start text-xs hover:bg-custom-background-80"
>
<span className="text-xs">What&apos;s new</span>
Expand Down