Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WEB-2312] chore: minor UI and UX copy improvements. #5438

Merged
merged 1 commit into from
Aug 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions web/ce/constants/project/settings/features.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,63 +16,66 @@ export type TFeatureList = {
export type TProjectFeatures = {
[key: string]: {
title: string;
description: string;
featureList: TFeatureList;
};
};

export const PROJECT_FEATURES_LIST: TProjectFeatures = {
project_features: {
title: "Features",
title: "Projects and issues",
description: "Toggle these on or off this project.",
featureList: {
cycles: {
property: "cycle_view",
title: "Cycles",
description: "Time-box issues and boost momentum, similar to sprints in scrum.",
description: "Timebox work as you see fit per project and change frequency from one period to the next.",
icon: <ContrastIcon className="h-5 w-5 flex-shrink-0 rotate-180 text-custom-text-300" />,
isPro: false,
isEnabled: true,
},
modules: {
property: "module_view",
title: "Modules",
description: "Group multiple issues together and track the progress.",
description: "Group work into sub-project-like set-ups with their own leads and assignees.",
icon: <DiceIcon width={20} height={20} className="flex-shrink-0 text-custom-text-300" />,
isPro: false,
isEnabled: true,
},
views: {
property: "issue_views_view",
title: "Views",
description: "Apply filters to issues and save them to analyse and investigate work.",
description: "Save sorts, filters, and display options for later or share them.",
icon: <Layers className="h-5 w-5 flex-shrink-0 text-custom-text-300" />,
isPro: false,
isEnabled: true,
},
pages: {
property: "page_view",
title: "Pages",
description: "Document ideas, feature requirements, discussions within your project.",
description: "Write anything like you write anything.",
icon: <FileText className="h-5 w-5 flex-shrink-0 text-custom-text-300" />,
isPro: false,
isEnabled: true,
},
inbox: {
property: "inbox_view",
title: "Intake",
description: "Capture external inputs, move valid issues to workflow.",
description: "Consider and discuss issues before you add them to your project.",
icon: <Intake className="h-5 w-5 flex-shrink-0 text-custom-text-300" />,
isPro: false,
isEnabled: true,
},
},
},
project_others: {
title: "Others",
title: "Work management",
description: "Available only on some plans as indicated by the label next to the feature below.",
featureList: {
is_time_tracking_enabled: {
property: "is_time_tracking_enabled",
title: "Time Tracking",
description: "Keep the work logs of the users in track ",
description: "Log time, see timesheets, and download full CSVs for your entire workspace.",
icon: <Timer className="h-5 w-5 flex-shrink-0 text-custom-text-300" />,
isPro: true,
isEnabled: false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const PageOptionsDropdown: React.FC<Props> = observer((props) => {
];

return (
<CustomMenu maxHeight="md" placement="bottom-start" verticalEllipsis closeOnSelect>
<CustomMenu maxHeight="lg" placement="bottom-start" verticalEllipsis closeOnSelect>
<CustomMenu.MenuItem
className="hidden md:flex w-full items-center justify-between gap-2"
onClick={() => handleFullWidth(!isFullWidth)}
Expand Down
10 changes: 3 additions & 7 deletions web/core/components/project/project-feature-update.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,10 @@ export const ProjectFeatureUpdate: FC<Props> = observer((props) => {

return (
<>
<div className="px-4 py-2">
<h3 className="text-base font-medium leading-6">Toggle project features</h3>
<div className="text-sm tracking-tight text-custom-text-200 leading-5">
Turn on features which help you manage and run your project.
</div>
<div className="p-2">
<ProjectFeaturesList workspaceSlug={workspaceSlug} projectId={projectId} isAdmin />
</div>
<ProjectFeaturesList workspaceSlug={workspaceSlug} projectId={projectId} isAdmin />
<div className="flex items-center justify-between gap-2 mt-4 px-4 pt-4 pb-2 border-t border-custom-border-100">
<div className="flex items-center justify-between gap-2 mt-4 px-6 py-4 border-t border-custom-border-100">
<div className="flex gap-1 text-sm text-custom-text-300 font-medium">
Congrats! Project <Logo logo={currentProjectDetails.logo_props} />{" "}
<p className="break-all">{currentProjectDetails.name}</p> created.
Expand Down
3 changes: 2 additions & 1 deletion web/core/components/project/settings/features-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ export const ProjectFeaturesList: FC<Props> = observer((props) => {
const feature = PROJECT_FEATURES_LIST[featureSectionKey];
return (
<div key={featureSectionKey} className="">
<div className="flex items-center border-b border-custom-border-100 py-3.5">
<div className="flex flex-col justify-center border-b border-custom-border-100 py-3">
<h3 className="text-xl font-medium">{feature.title}</h3>
<h4 className="text-sm leading-5 text-custom-text-200">{feature.description}</h4>
</div>
{Object.keys(feature.featureList).map((featureItemKey) => {
const featureItem = feature.featureList[featureItemKey];
Expand Down
Loading