Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retain video in miniplayer on login #547

Draft
wants to merge 100 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
100 commits
Select commit Hold shift + click to select a range
dacb0e9
Fix egw card hover
narthur Jun 19, 2024
35a6be7
white download button on story detail
narthur Jun 19, 2024
7cc0b11
code formatting
narthur Jun 19, 2024
4be1b50
Make logout reset nav drawer
narthur Jun 19, 2024
3bb9cca
fix nav scroll when it shouldn't
narthur Jun 19, 2024
aa31fd3
lint fixes
narthur Jun 19, 2024
bbed4cf
Prefetch first page of presenters
narthur Jun 20, 2024
adf4ed8
Add all presenters loading indicator
narthur Jun 20, 2024
6e72bc8
intl & formatting
narthur Jun 20, 2024
5650e40
improve account page tabs perf
narthur Jun 20, 2024
c5b6754
intl & lint
narthur Jun 20, 2024
43036fc
intl updates
narthur Jun 20, 2024
200e777
make lang-extract easier to reason about
narthur Jun 20, 2024
42b636e
Work around miniplayer pause bug
narthur Jun 24, 2024
c279b99
rename test
narthur Jun 24, 2024
8507240
move loginLanding to containers
narthur Jun 24, 2024
37a4b6e
code formatting
narthur Jun 24, 2024
2053d8f
extract moveVideo
narthur Jun 25, 2024
894c1cc
add workaround note
narthur Jun 25, 2024
abaf429
use getVideoJs
narthur Jun 25, 2024
6dc6034
move media stuff to media folder
narthur Jun 25, 2024
21daaaa
lint fixes
narthur Jun 25, 2024
3cbfc8e
extract getFiles
narthur Jun 25, 2024
0fb074a
extract getSources
narthur Jun 25, 2024
ce79db2
lint fix
narthur Jun 25, 2024
d58a161
extract shouldLoadRecordingPlaybackProgress
narthur Jun 25, 2024
a4e3ada
extract useUpdateProgress
narthur Jun 25, 2024
ef2dd52
extract useProgress
narthur Jun 25, 2024
eae43d8
extract useIsPaused
narthur Jun 25, 2024
dedfb50
remove unused progressRef
narthur Jun 25, 2024
30cbfae
Move server progress fetching into useProgress
narthur Jun 25, 2024
0b2f220
extract useUpdateServerProgress
narthur Jun 25, 2024
b9634fc
extract useBuffered
narthur Jun 25, 2024
f035e27
extract useVolume
narthur Jun 25, 2024
2312230
refactor getVideoJs
narthur Jun 25, 2024
41b56d8
extract useSpeed
narthur Jun 26, 2024
6cfb30f
fix useSpeed
narthur Jun 26, 2024
d81b572
refactor getVideoHandler
narthur Jun 26, 2024
9109532
remove unused getVideoHandler
narthur Jun 26, 2024
7b0fcbb
delete unused hasVideo
narthur Jun 26, 2024
d06f2e8
delete unused supportsFullscreen
narthur Jun 26, 2024
854858e
delete unused supportsFullscreen
narthur Jun 26, 2024
bb49d96
extract useIsShowingVideo
narthur Jun 26, 2024
485f556
extract usePlayerSources
narthur Jun 26, 2024
42f9fcf
remove getVolume & setVolume from playback context
narthur Jun 26, 2024
55f425a
remove unneeded useEffect
narthur Jun 26, 2024
31188e9
remove casting triggers from playback context
narthur Jun 26, 2024
341c486
extract useVideoHandler
narthur Jun 26, 2024
2781995
remove hasPlayer from playback context
narthur Jun 26, 2024
4681438
remove isShowingVideo from playback context
narthur Jun 26, 2024
092ac61
remove getSpeed & setSpeed from playback context
narthur Jun 26, 2024
688df58
remove unneeded setSpeedFingerprint
narthur Jun 26, 2024
7449817
remove requestFullscreen from PlaybackContext
narthur Jun 26, 2024
c585593
add AndMediaContext provider component
narthur Jun 27, 2024
8428d1a
make AndMediaContext provide context object
narthur Jun 27, 2024
7534f6a
extract DEFAULT_MEDIA_CONTEXT object
narthur Jun 27, 2024
a9cd608
add usePlayer
narthur Jun 27, 2024
a644f08
rename usePlayer usePlayerManager
narthur Jun 27, 2024
e45ad87
use andMediaContext for player management
narthur Jun 28, 2024
c2a56b2
remove video handler logic
narthur Jun 28, 2024
424ec28
remove getVideo from usePlaybackSession
narthur Jun 28, 2024
e1fc58c
remove getVideoLocation from playback context
narthur Jun 28, 2024
477182a
remove unused hook
narthur Jun 28, 2024
453c2f8
remove getRefs from playback context
narthur Jun 28, 2024
165e96f
usePlayer in useBuffered
narthur Jun 28, 2024
97adfa8
refactor useBuffered
narthur Jun 28, 2024
04b1c2e
remove logging
narthur Jun 28, 2024
9c74cfd
usePlayerRecording in usePlaybackSession
narthur Jun 28, 2024
544182f
usePlayerRecording in ButtonPlayback
narthur Jun 28, 2024
0fd317a
usePlayerRecording in Miniplayer & MobileHeader
narthur Jun 28, 2024
119a50c
usePlayerRecording in AndMiniplayer & Book
narthur Jun 28, 2024
0040a4f
remove getRecording from playback context
narthur Jun 28, 2024
db94072
useSpeed in ButtonSpeed
narthur Jun 28, 2024
c310a69
remove speed from usePlaybackSession
narthur Jun 28, 2024
515a852
use fewer refs
narthur Jul 1, 2024
6f4448d
usePrefersAudio in usePlaybackSession
narthur Jul 1, 2024
2730443
use MediaContext in useOnRecordingLoad
narthur Jul 1, 2024
2c3da17
remove setPrefersAudio & getPrefersAudio from PlaybackContext
narthur Jul 1, 2024
6aa9a98
let useIsPaused do pause & play
narthur Jul 1, 2024
f928381
useIsPaused in usePlaybackSession
narthur Jul 1, 2024
d836ebf
remove pause from PlaybackContext
narthur Jul 1, 2024
fecae9d
remove prefersAudio & setPrefersAudio from usePlaybackSession
narthur Jul 1, 2024
15eb0c4
remove setIsPaused from PlaybackContext
narthur Jul 1, 2024
687c25f
remove playerRef from andPlaybackContext
narthur Jul 1, 2024
b8072c4
clean up andPlaybackContext
narthur Jul 1, 2024
c25dec5
useIsPaused in ButtonPlayback
narthur Jul 1, 2024
e38db62
remove paused from PlaybackContext
narthur Jul 1, 2024
f17ab12
remove play from PlaybackContext
narthur Jul 2, 2024
450e059
usePlayer in Miniplayer
narthur Jul 2, 2024
8398a5d
usePlayer in andMiniplayer.spec
narthur Jul 2, 2024
3ecb374
useOnRecordingLoad in usePlaybackSession
narthur Jul 2, 2024
28ae24d
useIsPaused in Player
narthur Jul 2, 2024
cc96709
useIsPaused in TeaseRecording
narthur Jul 2, 2024
4b5a8a5
add usePlayerTime
narthur Jul 2, 2024
0555682
usePlayerTime in Miniplayer
narthur Jul 2, 2024
53bc52f
usePlayerTime in usePlaybackSession
narthur Jul 2, 2024
6fb47bb
remove getTime & setTime from PlaybackContext
narthur Jul 2, 2024
c4acc44
remove shiftTime from usePlaybackSession
narthur Jul 2, 2024
2bf6476
add useDuration
narthur Jul 2, 2024
4632377
work on passing strict tests
narthur Jul 4, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,6 @@ module.exports = withBundleAnalyzer(
destination: '/en/presenters/:presenterId/feed.xml',
permanent: false,
},
{
source: '/:lang/account',
destination: '/:lang/account/login',
permanent: true,
},
{
source: '/:lang/account/history',
destination: '/:lang/library/history',
Expand Down Expand Up @@ -176,6 +171,16 @@ module.exports = withBundleAnalyzer(
destination: '/:lang/account/login',
permanent: true,
},
{
source: '/:lang/account/profile',
destination: '/:lang/account',
permanent: true,
},
{
source: '/:lang/account/preferences',
destination: '/:lang/account',
permanent: true,
},
{
source: '/:lang/blog/page/1',
destination: '/:lang/blog',
Expand Down
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 42 additions & 30 deletions public/compiled-lang/br.json
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@
"value": "Perfil"
}
],
"account__heading": [
{
"type": 0,
"value": "Configurações da conta"
}
],
"add_to_playlist": [
{
"type": 0,
Expand Down Expand Up @@ -3437,6 +3443,30 @@
"value": "Sign Up with Email"
}
],
"molecule-buttonDownloadBlank__modalButtonLabelCreateAccountDownload": [
{
"type": 0,
"value": "Create account"
}
],
"molecule-buttonDownloadBlank__modalButtonLabelLogIn": [
{
"type": 0,
"value": "Entrar"
}
],
"molecule-buttonDownloadBlank__modalParagraph": [
{
"type": 0,
"value": "Create a free account or login to access the Library features, like saving, viewing your downloads & history, and syncing across devices."
}
],
"molecule-buttonDownloadBlank__modalTitle": [
{
"type": 0,
"value": "Criar uma conta gratuita"
}
],
"molecule-buttonDownload__buttonLabel": [
{
"type": 0,
Expand Down Expand Up @@ -3497,18 +3527,6 @@
"value": "Vídeos baixados"
}
],
"molecule-buttonGuestDownload__modalParagraph": [
{
"type": 0,
"value": "Create a free account or login to access the Library features, like saving, viewing your downloads & history, and syncing across devices."
}
],
"molecule-buttonGuestDownload__modalTitle": [
{
"type": 0,
"value": "Criar uma conta gratuita"
}
],
"molecule-buttonGuest__Download": [
{
"type": 0,
Expand All @@ -3527,12 +3545,6 @@
"value": "Criar conta"
}
],
"molecule-buttonGuest__modalButtonLabelCreateAccountDownload": [
{
"type": 0,
"value": "Create account"
}
],
"molecule-buttonGuest__modalButtonLabelGuestSkip2": [
{
"type": 0,
Expand Down Expand Up @@ -4375,12 +4387,6 @@
"value": "Escolha como deseja baixar o áudio."
}
],
"preferences__heading": [
{
"type": 0,
"value": "Configurações da conta"
}
],
"preferences__inputAutoplay": [
{
"type": 0,
Expand Down Expand Up @@ -4611,6 +4617,18 @@
"value": "Todos"
}
],
"presentersListAll__listEnd": [
{
"type": 0,
"value": "No more presenters"
}
],
"presentersListAll__loading": [
{
"type": 0,
"value": "Loading..."
}
],
"presentersList__all": [
{
"type": 0,
Expand Down Expand Up @@ -4725,12 +4743,6 @@
"value": "Tem certeza?"
}
],
"profile__heading": [
{
"type": 0,
"value": "Configurações da conta"
}
],
"profile__inputLabelForEmail": [
{
"type": 0,
Expand Down
72 changes: 42 additions & 30 deletions public/compiled-lang/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@
"value": "Profil"
}
],
"account__heading": [
{
"type": 0,
"value": "Kontoeinstellungen"
}
],
"add_to_playlist": [
{
"type": 0,
Expand Down Expand Up @@ -3437,6 +3443,30 @@
"value": "Sign Up with Email"
}
],
"molecule-buttonDownloadBlank__modalButtonLabelCreateAccountDownload": [
{
"type": 0,
"value": "Create account"
}
],
"molecule-buttonDownloadBlank__modalButtonLabelLogIn": [
{
"type": 0,
"value": "Einloggen"
}
],
"molecule-buttonDownloadBlank__modalParagraph": [
{
"type": 0,
"value": "Create a free account or login to access the Library features, like saving, viewing your downloads & history, and syncing across devices."
}
],
"molecule-buttonDownloadBlank__modalTitle": [
{
"type": 0,
"value": "Create a Free Account"
}
],
"molecule-buttonDownload__buttonLabel": [
{
"type": 0,
Expand Down Expand Up @@ -3497,18 +3527,6 @@
"value": "Video-Downloads"
}
],
"molecule-buttonGuestDownload__modalParagraph": [
{
"type": 0,
"value": "Create a free account or login to access the Library features, like saving, viewing your downloads & history, and syncing across devices."
}
],
"molecule-buttonGuestDownload__modalTitle": [
{
"type": 0,
"value": "Create a Free Account"
}
],
"molecule-buttonGuest__Download": [
{
"type": 0,
Expand All @@ -3527,12 +3545,6 @@
"value": "Benutzerkonto erstellen"
}
],
"molecule-buttonGuest__modalButtonLabelCreateAccountDownload": [
{
"type": 0,
"value": "Create account"
}
],
"molecule-buttonGuest__modalButtonLabelGuestSkip2": [
{
"type": 0,
Expand Down Expand Up @@ -4375,12 +4387,6 @@
"value": "Wähle aus, wie du Audiodateien herunterladen möchtest."
}
],
"preferences__heading": [
{
"type": 0,
"value": "Kontoeinstellungen"
}
],
"preferences__inputAutoplay": [
{
"type": 0,
Expand Down Expand Up @@ -4611,6 +4617,18 @@
"value": "Alle"
}
],
"presentersListAll__listEnd": [
{
"type": 0,
"value": "No more presenters"
}
],
"presentersListAll__loading": [
{
"type": 0,
"value": "Loading..."
}
],
"presentersList__all": [
{
"type": 0,
Expand Down Expand Up @@ -4725,12 +4743,6 @@
"value": "Bist du sicher?"
}
],
"profile__heading": [
{
"type": 0,
"value": "Kontoeinstellungen"
}
],
"profile__inputLabelForEmail": [
{
"type": 0,
Expand Down
Loading