From c471e1a804bbdfb2d261011b5b9ad500dcf57083 Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Wed, 1 Jul 2026 12:04:16 +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 | 23 +++++++++++++++++++++-- 3 files changed, 30 insertions(+), 4 deletions(-) diff --git a/src/Support/DatabaseModuleRegistry.php b/src/Support/DatabaseModuleRegistry.php index e51598f..93fe9aa 100644 --- a/src/Support/DatabaseModuleRegistry.php +++ b/src/Support/DatabaseModuleRegistry.php @@ -218,7 +218,14 @@ class DatabaseModuleRegistry return [ 'readme' => $this->readFirstExisting($path, ['README.md', 'readme.md'], 7000), - 'changelog' => $this->readFirstExisting($path, ['CHANGELOG.md', 'changelog.md', 'changelog.yaml'], 7000), + 'changelog' => $this->readFirstExisting($path, [ + 'changelog.yaml', + 'CHANGELOG.md', + 'CHANGELOG', + 'CHANGELOG.txt', + 'changelog.md', + 'changelog.txt', + ], 12000), '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 ec7f9a2..5ca3083 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 c6bdbf1..349948e 100644 --- a/src/resources/views/show.blade.php +++ b/src/resources/views/show.blade.php @@ -211,8 +211,27 @@
-

Changelog preview

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

Changelog

+

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

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