Commit Graph

415 Commits

Author SHA1 Message Date
Eike Kettner
dd935454c9 First version of new ui based on tailwind
This drops fomantic-ui as css toolkit and introduces tailwindcss. With
tailwind there are no predefined components, but it's very easy to
create those. So customizing the look&feel is much simpler, most of
the time no additional css is needed.

This requires a complete rewrite of the markup + styles. Luckily all
logic can be kept as is. The now old ui is not removed, it is still
available by using a request header `Docspell-Ui` with a value of `1`
for the old ui and `2` for the new ui.

Another addition is "dev mode", where docspell serves assets with a
no-cache header, to disable browser caching. This makes developing a
lot easier.
2021-02-14 01:46:13 +01:00
Eike Kettner
442b76c5af Setup tailwind with docspell build 2021-02-03 21:35:15 +01:00
Eike Kettner
96612e0e59 Refactor scan mailbox form and add flag for post-processing
Mails are filtered once by using an imap search and then by some globs
to filter files and subjects. Imap can search by subject via a
string-contains, but not via globs or patterns (afaik). The subject
filter is applied to all downloaded mail headers. Now for post
processing (moving to some target folder or deleting), it can be
chosen to post-process all "seen" mails or only those that matched all
filters.
2021-01-24 01:46:31 +01:00
Eike Kettner
4cba96f390 Always return classifier results as suggestion
The classifier results are spliced into the suggestion list at second
place. When linking they are only used if nlp didn't find anything.
2021-01-21 21:05:28 +01:00
Eike Kettner
5d366c3bd6 Make labels in classifier settings more clear 2021-01-20 01:05:59 +01:00
Eike Kettner
a6f29153c4 Control what tag categories to use for auto-tagging 2021-01-19 01:20:13 +01:00
Eike Kettner
249f9e6e2a Extend guessing tags to all tag categories 2021-01-18 21:51:45 +01:00
Eike Kettner
3f75af0807 Add 9 more lanugages to the list of document lanugages 2021-01-18 17:41:40 +01:00
Eike Kettner
26dff18ae0 Add spanish as an example
Adding a new language without nlp requires now only to fill out the
pieces:

- define a list of month names to support date recognition
- add it to joex' dockerfile to be available for tesseract
- update the solr migration/field definitions
- update the elm file so it shows up on the client
2021-01-18 17:41:40 +01:00
Eike Kettner
f01646aeb5 Reorganize nlp pipeline and add nlp-unsupported language italian
Improves and reorganizes how nlp pipelines are setup. Now users can
choose from many options, depending on their hardware and usage
scenario.

This is the base to use more languages without depending on what
stanford-nlp supports. Support then is involves to text extraction and
simple regex-ner processing.
2021-01-18 17:41:40 +01:00
Eike Kettner
38ae7a9027 Make source a quick link on card and detail 2021-01-11 21:37:36 +01:00
Eike Kettner
33458766fe Correcty reset search menu when clicking on custom-field quick link 2021-01-11 14:03:23 +01:00
Eike Kettner
7beda302b2 Fix and improve tag search menu
Show also "empty tags", where the count is 0. Before only tags with a
count > 0 were displayed. When searching this is fine, but when using
drag&drop to attach tags to items, it is good to see all. They can be
hidden via a button.

The tags are now ordered by their count descending, but regarding to
the overall count – not the current view. Otherwise the tags are
reordered when clicking on them, which is confusing. Also it then
shows the "more important" (most used) tags first, even when the
result is a subset.

A fix was made related to updating the menu. When coming back from
the detail view where a tag with prior count=0 was associated, the
menu didn't show it, because it relied on a previous state, where this
tag were not included.
2021-01-11 13:01:38 +01:00
Eike Kettner
cbca4d234f Fix scrolling to card
That was broken due to the independent scroll in commit #bcb1b8.
2021-01-09 02:00:01 +01:00
Eike Kettner
cef1c38cc4 Restrict height of job output 2021-01-09 01:49:55 +01:00
Eike Kettner
0abd7dea10 Fix scrolling to top in detail view 2021-01-09 01:16:59 +01:00
Eike Kettner
c0d7aba5d5 Improve selecting attachments of an item
Use a list of small thumbnails instead of just names.

Closes: #396
2021-01-09 01:16:59 +01:00
Eike Kettner
9bc2084499 Allow to click on custom fields in detail view
Closes: #514
2021-01-09 01:16:59 +01:00
Eike Kettner
48d182667d Harmonize login and register page 2021-01-09 01:16:59 +01:00
Eike Kettner
752c8f9be2 Show new-invite as normal page 2021-01-09 01:16:59 +01:00
Eike Kettner
bcb1b87fc0 Enable independent scrolling of search menu and list
Fixes some other minor css issues.

