Skip to content

Action icon in repository view has no href attribute set #34450

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
M393 opened this issue May 13, 2025 · 3 comments
Open

Action icon in repository view has no href attribute set #34450

M393 opened this issue May 13, 2025 · 3 comments
Labels
topic/ui Change the appearance of the Gitea UI type/bug

Comments

@M393
Copy link

M393 commented May 13, 2025

Description

Action icon in repository list has no href set when something is entered in the search bar.
It should link to the action run page.

Sometimes it seems to also happen without something in the search bar, but I can't reproduce it...

Screenshots

Image

Gitea Version

1.23.8

Can you reproduce the bug on the Gitea demo site?

Not sure if actions are enabled and how to get to this page. You need to log in?

Operating System

Windows 10

Browser Version

Vivaldi 7.3 (Chromium 134)

@M393 M393 added type/bug topic/ui Change the appearance of the Gitea UI labels May 13, 2025
@M393
Copy link
Author

M393 commented May 13, 2025

This is because the response to the search request .data[].latest_commit_status.TargetURL is an empty string.
So probably not a ui bug, sorry.

There are additional differences in the response:

With a query string the response includes values for these keys, maybe they are not needed?
.data[].latest_commit_status.RepoID
.data[].latest_commit_status.Repo
.data[].latest_commit_status.SHA

@lunny
Copy link
Member

lunny commented May 13, 2025

The UI could be improved to remove the a tag if targe url is empty.

@M393
Copy link
Author

M393 commented May 14, 2025

So probably not a ui bug, sorry.

I apologize for being imprecise with my description.

Displaying the icon is correct for this project, there is a action run, that should be linked to. The bug is that no URL is returned from the server when a search query is entered.
So the bug lies in the server response, not the web ui.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic/ui Change the appearance of the Gitea UI type/bug
Projects
None yet
Development

No branches or pull requests

2 participants