From 89384117dde16b8d2407fc5bcee5283f08856cf6 Mon Sep 17 00:00:00 2001 From: Ramesh Kumar Chandra Date: Thu, 23 Nov 2023 11:25:40 +0530 Subject: [PATCH] style: camel case button text change --- web/components/analytics/scope-and-demand/demand.tsx | 2 +- web/components/estimates/estimates-list.tsx | 6 +++--- .../headers/project-archived-issue-details.tsx | 2 +- web/components/headers/project-archived-issues.tsx | 2 +- web/components/headers/project-draft-issues.tsx | 2 +- web/components/headers/projects.tsx | 2 +- web/components/headers/workspace-dashboard.tsx | 2 +- web/components/notifications/notification-header.tsx | 6 +++--- web/components/page-views/workspace-dashboard.tsx | 2 +- web/components/project/form.tsx | 6 +++--- web/components/project/member-list.tsx | 2 +- .../project/project-settings-member-defaults.tsx | 4 ++-- .../project/send-project-invitation-modal.tsx | 4 ++-- .../project/settings/delete-project-section.tsx | 2 +- web/components/project/sidebar-list-item.tsx | 4 ++-- web/components/project/sidebar-list.tsx | 2 +- web/components/workspace/issues-list.tsx | 6 +++--- web/components/workspace/issues-stats.tsx | 4 ++-- web/components/workspace/sidebar-dropdown.tsx | 8 ++++---- web/components/workspace/sidebar-quick-action.tsx | 4 ++-- web/constants/analytics.ts | 2 +- web/constants/issue.ts | 12 ++++++------ web/layouts/auth-layout/project-wrapper.tsx | 2 +- .../projects/[projectId]/archived-issues/index.tsx | 2 +- .../projects/[projectId]/draft-issues/index.tsx | 2 +- 25 files changed, 46 insertions(+), 46 deletions(-) diff --git a/web/components/analytics/scope-and-demand/demand.tsx b/web/components/analytics/scope-and-demand/demand.tsx index 0ff82c7af..ae0f75ff2 100644 --- a/web/components/analytics/scope-and-demand/demand.tsx +++ b/web/components/analytics/scope-and-demand/demand.tsx @@ -53,7 +53,7 @@ export const AnalyticsDemand: React.FC = ({ defaultAnalytics }) => (

- Estimate Demand: + Estimate demand:

{defaultAnalytics.open_estimate_sum}/{defaultAnalytics.total_estimate_sum} diff --git a/web/components/estimates/estimates-list.tsx b/web/components/estimates/estimates-list.tsx index df1088d7d..52a1947d0 100644 --- a/web/components/estimates/estimates-list.tsx +++ b/web/components/estimates/estimates-list.tsx @@ -85,11 +85,11 @@ export const EstimatesList: React.FC = observer(() => { }} size="sm" > - Add Estimate + Add estimate {currentProjectDetails?.estimate && ( )}

@@ -116,7 +116,7 @@ export const EstimatesList: React.FC = observer(() => { image={emptyEstimate} primaryButton={{ icon: , - text: "Add Estimate", + text: "Add estimate", onClick: () => { setEstimateFormOpen(true); setEstimateToUpdate(undefined); diff --git a/web/components/headers/project-archived-issue-details.tsx b/web/components/headers/project-archived-issue-details.tsx index 3056934dc..a27796303 100644 --- a/web/components/headers/project-archived-issue-details.tsx +++ b/web/components/headers/project-archived-issue-details.tsx @@ -62,7 +62,7 @@ export const ProjectArchivedIssueDetailsHeader: FC = observer(() => { } - label="Archived Issues" + label="Archived issues" link={`/${workspaceSlug}/projects/${projectId}/archived-issues`} /> diff --git a/web/components/headers/project-archived-issues.tsx b/web/components/headers/project-archived-issues.tsx index 8f8a4063d..31921c9ed 100644 --- a/web/components/headers/project-archived-issues.tsx +++ b/web/components/headers/project-archived-issues.tsx @@ -103,7 +103,7 @@ export const ProjectArchivedIssuesHeader: FC = observer(() => { } - label="Archived Issues" + label="Archived issues" /> diff --git a/web/components/headers/project-draft-issues.tsx b/web/components/headers/project-draft-issues.tsx index 11c5d01ab..7b5c37be4 100644 --- a/web/components/headers/project-draft-issues.tsx +++ b/web/components/headers/project-draft-issues.tsx @@ -40,7 +40,7 @@ export const ProjectDraftIssueHeader: FC = observer(() => { } - label="Draft Issues" + label="Draft issues" /> diff --git a/web/components/headers/projects.tsx b/web/components/headers/projects.tsx index 0702ae22e..69f85e4c3 100644 --- a/web/components/headers/projects.tsx +++ b/web/components/headers/projects.tsx @@ -42,7 +42,7 @@ export const ProjectsHeader = observer(() => { )} diff --git a/web/components/headers/workspace-dashboard.tsx b/web/components/headers/workspace-dashboard.tsx index 76bd6bc30..3e314cdc8 100644 --- a/web/components/headers/workspace-dashboard.tsx +++ b/web/components/headers/workspace-dashboard.tsx @@ -37,7 +37,7 @@ export const WorkspaceDashboardHeader = () => { className="flex items-center gap-1.5 bg-custom-background-80 text-xs font-medium py-1.5 px-3 rounded flex-shrink-0" > - {"What's New?"} + {"What's new?"} = (props) => {snoozed - ? "Snoozed Notifications" + ? "Snoozed notifications" : readNotification - ? "Unread Notifications" - : "Archived Notifications"} + ? "Unread notifications" + : "Archived notifications"} diff --git a/web/components/page-views/workspace-dashboard.tsx b/web/components/page-views/workspace-dashboard.tsx index b7fcb7cb6..c33913e44 100644 --- a/web/components/page-views/workspace-dashboard.tsx +++ b/web/components/page-views/workspace-dashboard.tsx @@ -69,7 +69,7 @@ export const WorkspaceDashboardView = observer(() => {
Create a project

Manage your projects by creating issues, cycles, modules, views and pages.

diff --git a/web/components/project/form.tsx b/web/components/project/form.tsx index 267b2506c..a957b904c 100644 --- a/web/components/project/form.tsx +++ b/web/components/project/form.tsx @@ -167,7 +167,7 @@ export const ProjectDetailsForm: FC = (props) => {
-

Project Name

+

Project name

= (props) => { onChange={onChange} hasError={Boolean(errors.name)} className="!p-3 rounded-md font-medium" - placeholder="Project Name" + placeholder="Project name" disabled={!isAdmin} /> )} @@ -275,7 +275,7 @@ export const ProjectDetailsForm: FC = (props) => {
<> Created on {renderShortDateWithYearFormat(project?.created_at)} diff --git a/web/components/project/member-list.tsx b/web/components/project/member-list.tsx index 61802c862..177a27b2f 100644 --- a/web/components/project/member-list.tsx +++ b/web/components/project/member-list.tsx @@ -101,7 +101,7 @@ export const ProjectMemberList: React.FC = observer(() => { />
{!projectMembers || !projectInvitations ? ( diff --git a/web/components/project/project-settings-member-defaults.tsx b/web/components/project/project-settings-member-defaults.tsx index fd0f806c3..7a7b40a08 100644 --- a/web/components/project/project-settings-member-defaults.tsx +++ b/web/components/project/project-settings-member-defaults.tsx @@ -90,7 +90,7 @@ export const ProjectSettingsMemberDefaults: React.FC = observer(() => {
-

Project Lead

+

Project lead

{currentProjectDetails ? ( {
-

Default Assignee

+

Default assignee

{currentProjectDetails ? ( = observer((props) => {
diff --git a/web/components/project/settings/delete-project-section.tsx b/web/components/project/settings/delete-project-section.tsx index 7d5b3d26b..6728fcb5a 100644 --- a/web/components/project/settings/delete-project-section.tsx +++ b/web/components/project/settings/delete-project-section.tsx @@ -21,7 +21,7 @@ export const DeleteProjectSection: React.FC = (props) => {({ open }) => (
- Delete Project + Delete project {open ? : } diff --git a/web/components/project/sidebar-list-item.tsx b/web/components/project/sidebar-list-item.tsx index 48c9d0b9e..2787e8498 100644 --- a/web/components/project/sidebar-list-item.tsx +++ b/web/components/project/sidebar-list-item.tsx @@ -253,7 +253,7 @@ export const ProjectSidebarListItem: React.FC = observer((props) => { >
- Archived Issues + Archived issues
)} @@ -262,7 +262,7 @@ export const ProjectSidebarListItem: React.FC = observer((props) => { >
- Draft Issues + Draft issues
{ onClick={() => commandPaletteStore.toggleCreateProjectModal(true)} > - {!isCollapsed && "Add Project"} + {!isCollapsed && "Add project"} )}
diff --git a/web/components/workspace/issues-list.tsx b/web/components/workspace/issues-list.tsx index 5ec0769af..e6135f6a6 100644 --- a/web/components/workspace/issues-list.tsx +++ b/web/components/workspace/issues-list.tsx @@ -6,7 +6,7 @@ import { AlertTriangle } from "lucide-react"; import { LayersIcon, Loader } from "@plane/ui"; // helpers import { renderShortDateWithYearFormat } from "helpers/date-time.helper"; -import { truncateText } from "helpers/string.helper"; +import { capitalizeFirstLetter, truncateText } from "helpers/string.helper"; // types import { IIssueLite } from "types"; @@ -34,7 +34,7 @@ export const IssuesList: React.FC = ({ issues, type }) => { return (
-

{type} Issues

+

{capitalizeFirstLetter(type)} issues

{issues ? (
= ({ issues, type }) => { >

{type}

Issue

-

{type === "overdue" ? "Due" : "Start"} Date

+

{type === "overdue" ? "Due" : "Start"} date

{issues.length > 0 ? ( diff --git a/web/components/workspace/issues-stats.tsx b/web/components/workspace/issues-stats.tsx index aef5cd108..1e964cd80 100644 --- a/web/components/workspace/issues-stats.tsx +++ b/web/components/workspace/issues-stats.tsx @@ -77,8 +77,8 @@ export const IssuesStats: React.FC = ({ data }) => {
-

- Activity Graph +

+ Activity graph [ { - name: "Workspace Settings", + name: "Workspace settings", href: `/${workspaceSlug}/settings`, }, { - name: "Workspace Invites", + name: "Workspace invites", href: "/invitations", }, { - name: "My Profile", + name: "My profile", href: `/${workspaceSlug}/profile/${userId}`, }, ]; @@ -206,7 +206,7 @@ export const WorkspaceSidebarDropdown = observer(() => { className="flex w-full items-center gap-2 px-2 py-1 text-sm text-custom-sidebar-text-200 hover:bg-custom-sidebar-background-80" > - Create Workspace + Create workspace

) : ( diff --git a/web/components/workspace/sidebar-quick-action.tsx b/web/components/workspace/sidebar-quick-action.tsx index 9ae9ccde8..78ac3c0a0 100644 --- a/web/components/workspace/sidebar-quick-action.tsx +++ b/web/components/workspace/sidebar-quick-action.tsx @@ -53,7 +53,7 @@ export const WorkspaceSidebarQuickAction = observer(() => { onClick={() => commandPaletteStore.toggleCreateIssueModal(true)} > - {!isSidebarCollapsed && New Issue} + {!isSidebarCollapsed && New issue} {storedValue && Object.keys(JSON.parse(storedValue)).length > 0 && ( @@ -83,7 +83,7 @@ export const WorkspaceSidebarQuickAction = observer(() => { className="w-full flex text-sm items-center rounded flex-shrink-0 py-[10px] px-3 bg-custom-background-100 shadow border-[0.5px] border-custom-border-300 text-custom-text-300" > - Last Drafted Issue + Last drafted issue
diff --git a/web/constants/analytics.ts b/web/constants/analytics.ts index 8bf3f08cc..f1c98e22a 100644 --- a/web/constants/analytics.ts +++ b/web/constants/analytics.ts @@ -3,7 +3,7 @@ import { TXAxisValues, TYAxisValues } from "types"; export const ANALYTICS_TABS = [ { key: "scope_and_demand", title: "Scope and Demand" }, - { key: "custom", title: "Custom Analytics" }, + { key: "custom", title: "Custom analytics" }, ]; export const ANALYTICS_X_AXIS_VALUES: { value: TXAxisValues; label: string }[] = [ diff --git a/web/constants/issue.ts b/web/constants/issue.ts index 7979672fd..254aba322 100644 --- a/web/constants/issue.ts +++ b/web/constants/issue.ts @@ -74,10 +74,10 @@ export const ISSUE_ORDER_BY_OPTIONS: { title: string; }[] = [ { key: "sort_order", title: "Manual" }, - { key: "-created_at", title: "Last Created" }, - { key: "-updated_at", title: "Last Updated" }, - { key: "start_date", title: "Start Date" }, - { key: "target_date", title: "Due Date" }, + { key: "-created_at", title: "Last created" }, + { key: "-updated_at", title: "Last updated" }, + { key: "start_date", title: "Start date" }, + { key: "target_date", title: "Due date" }, { key: "priority", title: "Priority" }, ]; @@ -86,8 +86,8 @@ export const ISSUE_FILTER_OPTIONS: { title: string; }[] = [ { key: null, title: "All" }, - { key: "active", title: "Active Issues" }, - { key: "backlog", title: "Backlog Issues" }, + { key: "active", title: "Active issues" }, + { key: "backlog", title: "Backlog issues" }, // { key: "draft", title: "Draft Issues" }, ]; diff --git a/web/layouts/auth-layout/project-wrapper.tsx b/web/layouts/auth-layout/project-wrapper.tsx index 845f86900..175e2b901 100644 --- a/web/layouts/auth-layout/project-wrapper.tsx +++ b/web/layouts/auth-layout/project-wrapper.tsx @@ -118,7 +118,7 @@ export const ProjectAuthWrapper: FC = observer((props) => { description="Try creating a new project" image={emptyProject} primaryButton={{ - text: "Create Project", + text: "Create project", onClick: () => toggleCreateProjectModal(true), }} /> diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/archived-issues/index.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/archived-issues/index.tsx index 13fb00f6d..8589e78a8 100644 --- a/web/pages/[workspaceSlug]/projects/[projectId]/archived-issues/index.tsx +++ b/web/pages/[workspaceSlug]/projects/[projectId]/archived-issues/index.tsx @@ -26,7 +26,7 @@ const ProjectArchivedIssuesPage: NextPageWithLayout = () => { className="flex items-center gap-1.5 rounded-full border border-custom-border-200 px-3 py-1.5 text-xs" > - Archived Issues + Archived issues
diff --git a/web/pages/[workspaceSlug]/projects/[projectId]/draft-issues/index.tsx b/web/pages/[workspaceSlug]/projects/[projectId]/draft-issues/index.tsx index fcde49524..0a5b64d44 100644 --- a/web/pages/[workspaceSlug]/projects/[projectId]/draft-issues/index.tsx +++ b/web/pages/[workspaceSlug]/projects/[projectId]/draft-issues/index.tsx @@ -24,7 +24,7 @@ const ProjectDraftIssuesPage: NextPageWithLayout = () => { className="flex items-center gap-1.5 rounded border border-custom-border-200 px-3 py-1.5 text-xs" > - Draft Issues + Draft issues