Files
Jonathan Adelineandpeter_baserow a8bf3b73ae feat: redesign app sidebar (#6798)
* feat: redesign sidebar workspace navigation

* feat: redesign the sidebar footer and account menu

Match the account menu to the sidebar prototype and reuse the admin
navigation in a submenu. Keep Add new above the footer while the
application list scrolls.

* fix: show the sortable indicator only when dragging

* feat: refine workspace sidebar application navigation

* feat: reorganize workspace sidebar shortcuts

* fix: isolate workspace sidebar menus and actions

* fix: cancel sortable drops on hidden lists

* fix(enterprise): allow retrying Direct support

* feat: simplify the workspace overview header

* fix: prevent horizontal overflow around the sidebar

Constrain animated tree groups to the width of the sidebar so long labels truncate. On narrow screens, let the sidebar expand over the content instead of reducing the usable page width.

* fix: fit workspace cards and creation menus on mobile

* test: keep the current table selected after reload

* fix: undo and redo edits across expanded sidebar applications

* fix: keep sidebar groups out of the tab order

* fix: highlight the active database in the tables tour

* feat: label workspace integrations in the settings menu

* fix: keep the workspace sidebar and guided tour usable on phones

* fix: undo sidebar row imports in the destination database

* fix: keep the guided tour highlight on the current step

* fix: show an empty state in the workspace picker

* fix: confirm workspace deletion before moving it to trash

* feat: open registered workspace settings tabs from the sidebar

* fix: keep the sidebar logo the same size across workspaces

---------

Co-authored-by: peter_baserow <peter@baserow.io>
2026-11-23 20:42:20 +04:00

73 lines
2.0 KiB
Vue

<template>
<div class="sidebar__section sidebar__section--scrollable">
<div class="sidebar__section-scrollable" tabindex="-1">
<div class="sidebar__section-scrollable-inner">
<ul class="tree">
<template
v-for="(category, index) in groupedSortedAdminTypes"
:key="category.name"
>
<li
v-if="showSectionSeparators && index > 0"
class="tree__separator"
aria-hidden="true"
></li>
<li
class="tree__heading"
:class="{ 'margin-top-2': index > 0 && !showSectionSeparators }"
>
{{ category.name }}
</li>
<SidebarAdminItem
v-for="adminType in category.items"
:key="adminType.type"
:admin-type="adminType"
@activate="$emit('activate')"
/>
</template>
</ul>
</div>
</div>
</div>
</template>
<script>
import SidebarAdminItem from '@baserow/modules/core/components/sidebar/SidebarAdminItem.vue'
export default {
name: 'SidebarAdmin',
components: { SidebarAdminItem },
props: {
showSectionSeparators: {
type: Boolean,
default: false,
},
},
emits: ['activate'],
computed: {
adminTypes() {
return this.$registry.getAll('admin')
},
sortedAdminTypes() {
return Object.values(this.adminTypes)
.filter((adminType) => adminType.isVisible())
.slice()
.sort((a, b) => a.getOrder() - b.getOrder())
},
groupedSortedAdminTypes() {
const categories = []
this.sortedAdminTypes.forEach((adminType) => {
const categoryName = adminType.getCategory()
let category = categories.find((c) => c.name === categoryName)
if (!category) {
category = { name: categoryName, items: [] }
categories.push(category)
}
category.items.push(adminType)
})
return categories
},
},
}
</script>