Commit graph

172 commits

Author SHA1 Message Date
Tim
c38ffc36b6 refactor: move file drop logic to provider 2026-05-06 09:10:45 +02:00
Tim
8b9dfa5e82 refactor: core logic 2026-05-05 04:22:59 +02:00
Timothy Z.
6fc21e314d
Merge pull request #1237 from AKnassa/fix/fullscreen-state-desync-on-route-change
App: Correctly display fullscreen status
2026-05-01 18:41:19 +03:00
Timothy Z.
12af0e1d5e refactor: correct the gamepad lock id 2026-04-29 17:33:31 +03:00
Timothy Z.
7637620ac5 gamepad: add lock unlock on dom 2026-04-29 17:25:35 +03:00
AK
9412bb004c fix(build): update gamepad nav useFullscreen import path
The merge of development into this branch combined two incompatible
changes: development's new GamepadNavigation files (#882) imported
useFullscreen from the old 'stremio/common/useFullscreen' path, while
this branch removed that file in b7f7a3d2e and moved the hook to
'stremio/common/Fullscreen'. Webpack failed to resolve the module on
CI even though git auto-merged without conflict markers.

Update the single stale import in useHorizontalNavGamepadNavigation.tsx
to point at the new module. The new index.ts exports useFullscreen as
default, so the import shape is unchanged.

Verified locally with `pnpm build` (passes with only pre-existing
bundle-size warnings).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-29 09:52:42 -04:00
Timothy Z.
73a02564b3 refactor: make sure the gamepad modal focus is respected 2026-04-29 16:48:53 +03:00
Timothy Z.
7c3f79ac1a refactor: correctly getActiveScope when on modal 2026-04-29 16:37:51 +03:00
Timothy Z.
b7655e658f refactor: correctly focus player buttons 2026-04-29 16:28:39 +03:00
Timothy Z.
5079af1c8d refactor: support auto controller detection 2026-04-29 15:57:40 +03:00
Timothy Z.
aac69c43db typing improvements 2026-04-29 13:21:09 +03:00
Timothy Z.
4b6b0058fa refactor: code quality improvments 2026-04-29 13:20:14 +03:00
Timothy Z.
831222f812 improve algo for finding items 2026-04-29 00:07:16 +03:00
Timothy Z.
70e14c4871 refactor: improve navigation 2026-04-28 23:49:46 +03:00
Timothy Z.
4b92d9dd4f correct tab indexes for buttons 2026-04-28 23:38:59 +03:00
Timothy Z.
a9ff0f6365 add search route 2026-04-28 23:32:05 +03:00
Timothy Z.
0b601010e2 fix: tests + stale callbacks 2026-04-28 22:57:33 +03:00
Timothy Z.
f95273b8ce feat: add controller guide 2026-04-28 22:31:33 +03:00
Timothy Z.
93833d0cd1 fixes
1. Player.js — Added optional chaining (gamepad?.on/gamepad?.off) to prevent null crash
  2. GamepadProvider.tsx — Toast messages now use t('GAMEPAD_CONNECTED') / t('GAMEPAD_DISCONNECTED') via i18next, added keys to en-US.json
  3. useVerticalNavGamepadNavigation.tsx — Fixed event.nativeEvent?.spatialNavigationPrevented → event.spatialNavigationPrevented (native DOM events don't have nativeEvent)
  4. GamepadProvider.tsx — Changed connectedGamepads from useState to useRef to avoid rAF effect restart cycle, removed it from effect deps, simplified the enabled guard
2026-04-28 17:09:02 +03:00
Timothy Z.
0c1af71aa9 Merge remote-tracking branch 'origin/development' into feat/gamepad-support
# Conflicts:
#	package-lock.json
#	package.json
#	src/App/App.js
#	src/routes/Player/Player.js
#	src/routes/Settings/General/General.tsx
2026-04-28 16:47:48 +03:00
Timothy Z.
fcd85bdcf4 feat: handle http/magnets from search bar 2026-03-30 18:40:24 +03:00
Christian
a0615bda42 Complete addition of cause argument
As mentioned in #296 error cast are now added with cause argument.

Signed-off-by: Christian <chr.korber@gmail.com>
2025-10-07 19:57:29 +02:00
Botzy
ddf842b0c7 Merge branch 'development' into feat/gamepad-support 2025-08-28 12:08:03 +03:00
Tim
1c1163888e refactor(service): remove init shell logic 2025-06-20 12:11:34 +02:00
Tim
7ec7e8eb03 refactor: rewrite settings route 2025-06-18 09:48:12 +02:00
Botzy
45ffc79b1b Merge branch 'development' into feat/gamepad-support 2025-06-10 16:34:38 +03:00
Tim
2b44367a26 feat: toggle fullscreen with F key with shell 2025-05-27 10:28:02 +02:00
Botzy
39bfd7cc22 fix: issue with hook imports 2025-04-02 13:46:46 +03:00
Botzy
d84e0f849f fix: added copyright 2025-04-01 16:29:45 +03:00
Botzy
8c612d951f fix(GamepadProvider): fix issue with getting latest event handler array element for older node versions 2025-04-01 16:18:44 +03:00
Botzy
1474d18c83 fix: linting & errors 2025-04-01 15:45:02 +03:00
Botzy
8cee08a008 fix(useContentGamepadNavigation): align moving left and right with v4 behaviour 2025-04-01 15:44:31 +03:00
Botzy
bc81bd1fc8 fix(GamepadProvider): prevent emitting more than one event handler at a time 2025-04-01 15:22:48 +03:00
Botzy
9c34a23888 fix(GamepadSupport): disable vertical nav gamepad support on meta details and player 2025-03-31 20:26:52 +03:00
Botzy
96164511b5 feat(GamepadSupport): added support for HorizontalNavBar 2025-03-28 15:24:38 +02:00
Botzy
c302adc815 fix(GamepadSupport): disable click on dropdowns 2025-03-28 15:22:41 +02:00
Botzy
4f3105f354 feat(Gamepad): Add gamepad spatial navigation on main screens content 2025-03-27 17:46:55 +02:00
Botzy
70653adc6f fix(useVerticalSpatialNavigation): fix issue with race condition removing all handlers 2025-03-27 12:45:12 +02:00
Botzy
476f2f8551 feat(useVerticalSpatialNav): added hook for enabling spatial nav on vertical navigation 2025-03-26 19:00:55 +02:00
Botzy
41865276d5 fix(GamepadSupport): fix issue with multiple handler events being fired 2025-03-25 19:07:01 +02:00
Botzy
b36ebcb4c6 feat(GamesupportProvider): improve logic for enabling gamepad support 2025-03-24 17:10:37 +02:00
Botzy
5927b17e87 feat(GamesupportProvider): add enabled prop to start/stop gamepad support 2025-03-24 17:09:09 +02:00
Botzy
4617d030aa feat(GamepadProvider): added Gamepad context and provider 2025-03-24 13:37:39 +02:00
Tim
9d18a1bb61 fix: drop srt file with shell 2025-02-06 18:10:34 +01:00
Tim
3df8eb65d0 feat: allow to drop local subtitles 2025-01-08 20:41:55 +01:00
Tim
77ce94673d Merge branch 'development' of https://github.com/Stremio/stremio-web into feat/calendar 2024-10-09 10:52:08 +02:00
Tim
e51e6f415e chore: update eslint 2024-10-07 12:17:33 +02:00
Tim
8a79058d1c feat: calendar 2024-06-18 12:07:34 +02:00
kKaskak
86a62fa797 update: shortcuts 2023-12-25 15:30:23 +02:00
Tim
32aee9de6a refactor: update copyright header year 2023-06-09 19:16:32 +02:00