Commit graph

595 commits

Author SHA1 Message Date
Ferdinand Thiessen
068ab4130f
fix(files): Ensure search query is cleared when changing view or directory
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-04-17 21:22:47 +02:00
fenn-cs
c11ef28193 feat(files): restore unified search filtering in files view
The unified search emits, search events that other apps can subscribe to and
 react however they want to search queries, following
 4b55594f55 and prior updates to migrate the Files
app ui to vue.js that feature was broken.

This commit reintroduces the feature using the current `FileList` implementation.

This commit also adds some logging to an empty exception handler.

Resolve : https://github.com/nextcloud/server/issues/43365

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
(cherry picked from commit 29c37af40c)
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-03-15 12:29:54 +01:00
Eduardo Morales
3d9ed5e469 chore: update logincontroller tests
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 10:30:20 -05:00
Eduardo Morales
8db750f661 fix: login page now correctly shows email LDAP settings
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-03-11 10:30:20 -05:00
Julien Veyssier
b3fc30a077
stop the auto-logout loop after redirecting to the logout
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2024-02-21 10:40:53 +01:00
Ferdinand Thiessen
2d548e6496
fix(theming): The background is the primary color and must not be double inverted
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-07 02:00:40 +01:00
Christopher Ng
6553d91638
fix(user_status): Migrate to NcUserStatusIcon
Signed-off-by: Christopher Ng <chrng8@gmail.com>
(cherry picked from commit f060475189)
2024-02-02 16:08:51 +01:00
Ferdinand Thiessen
ffeecd86cf
enh(UnifiedSearch): Keep the searchbar on top of the modal
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-01 17:21:23 +01:00
Christopher Ng
a3732d5639 fix(a11y): Unified search headings the sequel
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-01-22 11:54:35 -08:00
Ferdinand Thiessen
e20a87bf7f
enh(core): Refactor profile page to use vue components
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-01-20 17:36:03 +01:00
Eduardo Morales
057b8e060b
enh(a11y): improved contrast on user menu
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-01-17 19:36:48 +01:00
Christoph Wurst
a3f05bbda6
fix(a11y): Aria-hide contacts menu icon images
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
2024-01-12 14:16:59 +01:00
Simon L
1152bfcecc fix header-elements being not shown correctly
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-01-11 22:20:57 +00:00
Jérôme Herbinet
a1e30d23a0 Update UserMenu.vue
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>

Update UserMenu.vue

Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>

npm run build

Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>

Revert with a higher max-width value

Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2024-01-11 09:44:23 +00:00
Eduardo Morales
9f8154ff09 enh(core): replaced previous native a element with NcButton
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-01-09 13:43:05 -06:00
Eduardo Morales
47ccd75b4f fix(core): enhanced contrast when UserMenuItem is focused
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
2024-01-09 10:15:35 -06:00
fenn-cs
ada6e3565d Use display name instead of 'me' text.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-26 11:19:25 -06:00
fenn-cs
8b286fbd0e Add authenicated user to person list for search filtering
As expected, a user does not see themselves in their contact list,
 however, when using the contact list for filtering search, a user,
 might want to limit the search to things that pertain to them.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-26 11:19:25 -06:00
fenn-cs
44c689ac1e Unified search: update people select with API calls
On change/input from user which has the effect of filtering,
 we want to send the query to the API to obtained fresh results,
 based on the databased on not just preloaded contacts.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-26 11:19:25 -06:00
fenn-cs
593a2349c1 Rephrase unified search helper text
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-26 11:19:25 -06:00
fenn-cs
525c2b82f6 Rename "global search" to "unified search"
- Changes appearances of "Global search" to "Unified search" in UI
- Refactors code, to remove usage of term "GlobalSearch" in files and code
 structure
- Rename old unified search to `legacy-unified-search`

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-12-22 13:13:03 +00:00
Ferdinand Thiessen
ba336f650b fix: Adjust colors of app menu and dashboard
Those elements are shown directly on the background which has the `color-primary`,
so they need to use `color-primary-text` instead of `color-primary-element-text` for guranteed contrast.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-20 15:16:35 +00:00
Christopher Ng
548e76a5f6 fix(a11y): Unified search headings
Signed-off-by: Christopher Ng <chrng8@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-12-14 17:23:44 +00:00
Ferdinand Thiessen
25512039da
fix(UnifiedSearch): Remove title prop from modal
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-14 12:49:50 +01:00
fenn-cs
050a0bf74d Change global search UI text to unified search
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-07 16:25:15 +01:00
fenn-cs
a728bcde43 Correct semantics for link opening in global search
Following the update of `NcListItem` to allow control over
 where and how passed `hrefs` open, the search result component
 can now make use of these props.

