feat: add Hardcover reading goal module#112
Open
komadorirobin wants to merge 1 commit intodoctorhetfield-cmd:mainfrom
Open
feat: add Hardcover reading goal module#112komadorirobin wants to merge 1 commit intodoctorhetfield-cmd:mainfrom
komadorirobin wants to merge 1 commit intodoctorhetfield-cmd:mainfrom
Conversation
Adds desktop_modules/module_hardcover.lua, a new homescreen module that fetches the user's active reading goal from hardcover.app and displays it as a widget on the SimpleUI homescreen. Features: - GraphQL API fetch (POST https://api.hardcover.app/v1/graphql) - Goal selection: active today, nearest future, or most recently ended - Caching via G_reader_settings with configurable TTL (default 60 min) - Two layout types: Card (full) and Row (compact single-line) - Per-module Scale and Text Size controls - Show/hide section label toggle in settings - API key entry with automatic Bearer-prefix stripping - Manual refresh and configurable cache TTL in settings menu - Exports M._getCached and M.ensureFresh() for use by other modules (e.g. module_reading_stats can show goal progress as a stat card) - HTTP via ssl.https (LuaSec) with curl fallback Requires a free hardcover.app account and API key (hardcover.app -> Settings -> Developer).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds desktop_modules/module_hardcover.lua, a new homescreen module that fetches the user's active reading goal from hardcover.app and displays it as a widget on the SimpleUI homescreen.
Features:
Requires a free hardcover.app account and API key
(hardcover.app > Settings > Hardcover API).