-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Conversation
cb095d1
to
6fbeb1d
Compare
6fbeb1d
to
7328516
Compare
Can this be written in a testable fashion? E.g. actions log string in and assert presence of certain HTML elements in rendered output. |
Yes and no.
So in the future we should keep refactoring this Vue component (there are still many TODOs for it) |
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"> |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
* 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)
* 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
No description provided.