From d06e5f25b00b119d583bcc31efe7f57c090015b4 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 23 May 2024 11:51:08 -0700 Subject: [PATCH 01/12] Remove old trait from test --- tests/Feature/Settings/BrandingSettingsTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/Feature/Settings/BrandingSettingsTest.php b/tests/Feature/Settings/BrandingSettingsTest.php index ef98d85593..a27a5d1ef8 100644 --- a/tests/Feature/Settings/BrandingSettingsTest.php +++ b/tests/Feature/Settings/BrandingSettingsTest.php @@ -3,13 +3,10 @@ namespace Tests\Feature\Settings; use App\Models\User; -use Tests\Support\InteractsWithSettings; use Tests\TestCase; class BrandingSettingsTest extends TestCase { - use InteractsWithSettings; - public function testSiteNameIsRequired() { $this->actingAs(User::factory()->superuser()->create()) From ef95ede83329786f1db5ae9988f1bd6746ab8e21 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 23 May 2024 12:32:34 -0700 Subject: [PATCH 02/12] Add Install Passport step --- .github/workflows/tests-sqlite.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml index 405dc92134..2bfd4b5f1f 100644 --- a/.github/workflows/tests-sqlite.yml +++ b/.github/workflows/tests-sqlite.yml @@ -49,6 +49,9 @@ jobs: - name: Generate key run: php artisan key:generate + - name: Install Passport + run: php artisan passport:install + - name: Directory Permissions run: chmod -R 777 storage bootstrap/cache From a130033480e72bd352721a40273fcebf89ca8d7c Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 23 May 2024 12:45:38 -0700 Subject: [PATCH 03/12] Revert "Add Install Passport step" This reverts commit ef95ede83329786f1db5ae9988f1bd6746ab8e21. --- .github/workflows/tests-sqlite.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml index 2bfd4b5f1f..405dc92134 100644 --- a/.github/workflows/tests-sqlite.yml +++ b/.github/workflows/tests-sqlite.yml @@ -49,9 +49,6 @@ jobs: - name: Generate key run: php artisan key:generate - - name: Install Passport - run: php artisan passport:install - - name: Directory Permissions run: chmod -R 777 storage bootstrap/cache From 51f72daba104b7f9a6d1918e391309e5c377bdd4 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 23 May 2024 13:55:03 -0700 Subject: [PATCH 04/12] Debugging step --- .github/workflows/tests-sqlite.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml index 405dc92134..df06089204 100644 --- a/.github/workflows/tests-sqlite.yml +++ b/.github/workflows/tests-sqlite.yml @@ -46,11 +46,14 @@ jobs: - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist + - name: Directory Permissions + run: chmod -R 777 storage bootstrap/cache + - name: Generate key run: php artisan key:generate - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache + - name: Debug Passport + run: ls -la storage - name: Execute tests (Unit and Feature tests) via PHPUnit env: From fa6e170feb01d78aae9039643dceabaa67dce3fe Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 23 May 2024 14:01:06 -0700 Subject: [PATCH 05/12] Install passport --- .github/workflows/tests-sqlite.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml index df06089204..230e192f97 100644 --- a/.github/workflows/tests-sqlite.yml +++ b/.github/workflows/tests-sqlite.yml @@ -52,6 +52,9 @@ jobs: - name: Generate key run: php artisan key:generate + - name: Install Passport + run: php artisan passport:install + - name: Debug Passport run: ls -la storage From 4ce86a061fd1ecc47dd794c0d341cb382ae26099 Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 23 May 2024 15:43:59 -0700 Subject: [PATCH 06/12] Set DB_CONNECTION --- .github/workflows/tests-sqlite.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml index 230e192f97..fcad5ae989 100644 --- a/.github/workflows/tests-sqlite.yml +++ b/.github/workflows/tests-sqlite.yml @@ -53,6 +53,8 @@ jobs: run: php artisan key:generate - name: Install Passport + env: + DB_CONNECTION: sqlite_testing run: php artisan passport:install - name: Debug Passport From e03b5754a8629909306fc5d8dd3a83e75550b7af Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 23 May 2024 15:54:32 -0700 Subject: [PATCH 07/12] Combine steps --- .github/workflows/tests-sqlite.yml | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml index fcad5ae989..85817319ef 100644 --- a/.github/workflows/tests-sqlite.yml +++ b/.github/workflows/tests-sqlite.yml @@ -46,19 +46,14 @@ jobs: - name: Install Dependencies run: composer install -q --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist - - name: Directory Permissions - run: chmod -R 777 storage bootstrap/cache - - - name: Generate key - run: php artisan key:generate - - - name: Install Passport + - name: Setup Laravel env: DB_CONNECTION: sqlite_testing - run: php artisan passport:install - - - name: Debug Passport - run: ls -la storage + run: | + php artisan key:generate + php artisan migrate --force + php artisan passport:install + chmod -R 777 storage bootstrap/cache - name: Execute tests (Unit and Feature tests) via PHPUnit env: From 639cbf6d53e92ca1706088b521ad236af76a4fbe Mon Sep 17 00:00:00 2001 From: Marcus Moore Date: Thu, 23 May 2024 15:56:58 -0700 Subject: [PATCH 08/12] Remove passport:install command --- .github/workflows/tests-sqlite.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/tests-sqlite.yml b/.github/workflows/tests-sqlite.yml index 85817319ef..ec2ef8b783 100644 --- a/.github/workflows/tests-sqlite.yml +++ b/.github/workflows/tests-sqlite.yml @@ -52,7 +52,6 @@ jobs: run: | php artisan key:generate php artisan migrate --force - php artisan passport:install chmod -R 777 storage bootstrap/cache - name: Execute tests (Unit and Feature tests) via PHPUnit From c3cf123189213eee62e5797e5c488b9ec681fbf9 Mon Sep 17 00:00:00 2001 From: snipe Date: Sat, 25 May 2024 10:39:47 +0100 Subject: [PATCH 09/12] Better translation for custom fields Signed-off-by: snipe --- resources/lang/en-US/general.php | 2 ++ resources/views/layouts/default.blade.php | 11 +++++------ resources/views/reports/custom.blade.php | 2 +- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/resources/lang/en-US/general.php b/resources/lang/en-US/general.php index 7ee1557c51..66100dd09f 100644 --- a/resources/lang/en-US/general.php +++ b/resources/lang/en-US/general.php @@ -500,6 +500,8 @@ return [ 'address2' => 'Address Line 2', 'import_note' => 'Imported using csv importer', ], + 'remove_customfield_association' => 'Remove this field from the fieldset. This will not delete the custom field, only this field\'s association with this fieldset.', + 'checked_out_to_fields' => 'Checked Out To Fields', 'percent_complete' => '% complete', 'uploading' => 'Uploading... ', 'upload_error' => 'Error uploading file. Please check that there are no empty rows and that no column names are duplicated.', diff --git a/resources/views/layouts/default.blade.php b/resources/views/layouts/default.blade.php index 523d76b355..2b7ae31afc 100644 --- a/resources/views/layouts/default.blade.php +++ b/resources/views/layouts/default.blade.php @@ -738,7 +738,11 @@ dir="{{ in_array(app()->getLocale(),['ar-SA','fa-IR', 'he-IL']) ? 'rtl' : 'ltr' {{ trans('general.activity_report') }} - +
  • + + {{ trans('general.custom_report') }} + +
  • {{ trans('general.audit_report') }} @@ -768,11 +772,6 @@ dir="{{ in_array(app()->getLocale(),['ar-SA','fa-IR', 'he-IL']) ? 'rtl' : 'ltr' {{ trans('general.accessory_report') }}
  • -
  • - - {{ trans('general.custom_report') }} - -
  • @endcan diff --git a/resources/views/reports/custom.blade.php b/resources/views/reports/custom.blade.php index 7a1f522e49..ebc212b5c7 100644 --- a/resources/views/reports/custom.blade.php +++ b/resources/views/reports/custom.blade.php @@ -189,7 +189,7 @@ -

    {{ trans('general.checked_out_to') }} {{ trans('general.fields') }}:

    +

    {{ trans('general.checked_out_to_fields') }}: