fix/ui-interactions #21

Merged
patillacode merged 9 commits from fix/ui-interactions into main 2026-05-02 12:11:05 +02:00
Owner

Minor UI details + demo user countdown

Minor UI details + demo user countdown
fix: skip link visibility, ko-fi button size, editor link insertion, form link styles
All checks were successful
Test and publish Docker image / test (pull_request) Successful in 35s
Test and publish Docker image / e2e (pull_request) Successful in 4m23s
Test and publish Docker image / build (pull_request) Has been skipped
21aa152966
- skip link: use position:fixed + translateY(-100%) instead of position:absolute + top:-100%; percentage top on absolute is unreliable when containing block has no explicit height
- ko-fi button: add width:auto + display:inline-block to prevent image from expanding to fill container width
- editor links: save selection before modal opens and restore it on confirm, so focus shift to urlInput does not lose the selected range; move Enter handler from document to urlInput with e.preventDefault() to block keypress delivery to the editor after modal closes
- editor links: add text-decoration:underline to .ProseMirror a so inserted links are visually distinct
- signup form links: use accent color + underline instead of text-secondary + no decoration
- Replace fixed-interval sleep with wall-clock alignment in `_demo_cleanup_loop`
- Add `_next_half_hour_ts()` helper and expose `is_demo` / `demo_next_reset_ts` in template context
When now is exactly at :00 or :30 boundary (minute in (0,30), second=0, microsecond=0),
return 1800.0 immediately instead of computing next_reset. This fixes the bug where
calling at exactly :00 would return 3600.0 (one hour) instead of 1800.0 (30 minutes).
test: add unit tests for half-hour helpers and e2e tests for demo banner
Some checks failed
Test and publish Docker image / test (pull_request) Failing after 18s
Test and publish Docker image / e2e (pull_request) Has been skipped
Test and publish Docker image / build (pull_request) Has been skipped
b65761409e
chore: ruff fix
All checks were successful
Test and publish Docker image / test (pull_request) Successful in 36s
Test and publish Docker image / e2e (pull_request) Successful in 4m45s
Test and publish Docker image / build (pull_request) Has been skipped
Test and publish Docker image / test (push) Successful in 34s
Test and publish Docker image / e2e (push) Successful in 4m41s
Test and publish Docker image / build (push) Successful in 47s
50b5d94811
patillacode deleted branch fix/ui-interactions 2026-05-02 12:11:05 +02:00
patillacode referenced this pull request from a commit 2026-05-02 12:11:05 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
patillacode/piruetas!21
No description provided.