Commit graph

62 commits

Author SHA1 Message Date
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
Satindar Dhillon
46da1cd150 fetch linked items from coredata when network call fails 2022-04-23 09:06:03 -07:00
Satindar Dhillon
a63bf7928e remove deprecated data models 2022-04-22 19:58:13 -07:00
Satindar Dhillon
25e237255c remove HighlightDep and pdf specific highlight functions 2022-04-21 22:03:39 -07:00
Satindar Dhillon
80e5fb9a52 use backgroundContext to fetch viewer 2022-04-21 20:27:10 -07:00
Satindar Dhillon
c310aa38fd use a background context for core data ops in dataservice 2022-04-21 17:31:06 -07:00
Satindar Dhillon
8e1e7caaf4 set sort descriptor on linked item fetch 2022-04-21 15:07:53 -07:00
Satindar Dhillon
76e35cef0a use oslog rather than print statements in models package 2022-04-21 14:44:08 -07:00
Satindar Dhillon
6f9a1157e5 persist readingProgress changes to coredata 2022-04-21 13:42:13 -07:00
Satindar Dhillon
ba152b8f0a remove PersistedArticleContent entity 2022-04-21 12:01:23 -07:00
Satindar Dhillon
b601281166 look for persisted article object before insertung a new one 2022-04-21 11:43:06 -07:00
Satindar Dhillon
43dbcfe27c create NSSet extension 2022-04-21 10:07:46 -07:00
Satindar Dhillon
155c47b0d1 create highlight json string at article opening time so it's always up to date 2022-04-21 09:09:26 -07:00
Satindar Dhillon
6658d1d69b rename article content models to avoid clashing 2022-04-21 09:09:26 -07:00
Satindar Dhillon
6968e06da5 use persisted article content model to store html and highlights string 2022-04-21 09:09:26 -07:00
Satindar Dhillon
33342deb5d create an internal highlight function for encoding 2022-04-21 09:09:26 -07:00
Satindar Dhillon
93ef6980d1 fetch items from core data if network request fails 2022-04-21 09:09:26 -07:00
Satindar Dhillon
1012fccbb2 save linkeditems to core data 2022-04-21 09:09:26 -07:00
Satindar Dhillon
ed69e36576 remove unused publishers 2022-04-21 09:09:26 -07:00
Satindar Dhillon
bb016ce7f4 save highlightsJSON on persisted article content 2022-04-21 09:09:26 -07:00
Satindar Dhillon
0fc7ff0a43 rename FeedItem to FeedItemDep 2022-04-21 09:09:26 -07:00
Satindar Dhillon
a60a5e3991 mark some models as deprecated 2022-04-21 09:09:26 -07:00
Satindar Dhillon
05d4107fa9 use coredata for newsletter emails 2022-04-21 09:09:26 -07:00
Satindar Dhillon
1d92e64801 define viewer as a nsmanagedobject 2022-04-21 09:09:26 -07:00
Satindar Dhillon
00639011d8 read/write article content using coredata 2022-04-21 09:09:26 -07:00
Satindar Dhillon
5ff6d6789b create managedobject models for feeditem and feeditemlabel 2022-04-21 09:09:26 -07:00
Satindar Dhillon
70c4b1c690 convery additional uses of viewerPublisher to fetchViewer 2022-04-14 14:57:48 -07:00
Satindar Dhillon
ea2ba678c0 add fetchViewer async func 2022-04-14 13:56:30 -07:00
Satindar Dhillon
dcc7924531 create labelsPublisher to fetch existing labels 2022-04-05 13:46:03 -07:00
Satindar Dhillon
9519be128c add a createLabelPublisher 2022-04-05 13:46:03 -07:00
Satindar Dhillon
f0034f8167 swiftlint fixes 2022-04-05 13:46:02 -07:00
Satindar Dhillon
caefa364a8 add lables to feedItem type 2022-04-05 13:46:02 -07:00
Jackson Harper
ca0897edab Pass createdAt, savedAt, and publishedAt into the appreader 2022-03-25 20:54:07 -07:00
Jackson Harper
5392265a5e Bridge response values from highlight mutations back to JS in the format it expects 2022-03-24 10:52:26 -07:00