feat(web): open a repository from anywhere on its row

The cards on the repository page already opened as a whole, but the tables
on the organisation and overview pages still only linked the name, so the
same object behaved differently depending on where it was listed.

A table row can now carry a destination. Controls inside it keep their own
behaviour, the row is reachable with the keyboard, and only the empty space
navigates.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
nocodeandClaude Opus 5 committed 2026-09-23 22:31:44 +02:00
1 parent 405692f228
commit 2b4e6f356a
4 files changed
+38 -8

No files matched your search

+5 -2
View File
@@ -164,7 +164,7 @@ export function render(host, { state }) {
card(
'Dépôts',
{ subtitle: 'Clique sur un dépôt pour le gérer en détail.' },
{ subtitle: 'Clique sur une ligne pour gérer le dépôt en détail.' },
table(
[
{
@@ -207,7 +207,10 @@ export function render(host, { state }) {
},
],
data.repositories,
{ empty: 'Aucun dépôt dans cette organisation.' },
{
empty: 'Aucun dépôt dans cette organisation.',
rowHref: (repository) => `#/repos/${repository.fullName}`,
},
),
),