Commit Graph

329 Commits

Author SHA1 Message Date
Eike Kettner
46dbdd2625 Fix css when hovering a blue card 2020-11-14 13:42:30 +01:00
Eike Kettner
b98edba9e5 Click on tag in item detail to switch to search 2020-11-14 13:16:35 +01:00
Eike Kettner
fe8c122968 Switch to search by clicking on correspondent/concerned in detail 2020-11-14 12:57:38 +01:00
Eike Kettner
cf578a88d3 Make item detail header a link list 2020-11-14 12:11:04 +01:00
Eike Kettner
e2545de347 Make item-detail and item-light consistent in field naming
This changes the public structure for an "item-light" as returned in
search results. It makes unifying things easier if both names are the
same.
2020-11-14 11:37:50 +01:00
Eike Kettner
23391ef41c Refactor link-target in a separate module 2020-11-14 11:32:19 +01:00
Eike Kettner
4b700fb249 Indicate on a card that multi-select mode is active 2020-11-14 11:03:22 +01:00
Eike Kettner
ee6b54006c Fix reset search for content-only and provide it on top bar 2020-11-14 10:41:20 +01:00
Eike Kettner
795cd8bc80 Set search when clicking on parts of the item card
When user clicks on correspondent etc. on an item card, the search is
set to this value.
2020-11-14 01:45:10 +01:00
Eike Kettner
faf97222ea Make resetting search form more efficient
Instead of reloading the whole menu, only empty the fields.
2020-11-14 01:45:10 +01:00
Eike Kettner
b1d0ae0cc8 Expose clicks on item cards 2020-11-14 01:45:10 +01:00
Eike Kettner
ec5b822e09 Add subject-filter to scan-mailbox-form 2020-11-13 23:15:20 +01:00
Eike Kettner
2f9e0a8214 Use more prominent indication when an item is selected
Downside to this approach is that the item card is not accessible when
selected.
2020-11-13 01:54:19 +01:00
Eike Kettner
8950cc4dc9 Improve item card 2020-11-13 01:18:45 +01:00
mergify[bot]
e5ce1fd45f
Merge pull request #437 from eikek/upload-improvements
Upload improvements
2020-11-12 22:58:08 +00:00
Eike Kettner
75c1c5b7f4 Add tags and file-filter settings to scan-mailbox form 2020-11-12 22:37:37 +01:00
Eike Kettner
04ba14f802 Amend source form with tags and file-filter
Allow to define tags and a file filter per source.
2020-11-12 22:37:28 +01:00
Eike Kettner
ed26fe226b Split item card it several functions 2020-11-10 22:25:25 +01:00
Eike Kettner
976aa75710 Move card size definition in css and fix height bug
For very tall images (sometimes shopping receipts), the height must be
restricted, too.
2020-11-09 21:36:17 +01:00
Eike Kettner
de00b46e5d Move searchbar to the right 2020-11-09 17:12:06 +01:00
Eike Kettner
89646ef3f6 Hide number of pages, if item is only one file with one page 2020-11-09 17:06:44 +01:00
Eike Kettner
7a14b05ea7 Enhance item card displaying current file and number of pages 2020-11-09 17:04:56 +01:00
Eike Kettner
848c245db6 Change the card link to only use the main content
The card is no longer a link itself. The main target is moved to be
the content (the area containing the title and tags). This is in
preparation of upcoming changes: if the whole card is a link, it
cannot contain other links, due to a restriction by html. Later a card
may have more links to provide.
2020-11-09 14:36:58 +01:00
Eike Kettner
67e8994aec Use attachment preview urls
This changes the preview urls to use the concrete attachment ids. This
way browsers have it easier to switch the preview image when the
attachment position is changed.
2020-11-09 14:29:52 +01:00
Eike Kettner
5906c705c9 Allow the user to choose between 3 preview sizes 2020-11-09 09:40:21 +01:00
Eike Kettner
8c8788bc69 Provide fallback image for previews 2020-11-09 09:00:03 +01:00
Eike Kettner
30682fbecc Document the re-generate all previews endpoint 2020-11-09 09:00:03 +01:00
Eike Kettner
f4e50c5229 Provide endpoints to submit tasks to re-generate previews
The scaling factor can be given in the config file. When this changes,
images can be regenerated via POSTing to certain endpoints. It is
possible to regenerate just one attachment preview or all within a
collective.
2020-11-09 09:00:02 +01:00
Eike Kettner
2c96590aad First ui view of preview images for items
Users can choose to not show them via ui settings
2020-11-08 15:12:56 +01:00
Eike Kettner
59dfae6a49 Introduce fomantic-ui, replacing semantic-ui
Replaced semantic-ui with the drop-in replacement fomantic-ui [0]
which is a maintained fork. The fomantic-ui used here is a custom
build [1] of the less-version _without_ google-fonts (css-only). The
javascript part of fomantic-ui is not used, and also jquery could be
dropped now.

[0] https://fomantic-ui.com
[1] https://github.com/eikek/fomantic-slim-default

Issue: #349
2020-11-05 22:44:10 +01:00
Eike Kettner
a965605a9e Improve tag multi-edit 2020-10-31 14:42:17 +01:00
Eike Kettner
6a16d8afc7 Allow to confirm/unconfirm multiple items 2020-10-29 23:15:38 +01:00
Eike Kettner
ab50792879 Change icon for hiding/showing search menu 2020-10-29 23:02:08 +01:00
Eike Kettner
509823404e Try improve search bar/menu switch
Adressing some parts of #395
2020-10-28 21:55:42 +01:00
mergify[bot]
96d7eb5c97
Merge pull request #401 from eikek/fix-replace-cards
Preserve context highlighting from full-text search
2020-10-27 23:57:12 +00:00
Eike Kettner
c6b8355902 Preserve context highlighting from full-text search
When replacing changed cards the fulltext highlighting should be
preserved from the original item.
2020-10-27 22:51:11 +01:00
Eike Kettner
183bcf5bec Add ui-settings flag for side menus 2020-10-27 22:35:52 +01:00
Eike Kettner
83b41b027f Change default position for notes to bottom 2020-10-27 20:43:58 +01:00
Eike Kettner
0f84200118 Indicate saving when changing name for multiple items 2020-10-26 15:32:58 +01:00
Eike Kettner
0eabb7d589 Change tooltip of new select-items button 2020-10-26 14:46:04 +01:00
Eike Kettner
998aad5627 Delete multiple items 2020-10-26 14:46:04 +01:00
Eike Kettner
9193d7ca51 Send multiple items to reprocessing 2020-10-26 14:03:56 +01:00
Eike Kettner
26e89bf84e Edit org/person/equipment of multiple items 2020-10-26 13:35:47 +01:00
Eike Kettner
2e6026b817 Edit dates of multiple items 2020-10-26 13:16:03 +01:00
Eike Kettner
7ade7dd70b Display direction icon when editing multiple items 2020-10-26 12:49:30 +01:00
Eike Kettner
d4043634ac Edit direction of multiple items 2020-10-26 12:48:15 +01:00
Eike Kettner
42c989a6cd Edit folder of multiple items 2020-10-26 12:39:44 +01:00
Eike Kettner
17472fa4ca Edit name of multiple items 2020-10-26 12:17:55 +01:00
Eike Kettner
7ad37c8d26 Editing tags for multiple items 2020-10-26 11:54:04 +01:00
Eike Kettner
5735a47199 Replace changed item cards 2020-10-25 23:08:40 +01:00
Eike Kettner
55cfc4c908 Allow to select multiple items for deletion and edit 2020-10-25 22:19:55 +01:00
Eike Kettner
6ea9193b5e Only scroll to the last visited item when initializing the page
When searching again on that page, scrolling/highlighting should not
happen. It now happens whenever coming to this page (not only when
going back from detail view).

