Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
28b55c8
fix(tasks): always show the tag filter button, even with zero tags
MisterPapaye Sep 18, 2026
7bda4d9
fix(agenda): clicking an event created a new one instead of opening it
MisterPapaye Sep 18, 2026
2b020dc
fix(agenda): crash on click after previous fix exposed a latent .stop…
MisterPapaye Sep 18, 2026
b049a01
fix(ui): raise ConfirmDelete above everything that can open it
MisterPapaye Sep 18, 2026
370ab3e
feat(agenda): integrate the event panel — real backdrop, click-outsid…
MisterPapaye Sep 18, 2026
969cd39
feat(ui): reveal the app with a fade+scale after session unlock
Sep 18, 2026
c944cc8
fix(ui): actually animate the PIN unlock screen's first appearance
MisterPapaye Sep 18, 2026
a06fd71
fix(ui): switch the unlock-screen reveal to a plain CSS animation
MisterPapaye Sep 18, 2026
f13565b
feat(ui): extend the post-unlock reveal down to the org home dashboard
MisterPapaye Sep 18, 2026
780fc3c
feat(ui): reveal SpaceBar and UsersBar content after their loading sk…
MisterPapaye Sep 18, 2026
67e42ec
fix(ui): give SpaceBar its own more distinct slide-in reveal
MisterPapaye Sep 18, 2026
21a63a3
feat(ui): reveal UserCard's avatar/name after their loading skeleton
MisterPapaye Sep 18, 2026
06b699f
fix(ui): make the post-unlock reveal mobile-aware, land on Home content
MisterPapaye Sep 18, 2026
bd77fe2
fix(mobile): stop SpaceBar/ThreadsBar/UsersBar flashing after unlock
MisterPapaye Sep 18, 2026
211dcf5
feat(ui): wave the greeting emoji on Home
MisterPapaye Sep 18, 2026
873b8e3
feat(home): highlight newly assigned or updated tasks on the dashboard
MisterPapaye Sep 18, 2026
84a6d1f
feat(home): reuse the task-manager card style for the Tâches widget
MisterPapaye Sep 18, 2026
53287dd
feat(tasks): highlight the task in the manager when opened from Home
MisterPapaye Sep 18, 2026
cd667df
feat(tasks): rebuild "Mes Tâches" as a real cross-space dashboard
MisterPapaye Sep 18, 2026
9823dd9
fix(tasks): space icon in the filter dropdown, full-height Kanban board
MisterPapaye Sep 18, 2026
0443c7c
fix(tasks): align "Mes Tâches" archiving with TasksSpace.vue's pattern
MisterPapaye Sep 18, 2026
d5179ee
feat(ui): add a progress bar to the app's first load
MisterPapaye Sep 18, 2026
8544a8e
fix(ui): boot progress bar layout + smoother fill during loading
MisterPapaye Sep 18, 2026
583b4d6
fix(ui): stop the loader icon from remounting mid-boot
MisterPapaye Sep 18, 2026
e99ee63
fix(home): let the messages/agenda/tasks dashboard cards grow taller
MisterPapaye Sep 18, 2026
fd25682
fix(app): stop reshowing the full boot splash after PIN unlock
MisterPapaye Sep 18, 2026
563c4de
perf(app): preload the PIN screen's banner image
MisterPapaye Sep 18, 2026
5819e5a
fix(mobile): logo missing in the Capacitor Android build
MisterPapaye Sep 18, 2026
b0cd94f
fix(threads): render webhook messages as the bot, not their creator
MisterPapaye Sep 18, 2026
7eefcc1
feat(emoji): show reactor names on hover, add recent emojis to picker
MisterPapaye Sep 18, 2026
3c332d5
feat(files): view and edit markdown files in the file manager
MisterPapaye Sep 18, 2026
0dab5e0
feat(e2ee): encrypt DM attachments end-to-end, keep E2EE on file edit
MisterPapaye Sep 18, 2026
ca36913
fix(e2ee): workspace key generation always failed for every member
MisterPapaye Sep 18, 2026
3c0ed26
fix(tasks): popup wasn't showing attachments at all
MisterPapaye Sep 18, 2026
5b232f0
fix(tasks): clicking an attachment thumbnail deleted it instead of op…
MisterPapaye Sep 18, 2026
17581c8
fix(ui): FileViewer opened from a task popup rendered behind it
MisterPapaye Sep 18, 2026
d571522
feat(permissions): mirror VOICE_MUTE_OTHERS and VOICE_DISCONNECT keys
MisterPapaye Sep 18, 2026
3854f84
feat(voice): per-participant volume, device switching, video quality,…
MisterPapaye Sep 18, 2026
11d76e3
feat(voice): add localStorage-backed device/quality preferences helper
MisterPapaye Sep 18, 2026
a1f2a0b
feat(voice): add participant moderation menu and device settings modal
MisterPapaye Sep 18, 2026
580106d
feat(voice): wire settings modal and participant context menu into Vo…
MisterPapaye Sep 18, 2026
ec5568d
feat(voice): apply saved device/quality prefs on join and on enable
MisterPapaye Sep 18, 2026
0d72c94
fix(voice): add @reference directive for @apply in VoiceSettingsModal…
MisterPapaye Sep 18, 2026
5928049
fix(voice): fix right-click menu on voice participant tiles
MisterPapaye Sep 18, 2026
84e3b5b
feat(voice): square split-buttons with inline device dropdowns in Cal…
MisterPapaye Sep 18, 2026
b500d8f
fix(voice): adaptive screen share simulcast + explain missing speaker…
MisterPapaye Sep 18, 2026
60aa314
fix(voice): replace flex-wrap participant layout with a real CSS grid
MisterPapaye Sep 18, 2026
989bf81
feat(voice): make sidebar voice participant list interactive
MisterPapaye Sep 18, 2026
dff0cc8
fix(voice): fetch moderation permissions on mount, not just on join
MisterPapaye Sep 18, 2026
a7162f7
feat(dm): add "Nouveaux messages" unread separator to DM conversations
MisterPapaye Sep 18, 2026
1090bff
fix(build): resolve vue-tsc build errors
MisterPapaye Sep 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 40 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@

