Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
4a823e3
fix(ci): make local act testing of release_main.yml reliable
m335671 Sep 18, 2026
8882a3f
fix(tauri): sanitize env before opening the OAuth browser from the Ap…
m335671 Sep 19, 2026
f4ebdac
fix(ci): drop bundled GStreamer MIDI plugin causing AppImage segfault
m335671 Sep 19, 2026
b660a8f
perf(dm): stop recomputing the DM contact list from scratch every tim…
MisterPapaye Sep 19, 2026
f2e4688
perf(dm): stop recreating the unread-badge computed twice per render
MisterPapaye Sep 19, 2026
1f66174
fix(theme): use the light-theme banner on the PIN unlock and login sc…
MisterPapaye Sep 19, 2026
2a2a9d4
fix(dm): silence "Extraneous non-props attributes" warning on ChatMes…
MisterPapaye Sep 19, 2026
b2f083e
fix(calls): stop incoming DM call notifications from getting stuck
MisterPapaye Sep 19, 2026
c7b25d8
fix(ws): make a newly-added workspace member see it appear live
MisterPapaye Sep 19, 2026
5373a3b
fix(notifications): show sender avatar/name and fix click routing
MisterPapaye Sep 19, 2026
84d0926
fix(notifications): stop notif:new-message crashing after an await gap
MisterPapaye Sep 19, 2026
4ba0bce
fix(tauri): add missing icon.png to the bundle icon list
m335671 Sep 19, 2026
b968f80
docs: note the env vars needed to build the AppImage locally on Fedora
m335671 Sep 19, 2026
5ee845b
fix(notifications): never show message content in the in-app toast
MisterPapaye Sep 19, 2026
fc51595
fix(notifications): fall back to initials avatar, not a blank image
MisterPapaye Sep 19, 2026
856d6c2
refactor(calls): align private call UI/UX with voice threads
MisterPapaye Sep 19, 2026
d5258c8
fix(calls): sync E2EE callId between peers, fix leaked timer interval
MisterPapaye Sep 19, 2026
b7c56bc
fix(calls): correct ECDH->HKDF->AES-GCM key derivation
MisterPapaye Sep 19, 2026
6bae680
fix(calls): security badge stuck on "Chiffrement..." despite success
MisterPapaye Sep 19, 2026
d5c82d4
feat(calls): show whether the connection is actually peer-to-peer
MisterPapaye Sep 19, 2026
d0784e8
fix(calls): screen/camera sharing never actually reached the peer
MisterPapaye Sep 19, 2026
89e3f53
debug(calls): add diagnostics for the screen/camera renegotiation path
MisterPapaye Sep 19, 2026
19ca3d6
fix(calls): remote video never rendered after renegotiation (reactivity)
MisterPapaye Sep 19, 2026
f4d196f
fix(calls): computed chain never propagated through the mutated stream
MisterPapaye Sep 19, 2026
381aca8
fix(calls): notify the peer immediately on hangup instead of relying …
MisterPapaye Sep 19, 2026
d298a88
Merge recipe/m335 into recipe/main
Sep 19, 2026
7edd2d4
Merge branch 'recipe/main' of https://github.com/SilverCore-Git/synco…
MisterPapaye Sep 19, 2026
1268495
refactor(privateMeet): persist ephemeral sessions across navigation, …
MisterPapaye Sep 19, 2026
4e09576
feat(privateMeet): show real upload/download progress for file sharing
MisterPapaye Sep 19, 2026
2c3c767
fix(privateMeet): stuck on "Établissement du canal sécurisé" (race)
MisterPapaye Sep 19, 2026
17146dc
feat(privateMeet): confirm before closing mid-transfer, discreet shie…
MisterPapaye Sep 19, 2026
cbb8df4
fix(privateMeet): resolve connection loop from Peer id collision with…
MisterPapaye Sep 19, 2026
d0d432c
feat(calls,privateMeet): play looping call sound instead of notificat…
MisterPapaye Sep 19, 2026
c2abd6a
fix(calls,privateMeet): ringtone pointed at a sound file that never e…
MisterPapaye Sep 19, 2026
a8905fe
Update call_incoming.mp3
MisterPapaye Sep 19, 2026
b12911f
feat(calls,privateMeet): remove ringing notification on cancel, add m…
MisterPapaye Sep 19, 2026
30eadf9
fix(calls): notify callee when caller cancels before pickup, add ring…
MisterPapaye Sep 19, 2026
9912950
feat(home): prioritize tasks with news/updates in the home tasks widget
MisterPapaye Sep 19, 2026
5d33356
feat(home): rename Messages card to Notifications, surface missed cal…
MisterPapaye Sep 19, 2026
f7776fb
fix(chat): reconnecting to the same thread/DM no longer visually relo…
MisterPapaye Sep 19, 2026
b4a9abc
fix(tasks): rename "Tâche personnelle (Général)" option to "Perso"
MisterPapaye Sep 19, 2026
5eb5888
fix(tasks): header progress gauge now follows the active workspace/ta…
MisterPapaye Sep 19, 2026
40a1a52
feat(tasks): confirm before deleting a task
MisterPapaye Sep 19, 2026
9105a9a
fix(tasks): rename filter reset button to "Réinitialiser les filtres"
MisterPapaye Sep 19, 2026
44f845d
fix(types): resolve 5 vue-tsc build errors
MisterPapaye Sep 19, 2026
71acab2
Merge branch 'main' into recipe/main
m335671 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
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# Auto detect text files and perform LF normalization
* text=auto

