Dimmed buttons say why; the directory fits at 200% zoom (#507)
Checked against the style guide's design half: - Dimmed, not removed: the page already dims rather than hides, but a dimmed toolbar button kept its usual tooltip, so it looked broken. dim() sets the reason (Choose an item first, Open a feed to unsubscribe from it, Nothing to play in this item) and gives the usual tooltip back. The player's play-button sync leaves a dimmed one alone, and syncTools asks it to repaint so a playing item still says Pause. The admin page's Save says nothing has changed yet. - 200% zoom on a 320 px screen (160 CSS px): the app and admin page fit; the directory scrolled sideways, its name on one line, its header form beside it, its category grid at a 180 px minimum and the chart's words. Now its name wraps, the form takes its own line, the grid's minimum is the width, and long words break. - Tap targets at 320 px: the directory's tabs, chips, button and search box were 35-39 px, now 40; the page's checkbox rows were 26 px, now 40. The admin switches are iOS's 51x31 inside a taller row. - The directory's hovers sit inside (hover:hover). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01RqkrVCCH8YcP2Y3i8VNYWA
This commit is contained in:
@@ -53,6 +53,16 @@ test.beforeEach(async ({ page }) => {
|
||||
await expect(page.locator('#feedlist')).toBeVisible();
|
||||
});
|
||||
|
||||
test('a toolbar button that cannot act says why, and its usual tooltip comes back when it can (#507)', async ({ page }) => {
|
||||
await page.locator('#feedlist .place', { hasText: 'All Subscriptions' }).click();
|
||||
await expect(page.locator('#tbRemove')).toBeDisabled();
|
||||
await expect(page.locator('#tbRemove')).toHaveAttribute('title', 'Open a feed to unsubscribe from it');
|
||||
await expect(page.locator('#tbRead')).toHaveAttribute('title', 'Choose an item first');
|
||||
await page.locator('#feedlist .feed', { hasText: 'Test Show' }).click();
|
||||
await expect(page.locator('#tbRemove')).toBeEnabled();
|
||||
await expect(page.locator('#tbRemove')).toHaveAttribute('title', 'Unsubscribe from this feed');
|
||||
});
|
||||
|
||||
test('the page loads and lists the configured feeds', async ({ page }) => {
|
||||
// Regression: a ReferenceError in the script left the shell rendered and the sidebar
|
||||
// empty, with every handler below the error dead. Server-side checks all passed.
|
||||
|
||||
Reference in New Issue
Block a user