Skip to content

Commit

Permalink
Add field to expiry resource
Browse files Browse the repository at this point in the history
  • Loading branch information
AzGasim committed Nov 29, 2024
1 parent 53ece73 commit ca2a06c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/monorepo-split-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.BOT }}
CORE_VERSION: "^2.1.8"
CORE_VERSION: "^2.1.9"

jobs:
packages_split:
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:
steps:
- uses: actions/checkout@v4

# Search and replace "moox/core": "*" with "moox/core": "^2.1.8" in composer.json
# Search and replace "moox/core": "*" with "moox/core": "^2.1.9" in composer.json
- name: Replace core version in composer.json
working-directory: packages/${{ matrix.package }}
run: |
Expand All @@ -57,7 +57,7 @@ jobs:
git config --global user.name "mooxbot"
git config --global user.email "[email protected]"
git add composer.json
git commit -m "Update moox/core dependency to ^^2.1.8" || echo "No changes to commit"
git commit -m "Update moox/core dependency to ^^2.1.9" || echo "No changes to commit"
fi
- if: "!startsWith(github.ref, 'refs/tags/')"
Expand Down
2 changes: 2 additions & 0 deletions packages/core/resources/lang/de/expiry.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@

'expired_at' => 'Abgelaufen',
'processing_deadline' => 'Bearbeitungsfrist',
'escalated_at' => 'Eskaliert am',
'escalated_to' => 'Eskaliert an',
'cycle' => 'Turnus',
'notifyUser' => 'Verantwortlicher',
'expiry_job' => 'Typ',
Expand Down
2 changes: 2 additions & 0 deletions packages/core/resources/lang/en/expiry.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

'expired_at' => 'Expired',
'processing_deadline' => 'Processing deadline',
'escalated_at' => 'Escalated at',
'escalated_to' => 'Escalated to',
'cycle' => 'Cycle',
'notifyUser' => 'Verantwortlicher',
'expiry_job' => 'Type',
Expand Down
11 changes: 10 additions & 1 deletion packages/expiry/src/Resources/ExpiryResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ public static function table(Table $table): Table
->label(__('core::expiry.processing_deadline'))
->toggleable()
->sortable()
->since(),
->since()
->visible(fn () => Expiry::query()->whereNotNull('processing_deadline')->exists()),
Tables\Columns\TextColumn::make('escalated_at')
->label(__('core::expiry.escalated_at'))
->toggleable()
->sortable()
->date()
->icon('gmdi-warning')
->color('warning')
->visible(fn () => Expiry::query()->whereNotNull('escalated_at')->exists()),
Tables\Columns\TextColumn::make('cycle')
->label(__('core::expiry.cycle'))
->toggleable()
Expand Down

0 comments on commit ca2a06c

Please sign in to comment.