-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior to this change, the recent spaces menu performances offers a bad UX since it takes a lot of time and didn't display loading effect. This change will add a loading effect and a placeholder when empty spaces are retrieved even while searching. In addition, the backend services was taking lot of time to compute unread activities per space. To fix the performances issue, the query has been modified to make sure that the unread activities retrieval is more performant. In addition, the eTag computing has been improved to rely on REST input queries, cache time of results and spaces list order. This will ensure to not having to compute unread flags each time the last visited spaces list are updated.
- Loading branch information
Showing
11 changed files
with
171 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
58 changes: 58 additions & 0 deletions
58
...rc/main/webapp/vue-apps/hamburger-menu/components/recent-spaces/SpacesNavigationEmpty.vue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<!-- | ||
This file is part of the Meeds project (https://meeds.io/). | ||
Copyright (C) 2020 - 2023 Meeds Association [email protected] | ||
This program is free software; you can redistribute it and/or | ||
modify it under the terms of the GNU Lesser General Public | ||
License as published by the Free Software Foundation; either | ||
version 3 of the License, or (at your option) any later version. | ||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
Lesser General Public License for more details. | ||
You should have received a copy of the GNU Lesser General Public License | ||
along with this program; if not, write to the Free Software Foundation, | ||
Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
--> | ||
<template> | ||
<div class="d-flex flex-column align-center justify-center"> | ||
<v-icon size="36">fa-people-arrows</v-icon> | ||
<div class="my-6"> | ||
{{ $t('menu.spaces.noSpacesFound') }} | ||
</div> | ||
<template v-if="!keyword"> | ||
<div v-if="$root.canAddSpaces"> | ||
{{ $t('menu.spaces.joinOrCreateSpace') }} | ||
</div> | ||
<div v-else> | ||
{{ $t('menu.spaces.joinSpace') }} | ||
</div> | ||
</template> | ||
<v-btn | ||
:href="spacesLink" | ||
:title="$t('menu.spaces.exploreSpaces')" | ||
:class="keyword && 'mb-6' || 'my-6'" | ||
class="btn primary"> | ||
<span class="text-none"> | ||
{{ $t('menu.spaces.exploreSpaces') }} | ||
</span> | ||
</v-btn> | ||
</div> | ||
</template> | ||
<script> | ||
export default { | ||
props: { | ||
keyword: { | ||
type: String, | ||
default: null, | ||
}, | ||
}, | ||
data: () => ({ | ||
spacesLink: `${eXo.env.portal.context}/${eXo.env.portal.defaultPortal}/spaces`, | ||
}), | ||
}; | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters