Skip to content

Migrate the App component to the composition API - #8417

Merged
FreeTubeBot merged 2 commits into
FreeTubeApp:developmentfrom
absidue:app-composition-api
Dec 15, 2025
Merged

FreeTubeBot merged 2 commits into
FreeTubeApp:developmentfrom
absidue:app-composition-api

Conversation

@absidue

@absidue absidue commented Dec 14, 2025 •

Copy link
Copy Markdown
Member

Pull Request Type

  • Composition API migration

Description

This pull request migrates the App component to the composition API. I also fixed some of the issues with event handlers not being unregistered when the App component is hot-reloaded in development, which caused external links to open multiple times and rearranged the elements in this component, so we can hopefully remove some of the CSS z-index mess that we have in a follow up. Additionally we start loading the en-US locale as soon as the App component is created, as it is the fallback locale so is always required, which should cut down on the messages about not finding strings when FreeTube starts, as it can be loaded in parallel with user data.

Testing

Test the functionality of the App component, such as changing theme settings, the updates banner (modify the package.json to use an older version), click on external links, etc.

Desktop

  • OS: Windows
  • OS Version: 11

@FreeTubeBot
FreeTubeBot enabled auto-merge (squash) December 14, 2025 13:57
@github-actions github-actions Bot added the PR: waiting for review For PRs that are complete, tested, and ready for review label Dec 14, 2025

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.

  • Im unable to close the banner by clicking on the X or by tabbing to it and pressing enter

Unrelated to this PR:

  • Banner message isnt doesnt change when pick another language

@absidue

absidue commented Dec 14, 2025

Copy link
Copy Markdown
Member Author

Fixed both issues, please test again.

@FreeTubeBot
FreeTubeBot merged commit 12b2ee3 into FreeTubeApp:development Dec 15, 2025
@github-actions github-actions Bot removed the PR: waiting for review For PRs that are complete, tested, and ready for review label Dec 15, 2025
@absidue
absidue deleted the app-composition-api branch December 15, 2025 23:18
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Dec 18, 2025
* development: (62 commits)
  Support exporting single playlists in YouTube's CSV format (FreeTubeApp#8430)
  Move external player handling to the main process (FreeTubeApp#8416)
  Revert "[Bug fix] Set max-block-size to prevent thin videos from passing the …" (FreeTubeApp#8418)
  Migrate the App component to the composition API (FreeTubeApp#8417)
  Bump electron-builder from 26.3.5 to 26.3.6 (FreeTubeApp#8422)
  Bump css-minimizer-webpack-plugin from 7.0.3 to 7.0.4 (FreeTubeApp#8428)
  Bump the eslint group with 3 updates (FreeTubeApp#8420)
  Bump sass from 1.94.2 to 1.96.0 (FreeTubeApp#8429)
  Bump vue-router from 4.6.3 to 4.6.4 (FreeTubeApp#8425)
  Bump peter-evans/create-pull-request from 7 to 8 (FreeTubeApp#8423)
  Bump mikefarah/yq from 4.49.2 to 4.50.1 (FreeTubeApp#8427)
  Bump lefthook from 2.0.8 to 2.0.11 (FreeTubeApp#8426)
  Bump electron from 39.2.6 to 39.2.7 (FreeTubeApp#8421)
  Bump actions/upload-artifact from 5 to 6 (FreeTubeApp#8424)
  Translated using Weblate (Russian)
  Translated using Weblate (Bulgarian)
  Translated using Weblate (German)
  Translated using Weblate (Indonesian)
  Translated using Weblate (Portuguese (Brazil))
  Translated using Weblate (Japanese)
  ...
PikachuEXE added a commit to PikachuEXE/FreeTube that referenced this pull request Dec 21, 2025
* development: (62 commits)
  Support exporting single playlists in YouTube's CSV format (FreeTubeApp#8430)
  Move external player handling to the main process (FreeTubeApp#8416)
  Revert "[Bug fix] Set max-block-size to prevent thin videos from passing the …" (FreeTubeApp#8418)
  Migrate the App component to the composition API (FreeTubeApp#8417)
  Bump electron-builder from 26.3.5 to 26.3.6 (FreeTubeApp#8422)
  Bump css-minimizer-webpack-plugin from 7.0.3 to 7.0.4 (FreeTubeApp#8428)
  Bump the eslint group with 3 updates (FreeTubeApp#8420)
  Bump sass from 1.94.2 to 1.96.0 (FreeTubeApp#8429)
  Bump vue-router from 4.6.3 to 4.6.4 (FreeTubeApp#8425)
  Bump peter-evans/create-pull-request from 7 to 8 (FreeTubeApp#8423)
  Bump mikefarah/yq from 4.49.2 to 4.50.1 (FreeTubeApp#8427)
  Bump lefthook from 2.0.8 to 2.0.11 (FreeTubeApp#8426)
  Bump electron from 39.2.6 to 39.2.7 (FreeTubeApp#8421)
  Bump actions/upload-artifact from 5 to 6 (FreeTubeApp#8424)
  Translated using Weblate (Russian)
  Translated using Weblate (Bulgarian)
  Translated using Weblate (German)
  Translated using Weblate (Indonesian)
  Translated using Weblate (Portuguese (Brazil))
  Translated using Weblate (Japanese)
  ...
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.

4 participants