Fixes: #373
2020-10-22 23:33:57 +02:00
Eike Kettner
3e752487e4 Remove unused argument 2020-10-22 23:33:46 +02:00
Eike Kettner
fc5f7c7dca Use previously updated ui settings
Fixes: #368
2020-10-22 00:08:03 +02:00
Eike Kettner
d66ae4fdc2 Display error message properly on modal edit 2020-10-19 00:30:55 +02:00
Eike Kettner
5e0eaf419e Fix browser back button to restore scroll state
Removes the url parameter that was used to identify the card to scroll
to and instead use the id from the internal model.
2020-10-18 21:35:42 +02:00
Eike Kettner
ead2e52253 Show item name in document title 2020-10-18 14:26:18 +02:00
Eike Kettner
fc5035ea8d Use anchor links instead of javascript to go to detail view 2020-10-18 14:09:52 +02:00
Eike Kettner
160fc6627c Reset upload page on init
Fixes: #294
2020-10-03 00:37:27 +02:00
Eike Kettner
87d9e03f1f Submit search when intialising overview page
When coming back from detail with changes to an item, it should update
the view. Otherwise it is confusing to still see a deleted or changed
item.
2020-10-03 00:32:42 +02:00
Eike Kettner
72048b9b34 Drop deferred message if user clicked away 2020-09-26 01:28:34 +02:00
Eike Kettner
284c42aec6 Remove attachment tab menu 2020-09-26 01:15:16 +02:00
Eike Kettner
e831d7bdd7 Move attachment tabs into a menu
If multiple attachments are present, the tab menu doesn't show all. So
if there is more than one attachment they can be selected from a menu.
2020-09-26 01:14:56 +02:00
Eike Kettner
ca05b3c195 Fix initialising pages; improve scroll to item 2020-09-25 22:54:50 +02:00
Eike Kettner
285db78613 Add checkbox to upload page for skipping duplicates 2020-09-23 23:37:00 +02:00
Eike Kettner
02a0343e55 Allow to enable/disable keyboard navigation in user settings 2020-09-22 22:33:21 +02:00
Eike Kettner
5b56ea881c Use Ctrl modifier when navigating in item detail
Otherwise it clashes with input fields
2020-09-22 22:07:27 +02:00
Eike Kettner
60b8dc2134 Navigate items using keyboard
- previous/next item with `.,`
- confirm with `c`
- unconfirm with `u`
2020-09-22 00:27:32 +02:00
Eike Kettner
dc0e05bc20 Navigate in ugly dropdown with keybord
- iterate through options with n,p,j,k
- select with enter
- remove item with esc
- fixes dropdown bug when removing an item, where the menu opens
2020-09-21 23:52:50 +02:00
Eike Kettner
22d70b4997 Allow keyboard navigation in FixedDropdown 2020-09-21 23:27:09 +02:00
Eike Kettner
42a7a003a7 Save name in item detail while typing 2020-09-21 21:12:00 +02:00
Eike Kettner
a5bc6b53a9 Reset hidden fields on confirm
On confirm hidden fields are cleared, so that no "confirmed"
information is attached that the user has never seen.
2020-09-21 14:38:40 +02:00
Eike Kettner
ed1d13e712 Hide folder menu entry if folder field is not active 2020-09-21 14:10:31 +02:00
Eike Kettner
9958d228bd Remove hidden fields from list view 2020-09-21 14:08:13 +02:00
Eike Kettner
57ab050cf7 Remove hidden fields from item details 2020-09-21 13:58:52 +02:00
Eike Kettner
3a3be8cd1e Remove unnecessary scrolling and fix background 2020-09-19 09:30:35 +02:00
Eike Kettner
0f345bb75f Fix footer css on some pages 2020-09-19 09:10:30 +02:00
Eike Kettner
b5f3c64058 Only copy search term when selection changes
This is a fixup for #261
2020-09-18 16:04:57 +02:00
Eike Kettner
f78696b479 Fix manifest.json
For "add to your homescreen" on mobile devices.
2020-09-17 00:02:31 +02:00
Eike Kettner
aeedf58c2b Move field contents when switching search mode in search bar 2020-09-16 22:30:24 +02:00
Eike Kettner
09785292e7 Visually indicate the last viewed item in the list 2020-09-15 23:33:28 +02:00
Eike Kettner
ad110b2a05 Replace js code with proper elm using elm-scroll package 2020-09-14 23:35:21 +02:00
Eike Kettner
3852c69da1 Scroll to the current item when going back from detail
The list view now supports an item id that will be scrolled to and is
highlighted with a shadow. When going back from detail view this is
now used to scroll to the currently viewed item.
2020-09-14 21:57:14 +02:00
Eike Kettner
913bfb611c Remove unused viewmode 2020-09-14 21:57:14 +02:00
Eike Kettner
f65f5eff35 Set client base-url from browser when not given
This is necessary when generating absolute URLs in the webapp (as done
in "Sources" page).
2020-09-13 14:05:20 +02:00
Eike Kettner
06879456a6 Change job priority on queue page 2020-09-05 18:50:58 +02:00
Eike Kettner
1dcccbcf7d Allow to hide classification settings in the webapp 2020-09-05 16:00:19 +02:00
Eike Kettner
f9fcee81a5 Add start-now button for train-classifier task 2020-09-02 21:22:22 +02:00
Eike Kettner
8677eca6d4 Fix setting default in dropdown 2020-09-02 18:28:14 +02:00
Eike Kettner
8c4f2e702b Add classifier settings 2020-09-02 18:28:14 +02:00
Eike Kettner
fdb46da26d Add french language and upgrade stanford-nlp to 4.0.0 2020-08-23 17:48:42 +02:00
Eike Kettner
7921dca665 Fixup for dropdown improvement 2020-08-14 23:37:28 +02:00
Eike Kettner
fde52bbbb0 Make dropdowns searchable by default and improve open/close clicks
Ref #207
2020-08-14 23:04:39 +02:00
Eike Kettner
760dec2230 Rename new route for retrieving used tags 2020-08-13 23:25:30 +02:00
Eike Kettner
57c1144f40 Allow to filter tags/categories in search menu 2020-08-10 13:25:25 +02:00
Eike Kettner
6460315b2b Improve menu shadow 2020-08-09 09:12:28 +02:00
Eike Kettner
e793b63248 Allow to hide fields in menus based on ui settings 2020-08-08 22:51:02 +02:00
Eike Kettner
5810eac899 Fix remembering selection when going to detail view 2020-08-08 17:24:27 +02:00
Eike Kettner
75c958281e Redesign search/landing page 2020-08-08 16:38:52 +02:00
Eike Kettner
000d1aff2b Toggle tags via drag-drop from list view 2020-08-08 15:50:54 +02:00