Skip to content

Update next video countdown toast to be refreshed per second instead of using workaround - #8103

Merged
FreeTubeBot merged 3 commits into
FreeTubeApp:developmentfrom
PikachuEXE:feature/toast-refresh-message
Oct 10, 2025
Merged

FreeTubeBot merged 3 commits into
FreeTubeApp:developmentfrom
PikachuEXE:feature/toast-refresh-message

Conversation

@PikachuEXE

@PikachuEXE PikachuEXE commented Oct 7, 2025 •

Copy link
Copy Markdown
Member

Pull Request Type

  • Bugfix
  • Feature Implementation
  • Documentation
  • Other

Related issue

Extracted from #8047 (except the update of Playing Next Video Interval part
If this is merged before #8094, that PR requires a minor fix, if reversed, this PR should be updated
Closes #2340

Description

Count down message (e.g. Playing next video in N seconds) currently implement as series of toasts shown 700ms (per 1s)
This PR just make the toast show for N seconds and update message every second (hardcoded to be 1s as no use case requires otherwise)

Screenshots

Lazy, test yourself :)

Testing

  • Use magic to spawn a playlist with >= 2 videos
  • Play non-last one, enable autoplay if necessary, skip to near the end
  • Watch countdown works and clicking on it still cancels

Desktop

  • OS:
  • OS Version:
  • FreeTube version:

Additional context

@FreeTubeBot
FreeTubeBot enabled auto-merge (squash) October 7, 2025 01:00
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 7, 2025
@efb4f5ff-1298-471a-8973-3d47447115dc

efb4f5ff-1298-471a-8973-3d47447115dc commented Oct 7, 2025 •

Copy link
Copy Markdown
Member

hmm maybe i'm interpreting this wrong but doesnt this kind of addresses #2340? It doesnt fade anymore so i think that can be closed

@PikachuEXE

Copy link
Copy Markdown
Member Author

Updated description for #2340

@absidue absidue left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Please update the jsdoc for the showToast function in src/renderer/helpers/utils.js to match the type changes here.

interval: 0,
id: idCounter++
}
time = time || 3000

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
time = time || 3000
time ||= 3000

@PikachuEXE

Copy link
Copy Markdown
Member Author

Updated

@absidue

absidue commented Oct 8, 2025

Copy link
Copy Markdown
Member

Sorry I missed it justing my first review, could you please also update the onBeforeUnmount hook in the FtToast component to clear any active intervals. After that it should be good to go.

@PikachuEXE

Copy link
Copy Markdown
Member Author

I introduced cleanup to avoid repeating the cleanup logic

@PikachuEXE
PikachuEXE requested review from a user and kommunarr October 8, 2025 22:54
@FreeTubeBot
FreeTubeBot merged commit fce7c3b into FreeTubeApp:development Oct 10, 2025
@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Oct 10, 2025
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Oct 11, 2025
* development:
  Update next video countdown toast to be refreshed per second instead of using workaround (FreeTubeApp#8103)
  Remove unused supportsYtdlProtocol from the external player map file (FreeTubeApp#8107)
  Translated using Weblate (Dutch)
  Translated using Weblate (Spanish)
  Translated using Weblate (Spanish)
  Translated using Weblate (Spanish)
  Translated using Weblate (Hebrew)
  Hide Proxy password (FreeTubeApp#8102)

# Conflicts:
#	src/renderer/components/FtToast/FtToast.vue
@efb4f5ff-1298-471a-8973-3d47447115dc

Copy link
Copy Markdown
Member

@PikachuEXE There is a bug in the autoplay logic. Autoplay toast counts down while next video is already loading if countdown is set to 0 in the Player settings.

VirtualBoxVM_b3JKT7jfnQ.mp4

@absidue absidue mentioned this pull request Oct 21, 2025
1 task done
@PikachuEXE
PikachuEXE deleted the feature/toast-refresh-message branch November 10, 2025 05:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Change the default time for “next video”-notification to 1 second, excluding fading in and fading out

5 participants