# Templates/scripts Linux : toujours LF, même sur un checkout Windows (sinon les fichiers générés
# depuis ces templates héritent de CRLF, ce qui casse le parsing strict de certains outils Linux,
# ex: Icon=app\r dans un .desktop qui ne matche plus jamais un fichier app.png).
src-tauri/linux/** text eol=lf
35 changes: 30 additions & 5 deletions .github/workflows/local/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,12 @@ jobs:

build-windows-msi:
name: Build de l'installeur Windows (MSI)
# Enchaîné après build-android-apk (au lieu de tourner en parallèle) : sous `act` sur Windows, les
# jobs concurrents partagent le même checkout/dossier de travail réel (contrairement au vrai CI
# GitHub où chaque job a sa propre VM isolée), ce qui a corrompu .env/.env.production pendant un
# build simultané (VITE_API_URL embarqué en "http://localhost:9000" au lieu de la vraie valeur).
# Un seul `act push` reste possible, l'exécution est juste séquentielle au lieu de parallèle.
needs: build-android-apk
runs-on: windows-latest
steps:
- name: Checkout du code
Expand Down Expand Up @@ -96,6 +102,7 @@ jobs:

build-linux-appimage:
name: Build de l'AppImage Linux
needs: build-windows-msi # voir commentaire sur build-windows-msi : exécution séquentielle voulue sous act
runs-on: ubuntu-latest
steps:
- name: Checkout du code
Expand All @@ -118,6 +125,7 @@ jobs:
gstreamer1.0-plugins-base gstreamer1.0-plugins-good \
gstreamer1.0-plugins-bad gstreamer1.0-libav \
xdg-utils shared-mime-info
sudo apt-get install -y libfuse2t64 || sudo apt-get install -y libfuse2 # linuxdeploy (AppImage) est lié à l'ABI fuse2, absente par défaut sur ubuntu-24.04+

- name: Génération des fichiers .env
run: |
Expand All @@ -130,7 +138,10 @@ jobs:
- name: Build de l'AppImage
env:
NODE_OPTIONS: --max-old-space-size=6144
APPIMAGE_EXTRACT_AND_RUN: "1" # linuxdeploy a besoin de FUSE, absent des runners/conteneurs ubuntu-24.04+
# Pas de APPIMAGE_EXTRACT_AND_RUN ici (contrairement au vrai CI) : sous act/Docker, ce mode
# provoque une race condition sur le plugin gtk (le dossier d'extraction temporaire de
# linuxdeploy est nettoyé avant que le plugin ne s'exécute -> "exit code 127"). En local on
# utilise du vrai FUSE à la place, via `act --privileged` (ou --container-options "--privileged").
NO_STRIP: "true" # le strip des binutils récents (ubuntu-24.04+) plante sur la section .relr.dyn de certaines libs (cf tauri-apps/tauri#15106)
run: bun run tauri:build -- --bundles appimage

Expand All @@ -156,6 +167,7 @@ jobs:

build-docker-image:
name: Build et push de l'image Docker (front, prod)
needs: build-linux-appimage # voir commentaire sur build-windows-msi : exécution séquentielle voulue sous act
runs-on: ubuntu-latest
permissions:
contents: read
Expand Down Expand Up @@ -198,7 +210,7 @@ jobs:

create-release:
name: Création de la release GitHub
needs: [ build-android-apk, build-windows-msi, build-linux-appimage ]
needs: [ build-android-apk, build-windows-msi, build-linux-appimage, build-docker-image ]
runs-on: ubuntu-latest
steps:
- name: Téléchargement des artefacts
Expand All @@ -208,11 +220,24 @@ jobs:
path: release-assets
merge-multiple: true

# `github.run_number` est toujours figé à 1 sous act (pas un vrai run GitHub), donc
# `dev-${{ github.run_number }}` écraserait la même release "dev-1" à chaque test local.
# On calcule ici le prochain numéro à partir des releases "dev-N" déjà publiées sur le repo.
- name: Calcul du prochain numéro de build (uniquement pour les tests locaux via act)
id: buildnum
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
LAST=$(curl -s -H "Authorization: Bearer $GH_TOKEN" \
"https://api.github.com/repos/${{ github.repository }}/releases?per_page=100" \
| grep -o '"tag_name": *"dev-[0-9]\+"' | grep -o '[0-9]\+' | sort -n | tail -1)
echo "next=$(( ${LAST:-0} + 1 ))" >> "$GITHUB_OUTPUT"

- name: Création de la release
uses: softprops/action-gh-release@v2
with:
tag_name: dev-${{ github.run_number }}
name: "Synco dev build #${{ github.run_number }}"
tag_name: dev-${{ steps.buildnum.outputs.next }}
name: "Synco dev build #${{ steps.buildnum.outputs.next }}"
prerelease: true
generate_release_notes: true
files: release-assets/**
files: release-assets/**
7 changes: 6 additions & 1 deletion .github/workflows/release_main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,13 +127,18 @@ jobs:
NODE_OPTIONS: --max-old-space-size=6144
run: bun run tauri:build -- --bundles appimage

- name: Retrait de libwayland-client bundlée (EGL_BAD_PARAMETER sur Mesa 25+, cf tauri-apps/tauri#15665)
- name: Retrait de libs bundlées problématiques (EGL_BAD_PARAMETER sur Mesa 25+ cf tauri-apps/tauri#15665, segfault GStreamer/JACK)
run: |
cd src-tauri/target/release/bundle/appimage
APPIMAGE=$(ls *.AppImage)
chmod +x "$APPIMAGE"
./"$APPIMAGE" --appimage-extract
rm -f squashfs-root/usr/lib/libwayland-client.so.0
# libgstfluidsynthmidi.so (rendu MIDI, inutilisé par l'app) dépend de la couche de
# compat JACK de pipewire ; sur certaines distros la version système de pipewire n'a
# pas le symbole attendu (pw_log_topic_register), ce qui fait planter (SIGSEGV) le
# scan des plugins GStreamer au lancement, avant même d'afficher une fenêtre.
rm -f squashfs-root/usr/lib/gstreamer-1.0/libgstfluidsynthmidi.so
curl -sL -o appimagetool https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool
./appimagetool --appimage-extract-and-run squashfs-root "$APPIMAGE"
Expand Down
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,22 @@ npm run preview # Preview production build
npm run type-check # TypeScript validation
```

### Building the Linux AppImage locally on Fedora

`linuxdeploy`'s cached tools assume Ubuntu/Debian paths and a `strip` that
understands whatever ELF features your toolchain emits. On Fedora, set these
before `npm run tauri:build -- --bundles appimage` (adjust the GStreamer paths
if `rpm -ql gstreamer1` reports something else on your version):

```bash
export NO_STRIP=true
export GSTREAMER_PLUGINS_DIR=/usr/lib64/gstreamer-1.0
export GSTREAMER_HELPERS_DIR=/usr/libexec/gstreamer-1.0
```

`fuse-libs` must also be installed (`sudo dnf install fuse-libs`) since Tauri
runs `linuxdeploy` as an AppImage itself.

## 🎯 Development Guidelines

- **TypeScript Strict**: Zero `any` types allowed
Expand Down
2 changes: 1 addition & 1 deletion ios/App/CapApp-SPM/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
targets: ["CapApp-SPM"])
],
dependencies: [
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.4.2"),
.package(url: "https://github.com/ionic-team/capacitor-swift-pm.git", exact: "8.5.0"),
.package(name: "CapacitorApp", path: "..\..\..\node_modules\@capacitor\app"),
.package(name: "CapacitorBrowser", path: "..\..\..\node_modules\@capacitor\browser")
],
Expand Down
9 changes: 6 additions & 3 deletions public/firebase-messaging-sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ self.addEventListener('notificationclick', (event) => {
// Fermer la notification
notification.close();

// Ouvrir l'URL correspondante
if (notification.data && notification.data.url) {
clients.openWindow(notification.data.url);
// Ouvrir l'URL correspondante — le reste de l'app (routes/notifications
// in-app) utilise la clé `route`, pas `url` : sans ce fallback, cliquer
// une notification desktop/web n'amenait jamais qu'à la racine de l'app.
const target = (notification.data && (notification.data.route || notification.data.url));
if (target) {
clients.openWindow(target);
} else {
// Ouvrir l'application par défaut
clients.openWindow('/');
Expand Down
Binary file modified public/sounds/call_incoming.mp3
Binary file not shown.
55 changes: 54 additions & 1 deletion src-tauri/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,58 @@
use tauri::{Emitter, Manager};

// L'AppImage (linuxdeploy) exporte LD_LIBRARY_PATH/GTK_PATH/GIO_EXTRA_MODULES/... pour pointer
// vers ses libs embarquées. Un sous-processus qui hérite de cet environnement (ex: le navigateur
// lancé via xdg-open pour le login OAuth) essaie de charger ces libs au lieu de celles du système
// et plante sur un mismatch de version (ex Firefox: "XPCOMGlueLoad error ... libnss3.so: version
// `NSS_3.126' not found"), donc le navigateur ne s'ouvre jamais. On les retire avant de spawn.
#[cfg(target_os = "linux")]
const APPIMAGE_POLLUTED_ENV_VARS: &[&str] = &[
"LD_LIBRARY_PATH",
"GTK_PATH",
"GIO_EXTRA_MODULES",
"GDK_PIXBUF_MODULE_FILE",
"GSETTINGS_SCHEMA_DIR",
"GST_PLUGIN_SYSTEM_PATH_1_0",
"GST_PLUGIN_PATH_1_0",
"GST_PLUGIN_SCANNER_1_0",
"GST_PLUGIN_SYSTEM_PATH",
"GST_PTP_HELPER_1_0",
"GST_REGISTRY_REUSE_PLUGIN_SCANNER",
];

#[tauri::command]
fn open_external_url(url: String) -> Result<(), String> {
#[cfg(target_os = "linux")]
{
let mut cmd = std::process::Command::new("xdg-open");
cmd.arg(&url);
for var in APPIMAGE_POLLUTED_ENV_VARS {
cmd.env_remove(var);
}
return cmd.spawn().map(|_| ()).map_err(|e| e.to_string());
}
#[cfg(target_os = "macos")]
{
return std::process::Command::new("open")
.arg(&url)
.spawn()
.map(|_| ())
.map_err(|e| e.to_string());
}
#[cfg(target_os = "windows")]
{
return std::process::Command::new("cmd")
.args(["/C", "start", "", &url])
.spawn()
.map(|_| ())
.map_err(|e| e.to_string());
}
#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
{
Err("open_external_url is not supported on this platform".into())
}
}

#[cfg_attr(mobile, tauri::mobile_entry_point)]
pub fn run() {
tauri::Builder::default()
Expand All @@ -13,7 +66,7 @@ pub fn run() {
.plugin(tauri_plugin_shell::init())
.plugin(tauri_plugin_deep_link::init())
.plugin(tauri_plugin_notification::init())
.invoke_handler(tauri::generate_handler![])
.invoke_handler(tauri::generate_handler![open_external_url])
.setup(|app| {
if cfg!(debug_assertions) {
app.handle().plugin(
Expand Down
1 change: 1 addition & 0 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"icons/32x32.png",
"icons/128x128.png",
"icons/128x128@2x.png",
"icons/icon.png",
"icons/icon.icns",
"icons/icon.ico"
],
Expand Down
4 changes: 2 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ onMounted(async () => {
<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" />
<img :src="theme === 'light' ? '/assets/logo/synco/light_banner_synco.svg' : '/banner.svg'" alt="Logo" class="h-16" />
</div>

<h2 class="text-xl font-bold text-(--text)">
Expand Down Expand Up @@ -494,7 +494,7 @@ onMounted(async () => {

<div class="flex flex-col items-center gap-4 mb-3">

<img src="/banner.svg" alt="Logo" class=" h-16" />
<img :src="theme === 'light' ? '/assets/logo/synco/light_banner_synco.svg' : '/banner.svg'" alt="Logo" class=" h-16" />

</div>

Expand Down
4 changes: 2 additions & 2 deletions src/assets/keycloak.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import { kcToken } from "./var";
import { Capacitor } from "@capacitor/core";
import { Browser } from "@capacitor/browser";
import { App as CapApp, type URLOpenListenerEvent } from "@capacitor/app";
import { open } from '@tauri-apps/plugin-shell';
import { onOpenUrl } from '@tauri-apps/plugin-deep-link';
import { listen } from '@tauri-apps/api/event';
import { invoke } from '@tauri-apps/api/core';

const KC_URL = import.meta.env.VITE_KEYCLOAK_URL || 'http://localhost:8080/auth';
const KC_REALM = import.meta.env.VITE_KEYCLOAK_REALM || 'SilverTeams';
Expand Down Expand Up @@ -145,7 +145,7 @@ async function tauriLogin(): Promise<{ token?: string; refreshToken?: string }>
+ `&response_type=code&scope=openid&state=${state}`
+ `&code_challenge=${codeChallenge}&code_challenge_method=S256`;

await open(authUrl);
await invoke('open_external_url', { url: authUrl });
const callbackUrl = await deepLinkArrived;
unlistenSingleInstance();

Expand Down
85 changes: 85 additions & 0 deletions src/assets/utils/crypto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,91 @@ export async function decryptFromPeer (
};


// Mêmes fonctions que encryptForPeer/decryptFromPeer, mais sur un ArrayBuffer
// brut plutôt qu'une chaîne — pour le partage de fichiers en session
// éphémère (usePrivatMeet.ts). Pas de base64 ici : les objets envoyés par
// PeerJS DataConnection utilisent sa sérialisation binaire native (le même
// mécanisme qui découpe déjà les gros payloads en chunks), donc encoder en
// base64 n'apporterait que ~33% de taille en plus pour rien.
export async function encryptBufferForPeer (buffer: ArrayBuffer, peerPublicKeyJWK: string, myPublicKeyJWK?: string | object)
{

const publicKey = await crypto.subtle.importKey(
"jwk",
JSON.parse(peerPublicKeyJWK),
{ name: "RSA-OAEP", hash: "SHA-256" },
true,
["encrypt"]
);

const fileKey = await crypto.subtle.generateKey(
{ name: "AES-GCM", length: 256 },
true,
["encrypt"]
);

const iv = crypto.getRandomValues(new Uint8Array(12));
const ciphertext = await crypto.subtle.encrypt(
{ name: "AES-GCM", iv },
fileKey,
buffer
);

const exportedAesKey = await crypto.subtle.exportKey("raw", fileKey);
const encryptedAesKey = await crypto.subtle.encrypt(
{ name: "RSA-OAEP" },
publicKey,
exportedAesKey
);

let selfEncryptedAesKey: ArrayBuffer | undefined = undefined;
if (myPublicKeyJWK) {
const myPubKey = await crypto.subtle.importKey(
"jwk",
typeof myPublicKeyJWK === 'string' ? JSON.parse(myPublicKeyJWK) : myPublicKeyJWK,
{ name: "RSA-OAEP", hash: "SHA-256" },
false,
["encrypt"]
);
selfEncryptedAesKey = await crypto.subtle.encrypt({ name: "RSA-OAEP" }, myPubKey, exportedAesKey);
}

return {
ciphertext,
encryptedAesKey,
iv: iv.buffer,
selfEncryptedAesKey
};

}

export async function decryptBufferFromPeer (
ciphertext: ArrayBuffer,
encryptedAesKey: ArrayBuffer,
iv: ArrayBuffer,
myPrivateKey: CryptoKey
): Promise<ArrayBuffer>
{

const aesKeyRaw = await crypto.subtle.decrypt(
{ name: "RSA-OAEP" },
myPrivateKey,
encryptedAesKey
);

const aesKey = await crypto.subtle.importKey(
"raw", aesKeyRaw, "AES-GCM", false, ["decrypt"]
);

return await crypto.subtle.decrypt(
{ name: "AES-GCM", iv },
aesKey,
ciphertext
);

}


// For thread E2EE

export async function decryptThreadKeyWithRsa(
Expand Down
22 changes: 22 additions & 0 deletions src/assets/utils/peerConfig.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// Config PeerJS partagée par les deux systèmes P2P de l'app (appels privés
// dans useSecurePeer.ts, sessions éphémères dans usePrivatMeet.ts).
//
// Volontairement STUN-only, sans serveur TURN : PeerJS retombe sinon sur sa
// config par défaut, qui inclut le serveur TURN public turn.peerjs.com — un
// relais tiers accepterait de faire transiter le trafic si la connexion
// directe échoue, ce qui contredit la promesse "peer-to-peer" affichée à
// l'utilisateur. Avec cette config, une connexion qui aboutit est donc
// garantie directe (au prix, en échange, d'un échec pur et simple sur les
// topologies réseau où seul un relais aurait permis de se connecter).
export const PEER_CONFIG = {
sdpSemantics: 'unified-plan' as const,
encodedInsertableStreams: true,
iceServers: [
{ urls: 'stun:stun.l.google.com:19302' },
{ urls: 'stun:stun1.l.google.com:19302' }
],
iceCandidatePoolSize: 10,
iceTransportPolicy: 'all' as const,
bundlePolicy: 'max-bundle' as const,
rtcpMuxPolicy: 'require' as const
};
Loading
Loading