-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
439/add export chat #440
439/add export chat #440
Conversation
test: add log for input text fix: udpate chatbox version test: fixed regex with numbered capture group feat: add export chat button and download chat for admins fix: failing tests fix: currentMember error fix: clearItemChat mock failing build: update deps
Use enums from sdk Move js enums in tests Move a lot of files to TS Uniformise the type of item to ItemRecord
c5f052d
to
8ea854b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎆
1e3cfea
to
5efdd9e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, but please have a look at my comments and let me know what you think 🏖️
@@ -85,7 +88,7 @@ const ItemSharingTab = ({ item }: Props): JSX.Element => { | |||
todo: show only if item is pseudomized | |||
*/} | |||
{/* // todo: this will change with the refactor */} | |||
{getItemLoginSchema(item?.extra as any) && ( | |||
{getItemLoginSchema(item?.extra as { itemLogin?: ItemLogin }) && ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is the cast still necessary here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sur how the itemLogin
extra works. We may have to adjust the type to make this cast caduc, for the moment I don't think there is a way of removing it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pyphilia can you help us out here ? Is the itemLogin
extra only available on folders ?
This PR add the "export chat" and "clear chat" button in the item settings.
A bunch of files were also moved to TS.
Types now come from
@graasp/sdk/frontend
.A stub for
/p/item-memberships
was added.closes #439