Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Lyrics Editor for Admin users only #5405

Merged
merged 8 commits into from
Aug 20, 2024

Conversation

scampower3
Copy link
Member

@scampower3 scampower3 commented Apr 22, 2024

Adds a lyrics editor dialog so that admin users can manually add, remove or search for lyrics through the web ui. Code is based on the subtitle editor.

Search has been tested using the LrcLib plugin

Changes

image
image
image
image

Issues

@scampower3 scampower3 requested a review from a team as a code owner April 22, 2024 12:25
@thornbill thornbill added this to the v10.10.0 milestone May 6, 2024
@thornbill thornbill added feature New feature or request release-highlight A major new feature for the next release labels May 6, 2024
Copy link

sonarqubecloud bot commented May 6, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
27.5% Duplication on New Code (required ≤ 20%)

See analysis details on SonarCloud

@thornbill
Copy link
Member

@scampower3 do you think there is a way we could limit some of the code duplication between this and the subtitle editor?

@scampower3
Copy link
Member Author

@thornbill I don't think so. The highlighted duplicates by sonarcloud are mostly the event handlers and its associated logic.

src/components/lyricseditor/lyricseditor.js Outdated Show resolved Hide resolved
src/components/lyricseditor/lyricseditor.js Show resolved Hide resolved
src/components/lyricseditor/lyricseditor.template.html Outdated Show resolved Hide resolved
src/components/lyricseditor/lyricspreview.template.html Outdated Show resolved Hide resolved
src/components/lyricsuploader/lyricsuploader.js Outdated Show resolved Hide resolved
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ESLint doesn't pass. Please fix all ESLint issues.

Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
27.3% Duplication on New Code (required ≤ 20%)

See analysis details on SonarCloud

@jellyfin-bot
Copy link
Collaborator

Cloudflare Pages deployment

Latest commit 8d728ca9d47c43ad98e33023b890af2b3e87f97c
Status ✅ Deployed!
Preview URL https://a0490942.jellyfin-web.pages.dev
Type 🔀 Preview

@thornbill thornbill merged commit 86a2300 into jellyfin:master Aug 20, 2024
11 of 12 checks passed
@scampower3 scampower3 deleted the edit-lyrics branch October 26, 2024 18:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request release-highlight A major new feature for the next release
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants