Commit Graph

2526 Commits

Author SHA1 Message Date
fallenbagel
a790b1abcc feat(airdatebadge): convert airDate from UTC to local timezone (#1390)
This PR will ensure that the airdate is in the user's local timezone so that its more user friendly and the relative time calculation would be consistent

fix #1373
2025-02-23 22:35:12 +01:00
Gauthier
f0a6055774 fix: add email requirement for local users (#1389)
* fix: add email requirement for local users

Because of a misunderstanding, and the requirement to have a mandatory email for local users was
removed, when it shouldn't have been.

re #900
fix #1367

* fix: add missing check for Emby
2025-02-23 11:25:25 +01:00
allcontributors[bot]
a3f4773a35 docs: add michaelhthomas as a contributor for code (#1388)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-02-23 00:42:33 +08:00
Michael Thomas
73d8efaa54 feat: revamp login page and support disabling media server login (#1286)
* feat: support disabling jellyfin login

* feat: revamp login screen

Update the login screen for better usability, especially with OpenID
Connect and Plex login, allowing one-click login and removing the
accordion layout. Additionally, ensures that media server login is
hidden when disabled in the settings.

* test: update cypress login command
2025-02-23 00:40:38 +08:00
Gauthier
9712f56054 fix: fix remove from *arr in item details (#1387)
Fix the "Remove From *arr" button in the slideover of the movie/series details page. The issue was
caused by an attempt to delete a file that didn't exist.
2025-02-23 00:18:27 +08:00
Gauthier
b1f07f0eb2 refactor(overriderules): move override rules out of the service modal (#1292)
* refactor(overriderules): move override rules out of the service modal

This PR moves override rules out of the service modal. This will make override rules more visible
than inside the service modal popup. This will also avoid having a modal inside a modal (override
rules modal inside of service modal)

* fix: resolve typing error
2025-02-23 00:17:19 +08:00
Michael Thomas
64f05bcad6 feat: add linked accounts page (#883)
* feat(linked-accounts): create page and display linked media server accounts

* feat(dropdown): add new shared Dropdown component

Adds a shared component for plain dropdown menus, based on the headlessui Menu component. Updates
the `ButtonWithDropdown` component to use the same inner components, ensuring that the only
difference between the two components is the trigger button, and both use the same components for
the actual dropdown menu.

* refactor(modal): add support for configuring button props

* feat(linked-accounts): add support for linking/unlinking jellyfin accounts

* feat(linked-accounts): support linking/unlinking plex accounts

* fix(linked-accounts): probibit unlinking accounts in certain cases

Prevents the primary administrator from unlinking their media server account (which would break
sync). Additionally, prevents users without a configured local email and password from unlinking
their accounts, which would render them unable to log in.

* feat(linked-accounts): support linking/unlinking emby accounts

* style(dropdown): improve style class application

* fix(server): improve error handling and API spec

* style(usersettings): improve syntax & performance of user password checks

* style(linkedaccounts): use applicationName in page description

* fix(linkedaccounts): resolve typo

* refactor(app): remove RequestError class
2025-02-23 00:16:25 +08:00
fallenbagel
80927b9705 fix(mediarequest): optimise more typeorm lifecycle triggers (#1376)
This is related to #1218. This should fix more typeorm lifcycle trigger issues

fix #513
2025-02-23 00:16:03 +08:00
Gauthier
d563b36186 fix: disable first page revalidation in useSWRInfinite (#1386)
By default, useSWRInfinite revalidates the first page every time a new page is loaded, resulting in
additional requests being sent. This PR disables this behavior.

fix #1380
2025-02-22 16:46:58 +01:00
Gauthier
117617188e feat(settings): add a disclaimer for dns servers and ipv4 first settings (#1375)
* feat(settings): add a disclaimer for dns servers and ipv4 first settings

This PR adds a disclaimer to warn the user that he should use the network settings of his
containers/system first instead of this one.

* fix: add missing translations

* feat: create a new Advanced Network Settings section

* Update src/components/Settings/SettingsNetwork/index.tsx

Co-authored-by: fallenbagel <98979876+fallenbagel@users.noreply.github.com>

* Update src/i18n/locale/en.json

Co-authored-by: fallenbagel <98979876+fallenbagel@users.noreply.github.com>

* fix: rename to Force IPv4 Resolution First

---------

Co-authored-by: fallenbagel <98979876+fallenbagel@users.noreply.github.com>
2025-02-22 16:46:47 +01:00
Gauthier
525a538f34 refactor(settings): move network settings to their own settings tab (#1287)
* refactor(settings): move network settings to their own settings tab

This PR moves the network settings out of the General Settings section to a new Netowrk Settings
tab.

* fix: add missing translations

* fix: fix cypress tests for network settings

* refactor: create a separate section for network settings
2025-02-20 18:27:18 +01:00
allcontributors[bot]
0d2273ff6e docs: add ishanjain28 as a contributor for code (#1369)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-02-18 05:00:10 +08:00
Ishan Jain
e035cd84ae fix: corrected spelling errors in function names (#1366) 2025-02-17 21:52:05 +01:00
Gauthier
438ccfe9c3 fix: assign the keep-alive value explicitly (#1368)
* fix: assign the keep-alive value explicitly

The Node.js documentation mentions that the default keep-alive value is not used when creating a
global agent manually, which is done in customProxyAgent.ts.

re #1365

* fix: typo
2025-02-18 03:48:37 +08:00
854562
c181cee328 feat: update Jellyfin logo (#1359)
* Replaced Jellyfin logo with new version

* Update jellyfin.svg
2025-02-16 11:37:59 +01:00
Gauthier
98a5b05816 ci: set the pnpm version number explicitly (#1357)
* ci: set the pnpm version number explicitly

pnpm latest version is now v10. We still use v9, and the latest version of pnpm was used in
Dockerfile instead of v9.

* ci: add missing pnpm v9
2025-02-14 17:21:08 +01:00
0xsysr3ll
b29959b063 fix: missing plex.tv url in images remotePatterns (#1356)
This fixes a 400 error while fetching user's avatar from plex api during user import.
2025-02-14 15:28:26 +01:00
Bryan J.
9a2c12e51c docs: update error message for various components (#1354) 2025-02-14 11:47:47 +01:00
Gauthier
620135aeac fix: resolve a vulnerability with admin token (#1345)
By default, the jellyfinAuthToken of every user was always retrieved from the database, and
sometimes sent back to the client. Any logged-in user could retrieve this token via a request
containing admin user information, and use it to gain full access to Jellyfin. This PR removes the
auth token and the device ID from the fields selected by default by TypeORM.
2025-02-10 00:17:11 +01:00
Gauthier
2dbd1096d2 fix: disallow admins to edit other admins in bulk edit (#1340)
This PR fixes a bug where admin users could edit the permissions of other admins in the bulk edit
modal.

fix #1309
2025-02-09 01:12:54 +08:00
Gauthier
24d3f523fc feat: add a robots.txt file (#1335)
This PR adds a `robots.txt` file to prevent crawlers to index the website

re #1323
2025-02-08 02:23:37 +08:00
Gauthier
2b7974fa06 fix(jobs): run plex/jellyfin jobs only for the relevant media server (#1331)
Due to merging issues with upstream, some jobs for the Plex media server where also running on
Jellyfin/Emby instances. This PR makes them run only when the media server is Plex.

fix #1329
2025-02-05 05:01:02 +08:00
Ben Haney
907ba6fdea feat(api): make rottentomatoes matching more robust (#1265) 2025-01-31 23:04:34 +08:00
fallenbagel
efaad21554 build: remove unnecessary files from final docker image (#1314)
* build: remove charts from final docker image

fix #1313

* build: remove docs too
2025-01-30 19:48:16 +08:00
Gauthier
6ab463285d fix(setup): resolve looping library validation error message (#1316)
This PR fixes a bug where the validation error message is displayed over and over because of a React
useEffect dependency issue. Previously, the `validateLibraries()` function was being called inside a
useEffect that depended on a state that this function was updating.
2025-01-30 11:22:23 +01:00
Ludovic Ortega
418f0c2eb8 fix(helm): no change, fixing OCI manifest corruption (#1310)
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
2025-01-27 15:49:24 +01:00
fallenbagel
002557d2d0 docs: changed the name to lowercase (#1296) 2025-01-21 17:20:33 +08:00
Ludovic Ortega
62c1a70b37 feat(helm): Add possibility to pass volumes and volume mounts (#1291)
Signed-off-by: Ludovic Ortega <ludovic.ortega@adminafk.fr>
2025-01-20 20:20:27 +08:00
allcontributors[bot]
1b325e7c32 docs: add andrewkolda as a contributor for design (#1293)
* docs: update README.md [skip ci]

* docs: update .all-contributorsrc [skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2025-01-20 06:41:25 +08:00
andrewkolda
f247642b76 fix: make watchlist buttons consistent (#1272)
fix #1270

Co-authored-by: andrewkolda <git@kolda.me>
2025-01-19 23:15:54 +01:00
Fallenbagel
396cd968ef ci: push individual arch digest only and merge from digest (#1284)
* ci: push individual arch digest only and merge from digest

* ci: correct syntax for docker manifest

* ci: add the missing id to the build step

* ci: set proper ids and output digest that is dependant on matrix.id

* ci: proper dynamic outputs by manually echoing it out

* ci: remove unnecessary test step
2025-01-19 03:41:25 +08:00
fallenbagel
ca739315b2 ci: remove cleanup steps since docker registry v2 doesnt support it 2025-01-18 22:28:58 +08:00
fallenbagel
9143a6c027 ci: push temp tags and create multi-arch from them and cleanup 2025-01-18 22:19:39 +08:00
fallenbagel
d7fc03650f ci: use direct docker manifest command to create and push manifest 2025-01-18 21:54:09 +08:00
fallenbagel
80fc5c1a78 ci: better manifest merging to only push final multi-arch manifest 2025-01-18 21:43:14 +08:00
fallenbagel
95737d36e6 ci: fix typo in create_manifest 2025-01-18 20:59:29 +08:00
fallenbagel
0fd6ca85a4 ci: fix missing version for create_manifest & discord notification after create_manifest 2025-01-18 20:53:09 +08:00
fallenbagel
7cee9b475d ci: fix multi-arch image creation workflow
use int128/docker-manifest-create-action to combine the images
2025-01-18 20:50:22 +08:00
fallenbagel
ff9af866f8 ci: use the proper action to merge manifests & pass in lowercase owner 2025-01-18 20:40:03 +08:00
fallenbagel
5ffe6419ee ci: remove sanitisation and hardcode platform tag depending on platform 2025-01-18 20:31:18 +08:00
fallenbagel
8afcf5a8d8 ci: attempt to sanitise the platfom and add to gh env 2025-01-18 20:25:06 +08:00
Fallenbagel
17d93a8cb9 ci: fix typo when passing sanitised platform to github env (#1282)
* ci: fix typo when passing sanitised platform to github env

* ci: hardcode a platform & owner for testing sanitation

* ci: fix typo

* ci: fix typo

* ci: fix yet another typo

* ci: fix yet another typo

* ci: another typo when echoing the tested variables fixed

* ci: properly echo the values from github env

* ci: attempt to echo out the sanitised variables

* ci: finalise the sanitation test and remove it from lint & test build
2025-01-18 20:23:03 +08:00
Fallenbagel
549082c53e ci: fix typo when sanitising platform (#1281) 2025-01-18 19:55:36 +08:00
Fallenbagel
fbef7e2c72 ci: seperate job to pass in sanitised platform (#1280)
This is done as github actions doesnt support inline replacement that was done on #1279
2025-01-18 19:49:58 +08:00
Fallenbagel
93d2e26ae9 ci: sanitise container tag (#1279)
* ci: sanitise container tag

Tags cant container `/` so this should sanitise them

* ci: use simple case owner name
2025-01-18 19:42:05 +08:00
Fallenbagel
f09a432635 ci: add a job to merge and create multi-arch image (#1278)
This has to be done now that arm64 and amd64 runs as two seperate jobs. Otherwise, whichever
finishes the last would override the other one when pushed
2025-01-18 19:34:36 +08:00
Fallenbagel
a8f84d4f74 ci: correct arm runner label (#1277)
The issue was all because of using the wrong label. 18 hours wasted waiting for a non-existent
runner to start. It is `ubuntu-24.04-arm`
https://github.com/orgs/community/discussions/148648#discussion-7793082
2025-01-18 19:07:45 +08:00
Fallenbagel
88e96fa163 ci: upgrade runner to ubuntu 24.04 to get arm64 runner working (#1276)
This is another attempt to get arm64 runner working by upgrading the runner to ubuntu-24-04, hoping it works better.

Related to #1275
2025-01-18 17:57:07 +08:00
Fallenbagel
2d814c1416 ci: attempt to fix arm64 runners with proper scoped caching (#1275)
Added platform specific cache scoping and turned off provenance to prevent manifest merging. In
addition we are now using ubuntu24.04 in an attempt to get the job to run as ubuntu-22.04 were
stalled for more than 18 hours.
2025-01-18 17:49:35 +08:00
Fallenbagel
2f4b848b2c ci: utilise the linux arm64 hosted runners (#1271)
* ci: utilise the linux arm64 hosted runners

This is an attempt to utilise the linux arm64 hosted runners which should reduce the build times
significantly. In addition, this should leverage the github's built-in caching.

* ci: fix typo
2025-01-18 05:14:33 +08:00