Skip to content

Fix multiple bugs, add features and new hover effects#8

Open
Finomosec wants to merge 1 commit into
LexioJ:mainfrom
Finomosec:fix/multiple-bugs-and-features
Open

Fix multiple bugs, add features and new hover effects#8
Finomosec wants to merge 1 commit into
LexioJ:mainfrom
Finomosec:fix/multiple-bugs-and-features

Conversation

@Finomosec

Copy link
Copy Markdown

Summary

  • Enter key in edit/add dialog now saves instead of silently closing
  • ESC key closes the dialog without saving
  • Icon upload during "Add Link" now works (uploaded after link creation)
  • Missing vendor dependency (enshrined/svg-sanitize) — autoloader added to Application.php, Makefile fixed to include vendor in release package
  • Max links per user input clamped to 1-50 with visible hint, prevents 400 error
  • Duplicate link button — copies all data + icon file (server-side duplication via new POST /api/v1/admin/duplicate/{id} endpoint), opens edit dialog after
  • Gear menu in dashboard widget — links to personal/admin settings, only visible to admins or when user links are enabled
  • Duplicate "Visible to Groups" label removed from link form
  • Effect selector — removed clearable (no "no value" state), fixed cursor on label, added hint about description requirement
  • 3D Card Flip — icon rendered with object-fit: contain, original colors, rounded corners; placeholder for links without icon; only flips when description exists
  • Blur Overlay / Slide Panel — icon as contain background (15% opacity, rounded corners) instead of background-size: cover
  • New effect: Slide Bottom — compact dark bar from bottom edge with ellipsis
  • New effect: Tooltip — tooltip bubble pops up above the link (1-3 lines)

Test plan

  • Create a link with icon, verify icon upload works
  • Create a link without icon, add icon later via edit
  • Duplicate a link with icon, verify icon is copied
  • Press Enter in edit dialog — should save
  • Press ESC in edit dialog — should close without saving
  • Set max links per user to >50 — should clamp to 50
  • Switch between all 5 hover effects in settings, verify preview works
  • Add description to a link, hover in dashboard — verify effect triggers
  • Hover link without description — no effect should trigger
  • Check gear icon in dashboard widget (admin and non-admin user)

🤖 Generated with Claude Code

…r handling

Bugs fixed:
- Enter key in edit/add dialog now saves instead of closing without saving
- ESC key closes the dialog without saving (global keydown listener)
- Icon selected during "add link" is now uploaded after link creation
- Missing vendor dependency (enshrined/svg-sanitize) - autoloader added,
  Makefile fixed to include vendor in release package
- Max links per user input clamped to 1-50 with visible hint
- Icon upload 500 error due to missing SVG sanitizer class

Features added:
- Duplicate link button (copies all data + icon file server-side)
- Gear menu in dashboard widget (links to personal/admin settings)
- Backend: POST /api/v1/admin/duplicate/{id} endpoint
- Backend: POST /api/v1/admin/copy-icon/{id} endpoint
- Backend: copyIconToLink() and duplicateLink() service methods

Effect changes:
- 3D Flip: icon rendered with object-fit contain at full size, original colors
- 3D Flip: placeholder icon shown for links without custom icon
- Slide: compact bottom bar with dark background instead of full overlay
- Blur: unchanged
- EffectSelector hint: notes effects only apply to entries with descriptions

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant