Closed kino90 closed 1 week ago
ATM Comments type is
export type TCommentDynamicData = { username: string; content: string; }; export type TComment = { id: string; caseId: TCase["id"]; testId?: TTest["id"]; stepId?: TStep["id"]; createdAt: number; testStatusWhenCreated?: StatusEnum; resolved: boolean; } & TCommentDynamicData;
This way we cannot easily use the Avatars component to show the user's Avatar (in comments list, for example).
Avatars
We could change it into something like :
export type TCommentDynamicData = { collaboratorId: string; content: string; };
related PR https://github.com/intesys/ytestbook/pull/84
ATM Comments type is
This way we cannot easily use the
Avatars
component to show the user's Avatar (in comments list, for example).We could change it into something like :