Skip to content

Commit ca2a06c

Browse files
committed
Add field to expiry resource
1 parent 53ece73 commit ca2a06c

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.github/workflows/monorepo-split-packages.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77

88
env:
99
GITHUB_TOKEN: ${{ secrets.BOT }}
10-
CORE_VERSION: "^2.1.8"
10+
CORE_VERSION: "^2.1.9"
1111

1212
jobs:
1313
packages_split:
@@ -40,7 +40,7 @@ jobs:
4040
steps:
4141
- uses: actions/checkout@v4
4242

43-
# Search and replace "moox/core": "*" with "moox/core": "^2.1.8" in composer.json
43+
# Search and replace "moox/core": "*" with "moox/core": "^2.1.9" in composer.json
4444
- name: Replace core version in composer.json
4545
working-directory: packages/${{ matrix.package }}
4646
run: |
@@ -57,7 +57,7 @@ jobs:
5757
git config --global user.name "mooxbot"
5858
git config --global user.email "[email protected]"
5959
git add composer.json
60-
git commit -m "Update moox/core dependency to ^^2.1.8" || echo "No changes to commit"
60+
git commit -m "Update moox/core dependency to ^^2.1.9" || echo "No changes to commit"
6161
fi
6262
6363
- if: "!startsWith(github.ref, 'refs/tags/')"

packages/core/resources/lang/de/expiry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515

1616
'expired_at' => 'Abgelaufen',
1717
'processing_deadline' => 'Bearbeitungsfrist',
18+
'escalated_at' => 'Eskaliert am',
19+
'escalated_to' => 'Eskaliert an',
1820
'cycle' => 'Turnus',
1921
'notifyUser' => 'Verantwortlicher',
2022
'expiry_job' => 'Typ',

packages/core/resources/lang/en/expiry.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919

2020
'expired_at' => 'Expired',
2121
'processing_deadline' => 'Processing deadline',
22+
'escalated_at' => 'Escalated at',
23+
'escalated_to' => 'Escalated to',
2224
'cycle' => 'Cycle',
2325
'notifyUser' => 'Verantwortlicher',
2426
'expiry_job' => 'Type',

packages/expiry/src/Resources/ExpiryResource.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,16 @@ public static function table(Table $table): Table
5454
->label(__('core::expiry.processing_deadline'))
5555
->toggleable()
5656
->sortable()
57-
->since(),
57+
->since()
58+
->visible(fn () => Expiry::query()->whereNotNull('processing_deadline')->exists()),
59+
Tables\Columns\TextColumn::make('escalated_at')
60+
->label(__('core::expiry.escalated_at'))
61+
->toggleable()
62+
->sortable()
63+
->date()
64+
->icon('gmdi-warning')
65+
->color('warning')
66+
->visible(fn () => Expiry::query()->whereNotNull('escalated_at')->exists()),
5867
Tables\Columns\TextColumn::make('cycle')
5968
->label(__('core::expiry.cycle'))
6069
->toggleable()

0 commit comments

Comments
 (0)