forked from github/plane
added tiptap integration with user activity feeds
This commit is contained in:
parent
0b6d510cc7
commit
b1dc5f3da1
@ -15,6 +15,7 @@ import { Icon } from "components/ui";
|
|||||||
// helpers
|
// helpers
|
||||||
import { renderShortDateWithYearFormat, timeAgo } from "helpers/date-time.helper";
|
import { renderShortDateWithYearFormat, timeAgo } from "helpers/date-time.helper";
|
||||||
import { addSpaceIfCamelCase } from "helpers/string.helper";
|
import { addSpaceIfCamelCase } from "helpers/string.helper";
|
||||||
|
import Tiptap from "components/tiptap";
|
||||||
// types
|
// types
|
||||||
// import RemirrorRichTextEditor from "components/rich-text-editor";
|
// import RemirrorRichTextEditor from "components/rich-text-editor";
|
||||||
|
|
||||||
@ -200,7 +201,7 @@ export const Feeds: React.FC<any> = ({ activities }) => {
|
|||||||
} else if (activity.field === "estimate_point") {
|
} else if (activity.field === "estimate_point") {
|
||||||
value = activity.new_value
|
value = activity.new_value
|
||||||
? activity.new_value +
|
? activity.new_value +
|
||||||
` Point${parseInt(activity.new_value ?? "", 10) > 1 ? "s" : ""}`
|
` Point${parseInt(activity.new_value ?? "", 10) > 1 ? "s" : ""}`
|
||||||
: "None";
|
: "None";
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -250,18 +251,29 @@ export const Feeds: React.FC<any> = ({ activities }) => {
|
|||||||
Commented {timeAgo(activity.created_at)}
|
Commented {timeAgo(activity.created_at)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{/* <div className="issue-comments-section p-0"> */}
|
<div className="issue-comments-section p-0">
|
||||||
{/* <RemirrorRichTextEditor */}
|
<Tiptap
|
||||||
{/* value={ */}
|
value={
|
||||||
{/* activity.new_value && activity.new_value !== "" */}
|
activity.new_value && activity.new_value !== ""
|
||||||
{/* ? activity.new_value */}
|
? activity.new_value
|
||||||
{/* : activity.old_value */}
|
: activity.old_value
|
||||||
{/* } */}
|
}
|
||||||
{/* editable={false} */}
|
editable={false}
|
||||||
{/* noBorder */}
|
noBorder
|
||||||
{/* customClassName="text-xs border border-custom-border-200 bg-custom-background-100" */}
|
customClassName="text-xs border border-custom-border-200 bg-custom-background-100"
|
||||||
{/* /> */}
|
/>
|
||||||
{/* </div> */}
|
{/**/}
|
||||||
|
{/* <RemirrorRichTextEditor */}
|
||||||
|
{/* value={ */}
|
||||||
|
{/* activity.new_value && activity.new_value !== "" */}
|
||||||
|
{/* ? activity.new_value */}
|
||||||
|
{/* : activity.old_value */}
|
||||||
|
{/* } */}
|
||||||
|
{/* editable={false} */}
|
||||||
|
{/* noBorder */}
|
||||||
|
{/* customClassName="text-xs border border-custom-border-200 bg-custom-background-100" */}
|
||||||
|
{/* /> */}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user