This commit is contained in:
Pascal 2025-01-22 16:38:48 +01:00
parent 8d22c62753
commit f49047865d

View File

@ -789,6 +789,12 @@ class ChatElement extends HTMLElement {
});
});
processResult.sort((a, b) => {
const aInSet = this.userProcessSet.has(a.states[0].commited_in);
const bInSet = this.userProcessSet.has(b.states[0].commited_in);
return bInSet ? 1 : aInSet ? -1 : 0;
});
for (const process of processResult) {
const li = document.createElement('li');
li.className = 'group-list-item';
@ -807,6 +813,7 @@ class ChatElement extends HTMLElement {
li.onmouseout = () => {
li.style.backgroundColor = 'var(--accent-color)';
};
li.classList.add('my-process');
console.log("✅ Processus trouvé dans le set:", oneProcess);
}