Skip to content

📚 The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

Fixes and new icon

Smaug67399819ba5cc285
diff --git a/frontend/app/pages/dashboard/home.vue b/frontend/app/pages/dashboard/home.vue
index 909e8f23..799b68fd 100644
--- a/frontend/app/pages/dashboard/home.vue
+++ b/frontend/app/pages/dashboard/home.vue
@@ -1,9 +1,9 @@
<template>
<div class="home-container">
- <!-- Header avec salutation et actions rapides -->
+ <!-- Header with greeting and quick actions -->
<header class="home-header">
<div class="greeting">
- <h1>Hey, {{ userName }}</h1>
+ <h1>👋 Hey, {{ userName }}</h1>
<p class="subtitle">{{ todayFormatted }} · {{ documentsCount }} documents · {{ workspacesCount }} workspaces</p>
</div>
<div class="quick-actions">
@@ -11,7 +11,7 @@
</div>
</header>
- <!-- Barre de recherche rapide -->
+ <!-- Quick search bar -->
<div class="search-section">
<div class="search-wrapper" :class="{ focused: isSearchFocused }">
<Icon name="search" class="search-icon" />
@@ -30,7 +30,7 @@
<Transition name="dropdown">
<div v-if="searchResults?.length" class="search-results">
<NuxtLink v-for="result in searchResults" :key="result.id" class="search-result" :to="getNodeLink(result)">
- <Icon :name="getNodeIcon(result)" :class="`result-icon ${getAppColor(result.color as number, true)}`" />
+ <Icon :name="getNodeIcon(result)" :class="`node-icon ${getAppColor(result.color as number, true)}`" />
<div class="result-content">
<span class="result-name">{{ result.name }}</span>
<span class="result-path">{{ getNodePath(result) }}</span>
@@ -41,10 +41,10 @@
</Transition>
</div>
- <!-- Section "Continuer à travailler" -->
+ <!-- Section "Continue Working" -->
<section v-if="recentlyEdited.length" class="section">
<div class="section-header">
- <h2><Icon name="layers" />Continue Working</h2>
+ <h2><Icon name="work" />Continue Working</h2>
<NuxtLink to="/dashboard/docs" class="see-all">See all</NuxtLink>
</div>
<div class="continue-working">
@@ -67,20 +67,20 @@
</div>
</section>
- <!-- Section documents épinglés -->
+ <!-- Section Pinned Documents -->
<section v-if="pinnedDocuments.length" class="section">
<div class="section-header">
<h2><Icon name="pin" /> Pinned Documents</h2>
</div>
<div class="pinned-grid">
<NuxtLink v-for="doc in pinnedDocuments" :key="doc.id" :to="`/dashboard/docs/${doc.id}`" class="pinned-card">
- <Icon :name="getNodeIcon(doc)" :class="`pinned-icon ${getAppColor(doc.color || getCategory(doc.parent_id)?.color as number, true)}`" />
+ <Icon :name="getNodeIcon(doc)" :class="`node-icon ${getAppColor(doc.color || getCategory(doc.parent_id)?.color as number, true)}`" />
<span class="pinned-name">{{ doc.name }}</span>
</NuxtLink>
</div>
</section>
- <!-- Section Workspaces -->
+ <!-- Workspaces Section -->
<section class="section">
<div class="section-header">
<h2><Icon name="workspace" /> Your Workspaces</h2>
@@ -114,7 +114,7 @@
</div>
</section>
- <!-- Section activité récente -->
+ <!-- Recent Activity Section -->
<section class="section">
<div class="section-header">
<h2><Icon name="recent" /> Recent Activity</h2>
@@ -124,7 +124,11 @@
<div class="activity-date">{{ date }}</div>
<div class="activity-items">
<NuxtLink v-for="item in group" :key="item.id" :to="getNodeLink(item)" class="activity-item">
- <Icon :name="getNodeIcon(item)" display="md" :class="`activity-icon ${getAppColor(item.color as number, true)}`" />
+ <Icon
+ :name="getNodeIcon(item)"
+ display="md"
+ :class="`activity-icon ${getAppColor(item.color || getCategory(item.parent_id)?.color as number, true)}`"
+ />
<div class="activity-content">
<span class="activity-name">{{ item.name }}</span>
<span class="activity-time">{{ formatTime(item.updated_timestamp) }}</span>
@@ -175,7 +179,6 @@
<script setup lang="ts">
import type { Node } from '~/stores';
import CreateCategoryModal from '~/pages/dashboard/categories/_modals/CreateCategoryModal.vue';
-import type AppButtonVue from '~/components/AppButton.vue';
const router = useRouter();
const nodesStore = useNodesStore();
@@ -289,9 +292,9 @@ const getNodeLink = (node: Node) => {
const getNodeType = (node: Node) => {
if (node.role === 1) return 'Workspace';
- if (node.role === 2) return 'Catégorie';
+ if (node.role === 2) return 'Category';
if (node.role === 3) return 'Document';
- if (node.role === 4) return 'Ressource';
+ if (node.role === 4) return 'Resource';
return '';
};
@@ -329,8 +332,8 @@ const formatDateLabel = (timestamp: number) => {
const yesterday = new Date(today);
yesterday.setDate(yesterday.getDate() - 1);
- if (date.toDateString() === today.toDateString()) return "Aujourd'hui";
- if (date.toDateString() === yesterday.toDateString()) return 'Hier';
+ if (date.toDateString() === today.toDateString()) return 'Today';
+ if (date.toDateString() === yesterday.toDateString()) return 'Yesterday';
return date.toLocaleDateString(locale, { weekday: 'long', day: 'numeric', month: 'long' });
};
@@ -465,6 +468,7 @@ const openCreateWorkspace = () => useModal().add(new Modal(shallowRef(CreateCate
top: calc(100% + 8px);
left: 0;
right: 0;
+ padding: 2px;
background: var(--bg-color);
border: 1px solid var(--border-color);
border-radius: 12px;
@@ -482,7 +486,7 @@ const openCreateWorkspace = () => useModal().add(new Modal(shallowRef(CreateCate
text-decoration: none;
color: var(--font-color);
transition: background 0.15s;
-
+ border-radius: 8px;
&:hover {
background: var(--bg-contrast);
}
@@ -496,11 +500,6 @@ const openCreateWorkspace = () => useModal().add(new Modal(shallowRef(CreateCate
}
}
-.result-icon {
- padding: 0.4rem;
- border-radius: 6px;
-}
-
.result-content {
flex: 1;
min-width: 0;
@@ -544,7 +543,7 @@ const openCreateWorkspace = () => useModal().add(new Modal(shallowRef(CreateCate
align-items: center;
gap: 0.5rem;
font-size: 1.1rem;
- font-weight: 600;
+ flex: 1;
}
}
@@ -659,11 +658,6 @@ const openCreateWorkspace = () => useModal().add(new Modal(shallowRef(CreateCate
}
}
-.pinned-icon {
- padding: 0.3rem;
- border-radius: 4px;
-}
-
.pinned-name {
font-size: 0.9rem;
font-weight: 500;
diff --git a/frontend/public/app-icons/work.svg b/frontend/public/app-icons/work.svg
new file mode 100644
index 00000000..5875caf4
--- /dev/null
+++ b/frontend/public/app-icons/work.svg
@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 -960 960 960"><path d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h168q13-36 43.5-58t68.5-22q38 0 68.5 22t43.5 58h168q33 0 56.5 23.5T840-760v560q0 33-23.5 56.5T760-120H200Zm0-80h560v-560H200v560Zm80-80h280v-80H280v80Zm0-160h400v-80H280v80Zm0-160h400v-80H280v80Zm200-190q13 0 21.5-8.5T510-820q0-13-8.5-21.5T480-850q-13 0-21.5 8.5T450-820q0 13 8.5 21.5T480-790ZM200-200v-560 560Z"/></svg>
\ No newline at end of file