feat: gpt integration for page block description (#539)

This commit is contained in:
Aaryan Khandelwal 2023-03-26 11:36:10 +05:30 committed by GitHub
parent 52d4828e1d
commit 5dd5fe2d09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 316 additions and 102 deletions

View file

@ -12,6 +12,7 @@ import { truncateText } from "helpers/string.helper";
import { renderShortDate, renderShortTime } from "helpers/date-time.helper";
// types
import { IPage } from "types";
import { PencilScribbleIcon } from "components/icons";
type TSingleStatProps = {
page: IPage;
@ -36,6 +37,7 @@ export const SinglePageListItem: React.FC<TSingleStatProps> = ({
<div className="relative rounded p-4 hover:bg-gray-100">
<div className="flex items-center justify-between">
<div className="flex items-center gap-2">
<PencilScribbleIcon />
<Link href={`/${workspaceSlug}/projects/${projectId}/pages/${page.id}`}>
<a>
<p className="mr-2 truncate text-sm font-medium">{truncateText(page.name, 75)}</p>