Commit Graph

509 Commits

Author SHA1 Message Date
schroda
3d21266f92 Reduce requested manga data in queries 2024-07-09 00:30:15 +02:00
schroda
4b30e9bc48 Reduce requested extension data in queries 2024-07-09 00:21:51 +02:00
schroda
83be995fb8 Reduce requested tracker data in queries 2024-07-09 00:21:49 +02:00
schroda
7556ea9b38 Reduce requested source data in queries 2024-07-09 00:21:49 +02:00
schroda
2fa1de578c Reduce requested chapter data in queries 2024-07-09 00:21:46 +02:00
schroda
9b8ace003d Reduce requested category data in queries 2024-07-03 23:24:50 +02:00
schroda
03cfc9b80c Correctly detect multiple scanlators 2024-07-03 23:24:49 +02:00
schroda
149bc8ad0d Remove duplicated i18n strings 2024-07-03 23:24:48 +02:00
schroda
ea102eceb6 Make chapter sort options typing more strict 2024-06-30 14:24:03 +02:00
schroda
d1286c2779 Add more chapter list sort options
- by chapter number
- by upload date
2024-06-30 14:23:20 +02:00
schroda
bff3c28730 Extract chapter sort into function 2024-06-30 14:22:50 +02:00
schroda
78c0efcd20 Sort chapter list by source order
Was incorrectly changed to chapter number with f52b634da1
2024-06-30 13:33:31 +02:00
schroda
f52b634da1 Properly sort chapter list by chapter number
The sort order was switched and instead of ASC it was sorted DESC and vice versa.
This was caused because the server returned the list (most of the time) in ASC order by chapter number.

Additionally, the  list was overall never properly sorted by chapter number and only worked because the server (most of the time) returned it in the correct order by chapter number.
However, this is not guaranteed at all since the server sorts in ASC order by the chapter id by default
2024-06-28 11:19:17 +02:00
schroda
f9b1d2bae2 Add option to stop global update 2024-06-26 13:25:43 +02:00
schroda
3206944052 Optionally trigger update for specific category 2024-06-26 12:42:03 +02:00
schroda
17e2d7585d Handle unsupported dayjs locales
DayJs doesn't support all the locales returned by "navigator.language"
2024-06-25 17:21:50 +02:00
schroda
36e943214c Remove "default back to" functionality
Caused an infinite loop, because in case the Reader was the initial opened page, got closed and the back button was pressed, the Reader just got opened again.

This happened because in case it was the initial opened page, closing the Reader did not use the browser back navigation and instead opened the Manga page, resulting in it to be pushed in the history stack with the Reader being the previous page
2024-06-14 15:17:05 +02:00
schroda
7337c18c7b Use global navigation history stack
The readers history stack was different to the one from the rest of the app, resulting in an infinite loop when using the closing the reader and using the back button in the manga page, since the back button just opened the reader again.

Regression introduced with 4bb458778e
2024-06-14 15:17:05 +02:00
schroda
403f657945 Enable ripple effect for nav buttons 2024-06-07 14:48:23 +02:00
schroda
29d54384f5 Remove most "useSetDefaultBackTo" usage
In case the "depth" of the initial opened app page was greater than 2 it was possible to get stuck in a loop of using the back button twice from the initial page to the previous page and back to the initial page...

Instead, in case a page with a greater depth than 0 is opened, the library should just be opened when using the back button.

This way the back button actually behaves like it's intended, as an app back button and not like the browsers back button
2024-06-06 00:00:38 +02:00
schroda
230acc23d5 Prevent scrollbar from shortly disappearing on library category change
Due to the MangaGrid getting unmounted when changing the category, the "y overflow" value got reset to "auto" which caused the scrollbar from disappearing and immediately reappearing again.
This caused the site content to slightly "jump" due to the increase and immediate decrease in is width.

Related commit 871908eba9
2024-05-24 17:31:49 +02:00
schroda
bbe8a56779 Cleanup rendering of bookmark icon of ChapterCards
Gets rid of "position" and "top" usage
2024-05-23 13:54:32 +02:00
schroda
af9e77524b Prevent ChapterCard height change on selection
Due to the Checkbox being smaller than the vertical menu icon the ChapterCard was reduced in height, which caused the chapters in the list to jump up sightly.

