-
Notifications
You must be signed in to change notification settings - Fork 2
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 toggle to export playlist for older FT #62
Add toggle to export playlist for older FT #62
Conversation
Haven't tested yet, but here's my suggestion on the tooltip text:
|
Counter suggestion
|
Sounds good. Try to keep the line breaks in the tooltip if possible, but it's ok if not |
How to do that, any existing example? |
This looks good, although it still is not very easy to follow the bullets when they're centered. Would it be too much to ask to have the text be |
I guess I will just make them all left align (when new line enabled) |
Good thinking, I think that should be fine as long as we're intentional about how we use the block style indicator for any other tooltips (currently just the External Link Handling one AFAICS). |
static/locales/en-US.yaml
Outdated
Label: Export Playlists For Older FreeTube Versions | ||
# |- = Keep newlines, No newline at end | ||
Tooltip: |- | ||
This option exports videos from all playlists into one playlist named `Favorites`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: use quotes, not backticks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}) | ||
}) | ||
|
||
await this.promptAndWriteToFile(options, JSON.stringify([favoritesPlaylistData]), 'All playlists has been successfully exported') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: String needs to be localized (multiple instances)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, didn't see that - I forgot about this from Chunky's recent linting PR - no problem here
|
||
exportPlaylistsForOlderVersions: async function () { | ||
const dateStr = getTodayDateStrLocalTimezone() | ||
const exportFileName = 'freetube-playlists-for-single-favorites-playlist-' + dateStr + '.db' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion (non-blocking):
const exportFileName = 'freetube-playlists-for-single-favorites-playlist-' + dateStr + '.db' | |
const exportFileName = 'freetube-playlists-as-single-favorites-playlist-' + dateStr + '.db' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
Testing: worked well for me! Handled multiple playlists with multiple overlapping duplicates. Using the instructions, it was imported to my nightly build without any duplicates or issues. |
Breakpoint now set at 1000px to wrap Temp note for myself: https://gomakethings.com/how-to-check-if-any-part-of-an-element-is-out-of-the-viewport-with-vanilla-js/ |
This reverts commit 7d932b9.
Even just this without the media query looks fine:
|
Here's my suggestion: #63 |
Feat/change tooltip styling
I rarely used |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not too often honestly, but it makes sense here with us trying to keep an absolutely positioned popup within dynamic screen constraints. LGTM.
Pull Request Type
Related issue
Addition to FreeTubeApp#4234
Description
New toggle to allow user to export playlists in a format consumable by old versions of FT
Screenshots
Testing
development
, import the export with new toggle onDesktop
Additional context