Commit graph

884 commits

Author SHA1 Message Date
Hongbo Wu
b0e91cbbbb Change GraphQL APIs 2023-03-22 10:36:38 +08:00
Hongbo Wu
71826148fd Add type to the highlight in the elasticsearch and three types are HIGHLIGHTS, REDACTION and NOTE 2023-03-22 10:34:40 +08:00
Hongbo Wu
013b460e39 Check the permission to access page in elasticsearch 2023-03-21 15:56:30 +08:00
Hongbo Wu
e84b517493 Do not update createdAt for existing page 2023-03-21 13:57:57 +08:00
Hongbo Wu
8148453503 When saving an existing page, update the content 2023-03-21 13:44:00 +08:00
Hongbo Wu
bc9ba1d976 Reset state to processing when creating articles 2023-03-21 13:05:00 +08:00
Hongbo Wu
5af9d9266c Do not fetch deleted article in saving request 2023-03-21 13:03:53 +08:00
Hongbo Wu
f053b60cbe Allow array values in page filters 2023-03-21 13:03:23 +08:00
Hongbo Wu
f93148fcdd Add BAD_DATA to the saving request error code 2023-03-21 13:02:38 +08:00
Jackson Harper
265c050f5c Return readerURL on save URL requests 2023-03-20 17:28:55 +08:00
Hongbo Wu
c315e8be04 Return article's url in saveUrl api 2023-03-20 16:49:18 +08:00
Hongbo Wu
fb945f2791 Return url in save API 2023-03-20 16:48:50 +08:00
Hongbo Wu
f348ec7100 Add id to saving request and make both id and url optional 2023-03-17 17:56:38 +08:00
Hongbo Wu
f9396450a5 Get saving request by url 2023-03-17 11:37:59 +08:00
Hongbo Wu
fc662dd2d5 Return existing slug if page exists 2023-03-17 11:37:59 +08:00
Hongbo Wu
86ae533b66
Merge pull request #1915 from omnivore-app/allow-scoping-searches-to-site
Allow scoping searches to site:
2023-03-17 09:59:21 +08:00
Hongbo Wu
adae20e7e1 Use elasticsearch body builder 2023-03-15 19:15:40 +08:00
Hongbo Wu
45eed5c40d Must match siteName 2023-03-15 13:32:04 +08:00
Hongbo Wu
7d2cb07af0 eslint 2023-03-14 22:24:17 +08:00
Hongbo Wu
e5f1f25a4d Allow scoping searches to site: 2023-03-14 18:26:45 +08:00
Hongbo Wu
a8682b8cf6 Save html along with highlight and return 2023-03-14 15:55:32 +08:00
Hongbo Wu
bf6ae38fe1 Add html to the highlight document in elasticsearch 2023-03-14 15:20:09 +08:00
Hongbo Wu
c3f2262b6b Update test 2023-03-14 14:52:42 +08:00
Hongbo Wu
ee2487ff01 Case insensitive 2023-03-14 14:42:56 +08:00
Hongbo Wu
461b348dc0 Use lower function in the query 2023-03-14 14:42:00 +08:00
Hongbo Wu
7dd32c3e87 Trim whitespace text from user email address 2023-03-14 12:57:23 +08:00
Hongbo Wu
a0ec7bc89d Reset readingProgressAnchorIndex to zero if the input is zero 2023-03-11 10:16:47 +08:00
Hongbo Wu
98d5f92ad4 Call youtube data api to fetch published date 2023-03-10 17:38:03 +08:00
Hongbo Wu
a0aab94e8b Add site_name and published date to saved twitter 2023-03-10 16:42:40 +08:00
Hongbo Wu
5c3dd904a5 do not use highlightPositionAnchorIndex as the location 2023-03-10 15:54:51 +08:00
Hongbo Wu
12160cc9dc filter out highlights with no quote 2023-03-10 15:43:06 +08:00
Hongbo Wu
45a857152b Add minLength = 1 for quote in highlight 2023-03-10 15:40:31 +08:00
Hongbo Wu
2e197644d4 Add debug logs 2023-03-10 15:17:04 +08:00
Hongbo Wu
45b2fa6329 fix not setting zero 2023-03-10 12:46:41 +08:00
Hongbo Wu
bba0f69f62 Add top percentage to the reading position in API 2023-03-10 12:38:25 +08:00
Hongbo Wu
590a1cb8ad Only publish labels to add to the pubsub queue 2023-03-09 21:46:33 +08:00
Hongbo Wu
104da191d2 Allow webhooks with same event types 2023-03-09 15:00:06 +08:00
Jackson Harper
58156b72ff Update yarn.lock 2023-03-09 10:44:42 +08:00
Jackson Harper
d0e4c01b45 Allow passing mode to backend to better handle mode changes in client 2023-03-09 10:15:14 +08:00
Hongbo Wu
a1e3ac8a07 Add quote to the updateHighlightInput of the updateHighlight API 2023-03-08 15:37:24 +08:00
Hongbo Wu
87fd49540a
Merge pull request #1697 from omnivore-app/dependabot/npm_and_yarn/knex-2.4.2
Bump knex from 0.21.12 to 2.4.2
2023-03-06 09:45:50 +08:00
Hongbo Wu
0a350bef6d Fix issues with knex version bump 2023-03-05 21:36:46 +08:00
Hongbo Wu
bd12ecd7ec Add publishedAt to the updatePageInput 2023-03-02 13:40:59 +08:00
Hongbo Wu
65c244edd7
Merge pull request #1819 from omnivore-app/feature/search-filter-with-no-as-keyword 2023-02-21 12:23:22 +08:00
Hongbo Wu
214766dda6 Add no: keyword to the search filter to filter items without label or highlight 2023-02-17 12:48:02 +08:00
Hongbo Wu
153ca6995b Refactor exclude labels query 2023-02-17 12:13:20 +08:00
Hongbo Wu
7f761049d7 Preparse the newsletter content 2023-02-17 09:49:19 +08:00
Hongbo Wu
cc8b1cefdb Preserve <pre> elements with prism- class and identity them as code blocks 2023-02-14 12:33:59 +08:00
Hongbo Wu
d816ee9563 Allow image and media to be loaded in puppeteer 2023-02-13 16:50:39 +08:00
Hongbo Wu
0359cefb4f
Merge pull request #1794 from omnivore-app/add-domdistiller-test-page
Add dom-distiller generated test pages
2023-02-10 10:42:59 +08:00