Closed letscodedanish closed 6 months ago
Thanks for your work on this!
Although this PR seems like it carried over quite a bit of changes from another PR, I think this is a good start so far! It seems like that the changes are updating the URL slugs for sketches in the ShareModal.jsx
file, but I do think that the original issue referenced specifically changing URL slugs for Collections, which I think appears in the CollectionShareButton.jsx
file.
I think it could be interesting to potentially have slugs changed in both of these places, but before that happens I feel like this particular feature might need some more discussion for how this would be implemented and handling different scenarios (like how do we handle multiple collections trying to have the same URL slug? where specifically in the editor do we want these URL changes to happen?).
Due to the number of PRs we have at the moment I'm going to close this one for now. I'm sorry we can't get this in at the moment, but please feel free to revisit this once there's been more discussion or help flesh out what this feature would look further, thanks!
Fixes #3009
Changes:By adding the "Edit Slug" option and implementing the logic to handle slug editing in the ShareModal.jsx file, users now have the ability to edit the slug associated with the shared project. The logic ensures that the URL is updated accordingly, addressing the feature request of allowing users to edit slugs.
Suggest me the changes that are needed.
I have verified that this pull request:
npm run lint
)npm run test
)develop
branch.Fixes #123