feat: right-pointing arrow hint for sidebar on welcome page

Replace invisible text fallback with visible amber bubble + animated
right arrow (→) pointing toward where the sidebar opens. Always correct
regardless of window size (unlike the old up arrow at toolbar chrome).
This commit is contained in:
Garry Tan
2026-04-02 19:11:45 -07:00
parent e34aefa799
commit f7d95848f2
2 changed files with 24 additions and 16 deletions
+4 -3
View File
@@ -1213,10 +1213,11 @@ describe('welcome page', () => {
expect(welcomeSrc).toContain('sidebar-prompt');
});
test('welcome page does NOT have a misaligned arrow', () => {
// Arrow was removed because it can never align with browser chrome
test('welcome page points RIGHT toward sidebar (not UP at toolbar)', () => {
// Up arrow can never align with browser chrome. Right arrow always
// points toward the sidebar area regardless of window size.
expect(welcomeSrc).not.toContain('arrow-up');
expect(welcomeSrc).not.toContain('');
expect(welcomeSrc).toContain('arrow-right');
});
test('welcome page has left-aligned text (no center-align on headings)', () => {