Skip to content

Firefly III: a personal finances manager

Clean up release notes, allow for version.

James Cole075565642cb8
diff --git a/app/Api/V1/Controllers/System/ReleaseNotesController.php b/app/Api/V1/Controllers/System/ReleaseNotesController.php
index a2524e75fc..da396d9aad 100644
--- a/app/Api/V1/Controllers/System/ReleaseNotesController.php
+++ b/app/Api/V1/Controllers/System/ReleaseNotesController.php
@@ -34,22 +34,41 @@ final class ReleaseNotesController extends Controller
/**
* @throws FireflyException
*/
- public function index(): JsonResponse
+ public function index(?string $version = null): JsonResponse
{
- $version = trim(str_replace('/', '-', config('firefly.version')));
- $disk = Storage::disk('release-notes');
- $file = sprintf('%s.md', $version);
- $notes = null;
- $parsed = null;
+ if (null !== $version) {
+ // remove "v" from version if it is there.
+ if (str_starts_with($version, 'v')) {
+ $version = substr($version, 1);
+ }
+ if (str_starts_with($version, 'develop-')) {
+ $version = sprintf('develop/%s', substr($version, 8));
+ }
+ $version = substr($version, 0, 18);
+ $ogVersion = $version;
+ }
+ if (null === $version) {
+ $version = config('firefly.version');
+ $version = trim(str_replace('/', '-', $version));
+ $ogVersion = config('firefly.version');
+ }
+
+ // find it on the disk.
+ $disk = Storage::disk('release-notes');
+ $file = sprintf('%s.md', trim(str_replace('/', '-', $version)));
+ $notes = null;
+ $parsed = null;
if ($disk->exists($file)) {
- $notes = trim((string) $disk->get($file));
+ $notes = trim((string)$disk->get($file));
$parsed = trim(parse_markdown($notes));
}
- return response()->json([
- 'version' => config('firefly.version'),
- 'release_notes' => $parsed,
- 'release_notes_markdown' => $notes,
- ]);
+ return response()->json(
+ [
+ 'version' => $ogVersion,
+ 'release_notes' => $parsed,
+ 'release_notes_markdown' => $notes,
+ ]
+ );
}
}
diff --git a/resources/release-notes/develop-2026-10-06.md b/resources/release-notes/develop-2026-10-06.md
index 49a520d07a..28582e975f 100644
--- a/resources/release-notes/develop-2026-10-06.md
+++ b/resources/release-notes/develop-2026-10-06.md
@@ -1,9 +1,4 @@
#### Important new stuff
-- The rule engine no longer features "expressions" unless you turn it on manually.
-- Bla bla bla more stuff.
-
-#### New features!
-
-- This popup. Can you believe it!
+Dev 10-06
diff --git a/resources/release-notes/develop-2026-10-07.md b/resources/release-notes/develop-2026-10-07.md
index 07bae79c17..0fb131ff58 100644
--- a/resources/release-notes/develop-2026-10-07.md
+++ b/resources/release-notes/develop-2026-10-07.md
@@ -1,13 +1,3 @@
#### Important new stuff
-- This popup. Can you believe it!
-- It was my birthday in September so you all get cake: 🎂
-- If you want to see this pop-up again, check the box below. Or read these notes again [on GitHub](https://github.com/firefly-iii/firefly-iii/blob/develop/resources/release-notes/6.7.8.md).
-
-#### New features and changes
-
-- The "expression engine" that is available in the rule engine is now disabled by default. You can enable it in the Firefly III [settings](./settings/configuration).
-- The account list can be sorted and filtered, and this will be available for other lists in the future as well.
-- This fancy new layout will improve over time. Please feel free to [give feedback on GitHub](https://github.com/orgs/firefly-iii/discussions/12746).
-
-For more details, check out [the full changelog](https://github.com/firefly-iii/firefly-iii/blob/main/changelog.md).
+Dev 10-07
diff --git a/routes/api.php b/routes/api.php
index 4592310853..b5b7334673 100644
--- a/routes/api.php
+++ b/routes/api.php
@@ -120,7 +120,7 @@ Route::group(
'as' => 'api.v1.release-notes.',
],
static function (): void {
- Route::get('', [ReleaseNotesController::class, 'index'])->name('index');
+ Route::get('{version?}', [ReleaseNotesController::class, 'index'])->name('index');
}
);