After moving the `SearchResult` to its own component and leaving
out the openResult method, the search results do not lead anywhere but
but error out.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
- Show loading when actually loading, instead of no content
- Change modified label to `Date` as it applies to a bunch of things.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
The current close infrastructure modifies a prop which has
no real effect aside bugs.
In addition, calling the `NcModal.close()` as the primary way to
close the search modal instead of using the states defined in `GlobalSearch` view
causing re-open bugs (Modal cannot open, needs to click twice, and other weird stuff).
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
For BOD, it's better to always emit the search event so
apps (all of which we don't know) responding to this effect would receive notifications when
the search happens within these apps.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
For better accesibility, the search input in the global search
modal should be focused when the search modal is opened.
Resolves: https://github.com/nextcloud/server/issues/41651
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Emit search queries from the global search modal that would trigger
list filtering in various apps that support it.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
The section that handles the search result list item is big and complex enough
to have it's own component. Inside this component, a new method is added to hide
the thumbnail preview if the image load errors out.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
- Pass `results.rounded` property that comes with search result
data to determine if avatar would be rounded or not.
- Icons loaded via url's now visible.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
- Allow future dates in custom date range
- Fix date ranges for example, before now, today range was roughly
between `now()` to `now() + a few milli seconds`
- Update text in custom date range modal, right align "Search in range"
button.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>