diff --git a/.prettierrc b/.oxfmtrc.json similarity index 52% rename from .prettierrc rename to .oxfmtrc.json index ef155d4a139..cf1c0efa798 100644 --- a/.prettierrc +++ b/.oxfmtrc.json @@ -1,5 +1,11 @@ { - "$schema": "https://json.schemastore.org/prettierrc", + "printWidth": 120, + "tabWidth": 2, + "trailingComma": "es5", + "sortTailwindcss": { + "stylesheet": "packages/tailwind-config/index.css", + "functions": ["cn", "clsx", "cva"] + }, "overrides": [ { "files": ["packages/codemods/**/*"], @@ -7,9 +13,5 @@ "printWidth": 80 } } - ], - "plugins": ["@prettier/plugin-oxc"], - "printWidth": 120, - "tabWidth": 2, - "trailingComma": "es5" + ] } diff --git a/apps/admin/app/(all)/(dashboard)/ai/form.tsx b/apps/admin/app/(all)/(dashboard)/ai/form.tsx index f1fb49261e2..affbda4808b 100644 --- a/apps/admin/app/(all)/(dashboard)/ai/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/ai/form.tsx @@ -120,16 +120,16 @@ export function InstanceAIForm(props: IInstanceAIForm) { -
+
-
+
If you have a preferred AI models vendor, please get in{" "} - + touch with us.
diff --git a/apps/admin/app/(all)/(dashboard)/ai/page.tsx b/apps/admin/app/(all)/(dashboard)/ai/page.tsx index c0281300ca0..dec32009827 100644 --- a/apps/admin/app/(all)/(dashboard)/ai/page.tsx +++ b/apps/admin/app/(all)/(dashboard)/ai/page.tsx @@ -34,7 +34,7 @@ const InstanceAIPage = observer(function InstanceAIPage(_props: Route.ComponentP ) : ( -
+
diff --git a/apps/admin/app/(all)/(dashboard)/authentication/gitea/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/gitea/form.tsx index 5e137ee4578..f05464a41a9 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/gitea/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/gitea/form.tsx @@ -176,8 +176,8 @@ export function InstanceGiteaConfigForm(props: Props) { handleClose={() => setIsDiscardChangesModalOpen(false)} />
-
-
+
+
Gitea-provided details for Plane
{GITEA_FORM_FIELDS.map((field) => (
-
+
Plane-provided details for Gitea
{GITEA_SERVICE_FIELD.map((field) => ( diff --git a/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx index 166fc44d239..2425216b3a0 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/github/form.tsx @@ -197,8 +197,8 @@ export function InstanceGithubConfigForm(props: Props) { handleClose={() => setIsDiscardChangesModalOpen(false)} />
-
-
+
+
GitHub-provided details for Plane
{GITHUB_FORM_FIELDS.map((field) => (
-
+
Plane-provided details for GitHub
{/* common service details */} -
+
{GITHUB_COMMON_SERVICE_DETAILS.map((field) => ( ))}
{/* web service details */} -
-
- +
+
+ Web
-
+
{GITHUB_SERVICE_DETAILS.map((field) => ( ))} diff --git a/apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx index 6f0a4f460bb..7df6faf17af 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/gitlab/form.tsx @@ -180,8 +180,8 @@ export function InstanceGitlabConfigForm(props: Props) { handleClose={() => setIsDiscardChangesModalOpen(false)} />
-
-
+
+
GitLab-provided details for Plane
{GITLAB_FORM_FIELDS.map((field) => (
-
+
Plane-provided details for GitLab
{GITLAB_SERVICE_FIELD.map((field) => ( diff --git a/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx b/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx index f1310ae4fae..698ff34e9cb 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/google/form.tsx @@ -185,8 +185,8 @@ export function InstanceGoogleConfigForm(props: Props) { handleClose={() => setIsDiscardChangesModalOpen(false)} />
-
-
+
+
Google-provided details for Plane
{GOOGLE_FORM_FIELDS.map((field) => (
-
+
Plane-provided details for Google
{/* common service details */} -
+
{GOOGLE_COMMON_SERVICE_DETAILS.map((field) => ( ))}
{/* web service details */} -
-
- +
+
+ Web
-
+
{GOOGLE_SERVICE_DETAILS.map((field) => ( ))} diff --git a/apps/admin/app/(all)/(dashboard)/authentication/page.tsx b/apps/admin/app/(all)/(dashboard)/authentication/page.tsx index 65d1f0b79e5..26e5fc56f9d 100644 --- a/apps/admin/app/(all)/(dashboard)/authentication/page.tsx +++ b/apps/admin/app/(all)/(dashboard)/authentication/page.tsx @@ -117,11 +117,11 @@ const InstanceAuthenticationPage = observer(function InstanceAuthenticationPage( > {formattedConfig ? (
-
+
-
Allow anyone to sign up even without an invite
-
+
Allow anyone to sign up even without an invite
+
Toggling this off will only let users sign up when they are invited.
@@ -143,7 +143,7 @@ const InstanceAuthenticationPage = observer(function InstanceAuthenticationPage(
-
Available authentication modes
+
Available authentication modes
{authenticationModes.map((method) => (
-
+
@@ -207,7 +207,7 @@ export function InstanceEmailForm(props: IInstanceEmailForm) {
-
+
)} {sendEmailStep === ESendEmailSteps.FAILED &&
{error}
} -
+
diff --git a/apps/admin/app/(all)/(dashboard)/general/form.tsx b/apps/admin/app/(all)/(dashboard)/general/form.tsx index a090959606a..0b402b76c7a 100644 --- a/apps/admin/app/(all)/(dashboard)/general/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/general/form.tsx @@ -112,18 +112,18 @@ export const GeneralConfigurationForm = observer(function GeneralConfigurationFo
-
Chat + telemetry
+
Chat + telemetry
-
+
-
+
-
Let Plane collect anonymous usage data
-
+
Let Plane collect anonymous usage data
+
No PII is collected.This anonymized data is used to understand how you use Plane and build new features in line with{" "}
-
+
-
- +
+
-
Chat with us
-
+
Chat with us
+
Let your users chat with us via Intercom or another service. Toggling Telemetry off turns this off automatically.
diff --git a/apps/admin/app/(all)/(dashboard)/layout.tsx b/apps/admin/app/(all)/(dashboard)/layout.tsx index 8b771dc7969..e56acf7f9cb 100644 --- a/apps/admin/app/(all)/(dashboard)/layout.tsx +++ b/apps/admin/app/(all)/(dashboard)/layout.tsx @@ -42,7 +42,7 @@ function AdminLayout(_props: Route.ComponentProps) {
-
+
diff --git a/apps/admin/app/(all)/(dashboard)/sidebar-dropdown.tsx b/apps/admin/app/(all)/(dashboard)/sidebar-dropdown.tsx index 960415567bb..d1ddb1f5a31 100644 --- a/apps/admin/app/(all)/(dashboard)/sidebar-dropdown.tsx +++ b/apps/admin/app/(all)/(dashboard)/sidebar-dropdown.tsx @@ -39,14 +39,14 @@ export const AdminSidebarDropdown = observer(function AdminSidebarDropdown() { const getSidebarMenuItems = () => (
- {currentUser?.email} + {currentUser?.email}
diff --git a/apps/admin/app/(all)/(dashboard)/sidebar-menu.tsx b/apps/admin/app/(all)/(dashboard)/sidebar-menu.tsx index 35434cc9419..319cf0173dd 100644 --- a/apps/admin/app/(all)/(dashboard)/sidebar-menu.tsx +++ b/apps/admin/app/(all)/(dashboard)/sidebar-menu.tsx @@ -29,7 +29,7 @@ export const AdminSidebarMenu = observer(function AdminSidebarMenu() { }; return ( -
+
{sidebarMenu.map((item, index) => { const isActive = item.href === pathName || pathName?.includes(item.href); return ( @@ -38,9 +38,9 @@ export const AdminSidebarMenu = observer(function AdminSidebarMenu() {
{} {!isSidebarCollapsed && ( -
+
{item.name}
{item.description}
diff --git a/apps/admin/app/(all)/(dashboard)/sidebar.tsx b/apps/admin/app/(all)/(dashboard)/sidebar.tsx index 76eb7b1fddd..6d9c970c2a5 100644 --- a/apps/admin/app/(all)/(dashboard)/sidebar.tsx +++ b/apps/admin/app/(all)/(dashboard)/sidebar.tsx @@ -44,13 +44,7 @@ export const AdminSidebar = observer(function AdminSidebar() { return (
diff --git a/apps/admin/app/(all)/(dashboard)/workspace/create/form.tsx b/apps/admin/app/(all)/(dashboard)/workspace/create/form.tsx index 46238940d65..d250b763059 100644 --- a/apps/admin/app/(all)/(dashboard)/workspace/create/form.tsx +++ b/apps/admin/app/(all)/(dashboard)/workspace/create/form.tsx @@ -123,8 +123,8 @@ export function WorkspaceCreateForm() {

Set your workspace's URL

-
- {workspaceBaseURL} +
+ {workspaceBaseURL}
-
+
)} diff --git a/apps/admin/app/(all)/(home)/auth-banner.tsx b/apps/admin/app/(all)/(home)/auth-banner.tsx index 057c04e32b8..43df781bbb0 100644 --- a/apps/admin/app/(all)/(home)/auth-banner.tsx +++ b/apps/admin/app/(all)/(home)/auth-banner.tsx @@ -20,16 +20,16 @@ export function AuthBanner(props: TAuthBanner) { if (!bannerData) return <>; return ( -
-
+
+
{bannerData?.message}
handleBannerData && handleBannerData(undefined)} > - +
); diff --git a/apps/admin/app/(all)/(home)/auth-header.tsx b/apps/admin/app/(all)/(home)/auth-header.tsx index 6d18d4bdc6d..ae94821af9a 100644 --- a/apps/admin/app/(all)/(home)/auth-header.tsx +++ b/apps/admin/app/(all)/(home)/auth-header.tsx @@ -9,7 +9,7 @@ import { PlaneLockup } from "@plane/propel/icons"; export function AuthHeader() { return ( -
+
diff --git a/apps/admin/app/(all)/(home)/auth-helpers.tsx b/apps/admin/app/(all)/(home)/auth-helpers.tsx index 35c146eacda..ea18dc99599 100644 --- a/apps/admin/app/(all)/(home)/auth-helpers.tsx +++ b/apps/admin/app/(all)/(home)/auth-helpers.tsx @@ -50,7 +50,7 @@ const errorCodeMessages: { message: () => (
Admin user already exists.  - + Sign In  now. @@ -62,7 +62,7 @@ const errorCodeMessages: { message: () => (
Admin user does not exist.  - + Sign In  now. diff --git a/apps/admin/app/(all)/(home)/layout.tsx b/apps/admin/app/(all)/(home)/layout.tsx index 47eeca42dc9..a334536840c 100644 --- a/apps/admin/app/(all)/(home)/layout.tsx +++ b/apps/admin/app/(all)/(home)/layout.tsx @@ -22,7 +22,7 @@ function RootLayout() { }, [replace, isUserLoggedIn]); return ( -
+
); diff --git a/apps/admin/app/(all)/(home)/page.tsx b/apps/admin/app/(all)/(home)/page.tsx index 014e880952a..7947adcdcce 100644 --- a/apps/admin/app/(all)/(home)/page.tsx +++ b/apps/admin/app/(all)/(home)/page.tsx @@ -22,7 +22,7 @@ function HomePage() { // if instance is not fetched, show loading if (!instance && !error) { return ( -
+
); diff --git a/apps/admin/app/(all)/(home)/sign-in-form.tsx b/apps/admin/app/(all)/(home)/sign-in-form.tsx index e850d190e08..4e0afb8ea13 100644 --- a/apps/admin/app/(all)/(home)/sign-in-form.tsx +++ b/apps/admin/app/(all)/(home)/sign-in-form.tsx @@ -111,8 +111,8 @@ export function InstanceSignInForm() { return ( <> -
-
+
+
-