feat: refonte UX du dashboard (coquille, tri/filtre/pagination, ⌘K, toasts)
Refonte front (packages/web) : coquille applicative partagée (sidebar desktop + barre d'onglets mobile + PageHeader, langue/push/logout centralisés) pilotée par route.meta.layout ; design system (BaseButton/BaseBadge/SegmentedControl/EmptyState/ SkeletonRow, anneau de focus, icônes @lucide/vue) ; tri/filtre/recherche/pagination côté client via useListControls (+ synchro URL) sur sessions/worktrees/groupes ; section « À traiter », palette de commandes ⌘K, toasts. Aucune modif serveur/protocole/DB.
This commit is contained in:
@@ -5,6 +5,12 @@ export default {
|
||||
cancel: 'Cancel',
|
||||
logout: 'Log out',
|
||||
language: 'Language',
|
||||
refresh: 'Refresh',
|
||||
back: 'Back',
|
||||
search: 'Search',
|
||||
settings: 'Settings',
|
||||
close: 'Close',
|
||||
retry: 'Retry',
|
||||
},
|
||||
login: {
|
||||
title: 'Sign in with your access token',
|
||||
@@ -163,4 +169,127 @@ export default {
|
||||
ws: {
|
||||
reconnecting: 'Connection lost — reconnecting…',
|
||||
},
|
||||
nav: {
|
||||
worktrees: 'Worktrees',
|
||||
sessions: 'Sessions',
|
||||
groups: 'Groups',
|
||||
settings: 'Settings',
|
||||
waiting: 'waiting',
|
||||
},
|
||||
controls: {
|
||||
searchPlaceholder: 'Search…',
|
||||
results: 'no result | 1 result | {n} results',
|
||||
sortBy: 'Sort by',
|
||||
filters: 'Filters',
|
||||
clearAll: 'Clear',
|
||||
},
|
||||
sort: {
|
||||
asc: 'Ascending',
|
||||
desc: 'Descending',
|
||||
session: {
|
||||
state: 'State',
|
||||
recent: 'Most recent',
|
||||
clients: 'Clients',
|
||||
cwd: 'Directory',
|
||||
command: 'Command',
|
||||
},
|
||||
worktree: {
|
||||
main: 'Main first',
|
||||
branch: 'Branch',
|
||||
dirty: 'Changes',
|
||||
ahead: 'Ahead',
|
||||
behind: 'Behind',
|
||||
activity: 'Activity',
|
||||
},
|
||||
repo: {
|
||||
label: 'Name',
|
||||
created: 'Created',
|
||||
worktrees: 'Worktrees',
|
||||
activity: 'Activity',
|
||||
},
|
||||
group: {
|
||||
label: 'Name',
|
||||
created: 'Created',
|
||||
repos: 'Repositories',
|
||||
activeSessions: 'Active sessions',
|
||||
},
|
||||
},
|
||||
filter: {
|
||||
state: {
|
||||
label: 'State',
|
||||
live: 'Live',
|
||||
waiting: 'Waiting',
|
||||
busy: 'Busy',
|
||||
idle: 'Idle',
|
||||
exited: 'Exited',
|
||||
resumable: 'Resumable',
|
||||
},
|
||||
command: {
|
||||
label: 'Command',
|
||||
},
|
||||
source: {
|
||||
label: 'Source',
|
||||
managed: 'Managed',
|
||||
discovered: 'Discovered',
|
||||
},
|
||||
repo: {
|
||||
label: 'Repository',
|
||||
},
|
||||
worktree: {
|
||||
dirtiness: 'Changes',
|
||||
dirty: 'Dirty',
|
||||
clean: 'Clean',
|
||||
session: 'Session',
|
||||
with: 'With session',
|
||||
without: 'Without session',
|
||||
flags: 'Flags',
|
||||
locked: 'Locked',
|
||||
prunable: 'Prunable',
|
||||
},
|
||||
},
|
||||
pagination: {
|
||||
prev: 'Previous',
|
||||
next: 'Next',
|
||||
pageOf: 'Page {page} / {pageCount}',
|
||||
perPage: 'Per page',
|
||||
all: 'All',
|
||||
},
|
||||
palette: {
|
||||
placeholder: 'Jump to repo, worktree, session, group…',
|
||||
empty: 'No match',
|
||||
hint: '↑↓ navigate · ↵ open · esc close',
|
||||
types: {
|
||||
repo: 'Repo',
|
||||
worktree: 'Worktree',
|
||||
session: 'Session',
|
||||
group: 'Group',
|
||||
action: 'Action',
|
||||
},
|
||||
actions: {
|
||||
newSession: 'New session',
|
||||
addRepo: 'Add repo',
|
||||
newGroup: 'New group',
|
||||
},
|
||||
},
|
||||
toast: {
|
||||
sessionCreated: 'Session started',
|
||||
sessionKilled: 'Session killed',
|
||||
sessionResumed: 'Session resumed',
|
||||
sessionForked: 'Session forked',
|
||||
repoAdded: 'Repository added',
|
||||
repoRemoved: 'Repository removed',
|
||||
worktreeCreated: 'Worktree created',
|
||||
worktreeDeleted: 'Worktree deleted',
|
||||
pruned: 'Worktrees pruned',
|
||||
groupCreated: 'Group created',
|
||||
groupUpdated: 'Group updated',
|
||||
groupDeleted: 'Group deleted',
|
||||
genericError: 'Something went wrong',
|
||||
dismiss: 'Dismiss',
|
||||
},
|
||||
attention: {
|
||||
title: 'Needs attention',
|
||||
count: 'no session waiting | 1 session waiting | {n} sessions waiting',
|
||||
empty: 'Nothing waiting',
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user