Commit efa99bf
authored
feat(UX): Add click-to-focus behavior with high-visibility highlight on Live Preview placeholder (JhaSourav07#2403)
## Description
Fixes JhaSourav07#2178
When a user lands on the `/customize`(customization studio) page without
a username set, the "Live Preview" panel displays a dotted box with a
central upward arrow icon (`↑`). From a user experience perspective,
this creates a "false affordance" where clicking it yields zero
behavior.
This PR introduces an interactive click-to-focus micro-interaction.
Clicking anywhere on the central preview placeholder arrow/box wrapper
automatically triggers a focus event on the "GitHub Username" input
field. Additionally, a direct dynamic visual highlight layout override
(emerald green outline ring and a subtle transform scale bump) is
applied on focus to cleanly guide the user's focus into the
configuration panel.
## Pillar
- [ ] 🎨 Pillar 1 — New Theme Design
- [ ] 📐 Pillar 2 — Geometric SVG Improvement
- [ ] 🕐 Pillar 3 — Timezone Logic Optimization
- [x]🛠️ Other (Bug fix, refactoring, docs)
## Visual Preview
**Clicking the central live preview container triggers the
high-visibility configuration highlight:**
<img width="1280" height="832" alt="Screenshot 2026-06-01 at 8 16 10 PM"
src="https://github.com/user-attachments/assets/ab005891-f8fc-4609-8e1e-3fe17570938f"
/>
## Checklist before requesting a review:
- [x] I have read the `CONTRIBUTING.md` file.
- [x] I have tested these changes locally
(`localhost:3000/api/streak?user=YOUR_USERNAME`).
- [x] I have run `npm run format` and `npm run lint` locally and
resolved all errors (CI will fail otherwise).
- [x] My commits follow the Conventional Commits format (e.g.,
`feat(themes): ...`, `fix(calculate): ...`).
- [x] I have updated `README.md` if I added a new theme or URL
parameter.
- [x] I have started the repo.
- [x] I have made sure that i have only one commit to merge in this PR.
- [x] The SVG output matches the CommitPulse "premium quality" aesthetic
standard (no raw elements, smooth animations, correct fonts).
- [x] (Recommended) I joined the CommitPulse Discord community for
contributor discussions, mentorship, and faster PR support.2 files changed
Lines changed: 25 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
149 | | - | |
| 149 | + | |
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 194 | | |
199 | 195 | | |
200 | 196 | | |
| |||
427 | 423 | | |
428 | 424 | | |
429 | 425 | | |
430 | | - | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
431 | 449 | | |
432 | 450 | | |
433 | 451 | | |
| |||
503 | 521 | | |
504 | 522 | | |
505 | 523 | | |
506 | | - | |
| 524 | + | |
507 | 525 | | |
508 | 526 | | |
509 | 527 | | |
| |||
0 commit comments