New Funcionality: Rename Plugin Instance #486
Open
+125
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request adds the ability to rename plugin instances within a playlist, including backend API support, model logic, and frontend UI/UX. It introduces a new modal dialogue for renaming, updates the playlist template to allow triggering the rename flow, and ensures proper validation and error handling throughout the stack.
Additionally, it enables Flask debug mode in development. However, this helps to pick up HTML changes, but changes in the managers are not picked up.
I added a new button:

And a new modal:

🎯 I try to keep any PR as small as possible so it's easy to review/work/approve them.
🥇 I hope to create a few more PR's during the Christmas time.
Rename Plugin Instance Feature
Backend support:
rename_plugininplaylist.pyto handle renaming plugin instances, including input validation and error handling.rename_plugin_instancemethod in the playlist manager model to update the plugin instance name within a playlist.Frontend integration:
playlist.htmlto add a "Rename" button next to each plugin instance, which opens a new modal for renaming.RenameModal) and supporting JavaScript functions (openRenameModal,renamePluginInstance, and modal management improvements) to handle the renaming workflow in the UI. [1] [2] [3]Development Experience
inkypi.py.