From 67af4373f1ec71dd47c49fef68fd1f4c30b20941 Mon Sep 17 00:00:00 2001 From: Vamsi krishna Date: Thu, 6 Feb 2025 16:41:36 +0530 Subject: [PATCH 1/4] fix: renamed keys --- packages/i18n/src/locales/en/translations.json | 1 + .../inbox/modals/delete-issue-modal.tsx | 2 +- web/core/components/inbox/root.tsx | 2 +- .../components/issues/archive-issue-modal.tsx | 8 ++++---- .../links/create-update-link-modal.tsx | 17 +++++++++-------- .../calendar/quick-add-issue-actions.tsx | 4 ++-- .../issues/issue-modal/draft-issue-layout.tsx | 2 +- .../modules/analytics-sidebar/root.tsx | 8 +++++--- web/core/components/project/form.tsx | 2 +- .../views/default-view-quick-action.tsx | 4 ++-- 10 files changed, 27 insertions(+), 23 deletions(-) diff --git a/packages/i18n/src/locales/en/translations.json b/packages/i18n/src/locales/en/translations.json index 405c2d25818..89c706e2515 100644 --- a/packages/i18n/src/locales/en/translations.json +++ b/packages/i18n/src/locales/en/translations.json @@ -1132,6 +1132,7 @@ "label": "Add Project" }, "network": { + "label": "Network", "private": { "title": "Private", "description": "Accessible only by invite" diff --git a/web/core/components/inbox/modals/delete-issue-modal.tsx b/web/core/components/inbox/modals/delete-issue-modal.tsx index d2f05e63004..cd76aae63f3 100644 --- a/web/core/components/inbox/modals/delete-issue-modal.tsx +++ b/web/core/components/inbox/modals/delete-issue-modal.tsx @@ -38,7 +38,7 @@ export const DeleteInboxIssueModal: React.FC = observer(({ isOpen, onClos setToast({ type: TOAST_TYPE.SUCCESS, title: `${t("success")!}`, - message: `${t("inbox_issue.modal.delete.success")!}`, + message: `${t("inbox_issue.modals.delete.success")!}`, }); }) .catch((errors) => { diff --git a/web/core/components/inbox/root.tsx b/web/core/components/inbox/root.tsx index cea33743e6a..010b76e96a3 100644 --- a/web/core/components/inbox/root.tsx +++ b/web/core/components/inbox/root.tsx @@ -101,7 +101,7 @@ export const InboxIssueRoot: FC = observer((props) => { /> ) : (
- +
)} diff --git a/web/core/components/issues/archive-issue-modal.tsx b/web/core/components/issues/archive-issue-modal.tsx index b3a8a9b9a63..a507f5bed13 100644 --- a/web/core/components/issues/archive-issue-modal.tsx +++ b/web/core/components/issues/archive-issue-modal.tsx @@ -47,16 +47,16 @@ export const ArchiveIssueModal: React.FC = (props) => { .then(() => { setToast({ type: TOAST_TYPE.SUCCESS, - title: t("common.archive.success.label"), - message: t("common.archive.success.message"), + title: t("issue.archive.success.label"), + message: t("issue.archive.success.message"), }); onClose(); }) .catch(() => setToast({ type: TOAST_TYPE.ERROR, - title: t("common.error.label"), - message: t("common.archive.failed.message"), + title: t("issue.error.label"), + message: t("issue.archive.failed.message"), }) ) .finally(() => setIsArchiving(false)); diff --git a/web/core/components/issues/issue-detail/links/create-update-link-modal.tsx b/web/core/components/issues/issue-detail/links/create-update-link-modal.tsx index 04d167763af..8ddd77f8779 100644 --- a/web/core/components/issues/issue-detail/links/create-update-link-modal.tsx +++ b/web/core/components/issues/issue-detail/links/create-update-link-modal.tsx @@ -131,14 +131,15 @@ export const IssueLinkCreateUpdateModal: FC = observe {t("common.cancel")} diff --git a/web/core/components/issues/issue-layouts/calendar/quick-add-issue-actions.tsx b/web/core/components/issues/issue-layouts/calendar/quick-add-issue-actions.tsx index 88d7d237daf..a293d0141ce 100644 --- a/web/core/components/issues/issue-layouts/calendar/quick-add-issue-actions.tsx +++ b/web/core/components/issues/issue-layouts/calendar/quick-add-issue-actions.tsx @@ -55,10 +55,10 @@ export const CalendarQuickAddIssueActions: FC = o ).then(() => addIssuesToView?.(issueIds)); setPromiseToast(addExistingIssuesPromise, { - loading: t("toast.add.cycle.loading", { count: issueIds.length }), + loading: t("issue.adding", { count: issueIds.length }), success: { title: t("toast.success"), - message: () => t("toast.add.cycle.success", { count: issueIds.length }), + message: () => t("entity.add.success", { entity: t("issue.label", { count: 2 }) }), }, error: { title: t("toast.error"), diff --git a/web/core/components/issues/issue-modal/draft-issue-layout.tsx b/web/core/components/issues/issue-modal/draft-issue-layout.tsx index 3094dcf5de5..6ba66ba1618 100644 --- a/web/core/components/issues/issue-modal/draft-issue-layout.tsx +++ b/web/core/components/issues/issue-modal/draft-issue-layout.tsx @@ -83,7 +83,7 @@ export const DraftIssueLayout: React.FC = observer((props) => { setToast({ type: TOAST_TYPE.SUCCESS, title: `${t("success")}!`, - message: t("workspace_draft_issues.toast.created.success"), + message: t("workspace_draft_issues.toasts.created.success"), }); captureIssueEvent({ eventName: "Draft work item created", diff --git a/web/core/components/modules/analytics-sidebar/root.tsx b/web/core/components/modules/analytics-sidebar/root.tsx index ab26661cd04..5ea1655ba95 100644 --- a/web/core/components/modules/analytics-sidebar/root.tsx +++ b/web/core/components/modules/analytics-sidebar/root.tsx @@ -260,7 +260,9 @@ export const ModuleAnalyticsSidebar: React.FC = observer((props) => { const moduleStatus = MODULE_STATUS.find((status) => status.value === moduleDetails.status); const issueCount = - moduleDetails.total_issues === 0 ? "0 Work item" : `${moduleDetails.completed_issues}/${moduleDetails.total_issues}`; + moduleDetails.total_issues === 0 + ? "0 Work item" + : `${moduleDetails.completed_issues}/${moduleDetails.total_issues}`; const issueEstimatePointCount = moduleDetails.total_estimate_points === 0 @@ -352,7 +354,7 @@ export const ModuleAnalyticsSidebar: React.FC = observer((props) => { > - {t("delete_module")} + {t("project_module.delete_module")} @@ -546,7 +548,7 @@ export const ModuleAnalyticsSidebar: React.FC = observer((props) => {
- {t("links")} + {t("common.links")}
diff --git a/web/core/components/project/form.tsx b/web/core/components/project/form.tsx index c7ac273c245..ed2878996ae 100644 --- a/web/core/components/project/form.tsx +++ b/web/core/components/project/form.tsx @@ -329,7 +329,7 @@ export const ProjectDetailsForm: FC = (props) => {
-

{t("network")}

+

{t("workspace_projects.network.label")}

= observer((props { key: "open-new-tab", action: handleOpenInNewTab, - title: "open_in_new_tab", + title: t("open_in_new_tab"), icon: ExternalLink, }, { key: "copy-link", action: handleCopyText, - title: "copy_link", + title: t("copy_link"), icon: LinkIcon, }, ]; From 053d72197defda215fb69ab1e01971c9b4381143 Mon Sep 17 00:00:00 2001 From: Vamsi krishna Date: Thu, 6 Feb 2025 17:00:54 +0530 Subject: [PATCH 2/4] fix: space app --- space/app/provider.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/space/app/provider.tsx b/space/app/provider.tsx index c3ab6673f5a..e8566bc9d92 100644 --- a/space/app/provider.tsx +++ b/space/app/provider.tsx @@ -2,6 +2,7 @@ import { FC, ReactNode } from "react"; // components +import { TranslationProvider } from "@plane/i18n"; import { InstanceProvider } from "@/lib/instance-provider"; import { StoreProvider } from "@/lib/store-provider"; import { ToastProvider } from "@/lib/toast-provider"; @@ -15,9 +16,11 @@ export const AppProvider: FC = (props) => { return ( - - {children} - + + + {children} + + ); }; From de3e4ac99ce9aaa1efd44dd18413d6e29d287641 Mon Sep 17 00:00:00 2001 From: Vamsi krishna Date: Thu, 6 Feb 2025 17:35:11 +0530 Subject: [PATCH 3/4] chore: renamed issues to work items --- space/app/layout.tsx | 2 +- .../components/account/auth-forms/auth-header.tsx | 4 ++-- .../components/instance/instance-failure-view.tsx | 2 +- .../issues/issue-layouts/issue-layout-HOC.tsx | 2 +- .../issue-layouts/properties/all-properties.tsx | 2 +- .../core/components/issues/issue-layouts/utils.tsx | 2 +- .../core/components/issues/peek-overview/header.tsx | 2 +- .../issues/peek-overview/issue-properties.tsx | 2 +- .../components/modules/analytics-sidebar/root.tsx | 4 ++-- web/core/components/modules/module-card-item.tsx | 13 ++++++++++--- 10 files changed, 21 insertions(+), 14 deletions(-) diff --git a/space/app/layout.tsx b/space/app/layout.tsx index 488fb551b42..60a7287eb1c 100644 --- a/space/app/layout.tsx +++ b/space/app/layout.tsx @@ -15,7 +15,7 @@ export const metadata: Metadata = { url: "https://sites.plane.so/", }, keywords: - "software development, customer feedback, software, accelerate, code management, release management, project management, issue tracking, agile, scrum, kanban, collaboration", + "software development, customer feedback, software, accelerate, code management, release management, project management, work item tracking, agile, scrum, kanban, collaboration", twitter: { site: "@planepowers", }, diff --git a/space/core/components/account/auth-forms/auth-header.tsx b/space/core/components/account/auth-forms/auth-header.tsx index 8921c70b81c..95a539ddfc2 100644 --- a/space/core/components/account/auth-forms/auth-header.tsx +++ b/space/core/components/account/auth-forms/auth-header.tsx @@ -25,7 +25,7 @@ const Titles: TAuthHeaderDetails = { }, [EAuthModes.SIGN_UP]: { header: "View, comment, and do more", - subHeader: "Sign up or log in to work with Plane Issues and Pages.", + subHeader: "Sign up or log in to work with Plane work items and Pages.", }, }; @@ -38,7 +38,7 @@ export const AuthHeader: FC = (props) => { } return { - header: "Comment or react to issues", + header: "Comment or react to work itemss", subHeader: "Use plane to add your valuable inputs to features.", }; }; diff --git a/space/core/components/instance/instance-failure-view.tsx b/space/core/components/instance/instance-failure-view.tsx index 50f677c107c..ed4c36f3558 100644 --- a/space/core/components/instance/instance-failure-view.tsx +++ b/space/core/components/instance/instance-failure-view.tsx @@ -25,7 +25,7 @@ export const InstanceFailureView: FC = () => {

Unable to fetch instance details.

We were unable to fetch the details of the instance.
- Fret not, it might just be a connectivity issue. + Fret not, it might just be a connectivity work items.

diff --git a/space/core/components/issues/issue-layouts/issue-layout-HOC.tsx b/space/core/components/issues/issue-layouts/issue-layout-HOC.tsx index cbb8aa551d6..193d7c55155 100644 --- a/space/core/components/issues/issue-layouts/issue-layout-HOC.tsx +++ b/space/core/components/issues/issue-layouts/issue-layout-HOC.tsx @@ -26,7 +26,7 @@ export const IssueLayoutHOC = observer((props: Props) => { } if (getGroupIssueCount(undefined, undefined, false) === 0) { - return
No Issues Found
; + return
No work items Found
; } return <>{props.children}; diff --git a/space/core/components/issues/issue-layouts/properties/all-properties.tsx b/space/core/components/issues/issue-layouts/properties/all-properties.tsx index 66e9ab2960c..813a261ce23 100644 --- a/space/core/components/issues/issue-layouts/properties/all-properties.tsx +++ b/space/core/components/issues/issue-layouts/properties/all-properties.tsx @@ -137,7 +137,7 @@ export const IssueProperties: React.FC = observer((props) => { displayPropertyKey="sub_issue_count" shouldRenderProperty={(properties) => !!properties.sub_issue_count && !!issue.sub_issues_count} > - +
= observer((props) => { setToast({ type: TOAST_TYPE.SUCCESS, title: "Link copied!", - message: "Issue link copied to clipboard.", + message: "Work item link copied to clipboard.", }); }); }; diff --git a/space/core/components/issues/peek-overview/issue-properties.tsx b/space/core/components/issues/peek-overview/issue-properties.tsx index fe04c57c52b..596993bc21a 100644 --- a/space/core/components/issues/peek-overview/issue-properties.tsx +++ b/space/core/components/issues/peek-overview/issue-properties.tsx @@ -43,7 +43,7 @@ export const PeekOverviewIssueProperties: React.FC = observer(({ issueDet setToast({ type: TOAST_TYPE.INFO, title: "Link copied!", - message: "Issue link copied to clipboard", + message: "Work item link copied to clipboard", }); }); }; diff --git a/web/core/components/modules/analytics-sidebar/root.tsx b/web/core/components/modules/analytics-sidebar/root.tsx index 5ea1655ba95..8f31bbb8090 100644 --- a/web/core/components/modules/analytics-sidebar/root.tsx +++ b/web/core/components/modules/analytics-sidebar/root.tsx @@ -261,12 +261,12 @@ export const ModuleAnalyticsSidebar: React.FC = observer((props) => { const issueCount = moduleDetails.total_issues === 0 - ? "0 Work item" + ? "0 work items" : `${moduleDetails.completed_issues}/${moduleDetails.total_issues}`; const issueEstimatePointCount = moduleDetails.total_estimate_points === 0 - ? "0 Work item" + ? "0 work items" : `${moduleDetails.completed_estimate_points}/${moduleDetails.total_estimate_points}`; const isEditingAllowed = allowPermissions( diff --git a/web/core/components/modules/module-card-item.tsx b/web/core/components/modules/module-card-item.tsx index f10300f3d03..9585755eef3 100644 --- a/web/core/components/modules/module-card-item.tsx +++ b/web/core/components/modules/module-card-item.tsx @@ -6,7 +6,14 @@ import Link from "next/link"; import { useParams, usePathname, useSearchParams } from "next/navigation"; import { Info, SquareUser } from "lucide-react"; // plane package imports -import { MODULE_STATUS, PROGRESS_STATE_GROUPS_DETAILS, MODULE_FAVORITED, MODULE_UNFAVORITED,EUserPermissions, EUserPermissionsLevel } from "@plane/constants"; +import { + MODULE_STATUS, + PROGRESS_STATE_GROUPS_DETAILS, + MODULE_FAVORITED, + MODULE_UNFAVORITED, + EUserPermissions, + EUserPermissionsLevel, +} from "@plane/constants"; import { IModule } from "@plane/types"; import { Card, @@ -174,11 +181,11 @@ export const ModuleCardItem: React.FC = observer((props) => { const issueCount = module ? !moduleTotalIssues || moduleTotalIssues === 0 - ? `0 Work item` + ? `0 work items` : moduleTotalIssues === moduleCompletedIssues ? `${moduleTotalIssues} Work item${moduleTotalIssues > 1 ? `s` : ``}` : `${moduleCompletedIssues}/${moduleTotalIssues} Work items` - : `0 Work item`; + : `0 work items`; const moduleLeadDetails = moduleDetails.lead_id ? getUserDetails(moduleDetails.lead_id) : undefined; From de65ce235ee1a7c41e40c083ac822aef58c50fa5 Mon Sep 17 00:00:00 2001 From: Vamsi krishna Date: Thu, 6 Feb 2025 17:38:11 +0530 Subject: [PATCH 4/4] chore: update site manifest --- space/public/site.webmanifest.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/space/public/site.webmanifest.json b/space/public/site.webmanifest.json index 4c32ec6e385..8885d137bbd 100644 --- a/space/public/site.webmanifest.json +++ b/space/public/site.webmanifest.json @@ -1,7 +1,7 @@ { "name": "Plane Space", "short_name": "Plane Space", - "description": "Plane helps you plan your issues, cycles, and product modules.", + "description": "Plane helps you plan your work items, cycles, and product modules.", "start_url": ".", "display": "standalone", "background_color": "#f9fafb",