Skip to content

Re-implement custom explore source function, admins can configure a custom url where the app will search for feeds.{$langcode}.json#3609

Merged
Grotax merged 2 commits intomasterfrom
fix/exploreURL
Mar 15, 2026
Merged

Re-implement custom explore source function, admins can configure a custom url where the app will search for feeds.{$langcode}.json#3609
Grotax merged 2 commits intomasterfrom
fix/exploreURL

Conversation

@Grotax
Copy link
Copy Markdown
Member

@Grotax Grotax commented Mar 12, 2026

Summary

The new frontend is hard coded to always look for feeds.en.json.
This change re-implements the function that an admin can set a custom url.
The frontend will check for the users language specific json e.g. feeds.de.json and if not found fall back to English.

Checklist

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 12, 2026

Codecov Report

❌ Patch coverage is 74.07407% with 7 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/components/routes/Explore.vue 74.07% 4 Missing and 3 partials ⚠️

📢 Thoughts on this report? Let us know!

This comment was marked as outdated.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the Explore feed URL handling to support language-aware custom Explore services while keeping the built-in Explore service on a stable English endpoint, and adjusts related test coverage.

Changes:

  • Frontend: fetch Explore recommendations from either a custom base URL (language-aware with fallback) or a provided default base URL (English).
  • Backend: provide both exploreUrl (custom, trimmed) and defaultExploreUrl (generated from the internal Explore route) via initial state.
  • Tests: extend unit tests to cover custom/default URL selection and fallback behavior.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
src/components/routes/Explore.vue Implements custom-vs-default Explore URL selection plus language-aware custom fetching with English fallback.
lib/Controller/PageController.php Adds defaultExploreUrl to initial state and stops substituting the default into exploreUrl.
tests/javascript/unit/components/routes/Explore.spec.ts Adds unit tests validating URL construction and fallback logic.
docker/Dockerfile Updates the Nextcloud Docker base image from 30-apache to 33-apache.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread src/components/routes/Explore.vue
Comment thread tests/javascript/unit/components/routes/Explore.spec.ts
@Grotax Grotax changed the title Fix/explore url Re-implement custom explore source function, admins can configure a custom url where the app will search for feeds.{$langcode}.json Mar 13, 2026
@Grotax Grotax marked this pull request as ready for review March 13, 2026 09:03
Comment thread src/components/routes/Explore.vue Outdated
Comment thread tests/javascript/unit/components/routes/Explore.spec.ts Outdated
Comment thread tests/javascript/unit/components/routes/Explore.spec.ts Outdated
Comment thread tests/javascript/unit/components/routes/Explore.spec.ts Outdated
Comment thread docker/Dockerfile
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Wolfgang <github@linux-dude.de>
Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
@Grotax Grotax merged commit 8cde6c0 into master Mar 15, 2026
25 of 27 checks passed
@Grotax Grotax deleted the fix/exploreURL branch March 15, 2026 08:55
Grotax added a commit that referenced this pull request Mar 17, 2026
Changed
- Re-implement custom explore source function, admins can configure a custom url where the app will search for feeds.{$langcode}.json (#3609)
- Implement the cron check as a setup check, Admins need to check. (#2831)
- DEV: update to phpunit 10 (#3616)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
@Grotax Grotax mentioned this pull request Mar 17, 2026
Grotax added a commit that referenced this pull request Mar 17, 2026
Changed
- Re-implement custom explore source function, admins can configure a custom url where the app will search for feeds.{$langcode}.json (#3609)
- Implement the cron check as a setup check, Admins need to check. (#2831)
- DEV: update to phpunit 10 (#3616)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
Grotax added a commit that referenced this pull request Mar 17, 2026
Changed
- Re-implement custom explore source function, admins can configure a custom url where the app will search for feeds.{$langcode}.json (#3609)
- Implement the cron check as a setup check, Admins need to check. (#2831)
- DEV: update to phpunit 10 (#3616)

Signed-off-by: Benjamin Brahmer <info@b-brahmer.de>
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