Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 9 additions & 2 deletions apps/webapp/app/components/navigation/SideMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ type SideMenuUser = Pick<
};
export type SideMenuProject = Pick<
MatchedProject,
"id" | "name" | "slug" | "version" | "environments" | "engine"
"id" | "name" | "slug" | "version" | "environments" | "engine" | "createdAt"
>;
export type SideMenuEnvironment = MatchedEnvironment;

Expand Down Expand Up @@ -611,6 +611,7 @@ export function SideMenu({
<V3DeprecationPanel
isCollapsed={isCollapsed}
isV3={isV3Project}
projectCreatedAt={project.createdAt}
hasIncident={incidentStatus.hasIncident}
isManagedCloud={incidentStatus.isManagedCloud}
/>
Expand Down Expand Up @@ -641,15 +642,21 @@ export function SideMenu({
function V3DeprecationPanel({
isCollapsed,
isV3,
projectCreatedAt,
hasIncident,
isManagedCloud,
}: {
isCollapsed: boolean;
isV3: boolean;
projectCreatedAt: Date;
hasIncident: boolean;
isManagedCloud: boolean;
}) {
if (!isManagedCloud || !isV3 || hasIncident) {
// Only show for projects created before v4 was released
const V4_RELEASE_DATE = new Date("2025-09-01");
const isLikelyV3 = isV3 && new Date(projectCreatedAt) < V4_RELEASE_DATE;

if (!isManagedCloud || !isLikelyV3 || hasIncident) {
return null;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class OrganizationsPresenter {
organization,
project: {
...fullProject,
createdAt: fullProject.createdAt,
environments: sortEnvironments(
fullProject.environments.filter((env) => {
if (env.type !== "DEVELOPMENT") return true;
Expand Down