Commit Graph

51 Commits

Author SHA1 Message Date
e399a5e185 rename loadContentWithRtries function. move pdfFetch to own file 2022-06-17 13:54:40 -07:00
87092d7418 use ArticleContentStatus to represent state for InternalLinkedItem 2022-06-17 13:54:40 -07:00
ffcd43060c separate article content fetch gql call from persistence code 2022-06-17 13:54:40 -07:00
01632c5317 lint fixes 2022-06-17 13:54:40 -07:00
5ec248a86c use readAt property to sort recently read items 2022-06-14 21:05:45 -07:00
70a2d03890 swiftformat line fix 2022-06-13 13:52:39 -07:00
2a7a87de09 Remove debug lines 2022-06-13 09:42:59 -07:00
7084f18932 Handle changing IDs when local PDFs are saved 2022-06-12 14:36:38 -07:00
7b81ad253d Store PDF paths as filenames instead of full URLs
This fixes issues where the full URL of our directory path
changes, also it moves files into documents instead of
caches, and ensures PDFs are downloaded before opening.
2022-06-09 13:52:49 -07:00
fb1027dc38 Make the full fetchContent process a single await
This will ensure the full pages content is fully downloaded
before it returns.
2022-06-09 13:52:49 -07:00
544454e087 Ensure items are ready to read before presenting in Read now
- HTML items: content is downloaded, no longer in processing state
- PDF items: PDF content is downloaded
2022-06-09 13:52:49 -07:00
bb97039cf1 Track page state so we know if we are able to read a page yet 2022-06-09 13:52:49 -07:00
d8e2285f2b Make sure titles are updated when fetching updated article content 2022-06-09 13:52:49 -07:00
8d271daf38 Only attempt to force sync content if it needs creation before reading 2022-06-09 13:52:49 -07:00
bf2c0d6b66 WIP ios syncing improvements 2022-06-09 13:52:49 -07:00
b56c6dafa9 Disable sorting options that need API improvements 2022-06-03 12:47:43 -07:00
71083dfe65 resolve merge conflict 2022-06-02 17:28:19 -07:00
ef72e09006 Start implementing the new share extension, mostly so we can show the sync status 2022-06-02 15:29:57 -07:00
1386cc250a When opening library items that were created locally, make sure they are synced 2022-06-01 20:22:45 -07:00
53c423b714 WIP: upload PDFs using background task 2022-05-30 22:30:43 -07:00
2918cbcdf5 fetch pdf data only if it's missing from LinkedItem 2022-05-27 10:44:08 -07:00
c08c710601 set pdf state to success even if download has not completed 2022-05-27 10:26:37 -07:00
26a5b5dae1 handle pdf fetch errors properly 2022-05-27 10:26:37 -07:00
4376124028 Regenerate GQL, set createPageEntry when uploading files 2022-05-26 21:51:22 -07:00
d6f9acca11 fetch items in background task 2022-05-19 16:12:53 -07:00
4295b029a5 use site name to display site on feed and grid cards 2022-05-16 09:29:39 -07:00
401a8bbbe6 update article attributes when refetching pending items 2022-05-08 21:42:21 -07:00
a2a7a2a232 handle content fetch errors in web reader 2022-05-04 15:20:44 -07:00
7d3ad10aa0 treat unknown link content status as succeeded (since older items don't return a status) 2022-05-03 11:47:30 -07:00
c39ab2d5f7 retry article content fetches when server returns a .processing state 2022-05-02 20:30:57 -07:00
938576693a update swift gql schema 2022-05-02 10:56:52 -07:00
8b71188a26 fetch and store pdf data in core data 2022-04-28 13:57:02 -07:00
0e8d5f23da move article content fetching into fewer functions 2022-04-27 20:55:57 -07:00
26a52819d8 remove linkedItemId from coredata highlight entity 2022-04-24 21:49:02 -07:00
61c7403d24 update highlights on linkedItem when persisting 2022-04-24 17:10:07 -07:00
c310aa38fd use a background context for core data ops in dataservice 2022-04-21 17:31:06 -07:00
ba152b8f0a remove PersistedArticleContent entity 2022-04-21 12:01:23 -07:00
b601281166 look for persisted article object before insertung a new one 2022-04-21 11:43:06 -07:00
155c47b0d1 create highlight json string at article opening time so it's always up to date 2022-04-21 09:09:26 -07:00
6658d1d69b rename article content models to avoid clashing 2022-04-21 09:09:26 -07:00
6968e06da5 use persisted article content model to store html and highlights string 2022-04-21 09:09:26 -07:00
33342deb5d create an internal highlight function for encoding 2022-04-21 09:09:26 -07:00
bb016ce7f4 save highlightsJSON on persisted article content 2022-04-21 09:09:26 -07:00
a60a5e3991 mark some models as deprecated 2022-04-21 09:09:26 -07:00
00639011d8 read/write article content using coredata 2022-04-21 09:09:26 -07:00
f0034f8167 swiftlint fixes 2022-04-05 13:46:02 -07:00
5392265a5e Bridge response values from highlight mutations back to JS in the format it expects 2022-03-24 10:52:26 -07:00
5db0cb12f0 remove auth token and env vars from webreader 2022-03-24 08:34:43 -07:00
6bb8f76f40 add createdByMe field to Highlight model 2022-03-22 11:51:45 -07:00
e28cf07666 pass highlights into webreader 2022-03-22 08:03:03 -07:00