Skip to content

Add background and run count to actions list page#36707

Merged
silverwind merged 3 commits intogo-gitea:mainfrom
silverwind:actlist2
Mar 2, 2026
Merged

Add background and run count to actions list page#36707
silverwind merged 3 commits intogo-gitea:mainfrom
silverwind:actlist2

Conversation

@silverwind
Copy link
Copy Markdown
Member

@silverwind silverwind commented Feb 22, 2026

Use flex-container layout and wrap the actions runs list with ui top attached header and ui attached segment to add a background. Display the total workflow run count in the header.

  • Uses TrN with singular/plural locale keys for correct grammar (e.g. "1 workflow run" vs "2 workflow runs")
  • Workflow dispatch message uses attached class with tw-relative tw-z-10 to maintain continuous attached styling and keep the colored border-bottom visible (pre-existing fomantic issue with negative margins)
  • Buttons inside colored messages use opaque hover/active colors instead of semi-transparent ones

Before:

Screenshot 2026-02-22 at 14 56 00

After:

Screenshot 2026-02-22 at 15 05 33

With workflow_dispatch (button hover tweaked):

Screenshot 2026-02-22 at 16 47 36 Screenshot 2026-02-22 at 16 47 42

Use flex-container layout and wrap the actions runs list with
`ui top attached header` and `ui attached segment` to add a
background. Display the total workflow run count in the header.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Feb 22, 2026
@github-actions github-actions bot added the modifies/templates This PR modifies the template files label Feb 22, 2026
@silverwind silverwind added the topic/gitea-actions related to the actions of Gitea label Feb 22, 2026
@silverwind silverwind requested a review from Copilot February 22, 2026 15:10
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the repository Actions runs list page layout to use the shared flex-container sidebar/main pattern, adds a header+segment wrapper to give the runs list a distinct background, and shows the total workflow run count in the header.

Changes:

  • Replace the old grid layout with flex-container / flex-container-nav / flex-container-main.
  • Add a “top attached header” + “attached segment” wrapper around the runs list.
  • Introduce a new i18n string to render the workflow run count in the header.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
templates/repo/actions/list.tmpl Switches to flex layout; adds header/segment wrappers and run-count display above filters.
options/locale/locale_en-US.json Adds the new actions.runs.workflow_run_count localization string.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Use TrN with singular/plural locale keys for correct grammar
- Make workflow dispatch message attached with z-index fix for
  colored border visibility
- Use opaque hover colors for buttons inside colored messages

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Feb 22, 2026
@bircni
Copy link
Copy Markdown
Member

bircni commented Feb 23, 2026

Cool!

@ChristopherHX ChristopherHX self-requested a review February 27, 2026 11:53
Copy link
Copy Markdown
Contributor

@ChristopherHX ChristopherHX left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good.

Image Image

@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Mar 2, 2026
@silverwind silverwind added the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 2, 2026
@silverwind silverwind enabled auto-merge (squash) March 2, 2026 15:11
@silverwind silverwind merged commit 7889b78 into go-gitea:main Mar 2, 2026
26 checks passed
@silverwind silverwind deleted the actlist2 branch March 2, 2026 15:40
@GiteaBot GiteaBot added this to the 1.26.0 milestone Mar 2, 2026
@GiteaBot GiteaBot removed the reviewed/wait-merge This pull request is part of the merge queue. It will be merged soon. label Mar 2, 2026
zjjhot added a commit to zjjhot/gitea that referenced this pull request Mar 4, 2026
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  fix: /repos/{owner}/{repo}/actions/{runs,jobs} requiring owner permissions (go-gitea#36818)
  Fix CRAN package version validation to allow more than 4 version components (go-gitea#36813)
  Fix API not persisting pull request unit config when has_pull_requests is not set (go-gitea#36718)
  feat: Add Actions API rerun endpoints for runs and jobs (go-gitea#36768)
  Fix bug when pushing mirror with wiki (go-gitea#36795)
  Pull Request Pusher should be the author of the merge (go-gitea#36581)
  Delete non-exist branch should return 404 (go-gitea#36694)
  Remove API registration-token (go-gitea#36801)
  Add background and run count to actions list page (go-gitea#36707)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. modifies/frontend modifies/templates This PR modifies the template files topic/gitea-actions related to the actions of Gitea

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants