chore: typo changes for the buttons of issues, projects, pages, cycles, modules, sub-issues

This commit is contained in:
Ramesh Kumar Chandra 2023-11-08 11:29:50 +05:30
parent 9f206331bc
commit de6c574cbd
45 changed files with 70 additions and 70 deletions

View File

@ -243,7 +243,7 @@ export const CyclesListItem: FC<TCyclesListItem> = (props) => {
<CustomMenu.MenuItem onClick={handleDeleteCycle}>
<span className="flex items-center justify-start gap-2">
<Trash2 className="h-3 w-3" />
<span>Delete module</span>
<span>Delete cycle</span>
</span>
</CustomMenu.MenuItem>
</>

View File

@ -90,7 +90,7 @@ export const CycleDeleteModal: React.FC<ICycleDelete> = observer((props) => {
<div className="flex-shrink-0 flex justify-center items-center rounded-full bg-red-500/20 w-12 h-12">
<AlertTriangle width={16} strokeWidth={2} className="text-red-600" />
</div>
<div className="text-xl font-medium 2xl:text-2xl">Delete Cycle</div>
<div className="text-xl font-medium 2xl:text-2xl">Delete cycle</div>
</div>
<span>
<p className="text-sm text-custom-text-200">
@ -106,7 +106,7 @@ export const CycleDeleteModal: React.FC<ICycleDelete> = observer((props) => {
</Button>
<Button variant="danger" size="sm" onClick={formSubmit}>
{loader ? "Deleting..." : "Delete Cycle"}
{loader ? "Deleting..." : "Delete cycle"}
</Button>
</div>
</div>

View File

@ -58,7 +58,7 @@ export const CycleForm: React.FC<Props> = (props) => {
/>
)}
/>
<h3 className="text-xl font-medium leading-6 text-custom-text-200">{status ? "Update" : "New"} Cycle</h3>
<h3 className="text-xl font-medium leading-6 text-custom-text-200">{data?.id ? "Update cycle" : "New cycle"}</h3>
</div>
<div className="space-y-3">
<div className="mt-2 space-y-3">
@ -142,11 +142,11 @@ export const CycleForm: React.FC<Props> = (props) => {
<Button variant="primary" type="submit" loading={isSubmitting}>
{data
? isSubmitting
? "Updating Cycle..."
: "Update Cycle"
? "Updating cycle..."
: "Update cycle"
: isSubmitting
? "Creating Cycle..."
: "Create Cycle"}
? "Creating cycle..."
: "Create cycle"}
</Button>
</div>
</form>

View File

@ -204,7 +204,7 @@ export const CycleIssuesHeader: React.FC = observer(() => {
size="sm"
prependIcon={<Plus />}
>
Add Issue
Add issue
</Button>
<button
type="button"

View File

@ -59,7 +59,7 @@ export const CyclesHeader: FC<ICyclesHeader> = (props) => {
document.dispatchEvent(e);
}}
>
Add Cycle
Build cycle
</Button>
</div>
</div>

View File

@ -202,7 +202,7 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
size="sm"
prependIcon={<Plus />}
>
Add Issue
Add issue
</Button>
<button
type="button"

View File

@ -82,7 +82,7 @@ export const ModulesListHeader: React.FC = observer(() => {
document.dispatchEvent(e);
}}
>
Add Module
Add module
</Button>
</div>
</div>

View File

@ -83,7 +83,7 @@ export const PageDetailsHeader: FC<IPagesHeaderProps> = observer((props) => {
document.dispatchEvent(e);
}}
>
Create Page
Create page
</Button>
</div>
)}

View File

@ -61,7 +61,7 @@ export const PagesHeader: FC<IPagesHeaderProps> = observer((props) => {
document.dispatchEvent(e);
}}
>
Create Page
Create page
</Button>
</div>
)}

View File

@ -54,7 +54,7 @@ export const ProjectInboxHeader: FC = observer(() => {
<div className="flex items-center gap-2">
<CreateInboxIssueModal isOpen={createIssueModal} onClose={() => setCreateIssueModal(false)} />
<Button variant="primary" prependIcon={<Plus />} size="sm" onClick={() => setCreateIssueModal(true)}>
Add Issue
Add issue
</Button>
</div>
</div>

View File

@ -208,7 +208,7 @@ export const ProjectIssuesHeader: React.FC = observer(() => {
size="sm"
prependIcon={<Plus />}
>
Add Issue
Add issue
</Button>
</div>
</div>

View File

@ -51,7 +51,7 @@ export const ProjectsHeader = observer(() => {
document.dispatchEvent(e);
}}
>
Add Project
Add project
</Button>
</div>
</div>

View File

@ -173,7 +173,7 @@ export const CreateInboxIssueModal: React.FC<Props> = observer((props) => {
Discard
</Button>
<Button variant="primary" type="submit" loading={isSubmitting}>
{isSubmitting ? "Adding Issue..." : "Add Issue"}
{isSubmitting ? "Adding issue..." : "Add issue"}
</Button>
</div>
</div>

View File

@ -99,7 +99,7 @@ export const DeleteInboxIssueModal: React.FC<Props> = observer(({ isOpen, onClos
<AlertTriangle className="h-6 w-6 text-red-600" aria-hidden="true" />
</span>
<span className="flex items-center justify-start">
<h3 className="text-xl font-medium 2xl:text-2xl">Delete Issue</h3>
<h3 className="text-xl font-medium 2xl:text-2xl">Delete issue</h3>
</span>
</div>
<span>
@ -116,7 +116,7 @@ export const DeleteInboxIssueModal: React.FC<Props> = observer(({ isOpen, onClos
Cancel
</Button>
<Button variant="danger" onClick={handleDelete} loading={isDeleting}>
{isDeleting ? "Deleting..." : "Delete Issue"}
{isDeleting ? "Deleting..." : "Delete issue"}
</Button>
</div>
</div>

View File

@ -99,7 +99,7 @@ export const DeleteImportModal: React.FC<Props> = ({ isOpen, handleClose, data,
<AlertTriangle className="h-6 w-6 text-red-500" aria-hidden="true" />
</span>
<span className="flex items-center justify-start">
<h3 className="text-xl font-medium 2xl:text-2xl">Delete Project</h3>
<h3 className="text-xl font-medium 2xl:text-2xl">Delete project</h3>
</span>
</div>
<span>
@ -136,7 +136,7 @@ export const DeleteImportModal: React.FC<Props> = ({ isOpen, handleClose, data,
disabled={!confirmDeleteImport}
loading={deleteLoading}
>
{deleteLoading ? "Deleting..." : "Delete Project"}
{deleteLoading ? "Deleting..." : "Delete project"}
</Button>
</div>
</div>

View File

@ -117,7 +117,7 @@ export const DeleteArchivedIssueModal: React.FC<Props> = observer((props) => {
Cancel
</Button>
<Button variant="danger" onClick={handleIssueDelete} loading={isDeleteLoading}>
{isDeleteLoading ? "Deleting..." : "Delete Issue"}
{isDeleteLoading ? "Deleting..." : "Delete issue"}
</Button>
</div>
</div>

View File

@ -127,7 +127,7 @@ export const DeleteDraftIssueModal: React.FC<Props> = observer((props) => {
Cancel
</Button>
<Button variant="danger" onClick={handleDeletion} loading={isDeleteLoading}>
{isDeleteLoading ? "Deleting..." : "Delete Issue"}
{isDeleteLoading ? "Deleting..." : "Delete issue"}
</Button>
</div>
</div>

View File

@ -79,7 +79,7 @@ export const DeleteIssueModal: React.FC<Props> = observer((props) => {
<AlertTriangle className="h-6 w-6 text-red-600" aria-hidden="true" />
</span>
<span className="flex items-center justify-start">
<h3 className="text-xl font-medium 2xl:text-2xl">Delete Issue</h3>
<h3 className="text-xl font-medium 2xl:text-2xl">Delete issue</h3>
</span>
</div>
<span>
@ -97,7 +97,7 @@ export const DeleteIssueModal: React.FC<Props> = observer((props) => {
Cancel
</Button>
<Button variant="danger" onClick={handleIssueDelete} loading={isDeleteLoading}>
{isDeleteLoading ? "Deleting..." : "Delete Issue"}
{isDeleteLoading ? "Deleting..." : "Delete issue"}
</Button>
</div>
</div>

View File

@ -284,7 +284,7 @@ export const IssueForm: FC<IssueFormProps> = observer((props) => {
/>
)}
<h3 className="text-xl font-semibold leading-6 text-custom-text-100">
{status ? "Update" : "Create"} Issue
{status ? "Update issue" : "Create issue"}
</h3>
</div>
{watch("parent") &&
@ -619,11 +619,11 @@ export const IssueForm: FC<IssueFormProps> = observer((props) => {
<Button variant="primary" type="submit" loading={isSubmitting}>
{status
? isSubmitting
? "Updating Issue..."
: "Update Issue"
? "Updating issue..."
: "Update issue"
: isSubmitting
? "Adding Issue..."
: "Add Issue"}
? "Adding issue..."
: "Add issue"}
</Button>
</div>
</div>

View File

@ -204,7 +204,7 @@ export const CalendarInlineCreateIssueForm: React.FC<Props> = observer((props) =
onClick={() => setIsOpen(true)}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
<span className="text-sm font-medium text-custom-primary-100">New Issue</span>
<span className="text-sm font-medium text-custom-primary-100">New issue</span>
</button>
</div>
)}

View File

@ -170,7 +170,7 @@ export const GanttInlineCreateIssueForm: React.FC<Props> = observer((props) => {
onClick={() => setIsOpen(true)}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
<span className="text-sm font-medium text-custom-primary-100">New Issue</span>
<span className="text-sm font-medium text-custom-primary-100">New issue</span>
</button>
)}
</>

View File

@ -173,7 +173,7 @@ export const BoardInlineCreateIssueForm: React.FC<Props> = observer((props) => {
onClick={() => setIsOpen(true)}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
<span className="text-sm font-medium text-custom-primary-100">New Issue</span>
<span className="text-sm font-medium text-custom-primary-100">New issue</span>
</button>
)}
</div>

View File

@ -173,7 +173,7 @@ export const ListInlineCreateIssueForm: React.FC<Props> = observer((props) => {
onClick={() => setIsOpen(true)}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
<span className="text-sm font-medium text-custom-primary-100">New Issue</span>
<span className="text-sm font-medium text-custom-primary-100">New issue</span>
</button>
</div>
)}

View File

@ -179,7 +179,7 @@ export const SpreadsheetInlineCreateIssueForm: React.FC<Props> = observer((props
onClick={() => setIsOpen(true)}
>
<PlusIcon className="h-3.5 w-3.5 stroke-2" />
<span className="text-sm font-medium text-custom-primary-100">New Issue</span>
<span className="text-sm font-medium text-custom-primary-100">New issue</span>
</button>
</div>
)}

View File

@ -152,7 +152,7 @@ export const SpreadsheetView: React.FC<Props> = observer((props) => {
onClick={() => setIsInlineCreateIssueFormOpen(true)}
>
<PlusIcon className="h-4 w-4" />
New Issue
New issue
</button>
) : (
<CustomMenu
@ -163,7 +163,7 @@ export const SpreadsheetView: React.FC<Props> = observer((props) => {
type="button"
>
<PlusIcon className="h-4 w-4" />
New Issue
New issue
</button>
}
optionsClassName="left-5 !w-36"

View File

@ -282,7 +282,7 @@ export const SubIssuesRoot: React.FC<ISubIssuesRoot> = observer((props) => {
) : (
isEditable && (
<div className="flex justify-between items-center">
<div className="text-xs py-2 text-custom-text-300 italic">No Sub-Issues yet</div>
<div className="text-xs py-2 text-custom-text-300 italic">No Sub-issues yet</div>
<div>
<CustomMenu
label={

View File

@ -92,7 +92,7 @@ export const DeleteModuleModal: React.FC<Props> = observer((props) => {
</div>
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<Dialog.Title as="h3" className="text-lg font-medium leading-6 text-custom-text-100">
Delete Module
Delete module
</Dialog.Title>
<div className="mt-2">
<p className="text-sm text-custom-text-200">

View File

@ -92,7 +92,7 @@ export const ModuleForm: React.FC<Props> = ({
/>
)}
/>
<h3 className="text-xl font-medium leading-6 text-custom-text-200">{status ? "Update" : "New"} Module</h3>
<h3 className="text-xl font-medium leading-6 text-custom-text-200">{status ? "Update module" : "New module"}</h3>
</div>
<div className="space-y-3">
@ -189,11 +189,11 @@ export const ModuleForm: React.FC<Props> = ({
<Button variant="primary" type="submit" loading={isSubmitting}>
{status
? isSubmitting
? "Updating Module..."
: "Update Module"
? "Updating module..."
: "Update module"
: isSubmitting
? "Creating Module..."
: "Create Module"}
? "Creating module..."
: "Create module"}
</Button>
</div>
</form>

View File

@ -84,7 +84,7 @@ export const ModulesListView: React.FC = observer(() => {
image={emptyModule}
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Module",
text: "New module",
onClick: () => {
const e = new KeyboardEvent("keydown", {
key: "m",

View File

@ -77,7 +77,7 @@ export const WorkspaceDashboardView = observer(() => {
document.dispatchEvent(e);
}}
>
Create Project
Create project
</Button>
</div>
<div className="hidden md:block self-end overflow-hidden pt-8">

View File

@ -118,11 +118,11 @@ export const DeletePageModal: React.FC<TConfirmPageDeletionProps> = ({ isOpen, s
</div>
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<Dialog.Title as="h3" className="text-lg font-medium leading-6 text-custom-text-100">
Delete Page
Delete page
</Dialog.Title>
<div className="mt-2">
<p className="text-sm text-custom-text-200">
Are you sure you want to delete Page-{" "}
Are you sure you want to delete page-{" "}
<span className="break-words font-medium text-custom-text-100">{data?.name}</span>? All of the
data related to the page will be permanently removed. This action cannot be undone.
</p>

View File

@ -45,7 +45,7 @@ export const PageForm: React.FC<Props> = ({ handleFormSubmit, handleClose, statu
return (
<form onSubmit={handleSubmit(handleCreateUpdatePage)}>
<div className="space-y-5">
<h3 className="text-lg font-medium leading-6 text-custom-text-100">{status ? "Update" : "Create"} Page</h3>
<h3 className="text-lg font-medium leading-6 text-custom-text-100">{status ? "Update page" : "Create page"}</h3>
<div className="space-y-3">
<div>
<Controller
@ -82,11 +82,11 @@ export const PageForm: React.FC<Props> = ({ handleFormSubmit, handleClose, statu
<Button variant="primary" type="submit" loading={isSubmitting}>
{status
? isSubmitting
? "Updating Page..."
: "Update Page"
? "Updating page..."
: "Update page"
: isSubmitting
? "Creating Page..."
: "Create Page"}
? "Creating page..."
: "Create page"}
</Button>
</div>
</form>

View File

@ -60,7 +60,7 @@ export const RecentPagesList: React.FC<TPagesListProps> = ({ viewType }) => {
image={emptyPage}
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Page",
text: "New page",
onClick: () => {
const e = new KeyboardEvent("keydown", {
key: "d",

View File

@ -263,7 +263,7 @@ export const PagesView: React.FC<Props> = ({ pages, viewType }) => {
image={emptyPage}
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Page",
text: "New page",
onClick: () => {
const e = new KeyboardEvent("keydown", {
key: "d",

View File

@ -158,7 +158,7 @@ export const SinglePageDetailedItem: React.FC<TSingleStatProps> = ({
>
<span className="flex items-center justify-start gap-2">
<Pencil className="h-3.5 w-3.5" />
<span>Edit Page</span>
<span>Edit page</span>
</span>
</CustomMenu.MenuItem>
<CustomMenu.MenuItem
@ -170,7 +170,7 @@ export const SinglePageDetailedItem: React.FC<TSingleStatProps> = ({
>
<span className="flex items-center justify-start gap-2">
<Trash2 className="h-3.5 w-3.5" />
<span>Delete Page</span>
<span>Delete page</span>
</span>
</CustomMenu.MenuItem>
<CustomMenu.MenuItem

View File

@ -158,7 +158,7 @@ export const SinglePageListItem: React.FC<TSingleStatProps> = ({
>
<span className="flex items-center justify-start gap-2">
<Pencil className="h-3.5 w-3.5" />
<span>Edit Page</span>
<span>Edit page</span>
</span>
</CustomMenu.MenuItem>
<CustomMenu.MenuItem
@ -170,7 +170,7 @@ export const SinglePageListItem: React.FC<TSingleStatProps> = ({
>
<span className="flex items-center justify-start gap-2">
<Trash2 className="h-3.5 w-3.5" />
<span>Delete Page</span>
<span>Delete page</span>
</span>
</CustomMenu.MenuItem>
<CustomMenu.MenuItem

View File

@ -52,7 +52,7 @@ export const ProjectCardList: FC<IProjectCardList> = observer((props) => {
description="Get started by creating your first project"
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Project",
text: "New project",
onClick: () => {
const e = new KeyboardEvent("keydown", {
key: "p",

View File

@ -384,7 +384,7 @@ export const CreateProjectModal: FC<Props> = observer((props) => {
Cancel
</Button>
<Button variant="primary" type="submit" size="sm" loading={isSubmitting} tabIndex={7}>
{isSubmitting ? "Creating..." : "Create Project"}
{isSubmitting ? "Creating..." : "Create project"}
</Button>
</div>
</form>

View File

@ -105,7 +105,7 @@ export const DeleteProjectModal: React.FC<DeleteProjectModal> = (props) => {
<AlertTriangle className="h-6 w-6 text-red-600" aria-hidden="true" />
</span>
<span className="flex items-center justify-start">
<h3 className="text-xl font-medium 2xl:text-2xl">Delete Project</h3>
<h3 className="text-xl font-medium 2xl:text-2xl">Delete project</h3>
</span>
</div>
<span>
@ -166,7 +166,7 @@ export const DeleteProjectModal: React.FC<DeleteProjectModal> = (props) => {
Cancel
</Button>
<Button variant="danger" type="submit" disabled={!canDelete} loading={isSubmitting}>
{isSubmitting ? "Deleting..." : "Delete Project"}
{isSubmitting ? "Deleting..." : "Delete project"}
</Button>
</div>
</form>

View File

@ -272,7 +272,7 @@ export const ProjectDetailsForm: FC<IProjectDetailsForm> = (props) => {
<div className="flex items-center justify-between py-2">
<>
<Button variant="primary" type="submit" loading={isSubmitting} disabled={!isAdmin}>
{isSubmitting ? "Updating Project..." : "Update Project"}
{isSubmitting ? "Updating project..." : "Update project"}
</Button>
<span className="text-sm text-custom-sidebar-text-400 italic">
Created on {renderShortDateWithYearFormat(project?.created_at)}

View File

@ -21,7 +21,7 @@ export const DeleteProjectSection: React.FC<IDeleteProjectSection> = (props) =>
{({ open }) => (
<div className="w-full">
<Disclosure.Button as="button" type="button" className="flex items-center justify-between w-full py-4">
<span className="text-xl tracking-tight">Delete Project</span>
<span className="text-xl tracking-tight">Delete project</span>
{open ? <ChevronUp className="h-5 w-5" /> : <ChevronDown className="h-5 w-5" />}
</Disclosure.Button>

View File

@ -52,7 +52,7 @@ export const WorkspaceSidebarQuickAction = () => {
}}
>
<PenSquare className="h-4 w-4 text-custom-sidebar-text-300" />
{!store?.theme?.sidebarCollapsed && <span className="text-sm font-medium">New Issue</span>}
{!store?.theme?.sidebarCollapsed && <span className="text-sm font-medium">New issue</span>}
</button>
{storedValue && Object.keys(JSON.parse(storedValue)).length > 0 && (

View File

@ -130,7 +130,7 @@ export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => {
description="Try creating a new project"
image={emptyProject}
primaryButton={{
text: "Create Project",
text: "Create project",
onClick: () => {
const e = new KeyboardEvent("keydown", {
key: "p",

View File

@ -95,7 +95,7 @@ const AnalyticsPage: NextPageWithLayout = observer(() => {
image={emptyAnalytics}
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Project",
text: "New project",
onClick: () => {
const e = new KeyboardEvent("keydown", {
key: "p",

View File

@ -99,7 +99,7 @@ const ProjectCyclesPage: NextPageWithLayout = observer(() => {
image={emptyCycle}
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Cycle",
text: "Build cycle",
onClick: () => {
setCreateModal(true);
},