Skip to content

Commit 7f1c1c6

Browse files
committed
Merge branch 'dev' into eLabFTW
2 parents 84c9393 + 3c82972 commit 7f1c1c6

File tree

180 files changed

+5392
-2740
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

180 files changed

+5392
-2740
lines changed

.github/workflows/pr-title-update.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,28 @@ name: Update PR title
22

33
on:
44
pull_request_target:
5-
types: [opened, edited]
6-
branches:
7-
- "release_**"
5+
types: [opened, edited, reopened]
86

97
jobs:
108
update-title:
9+
if: github.event.action != 'edited' || github.event.changes.base.ref.from != ''
1110
runs-on: ubuntu-latest
1211
permissions:
1312
pull-requests: write
1413
steps:
15-
- uses: actions/checkout@v4
1614
- name: Update PR title
1715
env:
1816
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1917
PR_NUMBER: ${{ github.event.pull_request.number }}
2018
TARGET_BRANCH: "${{ github.base_ref }}"
2119
PR_TITLE: "${{ github.event.pull_request.title }}"
20+
REPO: "${{ github.repository }}"
2221
run: |
23-
VERSION=$(echo $TARGET_BRANCH | grep -oP '\d+\.\d+')
24-
if [[ -n "$VERSION" && ! "$PR_TITLE" =~ ^\[$VERSION\] ]]; then
25-
NEW_TITLE="[$VERSION] $PR_TITLE"
26-
gh pr edit $PR_NUMBER --title "$NEW_TITLE"
22+
VERSION=$(echo $TARGET_BRANCH | grep -oP '^release_\K\d+.\d+$' || true)
23+
NEW_TITLE=$(echo "$PR_TITLE" | sed -E "s/\[[0-9]+\.[0-9]+\] //")
24+
if [[ -n "$VERSION" ]]; then
25+
NEW_TITLE="[$VERSION] $NEW_TITLE"
26+
fi
27+
if [[ "$NEW_TITLE" != "$PR_TITLE" ]]; then
28+
gh pr edit $PR_NUMBER --repo "$REPO" --title "$NEW_TITLE"
2729
fi

client/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@
6666
"elkjs": "^0.8.2",
6767
"file-saver": "^2.0.5",
6868
"flush-promises": "^1.0.2",
69+
"font-awesome-6": "npm:@fortawesome/free-solid-svg-icons@6",
6970
"glob": "^10.3.10",
7071
"handsontable": "^4.0.0",
7172
"hsluv": "^1.0.1",

client/src/api/datatypes.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { type components } from "@/api";
2+
3+
export type CompositeFileInfo = components["schemas"]["CompositeFileInfo"];

client/src/api/histories.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { type components } from "@/api";
2+
3+
export type HistoryContentsResult = components["schemas"]["HistoryContentsResult"];

client/src/api/schema/schema.ts

+2
Original file line numberDiff line numberDiff line change
@@ -18464,6 +18464,8 @@ export interface components {
1846418464
* }
1846518465
*/
1846618466
WorkflowJobMetric: {
18467+
/** Job Id */
18468+
job_id: string;
1846718469
/**
1846818470
* Name
1846918471
* @description The name of the metric variable.

client/src/components/ActivityBar/ActivityBar.vue

+15-3
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ const dragItem: Ref<Activity | null> = ref(null);
9898
// drag state
9999
const isDragging = ref(false);
100100
101+
// computed values
102+
const canDrag = computed(() => isActiveSideBar("settings"));
103+
const isSideBarOpen = computed(() => activityStore.toggledSideBar !== "");
104+
101105
/**
102106
* Checks if the route of an activity is currently being visited and panels are collapsed
103107
*/
@@ -112,8 +116,6 @@ function isActiveSideBar(menuKey: string) {
112116
return activityStore.toggledSideBar === menuKey;
113117
}
114118
115-
const isSideBarOpen = computed(() => activityStore.toggledSideBar !== "");
116-
117119
/**
118120
* Checks if an activity that has a panel should have the `is-active` prop
119121
*/
@@ -209,14 +211,18 @@ defineExpose({
209211
<draggable
210212
:list="activities"
211213
:class="{ 'activity-popper-disabled': isDragging }"
214+
:disabled="!canDrag"
212215
:force-fallback="true"
213216
chosen-class="activity-chosen-class"
214217
:delay="DRAG_DELAY"
215218
drag-class="activity-drag-class"
216219
ghost-class="activity-chosen-class"
217220
@start="isDragging = true"
218221
@end="isDragging = false">
219-
<div v-for="(activity, activityIndex) in activities" :key="activityIndex">
222+
<div
223+
v-for="(activity, activityIndex) in activities"
224+
:key="activityIndex"
225+
:class="{ 'activity-can-drag': canDrag }">
220226
<div v-if="activity.visible && (activity.anonymous || !isAnonymous)">
221227
<UploadItem
222228
v-if="activity.id === 'upload'"
@@ -346,6 +352,12 @@ defineExpose({
346352
display: none;
347353
}
348354
355+
.activity-can-drag .activity-item {
356+
border-radius: $border-radius-extralarge;
357+
outline: 2px dashed $border-color;
358+
outline-offset: -3px;
359+
}
360+
349361
.activity-chosen-class {
350362
background: $brand-secondary;
351363
border-radius: $border-radius-extralarge;

0 commit comments

Comments
 (0)