<link rel="icon" type="image/x-icon" href="/favicon.ico" />

<!-- Précharge la bannière du formulaire PIN (App.vue) : sans ça elle ne
commence à charger qu'au montage de ce formulaire, bien après le
premier rendu, et apparaît visiblement après coup. -->
<link rel="preload" as="image" href="/banner.svg" />

<meta http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self' 'unsafe-eval' 'wasm-unsafe-eval' http://localhost:* https://localhost:* __DEV_LAN_ORIGIN__; style-src 'self' 'unsafe-inline'; worker-src 'self' blob:; connect-src 'self' blob: tauri: tauri://localhost http://tauri.localhost http://localhost:5174 http://127.0.0.1:5174 http://ipc.localhost https://api.synco.one ws://api.synco.one wss://api.synco.one ws://api.synco.one:9001 wss://api.synco.one:9001 https://auth.silvercore.fr https://livekit.silvercore.fr wss://livekit.silvercore.fr http://localhost:* https://localhost:* ws://localhost:* wss://localhost:* __DEV_LAN_ORIGIN__ https://huggingface.co https://*.huggingface.co https://cdn.jsdelivr.net https://raw.githubusercontent.com https://cas-bridge.xethub.hf.co https://*.cdn.hf.co; img-src 'self' data: blob: https://ui-avatars.com https://avatars.githubusercontent.com http://localhost:* https://localhost:* __DEV_LAN_ORIGIN__ https://api.synco.one; frame-src 'self' blob: http://localhost:* https://localhost:* __DEV_LAN_ORIGIN__ https://api.synco.one https://auth.silvercore.fr;">
<title>Synco.</title>
Expand Down Expand Up @@ -61,11 +66,39 @@
@keyframes shine {
0% { transform: translateX(-150%) skewX(-20deg); }
30% { transform: translateX(150%) skewX(-20deg); }

31% { transform: translateX(-150%) skewX(-20deg); }
100% { transform: translateX(-150%) skewX(-20deg); }
}

