From 3133fb989f4e782d43b74e76638eef35cc2dc4c3 Mon Sep 17 00:00:00 2001 From: Nabarun Gogoi Date: Thu, 21 Dec 2023 14:59:33 +0530 Subject: [PATCH] Fix text colors and visibility throughout app (#19) --- packages/frontend/src/components/Sidebar.tsx | 12 +++++++--- .../src/components/projects/ProjectCard.tsx | 19 +++++++++------ .../src/components/projects/ProjectSearch.tsx | 8 +++++-- .../projects/create/ProjectRepoCard.tsx | 2 +- .../projects/create/RepositoryList.tsx | 3 +-- .../projects/create/TemplateCard.tsx | 16 +++++++------ .../create/template/deploy/DeployStep.tsx | 8 +++++-- .../projects/project/ActivityCard.tsx | 14 +++++++---- .../projects/project/OverviewTabPanel.tsx | 16 ++++++++----- .../projects/project/ProjectTabs.tsx | 2 +- .../deployments/DeploymentDetailsCard.tsx | 23 +++++++++++-------- .../project/settings/GeneralTabPanel.tsx | 5 ++-- packages/frontend/src/pages/Projects.tsx | 18 ++++++++++----- .../frontend/src/pages/projects/Project.tsx | 8 ++++--- .../pages/projects/create/template/index.tsx | 8 ++++--- 15 files changed, 101 insertions(+), 61 deletions(-) diff --git a/packages/frontend/src/components/Sidebar.tsx b/packages/frontend/src/components/Sidebar.tsx index f8d14cf..5246d4e 100644 --- a/packages/frontend/src/components/Sidebar.tsx +++ b/packages/frontend/src/components/Sidebar.tsx @@ -1,6 +1,8 @@ import React from 'react'; import { Link, NavLink } from 'react-router-dom'; +import { Card, CardBody, Typography } from '@material-tailwind/react'; + const Sidebar = () => { return (
@@ -10,13 +12,17 @@ const Sidebar = () => {

Snowball

-
Organization
+ + + Organization + +
(isActive ? 'text-blue-500' : '')} > - Projects + Projects
@@ -24,7 +30,7 @@ const Sidebar = () => { to="/settings" className={({ isActive }) => (isActive ? 'text-blue-500' : '')} > - Settings + Settings
diff --git a/packages/frontend/src/components/projects/ProjectCard.tsx b/packages/frontend/src/components/projects/ProjectCard.tsx index fa31269..2512570 100644 --- a/packages/frontend/src/components/projects/ProjectCard.tsx +++ b/packages/frontend/src/components/projects/ProjectCard.tsx @@ -6,6 +6,7 @@ import { MenuHandler, MenuList, MenuItem, + Typography, } from '@material-tailwind/react'; import { relativeTime } from '../../utils/time'; @@ -21,10 +22,12 @@ const ProjectCard: React.FC = ({ project }) => {
{project.icon}
- - {project.name} + + {project.name} + + {project.domain} + -

{project.domain}

@@ -36,12 +39,14 @@ const ProjectCard: React.FC = ({ project }) => {
-
-

{project.latestCommit.message}

-

+

+ + {project.latestCommit.message} + + {relativeTime(project.latestCommit.createdAt)} on{' '} {project.latestCommit.branch} -

+
); diff --git a/packages/frontend/src/components/projects/ProjectSearch.tsx b/packages/frontend/src/components/projects/ProjectSearch.tsx index b2d5e1f..baf3793 100644 --- a/packages/frontend/src/components/projects/ProjectSearch.tsx +++ b/packages/frontend/src/components/projects/ProjectSearch.tsx @@ -57,12 +57,16 @@ const ProjectSearch = ({ onChange }: ProjectsSearchProps) => {
-

Suggestions

+
+ + Suggestions + +
{items.map((item, index) => ( = ({ repository }) => { return ( -
+
^

diff --git a/packages/frontend/src/components/projects/create/RepositoryList.tsx b/packages/frontend/src/components/projects/create/RepositoryList.tsx index 63a8e78..a0579a9 100644 --- a/packages/frontend/src/components/projects/create/RepositoryList.tsx +++ b/packages/frontend/src/components/projects/create/RepositoryList.tsx @@ -38,7 +38,7 @@ const RepositoryList = () => { return (

-
+