From b1f0ff5eebb9f4592ff34cb9ee2b25fcb1541edb Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Wed, 1 Jul 2026 12:14:59 +0100 Subject: [PATCH] with pagination nwo with the proper view selection --- src/Support/DatabaseModuleRegistry.php | 9 +- src/resources/views/index.blade.php | 2 +- src/resources/views/show.blade.php | 116 +++++++++++++------------ 3 files changed, 64 insertions(+), 63 deletions(-) diff --git a/src/Support/DatabaseModuleRegistry.php b/src/Support/DatabaseModuleRegistry.php index 93fe9aa..e51598f 100644 --- a/src/Support/DatabaseModuleRegistry.php +++ b/src/Support/DatabaseModuleRegistry.php @@ -218,14 +218,7 @@ class DatabaseModuleRegistry return [ 'readme' => $this->readFirstExisting($path, ['README.md', 'readme.md'], 7000), - 'changelog' => $this->readFirstExisting($path, [ - 'changelog.yaml', - 'CHANGELOG.md', - 'CHANGELOG', - 'CHANGELOG.txt', - 'changelog.md', - 'changelog.txt', - ], 12000), + 'changelog' => $this->readFirstExisting($path, ['CHANGELOG.md', 'changelog.md', 'changelog.yaml'], 7000), 'routes' => $this->filesUnder($path, ['Routes/*.php', 'routes/*.php']), 'migrations' => $this->filesUnder($path, ['Database/Migrations/*.php', 'database/migrations/*.php']), 'models' => $this->filesUnder($path, ['app/Models/*.php', 'Models/*.php', 'Entities/*.php', 'app/Entities/*.php']), diff --git a/src/resources/views/index.blade.php b/src/resources/views/index.blade.php index 5ca3083..ec7f9a2 100644 --- a/src/resources/views/index.blade.php +++ b/src/resources/views/index.blade.php @@ -167,7 +167,7 @@ @forelse ($modules as $module) - + diff --git a/src/resources/views/show.blade.php b/src/resources/views/show.blade.php index 349948e..d35f707 100644 --- a/src/resources/views/show.blade.php +++ b/src/resources/views/show.blade.php @@ -183,72 +183,80 @@ -
-

Developer files

-
- @foreach ($fileGroups as $label => $files) -
-
-

{{ $label }}

- {{ count($files) }} +
+ +
+

Developer files

+

Routes, migrations, models, controllers and providers discovered for this module.

+
+ +
+ +
+
+ @foreach ($fileGroups as $label => $files) +
+
+

{{ $label }}

+ {{ count($files) }} +
+
    + @forelse ($files as $file) +
  • {{ $file }}
  • + @empty +
  • None found.
  • + @endforelse +
-
    - @forelse ($files as $file) -
  • {{ $file }}
  • - @empty -
  • None found.
  • - @endforelse -
-
- @endforeach + @endforeach +
-
+
-
-

README preview

-
{{ $module['readme'] ?: 'No README found.' }}
-
- -
-
+
+
-

Changelog

-

- Latest module changes from changelog.yaml, CHANGELOG.md, or CHANGELOG where available. -

+

README preview

+

Open to inspect the module README where available.

- @if (! empty($module['changelog'])) - - Available - - @endif -
+ + - @if (! empty($module['changelog'])) -
{{ $module['changelog'] }}
- @else -
- No changelog found for this module. -
- @endif +
+
{{ $module['readme'] ?: 'No README found.' }}
+
+ + +
+

Changelog preview

+
{{ $module['changelog'] ?: 'No changelog found.' }}