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
3 changes: 3 additions & 0 deletions .github/workflows/pull-request-build-lint-web-apps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,8 @@ jobs:
- name: Check Affected format
run: pnpm turbo run check:format --affected

- name: Check Affected types
run: pnpm turbo run check:types --affected

- name: Build Affected
run: pnpm turbo run build --affected
2 changes: 2 additions & 0 deletions apps/admin/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.next/*
.react-router/*
.vite/*
out/*
public/*
dist/*
Expand Down
2 changes: 2 additions & 0 deletions apps/admin/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.next
.react-router
.vite
.vercel
.tubro
out/
Expand Down
2 changes: 2 additions & 0 deletions apps/space/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.next/*
.react-router/*
.vite/*
out/*
public/*
dist/*
Expand Down
2 changes: 2 additions & 0 deletions apps/space/.prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.next
.react-router
.vite
.vercel
.tubro
out/
Expand Down
8 changes: 0 additions & 8 deletions apps/web/app/(all)/installations/[provider]/layout.tsx

This file was deleted.

76 changes: 0 additions & 76 deletions apps/web/app/(all)/installations/[provider]/page.tsx

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Params } from "next/dist/shared/lib/router/utils/route-matcher";
import type { Params } from "react-router";
// local imports
import type { TPowerKContextTypeExtended } from "./types";

Expand Down
4 changes: 2 additions & 2 deletions apps/web/ce/components/cycles/analytics-sidebar/base.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use client";
import type { FC } from "react";

import { Fragment } from "react";
import { observer } from "mobx-react";
// plane imports
Expand All @@ -19,7 +19,7 @@ type ProgressChartProps = {
projectId: string;
cycleId: string;
};
export const SidebarChart: FC<ProgressChartProps> = observer((props) => {
export const SidebarChart = observer((props: ProgressChartProps) => {
const { workspaceSlug, projectId, cycleId } = props;

// hooks
Expand Down
2 changes: 1 addition & 1 deletion apps/web/ce/store/user/permission.store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class UserPermissionStore extends BaseUserPermissionStore implements IUse
* @returns { EUserPermissions | undefined }
*/
getProjectRoleByWorkspaceSlugAndProjectId = computedFn(
(workspaceSlug: string, projectId: string): EUserPermissions | undefined =>
(workspaceSlug: string, projectId?: string): EUserPermissions | undefined =>
this.getProjectRole(workspaceSlug, projectId)
);
}
2 changes: 1 addition & 1 deletion apps/web/core/components/cycles/cycle-peek-overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const CyclePeekOverview: React.FC<Props> = observer((props) => {

const handleClose = () => {
const query = generateQueryParams(searchParams, ["peekCycle"]);
router.push(`${pathname}?${query}`, { showProgress: false });
router.push(`${pathname}?${query}`);
};

useEffect(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ export const CycleListItemAction: FC<Props> = observer((props) => {

const query = generateQueryParams(searchParams, ["peekCycle"]);
if (searchParams.has("peekCycle") && searchParams.get("peekCycle") === cycleId) {
router.push(`${pathname}?${query}`, { showProgress: false });
router.push(`${pathname}?${query}`);
} else {
router.push(`${pathname}?${query && `${query}&`}peekCycle=${cycleId}`, { showProgress: false });
router.push(`${pathname}?${query && `${query}&`}peekCycle=${cycleId}`);
}
};

Expand Down
4 changes: 2 additions & 2 deletions apps/web/core/components/cycles/list/cycles-list-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export const CyclesListItem: FC<TCyclesListItem> = observer((props) => {

const query = generateQueryParams(searchParams, ["peekCycle"]);
if (searchParams.has("peekCycle") && searchParams.get("peekCycle") === cycleId) {
router.push(`${pathname}?${query}`, { showProgress: false });
router.push(`${pathname}?${query}`);
} else {
router.push(`${pathname}?${query && `${query}&`}peekCycle=${cycleId}`, { showProgress: false });
router.push(`${pathname}?${query && `${query}&`}peekCycle=${cycleId}`);
}
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ export type AudioIconProps = {
};

export const AudioIcon: React.FC<AudioIconProps> = ({ width, height }) => (
<img src={AudioFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="AudioFileIcon" />
<img src={AudioFileIcon} width={width} height={height} alt="AudioFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import CssFileIcon from "@/app/assets/attachment/css-icon.png?url";
import type { ImageIconPros } from "../types";

export const CssIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={CssFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="CssFileIcon" />
<img src={CssFileIcon} width={width} height={height} alt="CssFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import CSVFileIcon from "@/app/assets/attachment/csv-icon.png?url";
import type { ImageIconPros } from "../types";

export const CsvIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={CSVFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="CSVFileIcon" />
<img src={CSVFileIcon} width={width} height={height} alt="CSVFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,5 @@ import DefaultFileIcon from "@/app/assets/attachment/default-icon.png?url";
import type { ImageIconPros } from "../types";

export const DefaultIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img
src={DefaultFileIcon}
width={width}
height={height}
className="h-full w-full object-contain"
alt="DefaultFileIcon"
/>
<img src={DefaultFileIcon} width={width} height={height} alt="DefaultFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import DocFileIcon from "@/app/assets/attachment/doc-icon.png?url";
import type { ImageIconPros } from "../types";

export const DocIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={DocFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="DocFileIcon" />
<img src={DocFileIcon} width={width} height={height} alt="DocFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import FigmaFileIcon from "@/app/assets/attachment/figma-icon.png?url";
import type { ImageIconPros } from "../types";

export const FigmaIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={FigmaFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="FigmaFileIcon" />
<img src={FigmaFileIcon} width={width} height={height} alt="FigmaFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import HtmlFileIcon from "@/app/assets/attachment/html-icon.png?url";
import type { ImageIconPros } from "../types";

export const HtmlIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={HtmlFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="HtmlFileIcon" />
<img src={HtmlFileIcon} width={width} height={height} alt="HtmlFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import ImgFileIcon from "@/app/assets/attachment/img-icon.png?url";
import type { ImageIconPros } from "../types";

export const ImgIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={ImgFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="ImgFileIcon" />
<img src={ImgFileIcon} width={width} height={height} alt="ImgFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import JpgFileIcon from "@/app/assets/attachment/jpg-icon.png?url";
import type { ImageIconPros } from "../types";

export const JpgIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={JpgFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="JpgFileIcon" />
<img src={JpgFileIcon} width={width} height={height} alt="JpgFileIcon" />
);
2 changes: 1 addition & 1 deletion apps/web/core/components/icons/attachment/js-file-icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import JsFileIcon from "@/app/assets/attachment/js-icon.png?url";
import type { ImageIconPros } from "../types";

export const JavaScriptIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={JsFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="JsFileIcon" />
<img src={JsFileIcon} width={width} height={height} alt="JsFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import PDFFileIcon from "@/app/assets/attachment/pdf-icon.png?url";
import type { ImageIconPros } from "../types";

export const PdfIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={PDFFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="PDFFileIcon" />
<img src={PDFFileIcon} width={width} height={height} alt="PDFFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import PngFileIcon from "@/app/assets/attachment/png-icon.png?url";
import type { ImageIconPros } from "../types";

export const PngIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={PngFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="PngFileIcon" />
<img src={PngFileIcon} width={width} height={height} alt="PngFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import RarFileIcon from "@/app/assets/attachment/rar-icon.png?url";
import type { ImageIconPros } from "../types";

export const RarIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={RarFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="RarFileIcon" />
<img src={RarFileIcon} width={width} height={height} alt="RarFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import SheetFileIcon from "@/app/assets/attachment/excel-icon.png?url";
import type { ImageIconPros } from "../types";

export const SheetIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={SheetFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="SheetFileIcon" />
<img src={SheetFileIcon} width={width} height={height} alt="SheetFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import SvgFileIcon from "@/app/assets/attachment/svg-icon.png?url";
import type { ImageIconPros } from "../types";

export const SvgIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={SvgFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="SvgFileIcon" />
<img src={SvgFileIcon} width={width} height={height} alt="SvgFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import TxtFileIcon from "@/app/assets/attachment/txt-icon.png?url";
import type { ImageIconPros } from "../types";

export const TxtIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={TxtFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="TxtFileIcon" />
<img src={TxtFileIcon} width={width} height={height} alt="TxtFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import VideoFileIcon from "@/app/assets/attachment/video-icon.png?url";
import type { ImageIconPros } from "../types";

export const VideoIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={VideoFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="VideoFileIcon" />
<img src={VideoFileIcon} width={width} height={height} alt="VideoFileIcon" />
);
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import ZipFileIcon from "@/app/assets/attachment/zip-icon.png?url";
import type { ImageIconPros } from "../types";

export const ZipIcon: React.FC<ImageIconPros> = ({ width, height }) => (
<img src={ZipFileIcon} width={width} height={height} className="h-full w-full object-contain" alt="ZipFileIcon" />
<img src={ZipFileIcon} width={width} height={height} alt="ZipFileIcon" />
);
2 changes: 1 addition & 1 deletion apps/web/core/components/power-k/core/context-detector.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { Params } from "next/dist/shared/lib/router/utils/route-matcher";
import type { Params } from "react-router";
// plane web imports
import { detectExtendedContextFromURL } from "@/plane-web/components/command-palette/power-k/context-detector";
// local imports
Expand Down
4 changes: 2 additions & 2 deletions apps/web/core/components/power-k/core/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { AppRouterProgressInstance } from "@bprogress/next";
import type { useRouter } from "next/navigation";
// plane web imports
import type {
TPowerKContextTypeExtended,
Expand All @@ -19,7 +19,7 @@ export type TPowerKContext = {
shouldShowContextBasedActions: boolean;
setShouldShowContextBasedActions: (shouldShowContextBasedActions: boolean) => void;
// Router for navigation
router: AppRouterProgressInstance;
router: ReturnType<typeof useRouter>;
// UI control
closePalette: () => void;
setActiveCommand: (command: TPowerKCommandConfig | null) => void;
Expand Down
2 changes: 1 addition & 1 deletion apps/web/core/components/project/card.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const ProjectCard: React.FC<Props> = observer((props) => {
const MENU_ITEMS: TContextMenuItem[] = [
{
key: "settings",
action: () => router.push(`/${workspaceSlug}/settings/projects/${project.id}`, { showProgress: false }),
action: () => router.push(`/${workspaceSlug}/settings/projects/${project.id}`),
title: "Settings",
icon: Settings,
shouldRender: !isArchived && (hasAdminRole || hasMemberRole),
Expand Down
Loading
Loading