Closes: #541
2021-01-09 01:16:59 +01:00
Eike Kettner
3c12e3678f Allow to search for * in custom date fields
This requires to pass the raw input through to the caller.

Closes: #550
2021-01-09 01:16:59 +01:00
Bo Jeanes
14dacaa837
Fix typo 2021-01-09 10:41:53 +11:00
Eike Kettner
30df887934 Sort custom field options in dropdown 2021-01-05 18:04:54 +01:00
Eike Kettner
0cfd8974d3 Add a flag to imap settings to enable/disable oauth2 scheme 2021-01-04 11:03:04 +01:00
Eike Kettner
40b093ae72 Fix selecting imap connection in scan mailbox settings
Issue: #524
2021-01-03 10:31:36 +01:00
Eike Kettner
2b8ef3c2f7 Allow to hide search stats in user settings 2021-01-02 10:20:18 +01:00
Eike Kettner
ae57881f2d Sort custom fields in views 2021-01-02 10:09:05 +01:00
Eike Kettner
70983f115c Fix custom field summary table for mobile view 2021-01-02 09:55:12 +01:00
Eike Kettner
4ec133b0b9 Remove unused imports 2020-12-17 23:06:58 +01:00
Eike Kettner
69f57d1eb1 Replace empty hrefs with a href # 2020-12-17 21:15:33 +01:00
Eike Kettner
c9d4e8ec46 Fix selecting items in multi-edit mode
For some to me unknown reason, changing the dom slightly (removing
hidden elements), resulted in a different event dispatching. The cards
while being attached to an event would reload the page as if the event
is propagated. This happned by commit #8d7b3c7d in Home/View.elm.
Adding the hidden nodes back into the dom, "fixed" it.

This change now gives a better fix in assuring that every anchor has
either a sensible `href` or an event and a `href #`.
2020-12-17 21:02:23 +01:00
Eike Kettner
6346bf6a34 Add summary for fulltext searches 2020-12-17 00:11:33 +01:00
Eike Kettner
8d7b3c7d74 Show custom field summary above results 2020-12-16 22:06:34 +01:00
Eike Kettner
b66738b4c3 Add folder count to search menu 2020-12-16 19:20:30 +01:00
Eike Kettner
a995ea8729 Update tag counts in search menu 2020-12-16 00:56:12 +01:00
Eike Kettner
b338f18e98 Remove redundant fileCount from search result 2020-12-15 21:03:46 +01:00
Eike Kettner
a987ede7c9 Avoid server roundtrip when switching pages
When changing pages in webui a server request should not happen. This
makes the webapp snappy again.

Issue: #508
2020-12-15 20:22:12 +01:00
Eike Kettner
7e42426edc Fix page routing with remember me 2020-12-11 01:16:57 +01:00
Eike Kettner
c00714ab61 Don't redirect to login for open pages 2020-12-08 21:12:09 +01:00
Eike Kettner
f55566388a Fix endless reload of login page 2020-12-06 00:58:15 +01:00
Eike Kettner
66bd4f53cb Fix person-org relation info 2020-12-05 22:44:19 +01:00
Eike Kettner
2aed7ba142 Simplify search bar and search menu
The functionality of the search bar is now in the search menu, too.
The search menu shows one input field for "textual search", which is
either the fulltext search (if enabled) or a basic search in various
names.
2020-12-05 22:38:27 +01:00
Eike Kettner
0b6f965fcb Fix rememberme for missing local storage 2020-12-04 22:57:21 +01:00
Eike Kettner
c10c1fad72 Prepare remember-me authentication variant 2020-12-04 17:59:25 +01:00
Eike Kettner
d4470ab5fd Restrict person dropdown options to the associated organization 2020-12-01 23:39:45 +01:00
Eike Kettner
a6dd71af9f Set an organization to a person in webapp 2020-12-01 23:39:45 +01:00
Eike Kettner
2e28c8e57b Harmonize table views 2020-12-01 23:39:45 +01:00
Eike Kettner
346d23928d Allow to search in source names in webui 2020-11-30 14:26:10 +01:00
Eike Kettner
bdc49aae98 Let user change template for card title and subtitle 2020-11-29 23:36:25 +01:00
Eike Kettner
81a136d915 Use a template for rendering title and subtitle of the item card
Introduces `ItemTemplate` to conveniently create strings given an
item.
2020-11-29 23:36:20 +01:00
mergify[bot]
7ee69f7a57
Merge pull request #481 from eikek/reload-fix
Reload fix
2020-11-28 01:23:26 +00:00
Eike Kettner
75055ba34b Fix help link menu item 2020-11-28 01:48:58 +01:00
Eike Kettner
7052bc6b8e Add cc and bcc to item mail 2020-11-28 01:36:59 +01:00
Eike Kettner
d62c4a5a72 Fix updating search view
For example, when content-search was activated the view was not
correctly updated after deleting or drag-and-drop.
2020-11-28 00:51:16 +01:00
Eike Kettner
32c9113bd4 Remove unused code 2020-11-28 00:00:10 +01:00
Eike Kettner
1091a4fbdc Show concerning/correspond person exclusively in dropdowns
Now a person that is not marked as "concerning only" is treated as
"correspondent only". The options of all dropdown fields are now
restricted to those subsets.

