Skip to content
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

Merged
merged 21 commits into from
Feb 21, 2023
Merged

439/add export chat #440

merged 21 commits into from
Feb 21, 2023

Conversation

spaenleh
Copy link
Member

@spaenleh spaenleh commented Sep 9, 2022

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

@spaenleh spaenleh added the feature New feature or request label Sep 9, 2022
@spaenleh spaenleh self-assigned this Sep 9, 2022
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
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@pyphilia pyphilia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎆

src/components/common/EditButton.tsx Outdated Show resolved Hide resolved
src/components/item/ItemContent.tsx Show resolved Hide resolved
src/components/main/ItemScreen.tsx Outdated Show resolved Hide resolved
src/utils/membership.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@codeofmochi codeofmochi left a 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 🏖️

cypress/e2e/header.cy.js Outdated Show resolved Hide resolved
cypress/e2e/header.cy.js Outdated Show resolved Hide resolved
cypress/e2e/invitations/deleteInvitation.cy.js Outdated Show resolved Hide resolved
cypress/e2e/invitations/deleteInvitation.cy.js Outdated Show resolved Hide resolved
cypress/e2e/invitations/editInvitation.cy.js Show resolved Hide resolved
@@ -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 }) && (
Copy link
Contributor

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?

Copy link
Member Author

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.

Copy link
Member Author

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 ?

src/components/main/Item.tsx Show resolved Hide resolved
src/utils/itemExtra.ts Outdated Show resolved Hide resolved
tsconfig.json Show resolved Hide resolved
@spaenleh spaenleh requested a review from pyphilia February 21, 2023 06:51
src/components/main/NewItemModal.tsx Outdated Show resolved Hide resolved
@spaenleh spaenleh merged commit 2fd5a36 into main Feb 21, 2023
@spaenleh spaenleh deleted the 439/addExportChat branch February 21, 2023 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Export chat and download chat in item settings
3 participants