Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Release notes popup now exists.
James Coleb6f96c0307fc
diff --git a/app/Api/V1/Controllers/System/ReleaseNotesController.php b/app/Api/V1/Controllers/System/ReleaseNotesController.phpindex 89717779fb..ea070bf670 100644--- a/app/Api/V1/Controllers/System/ReleaseNotesController.php+++ b/app/Api/V1/Controllers/System/ReleaseNotesController.php@@ -45,6 +45,7 @@ class ReleaseNotesController extends Controllerreturn response()->json([+ 'version' =>config('firefly.version'),'release_notes' => $parsed,'release_notes_markdown' => $notes,]diff --git a/config/translations.php b/config/translations.phpindex 6591c0599f..abffb14d64 100644--- a/config/translations.php+++ b/config/translations.php@@ -271,6 +271,7 @@ return ['source_account_reconciliation','budget','bill',+ 'release_notes_title','you_create_withdrawal','you_create_transfer','you_create_deposit',diff --git a/resources/assets/v3/js/pages/dashboard/dashboard.js b/resources/assets/v3/js/pages/dashboard/dashboard.jsindex d7671bbc0a..ab7e3c4919 100644--- a/resources/assets/v3/js/pages/dashboard/dashboard.js+++ b/resources/assets/v3/js/pages/dashboard/dashboard.js@@ -31,6 +31,8 @@ import { drawMultiCurrencyChart } from "../../shared/draw-chart.js";import formatDate from "../../util/format-date.js";import ReleaseNotes from '../../api/system/release-notes.js';import Post from '../../api/preferences/post.js';+import { Modal } from "bootstrap";+import i18next from "i18next";let index = function () {return {@@ -63,14 +65,16 @@ let index = function () {showNewFeatures = true;}}- if(!showNewFeatures) {- console.warn('User has already seen release notes.');- }- if(showNewFeatures) {+ if (showNewFeatures) {// get from API.(new ReleaseNotes).get().then((notes) => {let releaseNotes = notes.data.release_notes;- if(null === releaseNotes) {+ let version = notes.data.version;+ if (!version.startsWith('develop')) {+ version = "v" + version;+ }+ if (null === releaseNotes) {+ console.log('Release notes are NULL');// mark as seen by submitting a preference.// TODO make a function.const now = parseInt(new Date().getTime() / 1000);@@ -81,17 +85,28 @@ let index = function () {window.store.set(whatsNewDialog, true);window.store.set(lastTimeDialog, now);}+ if (null !== releaseNotes) {+ let element = document.getElementById("releaseNotesModal");+ let modal = new Modal(element, {});+ element.querySelector('.modal-title').textContent = i18next.t('firefly.release_notes_title', {version: version});+ element.querySelector('.modal-body').innerHTML = releaseNotes;+ modal.show();+ element.addEventListener('hidden.bs.modal', function (event) {+ let checkBox = document.getElementById('revisitCheckbox');+ const revisit = !checkBox.checked;+ const now = parseInt(new Date().getTime() / 1000);+ (new Post).post(whatsNewDialog, revisit);+ (new Post).post(lastTimeDialog, now);+ window[whatsNewDialog] = revisit;+ window[lastTimeDialog] = now;+ window.store.set(whatsNewDialog, revisit);+ window.store.set(lastTimeDialog, now);+ });+ }});- // make modal.- // show it.- // on close, mark as viewed (depends on box).}-- // alert(whatsNewDialog + ' is ' + (null === values[whatsNewDialog]));- // alert(lastTimeDialog + ' is ' + (null === values[lastTimeDialog]));});}-getVariable("anonymous").then((value) => {let start = new Date(window.store.get("start"));let end = new Date(window.store.get("end"));diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.phpindex a008f18fdd..a7c39d9e65 100644--- a/resources/lang/en_US/firefly.php+++ b/resources/lang/en_US/firefly.php@@ -2772,6 +2772,8 @@ return ['explain_related' => 'You can link transactions. The link doesn\'t do anything YET, but this is on my list.','no_relations_yet' => 'This transaction has no relations to other transactions (yet).','auto_save_active' => 'Changes are saved automatically in the background.',+ 'release_notes_title' => 'Release notes for Firefly III {{version}}',+ 'notes_again_in_two_days' => 'Check this box to see the release notes again in two days.',// split a transaction:'splits' => 'Splits',diff --git a/resources/release-notes/develop-2026-10-06.md b/resources/release-notes/develop-2026-10-06.mdindex fd6a09d84d..f5d8699191 100644--- a/resources/release-notes/develop-2026-10-06.md+++ b/resources/release-notes/develop-2026-10-06.md@@ -1,11 +1,11 @@I am the release notes of Firefly III develop version something.-# Header one+##### Cool new stuff-- with-- a list+- Bla bla bla bla bla+- Bla bla bla bla bla-## Header two+Also you can now bla bla bla bla.[And a link](https://api-docs.firefly-iii.org/)diff --git a/resources/views/layout/v3/session.blade.php b/resources/views/layout/v3/session.blade.phpindex 75aeda6a68..4f1fc3c9b1 100644--- a/resources/views/layout/v3/session.blade.php+++ b/resources/views/layout/v3/session.blade.php@@ -545,6 +545,30 @@<div class="modal fade" id="defaultModal" tabindex="-1" role="dialog"></div>+<div class="modal fade" tabindex="-1" role="dialog" id="releaseNotesModal">+ <div class="modal-dialog modal-lg">+ <div class="modal-content">+ <div class="modal-header">+ <h4 class="modal-title">++ </h4>+ </div>+ <div class="modal-body">++ </div>+ <div class="modal-footer">+ <div class="form-check">+ <input class="form-check-input" id="revisitCheckbox" type="checkbox" name="show-again" value="1">+ <label class="form-check-label" for="revisitCheckbox">+ {{ trans('firefly.notes_again_in_two_days') }}+ </label>+ </div>+ <button type="button" class="btn btn-primary" data-bs-dismiss="modal">{{ trans('firefly.close') }}</button>+ </div>+ </div>+ </div>+</div>+<div class="modal fade" tabindex="-1" role="dialog" id="helpModal"><div class="modal-dialog modal-lg"><div class="modal-content">