-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat: Allow editing profile Links in list (#301)
Partially fixes .#295, allowing Page links to be edited and reordered on the Profile edit page. https://github.com/user-attachments/assets/8b244070-66b8-4734-98f9-8032ba7bbb7c There's some callouts in the code comments I'm adding here for visibility: - Sorting here is also affected by the bug the #300 fixes, but works correctly if that is also merged. - rodrigodagostino/svelte-sortable-list#11. This was fixed in svelte-sortable-list v0.10.11. I didn't want to edit package.json without explaining why first. - The last empty element can get dragged into the list (and then erased). There isn't a way to lock it while leaving it editable. Opened an issue for it here (rodrigodagostino/svelte-sortable-list#15) - Tab order for sortable covers the individual inputs. Not sure how to best to accessibly deal with this. - Copied and edited some $effects from SocialLinksEditor.svelte to keep an empty input on the list. Might be worth abstracting and merging if the same thing is needed in more places. - Links get auto removed when the url is empty without checking the label. I don't know which would make more sense / how likely someone is to delete an entire url when they plan to reuse it's label.
- Loading branch information
1 parent
34fafbe
commit 57e4890
Showing
1 changed file
with
95 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters