Feat improve task details (#585)

* Fix project section

* Add project and tags sections

* Enhance task details page and add translations

* Enhance Task Details page

* Enhance project details page

* Note details page fix

* Enhance Views Tags Search

* Search enhancements

* fixup! Search enhancements
This commit is contained in:
Chris 2025-11-21 18:43:10 +02:00 committed by GitHub
parent 0213f79b0a
commit 8dc6194c80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
53 changed files with 4793 additions and 1182 deletions

View file

@ -147,9 +147,13 @@ test('user can mark a task as complete', async ({ page, baseURL }) => {
await createTask(page, taskName);
// Enable "Show completed" first to ensure completed tasks remain visible
const showCompletedButton = page.locator('button:has-text("Show completed")').first();
if (await showCompletedButton.isVisible()) {
await showCompletedButton.click();
const sortFilterButton = page.getByRole('button', { name: /sort tasks/i });
await expect(sortFilterButton).toBeVisible({ timeout: 5000 });
await sortFilterButton.click();
const showCompletedToggle = page.getByRole('button', { name: /show completed/i });
if (await showCompletedToggle.isVisible()) {
await showCompletedToggle.click();
await page.waitForLoadState('networkidle');
}
@ -169,8 +173,8 @@ test('user can mark a task as complete', async ({ page, baseURL }) => {
// Wait for network idle after completing the task
await page.waitForLoadState('networkidle');
// Click the "Show completed" toggle to make completed tasks visible
const showCompletedToggle = page.getByText('Show completed');
// Click the "Show completed" toggle to make completed tasks visible (now inside the sort/filter dropdown)
await sortFilterButton.click();
await expect(showCompletedToggle).toBeVisible({ timeout: 5000 });
await showCompletedToggle.click();
await page.waitForLoadState('networkidle');
@ -198,4 +202,4 @@ test('user can mark a task as complete', async ({ page, baseURL }) => {
// task completion API worked (we saw status 200 and status: 2 in the response)
const showCompletedState = await page.getByText('Show completed').textContent();
}
});
});