Skip to content
Merged

Dev #160

Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
solved bugs
  • Loading branch information
snehalsankhe committed Jun 27, 2024
commit f69ded165f6829e2974eb8067db471a34fb26fd8
8 changes: 4 additions & 4 deletions ui/src/cmsData/projects.json
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@
},
"create_project_modal": {
"description": "Description",
"description_placeholder": "Provide a description",
"name": "Project Name",
"name_placeholder": "Enter project name",
"description_placeholder": "Enter a description",
"name": "Name",
"name_placeholder": "Title",
"primary_cta": {
"open_in_new_tab": false,
"theme": "primary",
Expand All @@ -153,6 +153,6 @@
"url": "",
"with_icon": false
},
"title": "Create New Project"
"title": "New Project"
}
}
1 change: 1 addition & 0 deletions ui/src/components/Card/card.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
border: 1px solid $color-brand-secondary-lightest;
border-radius: 8px;
font-size: $size-font-large;
line-height: 21px;
color: $color-font-base;
padding: 4px 8px;
text-transform: capitalize;
Expand Down
8 changes: 5 additions & 3 deletions ui/src/components/Card/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,11 @@ const CardList = ({ project }: ProjectType) => {
<div onClick={() => onClickProject(project?.id || '')}>
<div className="ProjectCard">
<div className='ProjectCardWrapper'>
<div className="ProjectCard__heading">
{project?.name && <h4 className="ProjectCard__title flex-v-center">{project?.name}</h4>}
</div>
<Tooltip content={project?.name} position="top" type="primary" variantType="basic">
<div className="ProjectCard__heading">
{project?.name && <h4 className="ProjectCard__title flex-v-center">{project?.name}</h4>}
</div>
</Tooltip>
<div className="ProjectCard__content">
<div className="ProjectCard__stats">
<div className='ProjectCard__Staus-unit'>
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/Modal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const Modal = (props: ProjectModalProps) => {
if (!value) {
setInputValue(false);
return;
} else if (!/^[^\s].+[^\s]$/.test(value)) {
} else if (!/^[^\s].+$/.test(value)) {
setInputValue(false);
return 'Please enter project name.';
} else if (value && value?.length > 200) {
Expand Down
6 changes: 6 additions & 0 deletions ui/src/pages/Projects/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
.helpText {
font-size: 14px;
padding-top: 30px;
p {
color: $color-font-base;
a {
color: $color-brand-primary-base;
}
}
}
.EmptyStateWrapper {
.EmptyState {
Expand Down
2 changes: 1 addition & 1 deletion ui/src/pages/Projects/index.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Libraries
import { useContext, useEffect, useState } from 'react';
import { useEffect, useState } from 'react';
import { PageLayout, EmptyState, Button, Icon, cbModal } from '@contentstack/venus-components';
import { jsonToHtml } from '@contentstack/json-rte-serializer';
import HTMLReactParser from 'html-react-parser';
Expand Down