This issue was introduced by 0ab6549a20 due to changing the line height of the chapter name
2024-05-23 13:52:45 +02:00
schroda
1b408c8065 Remove margin from virtuoso list item
margin breaks virtuosos height calculation
2024-05-23 13:50:54 +02:00
schroda
cf996d67bb Add "isMobileWidth" util function 2024-05-23 02:37:40 +02:00
schroda
809e8a32bd Remove "react-device-detect" dependency 2024-05-23 02:31:59 +02:00
schroda
297ec2580b Copy manga title on long press 2024-05-23 02:28:43 +02:00
schroda
f64320ad05 Remove missed static string 2024-05-23 01:22:13 +02:00
schroda
43d05df78e Set Metadata title color to "secondary text"
The important information is the "value" instead of the "title", thus, the "value" should stand out more
2024-05-23 01:22:10 +02:00
schroda
c9cf516473 Use Typography in MangaDetails 2024-05-23 00:40:20 +02:00
schroda
0ab6549a20 Limit lines of chapter names of ChapterCard 2024-05-22 23:28:56 +02:00
schroda
ea6eac5066 Consider tracker logged out if token is expired
Server returns logged in state for a tracker even while the token has expired
2024-05-22 23:24:05 +02:00
schroda
871908eba9 Always show vertical scrollbar on "body" instead of "html" element
Due to setting the html elements "y overflow" to "auto" after a manga grid got unmounted (d21521625b), MUIs "scroll lock" of "modals" was broken in the reader.

For some reason the scrollbar does not get locked and instead, due to the added padding, the pages jumped slightly upward.

MUI uses the "body" element to lock the scrollbar, and thus, using this element as well instead of "html" fixes this problem, since the manually set "overflow" value gets overwritten by MUI and thus, won't mess with its logic.
2024-05-22 23:06:17 +02:00
schroda
d21521625b Always show vertical scrollbar while manga grid is rendered
To prevent jittering (https://github.com/Suwayomi/Suwayomi-WebUI/issues/758) caused by react-virtuoso
2024-05-20 17:44:27 +02:00
schroda
2b2686d323 Always include scanlator in case multiple scanlators exist
Makes more sense compared to the previous logic - to only show the scanlator in case "skip dupe chapters" setting was disabled and duplicated chapters existed - which was also not properly implemented, to be always able to tell if chapters of different scanlators might be viewed
2024-05-14 23:06:36 +02:00
schroda
ca747b383e Show chapter title in Reader chapter select 2024-05-13 03:40:45 +02:00
schroda
d726793e3d Sanitize tracker summaries
The summaries can include invalid html tags which caused issues when trying to render them since these tags do not exist.

Known issue:
The invalid tags will get escaped, however, when they include a space (e.g. "<Author's Notes>" everything after the space is missing (e.g. will be "<Author's>")
2024-05-13 03:28:46 +02:00
schroda
6b690cfd8d Handle error during manga refresh
The error of the refresh mutation was never catched and shown
2024-05-11 01:12:10 +02:00
schroda
9baa04803d Always show unread and download badges in library duplicates page 2024-05-08 19:16:41 +02:00
schroda
23ea896524 Show "ContinueReadButton" on in library 2024-05-08 19:16:41 +02:00
schroda
06817e3478 Prevent updated version info dialog on initial open 2024-05-08 13:50:27 +02:00
schroda
5cb541b684 Add functionality to save source browse searches 2024-05-08 13:45:56 +02:00
schroda
93f76d6b7e Reduce active apollo queries 2024-05-08 13:45:42 +02:00
schroda
f2be29ea3a Show search tips for MyAnimeList 2024-05-07 14:42:02 +02:00
schroda
4f92a0130e Inform about server version updates 2024-05-07 01:35:19 +02:00
schroda
eb0ba0b6a8 Improve detection of updated webUI version
In case the webUI update status was reset from another device, other devices would not show an info that the webUI got updated
2024-05-07 01:34:10 +02:00
schroda
63543a48e3 Add option to disable server update checks 2024-05-07 01:08:08 +02:00
schroda
51a0173927 Add option to disable webUI update checks 2024-05-07 01:06:33 +02:00
schroda
819d9bad66 Ignore available webUI update in case auto update is enabled
The available update info is only supposed to be shown in case the auto update is disabled, but instead, it was only shown in case auto update was enabled
2024-05-07 00:28:33 +02:00
schroda
6b955ef705 Fix lint issue 2024-05-05 02:32:24 +02:00