Skip to content

Commit

Permalink
fix: casing throughout the platform (makeplane#5293)
Browse files Browse the repository at this point in the history
  • Loading branch information
aaryan610 authored Aug 4, 2024
1 parent 3a5c77e commit 8f8a975
Show file tree
Hide file tree
Showing 37 changed files with 50 additions and 146 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export const CycleIssuesHeader: React.FC = observer(() => {
}}
size="sm"
>
Add Issue
Add issue
</Button>
)}
</>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const ProjectInboxHeader: FC = observer(() => {
/>

<Button variant="primary" size="sm" onClick={() => setCreateIssueModal(true)}>
Add Issue
Add issue
</Button>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export const ModuleIssuesHeader: React.FC = observer(() => {
}}
size="sm"
>
Add Issue
Add issue
</Button>
</>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export const PagesListHeader = observer(() => {
});
}}
>
Add Page
Add page
</Button>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export const ProjectViewIssuesHeader: React.FC = observer(() => {
}}
size="sm"
>
Add Issue
Add issue
</Button>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const ProjectViewsHeader = observer(() => {
{canUserCreateView && (
<div>
<Button variant="primary" size="sm" onClick={() => toggleCreateViewModal(true)}>
Add View
Add view
</Button>
</div>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const GlobalIssuesHeader = observer(() => {
)}
{isAuthorizedUser && (
<Button variant="primary" size="sm" onClick={() => setCreateViewModal(true)}>
Add View
Add view
</Button>
)}
</div>
Expand Down
8 changes: 4 additions & 4 deletions web/core/components/core/modals/link-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,11 @@ export const LinkModal: FC<Props> = (props) => {
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
{status
? isSubmitting
? "Updating Link..."
: "Update Link"
? "Updating link..."
: "Update link"
: isSubmitting
? "Adding Link..."
: "Add Link"}
? "Adding link..."
: "Add link"}
</Button>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/cycles/delete-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export const CycleDeleteModal: React.FC<ICycleDelete> = observer((props) => {
handleSubmit={formSubmit}
isSubmitting={loader}
isOpen={isOpen}
title="Delete Cycle"
title="Delete cycle"
content={
<>
Are you sure you want to delete cycle{' "'}
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/cycles/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export const CycleForm: React.FC<Props> = (props) => {
)}
/>
)}
<h3 className="text-xl font-medium text-custom-text-200">{status ? "Update" : "Create"} Cycle</h3>
<h3 className="text-xl font-medium text-custom-text-200">{status ? "Update" : "Create"} cycle</h3>
</div>
<div className="space-y-3">
<div className="space-y-1">
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/dropdowns/member/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ export const MemberDropdown: React.FC<Props> = observer((props) => {
>
{!hideIcon && <ButtonAvatars showTooltip={showTooltip} userIds={value} icon={icon} />}
{BUTTON_VARIANTS_WITH_TEXT.includes(buttonVariant) && (
<span className="flex-grow truncate text-xs leading-5">
<span className="flex-grow truncate">
{Array.isArray(value) && value.length > 0
? value.length === 1
? getUserDetails(value[0])?.display_name
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/estimates/empty-screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const EstimateEmptyScreen: FC<TEstimateEmptyScreen> = (props) => {
</p>
</div>
<div>
<Button onClick={onButtonClick}>Add Estimate System</Button>
<Button onClick={onButtonClick}>Add estimate system</Button>
</div>
</div>
);
Expand Down
97 changes: 0 additions & 97 deletions web/core/components/inbox/modals/accept-issue-modal.tsx

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ export const InboxIssueCreateRoot: FC<TInboxIssueCreateRoot> = observer((props)
return (
<form onSubmit={handleFormSubmit}>
<div className="space-y-5 p-5">
<h3 className="text-xl font-medium text-custom-text-200">Create Intake Issue</h3>
<h3 className="text-xl font-medium text-custom-text-200">Create intake issue</h3>
<div className="space-y-3">
<InboxIssueTitle
data={formData}
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/inbox/modals/decline-issue-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const DeclineIssueModal: React.FC<Props> = (props) => {
handleSubmit={handleDecline}
isSubmitting={isDeclining}
isOpen={isOpen}
title="Decline Issue"
title="Decline issue"
content={
<>
{" "}
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/inbox/modals/delete-issue-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export const DeleteInboxIssueModal: React.FC<Props> = observer(({ isOpen, onClos
handleSubmit={handleDelete}
isSubmitting={isDeleting}
isOpen={isOpen}
title="Delete Issue"
title="Delete issue"
content={
<>
Are you sure you want to delete issue{" "}
Expand Down
1 change: 0 additions & 1 deletion web/core/components/inbox/modals/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
export * from "./accept-issue-modal";
export * from "./create-edit-modal";
export * from "./decline-issue-modal";
export * from "./delete-issue-modal";
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/integration/delete-import-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,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>
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/issues/delete-issue-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export const DeleteIssueModal: React.FC<Props> = (props) => {
handleSubmit={handleIssueDelete}
isSubmitting={isDeleting}
isOpen={isOpen}
title="Delete Issue"
title="Delete issue"
content={
<>
Are you sure you want to delete issue{" "}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const IssueDetailWidgetActionButtons: FC<Props> = (props) => {
issueId={issueId}
customButton={
<IssueDetailWidgetButton
title="Add sub-issues"
title="Add sub-issue"
icon={<Layers className="h-3.5 w-3.5 flex-shrink-0" strokeWidth={2} />}
disabled={disabled}
/>
Expand All @@ -36,7 +36,7 @@ export const IssueDetailWidgetActionButtons: FC<Props> = (props) => {
issueId={issueId}
customButton={
<IssueDetailWidgetButton
title="Add Relation"
title="Add relation"
icon={<Waypoints className="h-3.5 w-3.5 flex-shrink-0" strokeWidth={2} />}
disabled={disabled}
/>
Expand All @@ -46,7 +46,7 @@ export const IssueDetailWidgetActionButtons: FC<Props> = (props) => {
<IssueLinksActionButton
customButton={
<IssueDetailWidgetButton
title="Add Links"
title="Add link"
icon={<Link className="h-3.5 w-3.5 flex-shrink-0" strokeWidth={2} />}
disabled={disabled}
/>
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/issues/issue-detail/cycle-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const IssueCycleSelect: React.FC<TIssueCycleSelect> = observer((props) =>
disabled={disableSelect}
buttonVariant="transparent-with-text"
className="group w-full"
buttonContainerClassName="w-full text-left"
buttonContainerClassName="w-full text-left rounded"
buttonClassName={`text-sm justify-between ${issue?.cycle_id ? "" : "text-custom-text-400"}`}
placeholder="No cycle"
hideIcon
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ export const IssueLinkCreateUpdateModal: FC<TIssueLinkCreateEditModal> = observe
<div>
<div className="space-y-5">
<Dialog.Title as="h3" className="text-lg font-medium leading-6 text-custom-text-100">
{preloadedData?.id ? "Update Link" : "Add Link"}
{preloadedData?.id ? "Update link" : "Add link"}
</Dialog.Title>
<div className="mt-2 space-y-3">
<div>
Expand Down Expand Up @@ -152,11 +152,11 @@ export const IssueLinkCreateUpdateModal: FC<TIssueLinkCreateEditModal> = observe
<Button variant="primary" size="sm" type="submit" loading={isSubmitting}>
{preloadedData?.id
? isSubmitting
? "Updating Link..."
: "Update Link"
? "Updating link..."
: "Update link"
: isSubmitting
? "Adding Link..."
: "Add Link"}
? "Adding link..."
: "Add link"}
</Button>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/issues/issue-detail/module-select.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const IssueModuleSelect: React.FC<TIssueModuleSelect> = observer((props)
placeholder="No module"
disabled={disableSelect}
className="group h-full w-full"
buttonContainerClassName="w-full"
buttonContainerClassName="w-full rounded"
buttonClassName={`min-h-8 text-sm justify-between ${issue?.module_ids?.length ? "" : "text-custom-text-400"}`}
buttonVariant="transparent-with-text"
hideIcon
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/issues/issue-detail/sidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const IssueDetailsSidebar: React.FC<Props> = observer((props) => {
<div className="flex min-h-8 gap-2">
<div className="flex w-2/5 flex-shrink-0 gap-1 pt-2 text-sm text-custom-text-300">
<DiceIcon className="h-4 w-4 flex-shrink-0" />
<span>Module</span>
<span>Modules</span>
</div>
<IssueModuleSelect
className="w-3/5 flex-grow"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,11 @@ export const CalendarQuickAddIssueForm: React.FC<Props> = observer((props) => {
customButton={
<div className="flex w-full items-center gap-x-[6px] rounded-md px-2 py-1.5 text-custom-text-350 hover:text-custom-text-300">
<PlusIcon className="h-3.5 w-3.5 stroke-2 flex-shrink-0" />
<span className="text-sm font-medium flex-shrink-0">New Issue</span>
<span className="text-sm font-medium flex-shrink-0">New issue</span>
</div>
}
>
<CustomMenu.MenuItem onClick={handleNewIssue}>New Issue</CustomMenu.MenuItem>
<CustomMenu.MenuItem onClick={handleNewIssue}>New issue</CustomMenu.MenuItem>
<CustomMenu.MenuItem onClick={handleExistingIssue}>Add existing issue</CustomMenu.MenuItem>
</CustomMenu>
</div>
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/issues/issue-modal/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export const IssueFormRoot: FC<IssueFormProps> = observer((props) => {
}
/>
)}
<h3 className="text-xl font-medium text-custom-text-200">{data?.id ? "Update" : "Create"} Issue</h3>
<h3 className="text-xl font-medium text-custom-text-200">{data?.id ? "Update" : "Create"} issue</h3>
</div>
{watch("parent_id") && selectedParentIssue && (
<Controller
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/issues/peek-overview/properties.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export const PeekOverviewProperties: FC<IPeekOverviewProperties> = observer((pro
<div className="flex w-full items-center gap-3 min-h-8 h-full">
<div className="flex items-center gap-1 w-1/4 flex-shrink-0 text-sm text-custom-text-300">
<DiceIcon className="h-4 w-4 flex-shrink-0" />
<span>Module</span>
<span>Modules</span>
</div>
<IssueModuleSelect
className="w-3/4 flex-grow"
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/modules/delete-module-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const DeleteModuleModal: React.FC<Props> = observer((props) => {
handleSubmit={handleDeletion}
isSubmitting={isDeleteLoading}
isOpen={isOpen}
title="Delete Module"
title="Delete module"
content={
<>
Are you sure you want to delete module-{" "}
Expand Down
2 changes: 1 addition & 1 deletion web/core/components/modules/form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const ModuleForm: React.FC<Props> = (props) => {
)}
/>
)}
<h3 className="text-xl font-medium text-custom-text-200">{status ? "Update" : "Create"} Module</h3>
<h3 className="text-xl font-medium text-custom-text-200">{status ? "Update" : "Create"} module</h3>
</div>
<div className="space-y-3">
<div className="space-y-1">
Expand Down
Loading

0 comments on commit 8f8a975

Please sign in to comment.