/* Barre indéterminée : ce loader statique disparaît avant que
App.vue connaisse une vraie progression (health check, Keycloak...),
donc pas de largeur pilotée ici — juste de quoi rester visuellement
cohérent avec la barre déterminée du LogoLoader.vue qui prend le
relais (même dimensions/couleur). */
#boot-progress-track {
width: 10rem;
height: 0.25rem;
border-radius: 999px;
background-color: rgba(255, 255, 255, 0.1);
overflow: hidden;
margin-top: 1.5rem;
}

#boot-progress-bar {
height: 100%;
width: 33%;
border-radius: 999px;
background-color: #16ac77;
animation: boot-progress-indeterminate 1.4s ease-in-out infinite;
}

@keyframes boot-progress-indeterminate {
0% { transform: translateX(-100%); }
50% { transform: translateX(300%); }
100% { transform: translateX(300%); }
}

</style>

<body>
Expand Down Expand Up @@ -104,12 +137,16 @@
">

<img
src="/favicon.ico"
src="/assets/logo/synco/favicon_synco.svg"
alt="Logo"
style="height: 80px; z-index: 10; position: relative;"
/>
<div class="shimmer" />
<div class="shimmer"></div>

</div>

<div id="boot-progress-track">
<div id="boot-progress-bar"></div>
</div>

</div>
Expand Down
185 changes: 117 additions & 68 deletions src/App.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script setup lang="ts">

import Loader from './components/LogoLoader.vue';
import SpinLoader from './components/SpinLoader.vue';
//import { computed, onMounted, onUnmounted, ref, watch } from 'vue';
import { computed, nextTick, onMounted, ref, watch } from 'vue';
import init, { refetchUser } from './assets/init';
Expand Down Expand Up @@ -255,11 +256,28 @@ const handleInput = (e: KeyboardEvent) => {
else if (e.key === 'Enter' && canSubmitPin.value) submit();
else if (e.key === 'Backspace') pin.value = pin.value.slice(0, -1);
}
// Progression du tout premier chargement (écran affiché avant même le PIN,
// v-if="pinLoading || !user" dans le template) — étapes pondérées à la main
// plutôt qu'un vrai pourcentage d'octets transférés, qui n'a pas de sens ici
// (peu de requêtes, surtout de la latence réseau/Keycloak).
const bootProgress = ref(0);

const finishAuthInit = async () => {
await init.run();
// init.run() lance 3 requêtes en parallèle (user, orgs, org ouverte) —
// sans ça la barre restait figée à 50% pendant tout ce temps puis sautait
// d'un coup à 85%. On avance plutôt à chaque requête qui termine, dans
// l'ordre où elles arrivent (pas forcément 1-2-3).
let completedInitSteps = 0;
await init.run(() => {
completedInitSteps++;
bootProgress.value = 50 + (completedInitSteps / 3) * 35;
});
await waitFor(() => user.value !== null);
bootProgress.value = 90;
await initPeer();
bootProgress.value = 95;
useAppPresence();
bootProgress.value = 100;
};

