Compare commits

...

2 Commits

Author SHA1 Message Date
Ramesh Kumar Chandra
0aa5a4bdb7 conflict: merge conflicts resolved 2023-11-09 16:28:45 +05:30
Ramesh Kumar Chandra
de6c574cbd chore: typo changes for the buttons of issues, projects, pages, cycles, modules, sub-issues 2023-11-08 11:29:50 +05:30
43 changed files with 68 additions and 68 deletions

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

@ -54,7 +54,7 @@ export const CyclesHeader: FC = observer(() => {
prependIcon={<Plus />}
onClick={() => commandPaletteStore.toggleCreateCycleModal(true)}
>
Add Cycle
Build cycle
</Button>
</div>
</div>

View File

@ -196,7 +196,7 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
Analytics
</Button>
<Button onClick={() => commandPaletteStore.toggleCreateIssueModal(true)} size="sm" prependIcon={<Plus />}>
Add Issue
Add job
</Button>
<button
type="button"

View File

@ -79,7 +79,7 @@ export const ModulesListHeader: React.FC = observer(() => {
prependIcon={<Plus />}
onClick={() => commandPaletteStore.toggleCreateModuleModal(true)}
>
Add Module
Add module
</Button>
</div>
</div>

View File

@ -81,7 +81,7 @@ export const PageDetailsHeader: FC<IPagesHeaderProps> = observer((props) => {
size="sm"
onClick={() => commandPaletteStore.toggleCreatePageModal(true)}
>
Create Page
Create page
</Button>
</div>
)}

View File

@ -58,7 +58,7 @@ export const PagesHeader: FC<IPagesHeaderProps> = observer((props) => {
size="sm"
onClick={() => commandPaletteStore.toggleCreatePageModal(true)}
>
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

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

View File

@ -44,7 +44,7 @@ export const ProjectsHeader = observer(() => {
)}
<Button prependIcon={<Plus />} size="md" onClick={() => commandPaletteStore.toggleCreateProjectModal(true)}>
Add Project
Add project
</Button>
</div>
</div>

View File

@ -179,7 +179,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

@ -288,7 +288,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") &&
@ -626,11 +626,11 @@ export const IssueForm: FC<IssueFormProps> = observer((props) => {
<Button variant="primary" size="sm" 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

@ -172,7 +172,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

@ -170,7 +170,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

@ -169,7 +169,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

@ -175,7 +175,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

@ -145,7 +145,7 @@ export const SpreadsheetView: React.FC<Props> = observer((props) => {
onClick={() => setIsInlineCreateIssueFormOpen(true)}
>
<PlusIcon className="h-4 w-4" />
New Issue
New issue
</button>
) : (
<CustomMenu
@ -156,7 +156,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

@ -97,7 +97,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: () => commandPaletteStore.toggleCreateModuleModal(true),
}}
/>

View File

@ -69,7 +69,7 @@ export const WorkspaceDashboardView = observer(() => {
<h5 className="text-xl font-semibold">Create a project</h5>
<p className="mt-2 mb-5">Manage your projects by creating issues, cycles, modules, views and pages.</p>
<Button variant="primary" size="sm" onClick={() => commandPaletteStore.toggleCreateProjectModal(true)}>
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

@ -61,7 +61,7 @@ export const RecentPagesList: React.FC<TPagesListProps> = observer((props) => {
image={emptyPage}
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Page",
text: "New page",
onClick: () => commandPaletteStore.toggleCreatePageModal(true),
}}
/>

View File

@ -264,7 +264,7 @@ export const PagesView: React.FC<Props> = observer(({ pages, viewType }) => {
image={emptyPage}
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Page",
text: "New page",
onClick: () => commandPaletteStore.toggleCreatePageModal(true),
}}
/>

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

@ -56,7 +56,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: () => commandPaletteStore.toggleCreateProjectModal(true),
}}
/>

View File

@ -386,7 +386,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

@ -110,7 +110,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>
@ -171,7 +171,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

@ -53,7 +53,7 @@ export const WorkspaceSidebarQuickAction = observer(() => {
onClick={() => commandPaletteStore.toggleCreateIssueModal(true)}
>
<PenSquare className="h-4 w-4 text-custom-sidebar-text-300" />
{!isSidebarCollapsed && <span className="text-sm font-medium">New Issue</span>}
{!isSidebarCollapsed && <span className="text-sm font-medium">New job</span>}
</button>
{storedValue && Object.keys(JSON.parse(storedValue)).length > 0 && (

View File

@ -115,7 +115,7 @@ export const ProjectAuthWrapper: FC<IProjectAuthWrapper> = observer((props) => {
description="Try creating a new project"
image={emptyProject}
primaryButton={{
text: "Create Project",
text: "Create project",
onClick: () => toggleCreateProjectModal(true),
}}
/>

View File

@ -93,7 +93,7 @@ const AnalyticsPage: NextPageWithLayout = observer(() => {
image={emptyAnalytics}
primaryButton={{
icon: <Plus className="h-4 w-4" />,
text: "New Project",
text: "New project",
onClick: () => toggleCreateProjectModal(true),
}}
/>

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);
},