Issue: #332
2020-11-27 23:13:37 +01:00
Eike Kettner
7cc290135a Show currently logged in user
Closes: #329
2020-11-26 23:53:55 +01:00
Eike Kettner
c87163052b Allow to choose from existing tag categories
Also fixes a ui problem with a too long dropdown menu in the small
modal popup when adding tags or custom fields in item detail view.

Issue: #331
2020-11-26 23:53:50 +01:00
Eike Kettner
41b26fbbd6 Don't hide field dropdown when no fields are defined 2020-11-24 23:38:22 +01:00
Eike Kettner
c389c8fe66 Change field-type into field-format in ui 2020-11-24 21:44:27 +01:00
mergify[bot]
436022ceee
Merge pull request #466 from eikek/wildcard-number-search
Allow to search with wildcard in a number custom field
2020-11-24 00:32:02 +00:00
Eike Kettner
c1c92f0932 Add language to upload page 2020-11-23 21:12:45 +01:00
Eike Kettner
2384af1347 Fix centering dropzone title 2020-11-23 21:12:33 +01:00
Eike Kettner
7fee52f6f2 Add language to scan-mailbox-form 2020-11-23 21:00:19 +01:00
Eike Kettner
29a5419072 Allow to search with wildcard in a number custom field 2020-11-23 13:44:49 +01:00
Eike Kettner
1ef035f061 Fix hiding tags/fields when corresponding setting exists 2020-11-23 11:20:59 +01:00
Eike Kettner
473985c80e Filter empty custom field values in webui 2020-11-23 10:47:45 +01:00
Eike Kettner
f8c6d183ed Don't scroll in preview image 2020-11-23 10:30:24 +01:00
Eike Kettner
6d22bac720 Display custom field values on item card 2020-11-23 10:23:37 +01:00
Eike Kettner
44459aecd0 Fix initialising date fields 2020-11-23 09:43:12 +01:00
Eike Kettner
cdcc8210fe Throttle customfield update requests 2020-11-23 09:27:05 +01:00
Eike Kettner
7026852123 Indicate saving custom field values 2020-11-23 00:16:50 +01:00
Eike Kettner
bcdb2fc0fe Show custom field values in item detail header 2020-11-22 23:14:51 +01:00
Eike Kettner
a2e0c23644 Amend search form for custom fields 2020-11-22 21:41:09 +01:00
Eike Kettner
23b343649c Fix and enhance custom-multi-input field 2020-11-22 21:41:09 +01:00
Eike Kettner
c5ab663091 Allow a comma and a point for money values 2020-11-22 21:41:09 +01:00
Eike Kettner
bb19e02c66 Ui improvements
- don't show custom fields in edit menu if there are none. This
reduces load of ui elements. The first custom field must be created in
manage-data page.

- Add more validation to the money type
2020-11-22 21:41:09 +01:00
Eike Kettner
ff30ed5558 Add custom fields to multi-edit form 2020-11-22 21:41:09 +01:00
Eike Kettner
76647d132f Show custom field values in detail view 2020-11-22 21:41:09 +01:00
Eike Kettner
1ee36cef8f Add fields when clicking in the dropdown
Remove the additional button
2020-11-22 21:41:09 +01:00
Eike Kettner
cc6db61a3a Allow to create fields when editing items 2020-11-22 21:41:09 +01:00
Eike Kettner
4059ef31c1 Allow providing values for custom fields in item detail 2020-11-22 21:41:09 +01:00
Eike Kettner
e90f65f941 Manage custom fields in webui 2020-11-22 21:41:09 +01:00
Eike Kettner
f8634a5098 Use js pdf renderer for file view when settings tell so 2020-11-15 01:13:13 +01:00
Eike Kettner
063c9895dd Fix table layout and notification form
The styling is broken if th elements are outside a tr. The
notification form had the same problem as the scan-mailbox form
reported in #382
2020-11-15 00:09:29 +01:00
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