detached f66f738

refactor: Update chat room title and member display text

- Modify title bar text to show total members instead of "personne(s) présente(s)"
- Update user list header to dynamically display member count
- Simplify member count text rendering
commit
f66f73825a967d932dc061bff5755d49fe413e14
author
Kit · · 2025-02-17 07:29 UTC
parent
ac75bce
signature
SSH UnverifiedSHA256:H91DFuEG4jpk5edzLA4aUKkpv4zv9Q339ipRmkph6Tk The key is unknown
1 file · +2 -2
M src/lib/components/chat-room.svelte +2 -2
@@ -405,7 +405,7 @@ function openSignup() {
405405 >
406406 <div class="title-bar">
407407 <div class="title-bar-text">
408- Pdr Aim {#if currentUser} - {currentUser.nickname}{:else} - {totalUsers} personne{totalUsers > 1 ? 's' : ''} présente{totalUsers > 1 ? 's' : ''}{/if}
408+ Pdr Aim {#if currentUser} - {currentUser.nickname}{:else} - {totalUsers} membre{totalUsers > 1 ? 's' : ''}{/if}
409409 {#if sseError}
410410 <span class="connection-error">⚠️ Erreur de connexion</span>
411411 {/if}
@@ -515,7 +515,7 @@ function openSignup() {
515515 class:hidden={isMobile && !showUserList}
516516 style="width: {isMobile ? '100%' : '9.375rem'}; padding: 0.5rem; overflow-y: auto;"
517517 >
518- <p style="margin: 0 0 0.3rem 0;"><strong>Liste d'amis</strong></p>
518+ <p style="margin: 0 0 0.3rem 0;"><strong>{totalUsers} membre{totalUsers > 1 ? 's' : ''}</strong></p>
519519 {#each onlineUsers as user}
520520 <div class="user" class:offline={user.status === 'offline'}>
521521 <span class="status-icon">{getStatusIcon(user.status)}</span>
@@ -405,7 +405,7 @@ function openSignup() {
405 >405 >
406 <div class="title-bar">406 <div class="title-bar">
407 <div class="title-bar-text">407 <div class="title-bar-text">
408- Pdr Aim {#if currentUser} - {currentUser.nickname}{:else} - {totalUsers} personne{totalUsers > 1 ? 's' : ''} présente{totalUsers > 1 ? 's' : ''}{/if}408+ Pdr Aim {#if currentUser} - {currentUser.nickname}{:else} - {totalUsers} membre{totalUsers > 1 ? 's' : ''}{/if}
409 {#if sseError}409 {#if sseError}
410 <span class="connection-error">⚠️ Erreur de connexion</span>410 <span class="connection-error">⚠️ Erreur de connexion</span>
411 {/if}411 {/if}
@@ -515,7 +515,7 @@ function openSignup() {
515 class:hidden={isMobile && !showUserList}515 class:hidden={isMobile && !showUserList}
516 style="width: {isMobile ? '100%' : '9.375rem'}; padding: 0.5rem; overflow-y: auto;"516 style="width: {isMobile ? '100%' : '9.375rem'}; padding: 0.5rem; overflow-y: auto;"
517 >517 >
518- <p style="margin: 0 0 0.3rem 0;"><strong>Liste d'amis</strong></p>518+ <p style="margin: 0 0 0.3rem 0;"><strong>{totalUsers} membre{totalUsers > 1 ? 's' : ''}</strong></p>
519 {#each onlineUsers as user}519 {#each onlineUsers as user}
520 <div class="user" class:offline={user.status === 'offline'}>520 <div class="user" class:offline={user.status === 'offline'}>
521 <span class="status-icon">{getStatusIcon(user.status)}</span>521 <span class="status-icon">{getStatusIcon(user.status)}</span>

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 3

Tags 8

↑↓ moveenter openesc close