Skip to content

Commit 79e4f92

Browse files
committed
Merge branch 'main' into feat/conditional-fields
2 parents ef775ce + 74786ca commit 79e4f92

File tree

7 files changed

+57
-432
lines changed

7 files changed

+57
-432
lines changed

.github/workflows/pr-auto-assign.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ jobs:
1818
- name: Determine label based on branch prefix or author
1919
id: label
2020
run: |
21-
# Check if it's a Dependabot PR
22-
if [[ "${{ github.actor }}" == "dependabot[bot]" ]]; then
21+
# Check if it's a Dependabot PR (using the PR author, not the workflow actor)
22+
if [[ "${{ github.event.pull_request.user.login }}" == "dependabot[bot]" ]]; then
2323
echo "label=dependencies" >> $GITHUB_OUTPUT
2424
# Check branch prefixes
2525
elif [[ "${{ github.head_ref }}" == feature/* ]] || [[ "${{ github.head_ref }}" == feat/* ]]; then
@@ -34,7 +34,7 @@ jobs:
3434
3535
- name: Add label to PR
3636
if: steps.label.outputs.label != ''
37-
uses: actions/github-script@v7
37+
uses: actions/github-script@v8
3838
with:
3939
script: |
4040
github.rest.issues.addLabels({
@@ -45,10 +45,15 @@ jobs:
4545
})
4646
4747
- name: Assign reviewer and assignee
48-
uses: actions/github-script@v7
48+
uses: actions/github-script@v8
4949
with:
5050
script: |
5151
const assignee = 'baspa';
52+
const prAuthor = context.payload.pull_request.user.login;
53+
54+
console.log(`PR Author: ${prAuthor}`);
55+
console.log(`Assignee: ${assignee}`);
56+
console.log(`Are they the same? ${prAuthor.toLowerCase() === assignee.toLowerCase()}`);
5257
5358
// Always assign as assignee (you can be assigned to your own PR)
5459
github.rest.issues.addAssignees({
@@ -59,8 +64,8 @@ jobs:
5964
});
6065
console.log(`Assigned ${assignee} as assignee`);
6166
62-
// Only assign reviewer if they are not the PR author
63-
if (context.payload.pull_request.user.login !== assignee) {
67+
// Only assign reviewer if they are not the PR author (case-insensitive comparison)
68+
if (prAuthor.toLowerCase() !== assignee.toLowerCase()) {
6469
github.rest.pulls.requestReviewers({
6570
owner: context.repo.owner,
6671
repo: context.repo.repo,

resources/css/fields.css

Lines changed: 0 additions & 59 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +0,0 @@
1-
/* Hide Trix caption field for RichEditor when hideCaptions is enabled */
2-
3-
/* Target the specific figcaption with attachment__caption class */
4-
[data-hide-captions="true"] figcaption.attachment__caption {
5-
display: none !important;
6-
}
7-
8-
/* Target figcaption with data-trix-placeholder attribute */
9-
[data-hide-captions="true"] figcaption[data-trix-placeholder] {
10-
display: none !important;
11-
}
12-
13-
/* Target any figcaption within the editor area */
14-
[data-hide-captions="true"] .trix-content figcaption,
15-
[data-hide-captions="true"] .trix-editor figcaption,
16-
[data-hide-captions="true"] .fi-fo-rich-editor figcaption {
17-
display: none !important;
18-
}
19-
20-
/* Target Filament's rich editor container */
21-
[data-hide-captions="true"] .fi-fo-rich-editor .trix-content figcaption,
22-
[data-hide-captions="true"] .fi-fo-rich-editor .trix-editor figcaption {
23-
display: none !important;
24-
}
25-
26-
/* More specific targeting for the attachment caption */
27-
[data-hide-captions="true"] .trix-content figure figcaption.attachment__caption,
28-
[data-hide-captions="true"] .trix-editor figure figcaption.attachment__caption {
29-
display: none !important;
30-
}
31-
32-
/* Hide the caption input field that appears when uploading images */
33-
[data-hide-captions="true"] .trix-content figcaption input,
34-
[data-hide-captions="true"] .trix-content figcaption textarea {
35-
display: none !important;
36-
}
37-
38-
/* Alternative selectors for different Trix versions */
39-
[data-hide-captions="true"] .trix-content .attachment__caption,
40-
[data-hide-captions="true"] .trix-content .attachment__name,
41-
[data-hide-captions="true"] .trix-content .attachment__size {
42-
display: none !important;
43-
}
44-
45-
/* Hide caption fields in the editor */
46-
[data-hide-captions="true"] .trix-content [data-trix-content-type] figcaption {
47-
display: none !important;
48-
}
49-
50-
/* Hide any caption-related elements */
51-
[data-hide-captions="true"] .trix-content .caption,
52-
[data-hide-captions="true"] .trix-content .image-caption {
53-
display: none !important;
54-
}
55-
56-
/* Global targeting for any figcaption when hideCaptions is enabled */
57-
[data-hide-captions="true"] figcaption {
58-
display: none !important;
59-
}

src/Concerns/HasContentCleaning.php

Lines changed: 0 additions & 63 deletions
This file was deleted.

src/Fields/Repeater.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,9 +131,9 @@ public function getForm(): array
131131
->relationship('children')
132132
->live(debounce: 250)
133133
->labelKey('name')
134-
->maxDepth(0)
135134
->indentable(false)
136-
->reorderable(true)
135+
->moveable(true)
136+
->reorderable(false)
137137
->addable(fn (string $operation) => $operation !== 'create')
138138
->disabled(fn (string $operation) => $operation === 'create')
139139
->hint(fn (string $operation) => $operation === 'create' ? __('Fields can be added once the field is created.') : '')

0 commit comments

Comments
 (0)