feat(core): add collection and tag filters to all pages (#5567)

close TOV-69

Added the `filterMode` parameter to the `/all` route.
Abstracted the `PageList` and associated components into more universal ones.
Added the `useTagMetas` hook to get and update  the workspace tags.

https://github.com/toeverything/AFFiNE/assets/102217452/7595944d-a056-40c2-8d89-d8df9e901a4b
This commit is contained in:
JimmFly
2024-01-26 07:42:47 +00:00
parent b867dcbdeb
commit 18068f4ae2
67 changed files with 3303 additions and 998 deletions

View File

@@ -212,7 +212,7 @@ test('select two pages and delete', async ({ page }) => {
);
// click delete button
await page.locator('[data-testid="page-list-toolbar-delete"]').click();
await page.locator('[data-testid="list-toolbar-delete"]').click();
// the confirm dialog should appear
await expect(page.getByText('Delete 2 pages?')).toBeVisible();

View File

@@ -18,7 +18,7 @@ const removeOnboardingPages = async (page: Page) => {
await page.getByTestId('page-list-header-selection-checkbox').click();
// click again to select all
await page.getByTestId('page-list-header-selection-checkbox').click();
await page.getByTestId('page-list-toolbar-delete').click();
await page.getByTestId('list-toolbar-delete').click();
// confirm delete
await page.getByTestId('confirm-delete-page').click();
};