Skip to content
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

Make RepoActionView.vue support ##[group] #32770

Merged
merged 2 commits into from
Dec 10, 2024

Conversation

wxiaoguang
Copy link
Contributor

No description provided.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 9, 2024
@pull-request-size pull-request-size bot added the size/M Denotes a PR that changes 30-99 lines, ignoring generated files. label Dec 9, 2024
@wxiaoguang wxiaoguang mentioned this pull request Dec 9, 2024
6 tasks
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/frontend labels Dec 9, 2024
@wxiaoguang wxiaoguang added this to the 1.23.0 milestone Dec 9, 2024
@silverwind
Copy link
Member

silverwind commented Dec 9, 2024

Can this be written in a testable fashion? E.g. actions log string in and assert presence of certain HTML elements in rendered output.

@wxiaoguang
Copy link
Contributor Author

Yes and no.

  • Yes: it could be done, but it needs a lot of changes.
  • No: this change is simple enough, and the "devtest" could make developers do visual check.

So in the future we should keep refactoring this Vue component (there are still many TODOs for it)

@wxiaoguang
Copy link
Contributor Author

Can this be written in a testable fashion?

By the way, all of "parseLineCommand", "beginLogGroup", "endLogGroup" and "appendLogs" are testable, as long as export them. Intentionally I decoupled them from the Vue SFC. While I guess we do not need to do that test in this PR.

@@ -393,7 +413,7 @@ export function initRepositoryActionView() {
<button class="ui basic small compact button red" @click="cancelRun()" v-else-if="run.canCancel">
{{ locale.cancel }}
</button>
<button class="ui basic small compact button tw-mr-0 tw-whitespace-nowrap link-action" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun">
<button class="ui basic small compact button link-action" :data-url="`${run.link}/rerun`" v-else-if="run.canRerun">
Copy link
Member

@silverwind silverwind Dec 9, 2024

Choose a reason for hiding this comment

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

  • tw-mr-0 should eliminate a 4px margin-right caused by button CSS, can we restore it? I was meaning to remove this margin from CSS but have not gotten around to it yet.
  • tw-whitespace-nowrap should prevent the button text from ever wrapping, like on small viewport. Did you check?

Copy link
Member

@silverwind silverwind Dec 9, 2024

Choose a reason for hiding this comment

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

Ah I see you put replacement CSS below. Is margin between buttons still present?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These buttons are all in if-else

The tw-mr-0 you added was only on the last else button.

@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 Dec 9, 2024
@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 Dec 10, 2024
@wxiaoguang wxiaoguang enabled auto-merge (squash) December 10, 2024 01:33
@wxiaoguang wxiaoguang merged commit 1b069dc into go-gitea:main Dec 10, 2024
26 checks passed
@wxiaoguang wxiaoguang deleted the fix-action-log branch December 10, 2024 01:57
zjjhot added a commit to zjjhot/gitea that referenced this pull request Dec 10, 2024
* giteaofficial/main:
  Make RepoActionView.vue support `##[group]` (go-gitea#32770)
  [skip ci] Updated translations via Crowdin
  Make Monaco theme follow browser, fully type codeeditor.ts (go-gitea#32756)
  Fix duplicate dropdown dividers (go-gitea#32760)
  Remove unnecessary border in repo home page sidebar (go-gitea#32767)
silverwind added a commit to silverwind/gitea that referenced this pull request Dec 10, 2024
* origin/main:
  Fix internal server error when updating labels without write permission (go-gitea#32776)
  Fix wiki ui (go-gitea#32781)
  Change typescript `module` to `nodenext` (go-gitea#32757)
  Refactor issue filter (labels, poster, assignee) (go-gitea#32771)
  Make RepoActionView.vue support `##[group]` (go-gitea#32770)
  [skip ci] Updated translations via Crowdin
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/go Pull requests that update Go code size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants