snapshot of https://github.com/makeplane/plane.git @ d868349a55de79979eb8b98701bf1702c67ad634 (2026-09-15)
Some checks failed
CodeQL / Analyze (javascript) (push) Failing after 16s
CodeQL / Analyze (python) (push) Failing after 3s
i18n sync check / check:sync (push) Failing after 3s
React Doctor / react-doctor (push) Failing after 16s
Branch Build CE / Build-Push Admin Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge Admin Manifest (push) Has been cancelled
Branch Build CE / Build-Push Web Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge Web Manifest (push) Has been cancelled
Branch Build CE / Build-Push Space Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge Proxy Manifest (push) Has been cancelled
Branch Build CE / Merge Space Manifest (push) Has been cancelled
Branch Build CE / Prepare AIO Assets (push) Has been cancelled
Branch Build CE / Build Setup (push) Has been cancelled
Branch Build CE / Build-Push Live Collaboration Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge Live Collaboration Manifest (push) Has been cancelled
Branch Build CE / Build-Push API Server Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge API Server Manifest (push) Has been cancelled
Branch Build CE / Build-Push Proxy Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Build-Push AIO Docker Image (${{ matrix.arch }}) (push) Has been cancelled
Branch Build CE / Merge AIO Manifest (push) Has been cancelled
Branch Build CE / Upload Build Assets (push) Has been cancelled
Branch Build CE / Build Release (push) Has been cancelled

This commit is contained in:
upstream-mirror
2026-09-15 15:14:58 +05:00
commit 23059a1de3
5252 changed files with 573834 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
export * from "./product-updates";
export * from "./timezone-select";

View File

@@ -0,0 +1,90 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import { useState, useEffect, useRef } from "react";
import { observer } from "mobx-react";
// hooks
import { Loader } from "@plane/ui";
import { ProductUpdatesFallback } from "@/components/global/product-updates/fallback";
import { useInstance } from "@/hooks/store/use-instance";
export const ProductUpdatesChangelog = observer(function ProductUpdatesChangelog() {
// refs
const isLoadingRef = useRef(true);
// states
const [isLoading, setIsLoading] = useState(true);
const [hasError, setHasError] = useState(false);
// store hooks
const { config } = useInstance();
// derived values
const changeLogUrl = config?.instance_changelog_url;
const shouldShowFallback = !changeLogUrl || changeLogUrl === "" || hasError;
// timeout fallback - if iframe doesn't load within 15 seconds, show error
useEffect(() => {
if (!changeLogUrl || changeLogUrl === "") {
setIsLoading(false);
isLoadingRef.current = false;
return;
}
setIsLoading(true);
setHasError(false);
isLoadingRef.current = true;
const timeoutId = setTimeout(() => {
if (isLoadingRef.current) {
setHasError(true);
setIsLoading(false);
isLoadingRef.current = false;
}
}, 15000); // 15 second timeout
return () => {
clearTimeout(timeoutId);
};
}, [changeLogUrl]);
const handleIframeLoad = () => {
setTimeout(() => {
isLoadingRef.current = false;
setIsLoading(false);
}, 1000);
};
const handleIframeError = () => {
isLoadingRef.current = false;
setHasError(true);
setIsLoading(false);
};
// Show fallback if URL is missing, empty, or iframe failed to load
if (shouldShowFallback) {
return (
<ProductUpdatesFallback
description="We're having trouble fetching the updates. Please visit our changelog to view the latest updates."
variant={config?.is_self_managed ? "self-managed" : "cloud"}
/>
);
}
return (
<div className="vertical-scrollbar relative mx-0.5 flex scrollbar-xs h-[550px] flex-col overflow-hidden overflow-y-scroll px-6">
{isLoading && (
<Loader className="absolute inset-0 flex h-full w-full flex-col items-center justify-center gap-3">
<Loader.Item height="95%" width="95%" />
</Loader>
)}
{/* eslint-disable-next-line react/iframe-missing-sandbox oxlint-disable-next-line jsx_a11y/iframe-has-title */}
<iframe
src={changeLogUrl}
className={`h-full w-full ${isLoading ? "opacity-0" : "opacity-100"} transition-opacity duration-200`}
onLoad={handleIframeLoad}
onError={handleIframeError}
/>
</div>
);
});

View File

@@ -0,0 +1,38 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import { EmptyStateDetailed } from "@plane/propel/empty-state";
type TProductUpdatesFallbackProps = {
description: string;
variant: "cloud" | "self-managed";
};
export function ProductUpdatesFallback(props: TProductUpdatesFallbackProps) {
const { description, variant } = props;
// derived values
const changelogUrl =
variant === "cloud"
? "https://plane.so/changelog?category=cloud"
: "https://plane.so/changelog?category=self-hosted";
return (
<div className="py-8">
<EmptyStateDetailed
assetKey="changelog"
description={description}
align="center"
actions={[
{
label: "Go to changelog",
variant: "primary",
onClick: () => window.open(changelogUrl, "_blank"),
},
]}
/>
</div>
);
}

View File

@@ -0,0 +1,75 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import { useTranslation } from "@plane/i18n";
// ui
import { getButtonStyling } from "@plane/propel/button";
import { PlaneLogo } from "@plane/propel/icons";
// helpers
import { cn } from "@plane/utils";
export function ProductUpdatesFooter() {
const { t } = useTranslation();
return (
<div className="m-6 mb-4 flex flex-shrink-0 items-center justify-between gap-4">
<div className="flex items-center gap-2">
<a
href="https://go.plane.so/p-docs"
target="_blank"
className="text-13 text-secondary underline-offset-1 outline-none hover:text-primary hover:underline"
rel="noreferrer"
>
{t("docs")}
</a>
<svg viewBox="0 0 2 2" className="h-0.5 w-0.5 fill-current">
<circle cx={1} cy={1} r={1} />
</svg>
<a
href="https://go.plane.so/p-changelog"
target="_blank"
className="text-13 text-secondary underline-offset-1 outline-none hover:text-primary hover:underline"
rel="noreferrer"
>
{t("full_changelog")}
</a>
<svg viewBox="0 0 2 2" className="h-0.5 w-0.5 fill-current">
<circle cx={1} cy={1} r={1} />
</svg>
<a
href="mailto:support@plane.so"
target="_blank"
className="text-13 text-secondary underline-offset-1 outline-none hover:text-primary hover:underline"
rel="noreferrer"
>
{t("support")}
</a>
<svg viewBox="0 0 2 2" className="h-0.5 w-0.5 fill-current">
<circle cx={1} cy={1} r={1} />
</svg>
<a
href="https://forum.plane.so"
target="_blank"
className="text-13 text-secondary underline-offset-1 outline-none hover:text-primary hover:underline"
rel="noreferrer"
>
Forum
</a>
</div>
<a
href="https://plane.so/pages"
target="_blank"
className={cn(
getButtonStyling("secondary", "base"),
"flex items-center gap-1.5 text-center font-medium underline-offset-2 outline-none hover:underline"
)}
rel="noreferrer"
>
<PlaneLogo className="h-4 w-auto text-primary" />
{t("powered_by_plane_pages")}
</a>
</div>
);
}

View File

@@ -0,0 +1,29 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import { observer } from "mobx-react";
import packageJson from "package.json";
import { useTranslation } from "@plane/i18n";
// helpers
import { cn } from "@plane/utils";
export const ProductUpdatesHeader = observer(function ProductUpdatesHeader() {
const { t } = useTranslation();
return (
<div className="mx-6 my-4 flex flex-shrink-0 items-center justify-between gap-2">
<div className="flex w-full items-center">
<div className="flex gap-2 text-18 font-medium">{t("whats_new")}</div>
<div
className={cn(
"mx-2 rounded-full bg-accent-primary/20 px-2 py-0.5 text-center text-11 font-medium text-accent-primary"
)}
>
{t("version")}: v{packageJson.version}
</div>
</div>
</div>
);
});

View File

@@ -0,0 +1,8 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
export * from "./modal";
export * from "./footer";

View File

@@ -0,0 +1,31 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import { observer } from "mobx-react";
// ui
import { EModalPosition, EModalWidth, ModalCore } from "@plane/ui";
// components
import { ProductUpdatesFooter } from "@/components/global";
// plane web components
import { ProductUpdatesChangelog } from "@/components/global/product-updates/changelog";
import { ProductUpdatesHeader } from "@/components/global/product-updates/header";
export type ProductUpdatesModalProps = {
isOpen: boolean;
handleClose: () => void;
};
export const ProductUpdatesModal = observer(function ProductUpdatesModal(props: ProductUpdatesModalProps) {
const { isOpen, handleClose } = props;
return (
<ModalCore isOpen={isOpen} handleClose={handleClose} position={EModalPosition.CENTER} width={EModalWidth.XXXXL}>
<ProductUpdatesHeader />
<ProductUpdatesChangelog />
<ProductUpdatesFooter />
</ModalCore>
);
});

View File

@@ -0,0 +1,58 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
import { observer } from "mobx-react";
// plane imports
import { CustomSearchSelect } from "@plane/ui";
import { cn } from "@plane/utils";
// hooks
import useTimezone from "@/hooks/use-timezone";
type TTimezoneSelect = {
value: string | undefined;
onChange: (value: string) => void;
error?: boolean;
label?: string;
buttonClassName?: string;
className?: string;
optionsClassName?: string;
disabled?: boolean;
};
export const TimezoneSelect = observer(function TimezoneSelect(props: TTimezoneSelect) {
// props
const {
value,
onChange,
error = false,
label = "Select a timezone",
buttonClassName = "",
className = "",
optionsClassName = "",
disabled = false,
} = props;
// hooks
const { disabled: isDisabled, timezones, selectedValue } = useTimezone();
return (
<div>
<CustomSearchSelect
value={value}
label={value && selectedValue ? selectedValue(value) : label}
options={isDisabled || disabled ? [] : timezones}
onChange={onChange}
buttonClassName={cn(buttonClassName, "border border-subtle-1", {
"border-danger-strong": error,
})}
className={cn("rounded-md", className)}
optionsClassName={cn("w-72", optionsClassName)}
input
disabled={isDisabled || disabled}
placement="bottom-end"
/>
</div>
);
});

View File

@@ -0,0 +1,18 @@
/**
* Copyright (c) 2023-present Plane Software, Inc. and contributors
* SPDX-License-Identifier: AGPL-3.0-only
* See the LICENSE file for details.
*/
// assets
import { useTranslation } from "@plane/i18n";
import packageJson from "package.json";
export function PlaneVersionNumber() {
const { t } = useTranslation();
return (
<span>
{t("version")}: v{packageJson.version}
</span>
);
}