Commit graph

33 commits

Author SHA1 Message Date
Hongbo Wu
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
Jackson Harper
ab869a79bd Mutate the labels on links when setting them so they are reflected in UI 2022-04-19 15:54:38 -07:00
Jackson Harper
73af8ada81 Allow editing labels from the library view 2022-04-19 11:10:36 -07:00
Jackson Harper
0842aba57c Always display the article actions toolbar on top for PDFs
Because we dont have margin space on PDFs we want to always
display this on top.
2022-04-14 15:56:10 -07:00
Jackson Harper
a5885fe16c Push props down for lineheight, margin width to keep in sync 2022-04-13 20:46:49 -07:00
Jackson Harper
810401946e Use local storage for margins and line spacing since these are per-device preferences 2022-04-13 16:03:07 -07:00
Jackson Harper
4e4dae89d7 Consistent naming on label controls
- Edit Labels: Edit all of a user's labels
- Set Labels: Set the labels assigned to a link
2022-04-13 10:52:00 -07:00
Jackson Harper
86d6d03fe0 Remove default button padding, on Safari this caused extra padding on dropdown triggers 2022-04-13 10:25:01 -07:00
Jackson Harper
92a061b4ba Fix tooltip tags -> labels 2022-04-12 18:10:43 -07:00
Jackson Harper
0d1b05d4fc Rename reader settings 2022-04-12 12:58:04 -07:00
Jackson Harper
54ff7b6d60 Smaller display settings dropdown on small screens. Better shadows 2022-04-12 12:23:56 -07:00
Jackson Harper
4480548e48 Use a modal instead of dropdown on small screens 2022-04-12 12:23:56 -07:00
Jackson Harper
58d6e508bb Set the label modal width to be consistent 2022-04-12 12:23:56 -07:00
Jackson Harper
f0a725b7ef Dont let labels list expand too wide 2022-04-12 12:23:56 -07:00
Jackson Harper
ebe22f3df8 Wrap the button so style isnt changed 2022-04-12 12:23:55 -07:00
Jackson Harper
9a627c225e Add tooltips to article actions 2022-04-12 12:23:55 -07:00
Jackson Harper
0bb2c1d8c6 Refresh labels when edited 2022-04-12 12:23:55 -07:00
Jackson Harper
e2aeff0c6f Use single label type 2022-04-12 12:23:55 -07:00
Jackson Harper
785e3661fc Wire up article actions to have an article instance when hosted in the header 2022-04-12 12:23:55 -07:00
Jackson Harper
de72df9828 Naming, update small screen layout 2022-04-12 12:23:55 -07:00
Jackson Harper
0a4215c57b Handle toggling label state 2022-04-12 12:23:55 -07:00
Jackson Harper
eeea5b7c28 Consistent dropdown layout for article actions
We also offset a little to display the popover in the middle of
the article action button on desktop

Disable autofocus on touch devices so the keyboard doesn't take
up too much space
2022-04-12 12:23:55 -07:00
Jackson Harper
d8e03c0906 Make arrow styles more closely match design 2022-04-12 12:23:55 -07:00
Jackson Harper
f87db8bfad Revert "Test with bottom sheet"
This reverts commit 44faad1172580bf4b7ca85d00f0495f76226dc2d.
2022-04-12 12:23:53 -07:00
Jackson Harper
0d16b32ae7 Test with bottom sheet 2022-04-12 12:23:37 -07:00
Jackson Harper
0b4f223b26 Spacing on top dropdowns 2022-04-12 12:23:08 -07:00
Jackson Harper
a9988d4706 Re-enable top menu on small screens 2022-04-12 12:23:08 -07:00
Jackson Harper
278a885f83 Edit labels menu 2022-04-12 12:23:08 -07:00
Jackson Harper
ba301c4f0f Sliders 2022-04-12 12:23:08 -07:00
Jackson Harper
78129a4a85 WIP: article actoins and reader settings 2022-04-12 12:23:08 -07:00
Jackson Harper
32b08d1112 Disable dots menu Since there are no extra actions yet 2022-04-12 12:23:08 -07:00
Jackson Harper
ce21621927 Use a themed font colour for the article actions buttons 2022-04-12 12:23:08 -07:00
Jackson Harper
136762310d Encapsulate the article actions menu, standardize header height at 48px 2022-04-12 12:23:08 -07:00