Commit Graph

114 Commits

Author SHA1 Message Date
a856297002 Add LabelChip file 2022-03-25 14:37:37 -07:00
1784edefaf Remove unused imports, use a single Label fragment 2022-03-25 14:17:02 -07:00
ea98d97915 Move the edit labels modal into the page so the embedded react component does not bundle it
This will have a native modal on iOS
2022-03-25 14:03:01 -07:00
69abc55615 Add MathJax scripts to /app 2022-03-25 14:02:02 -07:00
0859002c0c Remove next dependencies from the article components
This pulls next related deps up into the page instead of the
component and allows us to pull next out of the app reader
dependency.
2022-03-25 13:26:01 -07:00
59da82ddc7 Merge pull request #316 from omnivore-app/fix/bound-highlight-responses
Bridging for GQL highlight responses
2022-03-25 12:56:35 -07:00
e10c1a3671 Merge pull request #322 from omnivore-app/opt/import-lodash-debounce
Import just the debounce package to reduce bundle size
2022-03-25 11:14:13 -07:00
8e1526ce22 Merge pull request #311 from omnivore-app/OMN-158
[Omn-158] - Update the snackbar on web based on latest designs
2022-03-25 10:59:01 -07:00
d6fb21e6c4 Import just the debounce package to reduce bundle size 2022-03-25 10:57:35 -07:00
0a459a20c4 Show success/error toasts for archiving and removing 2022-03-25 10:35:19 -07:00
166ff3f906 Remove exclamation marks from messages 2022-03-25 10:12:46 -07:00
e13296c02a Small visual tweaks to the toastbar message
Dropped the font down a little because the degular font is
slighty smaller than inter. Made the X icon bold.
2022-03-25 10:10:46 -07:00
45d4a99d17 Fix Highlight type attributes 2022-03-24 13:52:38 -07:00
f3809d88a7 Remove sharedBy from unused page 2022-03-24 12:52: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
f3edb9ca7a Reduce the data fetched when creating highlights
This reduces the fields on the highlight type, and reduces what
we fetch. We are doing this so its easier to bind from Swift and
pass back simpler types for create/update/merge highlight
operations
2022-03-24 10:50:46 -07:00
134264940f Merge pull request #315 from omnivore-app/feature/webreader-mathjax-script
Webreader Highlight.js and Mathjax script
2022-03-24 10:24:24 -07:00
f1c20c731f don't bundle maxjax script tags for apple embeds 2022-03-24 09:18:07 -07:00
194bb973fb Add a /install/apple redirect for the store
This is the same as ios, safari, mac just a more generic name
for our installs page
2022-03-23 22:35:24 -07:00
fb97a7312f Merge pull request #310 from omnivore-app/fix/rm-pdf-share-button
Remove the share highlight PDF menu item
2022-03-23 19:46:40 -07:00
5ead3ea339 [Omn-158] - Update the snackbar on web based on latest designs 2022-03-24 01:28:15 +00:00
6db46ab8ae Remove the share highlight PDF menu item
This feature is temporarily disabled
2022-03-23 15:05:17 -07:00
46b2dc1571 remove unneeded change 2022-03-23 21:25:39 +00:00
77b97c493e fix borderRadius for single email 2022-03-23 21:16:01 +00:00
1ff66da756 Merge commit '6e36bb271f595d6dfe02ddee320980d433917d35' into OMN-189 2022-03-23 21:15:19 +00:00
9275dbb732 Display the note SVG in a container div 2022-03-23 11:20:32 -07:00
4960daeb30 use inline svg for highlight note icon 2022-03-23 10:59:59 -07:00
f92c4a3eef Remove uneeded coma 2022-03-23 09:18:27 -07:00
a56314c21a updated full url to relative url for learn more link 2022-03-22 23:37:44 +00:00
8fbb976f8f Effected review corrections 2022-03-22 22:07:43 +00:00
6daa599b76 Separate the mutations out of lower level components
This will let us handle the mutations differently on native
iOS and should help in avoiding making web calls directly from
the web view, so we can avoid CORs and introduce a caching
layer.
2022-03-22 13:58:39 -07:00
1f517104ae [OMN-189] : Settings View - Emails 2022-03-22 02:15:04 +00:00
209491feeb Fix sizing on the avatar icon 2022-03-21 11:17:35 -07:00
1713acf40e Merge pull request #271 from omnivore-app/OMN-156
[OMN-156] - Make header avatar less distracting
2022-03-21 11:15:24 -07:00
13a700e3c9 Merge pull request #265 from omnivore-app/fix/rm-unused-fonts
Remove unused fonts from CSS
2022-03-21 10:08:41 -07:00
95d47c15de [OMN-156] - Make header avatar less distracting 2022-03-20 19:08:41 +00:00
665ce1d754 Merge pull request #263 from omnivore-app/fix/remove-theme-duplicates
Remove extra theme objects in stitches config
2022-03-18 17:55:15 -07:00
705ebffff3 only refresh items on home feed 2022-03-18 17:08:47 +08:00
4c535147f1 round reading progress to 100% if more than that
round reading progress to 100% if more than that

round reading progress to 100% if more than that
2022-03-18 14:56:49 +08:00
17edc482f6 update debounce timeout to be 2 seconds 2022-03-18 14:06:58 +08:00
365859bb63 import lodash 2022-03-18 12:30:06 +08:00
1218bb0afd use lodash debounce the api call to save reading progress 2022-03-18 12:20:45 +08:00
ee160a88bc Remove unused fonts from CSS 2022-03-17 20:37:17 -07:00
7650a12be3 fix reading progress not updated after reading by updating cache (#258) 2022-03-18 09:58:08 +08:00
c8352576f2 remove extra theme objects in stitches config 2022-03-17 14:39:22 -07:00
463e569e57 In /app use the window to scroll to initial read position
There isn't a scrollElementRef in `/app` because there is no
fixed header, so this will scroll the entire document instead.
2022-03-16 12:47:28 -07: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
9e82b1c8a7 Dont fetch labels until we switch to elastic 2022-03-12 21:03:10 -08:00
53c718d7ab Display the correct site name for PDF saved URLs 2022-03-12 17:34:37 -08:00
f9af4ec2d8 Remove unused shareInfo from GQL queries 2022-03-11 13:12:34 -08:00