const handleTauriLogin = async () => {
Expand All @@ -271,6 +289,11 @@ const handleTauriLogin = async () => {
authenticated.value = success;

if (success) {
// bootstrap() a pu déjà pousser bootProgress vers 100 (tentative
// d'auto-connexion échouée, cf. branche isTauri && !authenticated) —
// sans ce reset, finishAuthInit() partirait de 100 pour retomber vers
// 50-85, donc la barre reculerait visuellement après le clic.
bootProgress.value = 50;
await finishAuthInit();
} else {
tauriLoginError.value = true;
Expand All @@ -289,6 +312,7 @@ const bootLoading = ref<boolean>(false);
const bootstrap = async () => {
bootError.value = false;
bootLoading.value = true;
bootProgress.value = 5;

try {
const res = await fetch(`${import.meta.env.VITE_API_URL}/health`);
Expand All @@ -297,13 +321,17 @@ const bootstrap = async () => {
bootError.value = true;
return toast.show('Api error', 'error', 10000);
}
bootProgress.value = 25;

console.log('[DEBUG] calling initKC...');
authenticated.value = await initKC();
console.log('[DEBUG] initKC done, authenticated =', authenticated.value);
bootProgress.value = 50;

if (authenticated.value) {
await finishAuthInit();
} else {
bootProgress.value = 100;
}

window.addEventListener('keydown', handleInput);
Expand Down Expand Up @@ -358,34 +386,109 @@ onMounted(async () => {
qu'un alert() natif. -->
<Notifications />

<div v-if="authenticated" class="h-full w-full">
<!-- Écran de connexion Tauri (bureau) : authenticated est déjà à false
ici, mais tant que l'utilisateur n'a pas cliqué "Se connecter" on
reste sur ce bouton plutôt que le loader ci-dessous. -->
<div v-if="isTauri && !authenticated" class="h-full w-full">

<div class="w-full h-full flex flex-col items-center justify-center bg-(--bg2) p-6 select-none">

<div class="mb-8 text-center max-w-lg">

<div class="flex flex-col items-center gap-4 mb-3">
<img src="/banner.svg" alt="Logo" class="h-16" />
</div>

<h2 class="text-xl font-bold text-(--text)">
Connectez-vous à votre compte
</h2>

<p class="text-sm text-(--text2) mt-2 leading-relaxed">
La connexion se fait dans votre navigateur, pour plus de sécurité.
</p>

</div>

<button
@click="handleTauriLogin"
class="primary"
:class="{ loader: tauriLoginLoading }"
:disabled="tauriLoginLoading"
>
<i class="bi bi-box-arrow-up-right mr-2" />
<span class="font-bold tracking-wide">Se connecter</span>
</button>

<p v-if="tauriLoginLoading" class="text-xs text-(--text2) mt-6 uppercase tracking-widest font-bold">
En attente de connexion dans le navigateur...
</p>

<p v-if="tauriLoginError" class="text-xs text-red-400 mt-6 font-medium">
La connexion a échoué. Réessayez.
</p>

</div>

</div>

<div v-else-if="bootError" class="h-full w-full">
<div class="w-full h-full flex flex-col items-center justify-center bg-(--bg2) p-6 select-none text-center">
<p class="text-sm text-(--text2) mb-4 max-w-sm">
Impossible de contacter le serveur. Vérifiez votre connexion et réessayez.
</p>
<button @click="bootstrap" class="primary" :class="{ loader: bootLoading }" :disabled="bootLoading">
Réessayer
</button>
</div>
</div>

<!-- Un seul loader persistant pour toute la fenêtre de démarrage : que
ce soit "en attente de Keycloak" (!authenticated) ou "authentifié
mais données pas encore chargées" (!user), c'est le MÊME élément —
pas de remount au moment où authenticated bascule, donc l'icône ne
refait plus son fade-in au milieu du chargement. -->
<div
v-else-if="!authenticated || !user"
class="h-full w-full flex flex-col items-center justify-center bg-(--bg3) p-6 select-none animate-app-reveal"
>
<Loader :progress="bootProgress" />
</div>

<div v-else class="h-full w-full">

<CallOverlay />
<UserProfile :isOpen="isProfileOpen" :profileUser="profileUser" @close="closeProfile"
@send-message="handleSendMessageFromProfile" />

<Transition name="page-lock" mode="out-in">
<Transition name="page-lock" mode="out-in" appear>

<div v-if="E2EEUnloked && !pinLoading" class="w-full h-full" key="app">

<div v-if="isLoaded" class="w-full h-full">
<RouterView />
</div>
<!-- Une fois déverrouillé, les données d'org sont presque toujours déjà
chargées (elles se chargent en parallèle depuis avant l'écran PIN) ;
ce court instant d'attente reste discret plutôt que de réafficher
le plein écran logo+barre, qui donnait l'impression d'un rechargement. -->
<Transition name="fade" mode="out-in">
<div v-if="isLoaded" class="w-full h-full animate-app-reveal" key="loaded">
<RouterView />
</div>

<div v-else class="w-full h-full">
<Loader />
</div>
<div v-else class="w-full h-full flex items-center justify-center bg-(--bg)" key="loading">
<SpinLoader />
</div>
</Transition>

</div>

<div class="w-full h-full" key="lock" v-else>

<div v-if="pinLoading || !user"
class="w-full h-full flex flex-col items-center justify-center bg-(--bg3) p-6 select-none">
<Loader />
<Transition name="fade" mode="out-in">
<div v-if="pinLoading" key="pin-loading"
class="w-full h-full flex flex-col items-center justify-center bg-(--bg2) p-6 select-none animate-app-reveal">
<SpinLoader />
</div>

<div v-else class="w-full h-full flex flex-col items-center justify-center bg-(--bg2) p-6 select-none">
<div v-else key="pin-form" class="w-full h-full flex flex-col items-center justify-center bg-(--bg2) p-6 select-none animate-app-reveal">

<div class="mb-8 text-center max-w-lg">

Expand Down Expand Up @@ -488,68 +591,14 @@ onMounted(async () => {
</Popup>

</div>
</Transition>

</div>

</Transition>

</div>

<div v-else class="h-full w-full">

<div v-if="isTauri"
class="w-full h-full flex flex-col items-center justify-center bg-(--bg2) p-6 select-none">

<div class="mb-8 text-center max-w-lg">

<div class="flex flex-col items-center gap-4 mb-3">
<img src="/banner.svg" alt="Logo" class="h-16" />
</div>

<h2 class="text-xl font-bold text-(--text)">
Connectez-vous à votre compte
</h2>

<p class="text-sm text-(--text2) mt-2 leading-relaxed">
La connexion se fait dans votre navigateur, pour plus de sécurité.
</p>

</div>

<button
@click="handleTauriLogin"
class="primary"
:class="{ loader: tauriLoginLoading }"
:disabled="tauriLoginLoading"
>
<i class="bi bi-box-arrow-up-right mr-2" />
<span class="font-bold tracking-wide">Se connecter</span>
</button>

<p v-if="tauriLoginLoading" class="text-xs text-(--text2) mt-6 uppercase tracking-widest font-bold">
En attente de connexion dans le navigateur...
</p>

<p v-if="tauriLoginError" class="text-xs text-red-400 mt-6 font-medium">
La connexion a échoué. Réessayez.
</p>

</div>

<div v-else-if="bootError"
class="w-full h-full flex flex-col items-center justify-center bg-(--bg2) p-6 select-none text-center">
<p class="text-sm text-(--text2) mb-4 max-w-sm">
Impossible de contacter le serveur. Vérifiez votre connexion et réessayez.
</p>
<button @click="bootstrap" class="primary" :class="{ loader: bootLoading }" :disabled="bootLoading">
Réessayer
</button>
</div>

<Loader v-else />

</div>

</div>

</template>
21 changes: 16 additions & 5 deletions src/assets/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,20 @@ class Init

constructor () {}

public async run()
// onStep : appelé après CHAQUE sous-requête (pas juste à la toute fin),
// pour que App.vue puisse faire avancer sa barre de progression au fil
// de l'eau plutôt que de rester figée pendant tout le Promise.all.
public async run(onStep?: () => void)
{
const step = async (p: Promise<void>) => {
await p;
onStep?.();
};
try {
await Promise.all([
this.InitUser(),
this.initOrg(),
this.initOpenedOrg()
step(this.InitUser()),
step(this.initOrg()),
step(this.initOpenedOrg())
]);
}
catch (e) {
Expand Down Expand Up @@ -55,7 +62,11 @@ class Init
if (res.ok) {
openedOrg.value = await res.json();
if (isFreshLaunch) {
router.replace({ name: 'OrgHome', params: { orgId } });
// showView explicite : sur mobile (OrgLayout.showRouterView),
// l'absence du paramètre atterrit correctement sur le contenu
// par défaut, mais un lien explicite est plus robuste et évite
// toute ambiguïté si cette logique change côté OrgLayout.
router.replace({ name: 'OrgHome', params: { orgId }, query: { showView: '1' } });
}
} else if (isFreshLaunch) {
// Org no longer accessible (left, deleted...): drop the stale preference.
Expand Down
Loading
Loading