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:
4 files changed
+38
-8
No files matched your search
@@ -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}`,
|
||||
},
|
||||
),
|
||||
),
|
||||
|
||||
|
||||
Reference in new issue
Block a user