Commit Graph

98 Commits

Author SHA1 Message Date
schroda
f570b7c9ed Optionally hide history 2025-03-22 01:16:38 +01:00
Jack
9e5fa7d81a Add history page (#897)
* Add History module and integrate it into the app

Introduce the History module with components for displaying chapter updates, including UI for grouped updates by date. Update routing and constants to incorporate the new /history path.

* Replace "Updates" and "History" with unified "Recent" module

Merged the "Updates" and "History" screens into a single unified "Recent" module with corresponding navigation updates. Adjusted GraphQL types and localization files to reflect the changes. This simplifies navigation and improves user experience.

* Refactor History screen to remove unused components.

Removed unused states, layout effects, and props related to last update timestamp. Renamed variables for better clarity and updated labels and error messages to align with the history context. Simplified component structure for improved maintainability.

* ```
Refactor tab handling and integrate dynamic height adjustments.

Renamed enums for better clarity and consistency. Implemented a `tabsMenuHeight` prop to dynamically adjust component layouts based on observed height changes using `useResizeObserver`. Updated the `Updates` component to consider the calculated heights for improved rendering.
```

* Refactor `groupByDate` parameter and add `lastReadAt` field

Renamed `updates` to `histories` in `groupByDate` for clarity and added a debugging log for input data. Updated GraphQL fragment to include the `lastReadAt` field to support additional functionality.

* Refactor `groupByDate` parameter and add `lastReadAt` field

Renamed `updates` to `histories` in `groupByDate` for clarity and added a debugging log for input data. Updated GraphQL fragment to include the `lastReadAt` field to support additional functionality.

* Refactor `groupByDate` parameter and add `lastReadAt` field

Renamed `updates` to `histories` in `groupByDate` for clarity and added a debugging log for input data. Updated GraphQL fragment to include the `lastReadAt` field to support additional functionality.

* Refactor `groupByDate` parameter and add `lastReadAt` field

Renamed `updates` to `histories` in `groupByDate` for clarity and added a debugging log for input data. Updated GraphQL fragment to include the `lastReadAt` field to support additional functionality.

* "Optimize GraphQL type definition formatting in generated file

Condensed the formatting of the GetChaptersHistoryQuery type to a single line for improved readability and consistency. This change does not affect functionality but enhances maintainability of the generated code."

* Remove UpdateChecker component from History screen

The UpdateChecker component and its related navbar action have been removed from the History screen. This simplifies the navbar setup and eliminates unused functionality in this context.

* Refactor chapter fragment and type references

Updated `ChapterRecentListFieldsFragment` to `ChapterUpdateListFieldsFragment` for better alignment with naming conventions. Adjusted type imports and query structures to maintain consistency across files. No functional changes introduced.

* Refactor padding calculation logic in Updates screen.

Renamed state variable and refactored its logic for clarity and consistency. The updated logic now uses a more descriptive name, `listPadding`, to enhance code readability and maintainability.

* Pass `tabsMenuHeight` prop to History component

Added `tabsMenuHeight` prop to the `History` component to properly calculate the height for the `StyledGroupedVirtuoso` element. This ensures consistency with other components and improves layout rendering.

* Revert package.json

* Add last page read tracking to chapter history

Introduced "lastPageRead" and "pageCount" fields to track progress in chapter history. Updated UI to display the last page read along with total pages for chapters. Adjusted localization files to support the new "page" label.

* Remove last page read display from ChapterHistoryCard

The "last page read" information was removed from the ChapterHistoryCard component for a cleaner UI. This change simplifies the card's design by showing only the chapter name and relevant download state.

* Forcing an empty commit.

* Replace "Recent" screen with separate "Updates" and "History".

The "Recent" feature has been split into two distinct screens, "Updates" and "History", for improved clarity and functionality. Routes, icons, and components have been updated accordingly, and redundant code related to "Recent" has been removed.

* Clean

* Revert vi.json

* Remove unnecessary `useLocation` hook and update state logic.

The `useLocation` hook was removed as it was not used elsewhere in the component. The state property for the routing logic was updated to use `Chapters.getReaderOpenChapterLocationState` for better encapsulation and clarity.

* Update history localization by removing unused "page" key

Removed the "page" key from the "history" section in the localization file as it is no longer in use. This cleanup helps keep the translation file consistent and easier to maintain.

---------

Co-authored-by: NamNH <namitonguyen@gmail.com>
2025-03-10 21:53:40 +01:00
schroda
6afc9f22b6 Introduce "more" page
- moves "Settings" into "more" page
2025-03-09 16:19:31 +01:00
schroda
57f73636a0 Read chapter download status from cache
Instead of getting the whole download status, which contains all queued/active downloads, the download status should be read from the cache for only the required chapters
2025-01-12 14:09:10 +01:00
schroda
d66b3eb38d Handle main content screen right safe area 2025-01-08 23:59:26 +01:00
schroda
d844ad3f5d Use full height and width of viewport on iOS
- render appbar background color on ios status bar
- handle "home indicator" safe area inset
2024-12-16 14:49:35 +01:00
schroda
cff0ed5ec3 Extract app routes into constant 2024-12-11 20:25:49 +01:00
schroda
7ffcfc1a16 Keep route names lowercase 2024-12-11 13:55:00 +01:00
schroda
20a8666f95 Simplify setting route names 2024-12-11 13:51:46 +01:00
schroda
6802941252 Rename "Default reader settings" to "Reader settings" 2024-12-11 13:43:53 +01:00
schroda
da0004de4a Base reader component 2024-12-09 02:38:37 +01:00
schroda
a607f7f368 Reader settings 2024-12-09 02:38:37 +01:00
schroda
8e59763bba Delete deprecated reader files 2024-12-09 02:38:37 +01:00
schroda
84b9f8361d Fix RequestManager location
Was changed unintentionally
2024-10-06 13:45:22 +02:00
schroda
a16fef0aab Move setting files into new folder 2024-10-06 00:16:31 +02:00
schroda
57158d6abd Move backup files into new folder 2024-10-06 00:08:19 +02:00
schroda
ec061e9854 Move updates files into new folder 2024-10-06 00:08:19 +02:00
schroda
92659184b2 Move global-search files into new folder 2024-10-06 00:08:18 +02:00
schroda
204d909b0e Move download files into new folder 2024-10-06 00:08:14 +02:00
schroda
3917d5b328 Move browse files into new folder 2024-10-06 00:07:51 +02:00
schroda
3244a6e3df Move device files into new folder 2024-10-06 00:01:51 +02:00
schroda
c0eabf8865 Move navigation-bar files into new folder 2024-10-06 00:01:51 +02:00
schroda
e466842c77 Move theme files into new folder 2024-10-05 23:35:25 +02:00
schroda
d41e79ca78 Move app-update-checker files into new folder 2024-10-05 23:35:24 +02:00
schroda
946c852828 Move category files into new folder 2024-10-05 23:35:23 +02:00
schroda
17e42ae012 Move migration files into new folder 2024-10-05 23:35:22 +02:00
schroda
7cf3849911 Move tracker files into new folder 2024-10-05 23:35:21 +02:00
schroda
64629fd979 Move source files into new folder 2024-10-05 23:35:18 +02:00
schroda
79341b7817 Move reader files into new folder 2024-10-05 23:35:17 +02:00
schroda
91e1f01de5 Move library files into new folder 2024-10-05 23:35:16 +02:00
schroda
18fc225d6c Move manga files into new folder 2024-10-05 23:35:13 +02:00
schroda
23a86a77f0 Move core files into new folder 2024-10-05 22:55:08 +02:00
schroda
12d12ccc48 Use custom themes 2024-09-05 21:57:15 +02:00
schroda
e909fc64fd Move "darkTheme" setting to "Appearance" page 2024-09-05 04:49:47 +02:00
schroda
053db4a1e3 Update manga page styling 2024-08-31 23:41:39 +02:00
schroda
b80622cb17 Prevent grid items from jumping after closing reader
Due to the reader and the "default" nav bar updating the same navbar width in the context, the grid item width calculation resulted in different grid item widths, which caused the items to "jump" after closing the reader
2024-07-29 17:24:37 +02:00
schroda
5632c4584b Consider y-scrollbar when setting max-width
In case there was a y-scrollbar, the set max width caused the x-scrollbar to also appear
2024-07-13 13:01:33 +02:00
schroda
f43b7af3cd Refactor base app layout 2024-07-13 03:46:37 +02:00
schroda
37a371863f Set css color scheme via MUI 2024-05-20 16:23:11 +02:00
schroda
df66e180d8 Add setting to show duplicated library entries 2024-05-04 15:41:21 +02:00
schroda
ba3aefc854 Lazy load app routes 2024-04-30 00:39:47 +02:00
schroda
c4d77d2325 Globally inform about successful webUI updates
In case automatic webUI updates are disabled, the user gets informed about available updates
2024-04-21 15:03:24 +02:00
schroda
7725673dd7 Move ServerUpdateChecker to "util" folder 2024-04-21 12:52:31 +02:00
schroda
8178574815 Fix/remove deprecated routes (#747)
* Route to "/" in case path is unknown

* Remove deprecated routes

"sources" and "extensions" were merged into "browse" but the routes were never removed, thus, the paths still matched and opened the components
2024-04-14 18:08:15 +02:00
schroda
473e85a8ed Feature/use second level mui imports (#743)
* Require "Theme" to be passed to "SxProps"

Decreases typescript performance otherwise

* Disallow "top" and "third-level" MUI imports

* Exclude "node_modules" in tsconfig
2024-04-14 15:50:12 +02:00
schroda
d22bfaa55c Implement tracker login and logout 2024-03-29 00:45:38 +01:00
schroda
535cb1b359 Fix/save active device only in local storage (#643)
* Save "activeDevice" in the local storage

* Set default back to for "DeviceSetting"
2024-03-07 01:12:35 +01:00
schroda
4aec3c94ef Feature/support settings per device (#640)
* Optionally prevent deletion and mutation of "MutableListSetting" items

* Save server metadata per device

This makes it possible to e.g. have different settings on a desktop and a smartphone.
2024-03-06 23:07:48 +01:00
schroda
4b54b09395 Rename "ExtensionSettings" to "BrowseSettings" (#600) 2024-02-16 19:53:00 +01:00
schroda
e0c5e0521d Feature/manga migration (#536)
* Add "migration" tab to "Browse" screen

* Add missing useEffect cleanup for navbar title and actions

* Make "SourceGridLayout" reusable

* Add migration tab to "Browse"

* Add migration logic
2024-01-26 20:50:51 +01:00