Commit graph

95 commits

Author SHA1 Message Date
Satindar Dhillon
16fa403201 use sync items query to update core data list 2022-08-04 14:46:38 -07:00
Satindar Dhillon
7bb1f92def add linkedItemUpdates data service function 2022-08-04 09:25:41 -07:00
Satindar Dhillon
311d694822 update validate username publisher to async 2022-06-21 16:21:21 -07:00
Satindar Dhillon
3031baa94d use search graphql query rather than articles 2022-06-17 14:04:26 -07:00
Satindar Dhillon
e399a5e185 rename loadContentWithRtries function. move pdfFetch to own file 2022-06-17 13:54:40 -07:00
Satindar Dhillon
87092d7418 use ArticleContentStatus to represent state for InternalLinkedItem 2022-06-17 13:54:40 -07:00
Satindar Dhillon
ffcd43060c separate article content fetch gql call from persistence code 2022-06-17 13:54:40 -07:00
Satindar Dhillon
96b09fec8e separate linkeditem network fetches from persistence functions 2022-06-17 13:54:40 -07:00
Satindar Dhillon
01632c5317 lint fixes 2022-06-17 13:54:40 -07:00
Satindar Dhillon
5ec248a86c use readAt property to sort recently read items 2022-06-14 21:05:45 -07:00
Satindar Dhillon
70a2d03890 swiftformat line fix 2022-06-13 13:52:39 -07:00
Jackson Harper
2a7a87de09 Remove debug lines 2022-06-13 09:42:59 -07:00
Jackson Harper
7084f18932 Handle changing IDs when local PDFs are saved 2022-06-12 14:36:38 -07:00
Jackson Harper
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
Jackson Harper
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
Jackson Harper
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
Jackson Harper
bb97039cf1 Track page state so we know if we are able to read a page yet 2022-06-09 13:52:49 -07:00
Jackson Harper
d8e2285f2b Make sure titles are updated when fetching updated article content 2022-06-09 13:52:49 -07:00
Jackson Harper
8d271daf38 Only attempt to force sync content if it needs creation before reading 2022-06-09 13:52:49 -07:00
Jackson Harper
bf2c0d6b66 WIP ios syncing improvements 2022-06-09 13:52:49 -07:00
Jackson Harper
b56c6dafa9 Disable sorting options that need API improvements 2022-06-03 12:47:43 -07:00
Satindar Dhillon
71083dfe65 resolve merge conflict 2022-06-02 17:28:19 -07:00
Jackson Harper
ef72e09006 Start implementing the new share extension, mostly so we can show the sync status 2022-06-02 15:29:57 -07:00
Jackson Harper
1386cc250a When opening library items that were created locally, make sure they are synced 2022-06-01 20:22:45 -07:00
Jackson Harper
53c423b714 WIP: upload PDFs using background task 2022-05-30 22:30:43 -07:00
Satindar Dhillon
2918cbcdf5 fetch pdf data only if it's missing from LinkedItem 2022-05-27 10:44:08 -07:00
Satindar Dhillon
c08c710601 set pdf state to success even if download has not completed 2022-05-27 10:26:37 -07:00
Satindar Dhillon
26a5b5dae1 handle pdf fetch errors properly 2022-05-27 10:26:37 -07:00
Jackson Harper
4376124028 Regenerate GQL, set createPageEntry when uploading files 2022-05-26 21:51:22 -07:00
Satindar Dhillon
e1aa68858f show subscriptions in list view 2022-05-25 22:51:41 -07:00
Satindar Dhillon
d6f9acca11 fetch items in background task 2022-05-19 16:12:53 -07:00
Satindar Dhillon
da9b77153a enable read now link from share extension 2022-05-17 14:48:44 -07:00
Satindar Dhillon
4295b029a5 use site name to display site on feed and grid cards 2022-05-16 09:29:39 -07:00
Satindar Dhillon
401a8bbbe6 update article attributes when refetching pending items 2022-05-08 21:42:21 -07:00
Satindar Dhillon
a2a7a2a232 handle content fetch errors in web reader 2022-05-04 15:20:44 -07:00
Satindar Dhillon
7d3ad10aa0 treat unknown link content status as succeeded (since older items don't return a status) 2022-05-03 11:47:30 -07:00
Satindar Dhillon
c39ab2d5f7 retry article content fetches when server returns a .processing state 2022-05-02 20:30:57 -07:00
Satindar Dhillon
3cf0888c54 include pending linked when fetching 2022-05-02 11:13:10 -07:00
Satindar Dhillon
938576693a update swift gql schema 2022-05-02 10:56:52 -07:00
Satindar Dhillon
8b71188a26 fetch and store pdf data in core data 2022-04-28 13:57:02 -07:00
Satindar Dhillon
ffe1eed6b6 remove extra combine imports 2022-04-28 12:49:06 -07:00
Satindar Dhillon
d7acfe69f8 track link read events 2022-04-28 11:44:18 -07:00
Satindar Dhillon
0e8d5f23da move article content fetching into fewer functions 2022-04-27 20:55:57 -07:00
Satindar Dhillon
824c889ec6 update label creator to generate a temp id on the client 2022-04-27 15:39:20 -07:00
Satindar Dhillon
cffda791a8 convert newsletter email publisher to async 2022-04-27 11:54:03 -07:00
Satindar Dhillon
93f11a4949 convery items publisher to async func 2022-04-26 08:53:55 -07:00
Satindar Dhillon
584f216d99 sync offline changes before querying for more items 2022-04-25 22:22:02 -07:00
Satindar Dhillon
26a52819d8 remove linkedItemId from coredata highlight entity 2022-04-24 21:49:02 -07:00
Satindar Dhillon
61c7403d24 update highlights on linkedItem when persisting 2022-04-24 17:10:07 -07:00
Satindar Dhillon
b4849c118f update core data when new labels are set 2022-04-23 09:25:24 -07:00