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

Open
opened 2025-11-02 11:14:06 -06:00 by GiteaMirror · 3 comments
Owner

Originally created by @M393 on GitHub (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)

Originally created by @M393 on GitHub (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](https://github.com/user-attachments/assets/cae87b40-8818-4bf1-a55f-954c38b1b10a) ### 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)
GiteaMirror added the type/bugtopic/ui labels 2025-11-02 11:14:06 -06:00
Author
Owner

@M393 commented on GitHub (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

@M393 commented on GitHub (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`
Author
Owner

@lunny commented on GitHub (May 13, 2025):

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

@lunny commented on GitHub (May 13, 2025): The UI could be improved to remove the a tag if targe url is empty.
Author
Owner

@M393 commented on GitHub (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.

@M393 commented on GitHub (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 in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#14482