Skip to content

Commit

Permalink
♻️(frontend) list members from side modal
Browse files Browse the repository at this point in the history
We refactorize the members grid to display
it inside the share side modal.
It is not a member grid anymore but a member list
with infinite scroll. We can directly update the
role or delete a member from the each row of the
list.
  • Loading branch information
AntoLC committed Jul 12, 2024
1 parent 910c259 commit a20ecac
Show file tree
Hide file tree
Showing 36 changed files with 520 additions and 1,671 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to

- ♻️(frontend) replace docs panel with docs grid #120
- ♻️(frontend) create a doc from a modal #132
- ♻️(frontend) manage members from the share modal #140

## [1.0.0] - 2024-07-02

Expand Down
4 changes: 1 addition & 3 deletions src/frontend/apps/e2e/__tests__/app-impress/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export const createDoc = async (
export const addNewMember = async (
page: Page,
index: number,
role: 'Admin' | 'Owner' | 'Member',
role: 'Administrator' | 'Owner' | 'Member' | 'Editor' | 'Reader',
fillText: string = 'user',
) => {
const responsePromiseSearchUser = page.waitForResponse(
Expand All @@ -80,8 +80,6 @@ export const addNewMember = async (
response.status() === 200,
);

await page.getByRole('button', { name: 'Share' }).click();

const inputSearch = page.getByLabel(/Find a member to add to the document/);

// Select a new user
Expand Down
192 changes: 0 additions & 192 deletions src/frontend/apps/e2e/__tests__/app-impress/doc-member-delete.spec.ts

This file was deleted.

112 changes: 0 additions & 112 deletions src/frontend/apps/e2e/__tests__/app-impress/doc-member-grid.spec.ts

This file was deleted.

Loading

0 comments on commit a20ecac

Please sign in to comment.