Commit Graph

58 Commits

Author SHA1 Message Date
deccb6f946 Use an action so we can update local cache when moving to inbox 2024-06-25 13:04:34 +08:00
613dd39aba Filtering on the library view 2024-06-25 09:11:15 +08:00
c130c5309a Fix off by one with new SWR cursor generation 2024-06-14 12:38:32 +08:00
64ea02bb2c Add trash and archive section, css fixups 2024-06-11 16:00:47 +08:00
f0898de5d5 SWR signature has changed for the fetcher 2024-06-11 14:31:50 +08:00
883d6619ea Start to update navigation to use new sections 2024-06-10 18:56:12 +08:00
d18feb7e55 fix: do not fetch content for search on Web 2024-04-23 11:40:37 +08:00
9618e452bc Fix some issues with unsubscribing on web 2024-03-14 18:09:38 +08:00
f3d5903d0c Temporarily disable ai summaries 2024-03-01 11:15:18 +08:00
234b24ac4d Hover for TLDR buttons 2024-02-29 14:08:01 +08:00
c20d8e6b4d Add summaries, display accont features 2024-02-28 15:14:32 +08:00
ccbaf402bd Better handling of errors in the library 2024-02-23 13:08:20 +08:00
97efbe4487 Force read position writes when user explicitly sets it 2024-02-01 09:59:42 +08:00
b5a6b86915 Merge branch 'main' into feat/add-links-in-search 2023-08-07 22:41:47 +02:00
27dd2b2734 Add Ability to Add URLs directly from the search bar. 2023-08-06 02:55:01 +02:00
76e0b36dfb Dont require confirmation on delete, show undo action 2023-08-04 13:44:31 +08:00
f20cbed563 Improve highlight scrolling from notebooks 2023-04-03 13:46:19 +08:00
f811339398 Reset top percent when marking as read/unread 2023-03-11 08:22:15 +08:00
faa2912f24 Update the anchor index in the cache when marking as read 2023-03-11 08:14:40 +08:00
5cd5f57b4e Fetch top percent with search items 2023-03-11 08:09:43 +08:00
8cf0a6ecb2 Simplify top positioning 2023-03-10 16:47:02 +08:00
e13b809389 Get highlights with library items, over fetching for now, can maybe trim stuff in future 2023-03-06 22:13:50 +08:00
e9ae311559 Add wordsCount and better center new grid cards 2023-02-27 15:07:04 +08:00
f9e40fe427 Better handling of long filter button text names like subscriptions 2023-02-27 12:35:45 +08:00
09328edfe5 Updated library cards 2023-02-24 10:09:24 +08:00
55e925cc98 Clean up iOS recommendations, show a primer on first load 2022-12-19 17:07:27 +08:00
a8df439297 Rename recommendedBy to recommendations 2022-12-06 21:18:21 +08:00
0892d9e7e6 Add user and note to Recommendation type 2022-12-06 17:44:53 +08:00
b5a1d8fb9f Call mutate after uploading an item completes 2022-11-14 17:05:38 +08:00
cec6dc5197 Rebase 2022-06-09 13:32:32 -07:00
a8531b7ced Merge branch 'main' into OMN-700 2022-06-07 01:01:59 +05:30
c5e6bb1534 Update sort by readAt query on Web 2022-06-05 20:00:38 +08:00
313c4db094 Added unsubscribe menu option 2022-06-01 20:17:34 +00:00
2aadd6d200 Add siteName in search result web 2022-05-12 10:31:14 +08:00
f47e2754c2 Add state in search result graphql 2022-05-05 09:54:52 +08:00
8a7389712b Pull scroll to highlight changes into this branch 2022-05-03 15:00:49 -07:00
5ea67a0bea Pull in new highlight cards 2022-05-03 12:09:32 -07:00
bbb812f196 Rebase 2022-05-03 11:08:02 -07:00
6061f2927b update web to call new search endpoint for pages 2022-05-03 11:02:41 -07:00
c089b74af9 Revert changes (#513)
* Revert "Remove includePending"

This reverts commit d9c58a6ee2.

* Revert "Remove state"

This reverts commit e2b6cadfda.

* Revert "Remove slug in articleSavingRequest"

This reverts commit 4502bece36.
2022-04-29 14:26:00 +08:00
e2b6cadfda Remove state 2022-04-28 22:57:12 -07:00
d9c58a6ee2 Remove includePending 2022-04-28 22:47:13 -07:00
2b70d480d2 Remove article saving request (#493)
* Add state and taskName in elastic page mappings

* Add state and taskName in elastic page interface

* Create page with PROCESSING state before scrapping

* Update createArticleRequest API

* Fix tests

* Add default state for pages

* Update createArticle API

* Update save page

* Update save file

* Update saving item description

* Show unable to parse content for failed page

* Fix date parsing

* Search for not failed pages

* Fix tests

* Add test for saveUrl

* Update get article saving request api

* Update get article test

* Add test for articleSavingRequest API

* Add test for failure

* Return new page id if clientRequestId empty

* Update clientRequestId in savePage

* Update clientRequestId in saveFile

* Replace article with slug in articleSavingRequest

* Add slug in articleSavingRequest response

* Depreciate article

* Use slug in web

* Remove article and highlight fragments

* Query article.slug on Prod

* Show unable to parse description for failed page

* Fix a bug having duplicate pages when saving the same url multiple times

* Add state in response

* Rename variables in removeArticle API

* Rename state

* Add state in response in web

* Make state an enum

* Open temporary page by link id

* Use an empty reader view as the background for loading pages

* Progressively load the article page as content is loaded

* Add includePending flag in getArticles API

* Set includePending = true in web

* Add elastic update mappings in migration script

* Add elastic mappings in docker image

* Move index_settings.json to migrate package

* Remove elastic index creation in api

* Move elastic migrations to a separate directory

* Remove index_settings from api docker image

Co-authored-by: Jackson Harper <jacksonh@gmail.com>
2022-04-29 13:41:06 +08:00
d6fb0cb457 Remove unused import 2022-04-19 16:13:22 -07:00
da561ca58b Query for labels with library items. Display properly on the home feed 2022-04-13 13:38:36 -07:00
c280b2cf01 Remove items from cache when archived from the article actions menu 2022-04-12 12:23:55 -07:00
1784edefaf Remove unused imports, use a single Label fragment 2022-03-25 14:17:02 -07:00
0a459a20c4 Show success/error toasts for archiving and removing 2022-03-25 10:35:19 -07:00
7650a12be3 fix reading progress not updated after reading by updating cache (#258) 2022-03-18 09:58:08 +08:00
e652a6ea8c Rebased version of the elastic PR (#225)
* Add elastic to our docker compose

* add AND/OR/NOT search operations

* add elastic and create article in elastic

* change error code when elastic throws error

* add search pages in elastic

* add search by labels

* Add elastic to GitHub Action

* Update elastic version

* Fix port for elastic

* add url in search query

* Set elastic features when running tests

* add debug logs

* Use localhost instead of service hostname

* refresh elastic after create/update

* update search labels query

* add typescript support

* search pages in elastic

* fix search queries

* use elastic for saving page

* fix test failure

* update getArticle api to use elastic

* use generic get page function

* add elastic migration python script

* fix bulk helper param

* save elastic page id in article_saving_request instead of postgres article_id

* fix page archiving and deleting

* add tests for deleteArticle

* remove custom date type in elastic mappings which not exist in older version of elastic

* fix timestamp format issue

* add tests for save reading progress

* add tests for save file

* optimize search results

* add alias to index

* update migration script to receive env var as params

* Add failing test to validate we don't decrease reading progress

This test is failing with Elastic because we aren't fetching
the reading progress from elastic here, and are fetching it
from postgres.

* Rename readingProgress to readingProgressPercent

This is the name stored in elastic, so fixes issues pulling the
value out.

* Linting

* Add failing test for creating highlights w/elastic

This test fails because the highlight can't be looked up. Is there
a different ID we should be passing in to query for highlights,
or do we need to update the query to look for elastic_id?

* add tests code coverage threshold

* update nyc config

* include more files in test coverage

* change alias name

* update updateContent to update pages in elastic

* remove debug log

* fix createhighlight test

* search pages by alias in elastic

* update set labels and delete labels in elastic

* migration script enumeration

* make BULK_SIZE an env var

* fix pdf search indexing

* debug github action exit issue

* call pubsub when create/update/delete page in elastic

* fix json parsing bug and reduce reading data from file

* replace a depreciated pubsub api call

* debug github action exit issue

* debug github action exit issue

* add handler to upload elastic page data to GCS

* fix tests

* Use http_auth instead of basic_auth

* add index creation and existing postgres tables update in migration script

* fix a typo to connect to elastic

* rename readingProgress to readingProgressPercent

* migrate elastic_page_id in highlights and article_saving_request tables

* update migration script to include number of updated rows

* update db migration query

* read index mappings from file

* fix upload pages to gcs

* fix tests failure due to pageContext

* fix upload file id not exist error

* Handle savedAt & isArchived attributes w/out quering elastic

* Fix prettier issues

* fix content-type mismatching

* revert pageId to linkId because frontend was not deployed yet

* fix newsletters and attachment not saved in elastic

* put linkId in article for setting labels

* exclude orginalHtml in the result of searching to improve performace

* exclude content in the result of searching to improve performace

* remove score sorting

* do not refresh immediately to reduce searching and indexing time

* do not replace the backup data in gcs

* fix no article id defined in articleSavingRequest

* add logging of elastic api running time

* reduce home feed pagination size to 15

* reduce home feed pagination size to 10

* stop revalidating first page

* do not use a separate api to fetch reading progress

* Remove unused comment

* get reading progress if not exists

* replace ngram tokenizer with standard tokenizer

* fix tests

* remove .env.local

* add sort keyword in searching to sort by score

Co-authored-by: Hongbo Wu <hongbo@omnivore.app>
2022-03-16 12:08:59 +08:00