See : https://github.com/nextcloud-libraries/nextcloud-vue/pull/4923

Resolves :  #41800

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-12-06 20:23:52 +00:00
Ferdinand Thiessen
acf619be23
fix: Adjust code to be Vue 2.7 compatible as key on <template> is Vue3 only
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-05 17:55:18 +01:00
Ferdinand Thiessen
6c49c3e936
fix(UnifiedSearch): Move headings out of list elements
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-12-05 17:54:44 +01:00
Ferdinand Thiessen
20de1ec38b
Merge pull request #41932 from nextcloud/backport/41923/stable28
[stable28] fix(core): app icon alignment in app menu
2023-11-30 19:44:13 +01:00
fenn-cs
71d7a99a52
Migrate openResult method to SearchResult component
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>
2023-11-30 18:33:10 +01:00
fenn-cs
47cd940871 Fix date filter wording & improve search feedback
- 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>
2023-11-30 17:15:06 +01:00
fenn-cs
8ec0f24e6f Unbold user names in SearchableList
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-11-30 17:11:02 +01:00
fenn-cs
6fa617026d Improve accesibility for search tags/chips
- Use stand font of filter tags/chips
- No bold
- Use close icon and no close thick

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-11-30 17:11:02 +01:00
fenn-cs
daafc733fa Handle close GlobalSearchModal gracefully
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>
2023-11-30 15:33:08 +00:00
Grigorii K. Shartsev
7c00a0853b fix(core): app icon alignment in app menu
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-11-30 11:30:49 +00:00
fenn-cs
df7a1906e8 Always emit search event
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>
2023-11-30 11:37:25 +01:00
Joas Schilling
32ec76e8d9
Fix more active entry icons
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-11-30 09:15:44 +01:00
Julien Veyssier
7741d5cd8f
fix adding x-requested-with header for relative URLs when the base NC URL is empty
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
2023-11-27 12:16:24 +01:00
julia.kirschenheuter
1b19610704 Remove unneeded links and add focus-visible state on a link
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-11-24 09:45:41 +01:00
Ferdinand Thiessen
076abb661b fix(core): Subscribe to navigation changes on mounted for Unified search
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-11-23 23:39:32 +00:00
fenn-cs
ef73f18bff Focus global search input on open
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>
2023-11-23 19:55:40 +00:00
fenn-cs
660e9639e3 Add app-based filtering to global search
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>
2023-11-23 16:07:40 +00:00
julia.kirschenheuter
ab845405df Replace input form with NcTextField
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-11-22 14:14:56 +01:00
fenn-cs
701e626d18 Move search result section to component & hide thumbnail if error
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>
2023-11-21 13:29:03 +00:00
fenn-cs
8dadb09e54 Round avatars when needed and show url-based mime icons
- 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>
2023-11-21 11:26:22 +01:00
fenn-cs
4964cb838b Improve date-range logic for global search
- 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>
2023-11-21 11:26:22 +01:00
Valdnet
b9473b46ad Correct spelling
Unification of spelling in Transifex.

Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-11-15 19:26:58 +00:00
fenn-cs
987ac1e9c3 Check in-app search availability
Only show in-app serach button if available for specific app
 in question.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-11-14 20:07:42 +00:00
fenn-cs
04f2a19375 Improve no content feedback
Show some feedback when there are no search results.

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-11-14 20:26:58 +01:00
fenn-cs
5a4cc8c98a Global search : Fix basic functional issues
- Fixes remove person filter/chip when applied
- Close person searchable filter via workaround
- Person filter has no effect fixed, now uses user property instead of id
- Left align filters
- Reduce avatar size in user chip and make photo non-clickable

Resolves : https://github.com/nextcloud/server/issues/41381

Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
2023-11-14 20:26:58 +01:00