Skip to content

Firefly III: a personal finances manager

🤖 Auto commit for release 'develop' on 2026-09-16

JC5333f5a3343e9
diff --git a/app/Api/V1/Controllers/Insight/Income/TagController.php b/app/Api/V1/Controllers/Insight/Income/TagController.php
index df99eef909..94be2ae461 100644
--- a/app/Api/V1/Controllers/Insight/Income/TagController.php
+++ b/app/Api/V1/Controllers/Insight/Income/TagController.php
@@ -158,7 +158,10 @@ final class TagController extends Controller
'currency_id' => (string) $foreignCurrencyId,
'currency_code' => $journal['foreign_currency_code'],
];
- $response[$foreignKey]['difference'] = bcadd((string) $response[$foreignKey]['difference'], Steam::positive($journal['foreign_amount']));
+ $response[$foreignKey]['difference'] = bcadd(
+ (string) $response[$foreignKey]['difference'],
+ Steam::positive($journal['foreign_amount'])
+ );
$response[$foreignKey]['difference_float'] = (float) $response[$foreignKey]['difference'];
}
}
diff --git a/app/Api/V1/Controllers/Insight/Transfer/TagController.php b/app/Api/V1/Controllers/Insight/Transfer/TagController.php
index f92a7aa9f0..b7b85fd376 100644
--- a/app/Api/V1/Controllers/Insight/Transfer/TagController.php
+++ b/app/Api/V1/Controllers/Insight/Transfer/TagController.php
@@ -155,7 +155,10 @@ final class TagController extends Controller
'currency_id' => (string) $foreignCurrencyId,
'currency_code' => $journal['foreign_currency_code'],
];
- $response[$foreignKey]['difference'] = bcadd((string) $response[$foreignKey]['difference'], Steam::positive($journal['foreign_amount']));
+ $response[$foreignKey]['difference'] = bcadd(
+ (string) $response[$foreignKey]['difference'],
+ Steam::positive($journal['foreign_amount'])
+ );
$response[$foreignKey]['difference_float'] = (float) $response[$foreignKey]['difference']; // intentional float
}
}
diff --git a/app/Http/Controllers/Budget/BudgetLimitController.php b/app/Http/Controllers/Budget/BudgetLimitController.php
index 2edb4f5531..d461374baa 100644
--- a/app/Http/Controllers/Budget/BudgetLimitController.php
+++ b/app/Http/Controllers/Budget/BudgetLimitController.php
@@ -198,7 +198,13 @@ final class BudgetLimitController extends Controller
if ($request->expectsJson()) {
$array = $limit->toArray();
// add some extra metadata:
- $spentArr = $this->opsRepository->sumExpenses($limit->start_date, $limit->end_date, null, new Collection()->push($budget), $currency);
+ $spentArr = $this->opsRepository->sumExpenses(
+ $limit->start_date,
+ $limit->end_date,
+ null,
+ new Collection()->push($budget),
+ $currency
+ );
$array['spent'] = $spentArr[$currency->id]['sum'] ?? '0';
$array['left_formatted'] = Amount::formatAnything($limit->transactionCurrency, bcadd($array['spent'], (string) $array['amount']));
$array['amount_formatted'] = Amount::formatAnything($limit->transactionCurrency, $limit['amount']);
diff --git a/app/Http/Controllers/Budget/IndexController.php b/app/Http/Controllers/Budget/IndexController.php
index 9e43694d93..52c6f900e3 100644
--- a/app/Http/Controllers/Budget/IndexController.php
+++ b/app/Http/Controllers/Budget/IndexController.php
@@ -59,10 +59,10 @@ final class IndexController extends Controller
use DateCalculation;
private AvailableBudgetRepositoryInterface $abRepository;
- private BudgetLimitRepositoryInterface $blRepository;
- private CurrencyRepositoryInterface $currencyRepository;
- private OperationsRepositoryInterface $opsRepository;
- private BudgetRepositoryInterface $repository;
+ private BudgetLimitRepositoryInterface $blRepository;
+ private CurrencyRepositoryInterface $currencyRepository;
+ private OperationsRepositoryInterface $opsRepository;
+ private BudgetRepositoryInterface $repository;
/**
* IndexController constructor.
@@ -72,7 +72,7 @@ final class IndexController extends Controller
parent::__construct();
$this->middleware(function ($request, $next) {
- app('view')->share('title', (string)trans('firefly.budgets'));
+ app('view')->share('title', (string) trans('firefly.budgets'));
app('view')->share('mainTitleIcon', 'bi-pie-chart');
$this->repository = app(BudgetRepositoryInterface::class);
$this->opsRepository = app(OperationsRepositoryInterface::class);
@@ -92,34 +92,34 @@ final class IndexController extends Controller
*
* @throws FireflyException
* */
- public function index(?Carbon $start = null, ?Carbon $end = null): Factory | \Illuminate\Contracts\View\View
+ public function index(?Carbon $start = null, ?Carbon $end = null): Factory|\Illuminate\Contracts\View\View
{
$this->abRepository->cleanup();
Log::debug(sprintf('Start of IndexController::index("%s", "%s")', $start?->format('Y-m-d'), $end?->format('Y-m-d')));
// collect some basic vars:
- $range = Navigation::getViewRange(true);
- $isCustomRange = session('is_custom_range', false);
- $start ??= Navigation::startOfPeriod(session('start', today(config('app.timezone'))), $range);
- $end ??= Navigation::endOfPeriod($start, $range);
- $currencies = $this->currencyRepository->get();
- $budgeted = '0';
- $spent = '0';
+ $range = Navigation::getViewRange(true);
+ $isCustomRange = session('is_custom_range', false);
+ $start ??= Navigation::startOfPeriod(session('start', today(config('app.timezone'))), $range);
+ $end ??= Navigation::endOfPeriod($start, $range);
+ $currencies = $this->currencyRepository->get();
+ $budgeted = '0';
+ $spent = '0';
// new period stuff:
- $periodTitle = Navigation::periodShow($start, $range);
- $prevLoop = $this->getPreviousPeriods($start, $range);
- $nextLoop = $this->getNextPeriods($start, $range);
+ $periodTitle = Navigation::periodShow($start, $range);
+ $prevLoop = $this->getPreviousPeriods($start, $range);
+ $nextLoop = $this->getNextPeriods($start, $range);
// number of days for consistent budgeting.
$activeDaysPassed = $this->activeDaysPassed($start, $end); // see method description.
- $activeDaysLeft = $this->activeDaysLeft($start, $end); // see method description.
+ $activeDaysLeft = $this->activeDaysLeft($start, $end); // see method description.
// get all available budgets:
$availableBudgets = $this->getAllAvailableBudgets($start, $end);
// get all active budgets:
- $budgets = $this->getAllBudgets($start, $end, $currencies, $this->primaryCurrency);
- $sums = $this->getSums($budgets);
+ $budgets = $this->getAllBudgets($start, $end, $currencies, $this->primaryCurrency);
+ $sums = $this->getSums($budgets);
// get budgeted for default currency:
if (0 === count($availableBudgets)) {
@@ -130,7 +130,7 @@ final class IndexController extends Controller
}
// get all inactive budgets, and simply list them:
- $inactive = $this->repository->getInactiveBudgets();
+ $inactive = $this->repository->getInactiveBudgets();
return view('budgets.index', [
'availableBudgets' => $availableBudgets,
@@ -156,7 +156,7 @@ final class IndexController extends Controller
$budgetIds = $request->input('budgetIds');
foreach ($budgetIds as $index => $budgetId) {
- $budgetId = (int)$budgetId;
+ $budgetId = (int) $budgetId;
$budget = $repository->find($budgetId);
if ($budget instanceof Budget) {
Log::debug(sprintf('Set budget #%d ("%s") to position %d', $budget->id, $budget->name, $index + 1));
@@ -171,7 +171,7 @@ final class IndexController extends Controller
private function getAllAvailableBudgets(Carbon $start, Carbon $end): array
{
Log::debug(sprintf('Start of getAllAvailableBudgets("%s", "%s")', $start->format('Y-m-d H:i:s'), $end->format('Y-m-d H:i:s')));
- $converter = new ExchangeRateConverter();
+ $converter = new ExchangeRateConverter();
// get all available budgets.
$ab = $this->abRepository->get($start, $end);
$availableBudgets = [];
@@ -179,14 +179,14 @@ final class IndexController extends Controller
// for each, complement with spent amount:
/** @var AvailableBudget $entry */
foreach ($ab as $entry) {
- $array = $entry->toArray();
- $array['start_date'] = $entry->start_date;
- $array['end_date'] = $entry->end_date;
+ $array = $entry->toArray();
+ $array['start_date'] = $entry->start_date;
+ $array['end_date'] = $entry->end_date;
// spent in period:
- $spentArr = $this->opsRepository->sumExpenses($entry->start_date, $entry->end_date, null, null, $entry->transactionCurrency);
- $array['spent'] = $spentArr[$entry->transaction_currency_id]['sum'] ?? '0';
- $array['pc_spent'] = $this->convertToPrimary && $entry->transaction_currency_id !== $this->primaryCurrency->id
+ $spentArr = $this->opsRepository->sumExpenses($entry->start_date, $entry->end_date, null, null, $entry->transactionCurrency);
+ $array['spent'] = $spentArr[$entry->transaction_currency_id]['sum'] ?? '0';
+ $array['pc_spent'] = $this->convertToPrimary && $entry->transaction_currency_id !== $this->primaryCurrency->id
? $converter->convert($entry->transactionCurrency, $this->primaryCurrency, $entry->start_date, $array['spent'])
: null;
// budgeted in period:
@@ -197,7 +197,7 @@ final class IndexController extends Controller
: null;
// this time, because of complex sums, use the currency converter.
- $availableBudgets[] = $array;
+ $availableBudgets[] = $array;
unset($spentArr);
}
@@ -227,13 +227,13 @@ final class IndexController extends Controller
foreach ($budgetLimits as $limit) {
Log::debug(sprintf('Working on budget limit #%d', $limit->id));
// number of days for consistent budgeting.
- $activeDaysPassed = $this->activeDaysPassed($limit->start_date, $limit->end_date); // see method description.
- $activeDaysLeft = $this->activeDaysLeft($limit->start_date, $limit->end_date); // see method description.
- $limitPeriod = Period::make($limit->start_date, $limit->end_date, precision: Precision::DAY(), boundaries: Boundaries::EXCLUDE_NONE());
- $inPast = $limitPeriod->startsBefore(now()) && $limitPeriod->endsBefore(now());
- $currency = $limit->transactionCurrency ?? $primaryCurrency;
- $amount = Steam::bcround($limit->amount, $currency->decimal_places);
- $spent = $this->opsRepository->sumExpenses($limit->start_date, $limit->end_date, null, new Collection()->push($budget), $currency);
+ $activeDaysPassed = $this->activeDaysPassed($limit->start_date, $limit->end_date); // see method description.
+ $activeDaysLeft = $this->activeDaysLeft($limit->start_date, $limit->end_date); // see method description.
+ $limitPeriod = Period::make($limit->start_date, $limit->end_date, precision: Precision::DAY(), boundaries: Boundaries::EXCLUDE_NONE());
+ $inPast = $limitPeriod->startsBefore(now()) && $limitPeriod->endsBefore(now());
+ $currency = $limit->transactionCurrency ?? $primaryCurrency;
+ $amount = Steam::bcround($limit->amount, $currency->decimal_places);
+ $spent = $this->opsRepository->sumExpenses($limit->start_date, $limit->end_date, null, new Collection()->push($budget), $currency);
$spentAmount = $spent[$currency->id]['sum'] ?? '0';
$array['budgeted'][] = [
@@ -272,13 +272,16 @@ final class IndexController extends Controller
if (array_key_exists($currency->id, $spentArr) && array_key_exists('sum', $spentArr[$currency->id])) {
$array['spent'][$currency->id]['spent'] = $spentArr[$currency->id]['sum'];
- $array['spent'][$currency->id]['spent_outside'] = Steam::negative(bcsub($spentInLimits[$currency->id], $spentArr[$currency->id]['sum']));
- $array['spent'][$currency->id]['currency_id'] = $currency->id;
+ $array['spent'][$currency->id]['spent_outside'] = Steam::negative(bcsub(
+ $spentInLimits[$currency->id],
+ $spentArr[$currency->id]['sum']
+ ));
+ $array['spent'][$currency->id]['currency_id'] = $currency->id;
$array['spent'][$currency->id]['currency_symbol'] = $currency->symbol;
$array['spent'][$currency->id]['currency_decimal_places'] = $currency->decimal_places;
}
}
- $budgets[] = $array;
+ $budgets[] = $array;
}
return $budgets;
@@ -295,28 +298,28 @@ final class IndexController extends Controller
/** @var array $spent */
foreach ($budget['spent'] as $spent) {
$currencyId = $spent['currency_id'];
- $sums['spent'][$currencyId] ??= [
+ $sums['spent'][$currencyId] ??= [
'amount' => '0',
'currency_id' => $spent['currency_id'],
'currency_symbol' => $spent['currency_symbol'],
'currency_decimal_places' => $spent['currency_decimal_places'],
];
- $sums['spent'][$currencyId]['amount'] = bcadd($sums['spent'][$currencyId]['amount'], (string)$spent['spent']);
+ $sums['spent'][$currencyId]['amount'] = bcadd($sums['spent'][$currencyId]['amount'], (string) $spent['spent']);
}
/** @var array $budgeted */
foreach ($budget['budgeted'] as $budgeted) {
$currencyId = $budgeted['currency_id'];
- $sums['budgeted'][$currencyId] ??= [
+ $sums['budgeted'][$currencyId] ??= [
'amount' => '0',
'currency_id' => $budgeted['currency_id'],
'currency_symbol' => $budgeted['currency_symbol'],
'currency_decimal_places' => $budgeted['currency_decimal_places'],
];
- $sums['budgeted'][$currencyId]['amount'] = bcadd($sums['budgeted'][$currencyId]['amount'], (string)$budgeted['amount']);
+ $sums['budgeted'][$currencyId]['amount'] = bcadd($sums['budgeted'][$currencyId]['amount'], (string) $budgeted['amount']);
// also calculate how much left from budgeted:
- $sums['left'][$currencyId] ??= [
+ $sums['left'][$currencyId] ??= [
'amount' => '0',
'currency_id' => $budgeted['currency_id'],
'currency_symbol' => $budgeted['currency_symbol'],
diff --git a/app/Http/Controllers/Chart/BudgetController.php b/app/Http/Controllers/Chart/BudgetController.php
index ad724137dc..f4b32fe5c5 100644
--- a/app/Http/Controllers/Chart/BudgetController.php
+++ b/app/Http/Controllers/Chart/BudgetController.php
@@ -539,7 +539,13 @@ final class BudgetController extends Controller
}
// get spent amount in this period for this currency.
- $sum = $this->opsRepository->sumExpenses($currentStart, $currentEnd, $accounts, new Collection()->push($budget), $currency);
+ $sum = $this->opsRepository->sumExpenses(
+ $currentStart,
+ $currentEnd,
+ $accounts,
+ new Collection()->push($budget),
+ $currency
+ );
$amount = Steam::positive($sum[$currency->id]['sum'] ?? '0');
$chartData[0]['entries'][$title] = Steam::bcround($amount, $currency->decimal_places);
diff --git a/app/Http/Controllers/Transaction/ShowController.php b/app/Http/Controllers/Transaction/ShowController.php
index 966a233c78..01b569628b 100644
--- a/app/Http/Controllers/Transaction/ShowController.php
+++ b/app/Http/Controllers/Transaction/ShowController.php
@@ -88,50 +88,50 @@ final class ShowController extends Controller
public function show(TransactionGroup $transactionGroup): Factory|\Illuminate\Contracts\View\View
{
/** @var User $admin */
- $admin = auth()->user();
+ $admin = auth()->user();
// use new group collector:
/** @var GroupCollectorInterface $collector */
- $collector = app(GroupCollectorInterface::class);
+ $collector = app(GroupCollectorInterface::class);
$collector->setUser($admin)->setTransactionGroup($transactionGroup)->withAPIInformation();
/** @var null|TransactionGroup $selectedGroup */
- $selectedGroup = $collector->getGroups()->first();
+ $selectedGroup = $collector->getGroups()->first();
if (null === $selectedGroup) {
throw new NotFoundHttpException();
}
// enrich
- $enrichment = new TransactionGroupEnrichment();
+ $enrichment = new TransactionGroupEnrichment();
$enrichment->setUser($admin);
- $selectedGroup = $enrichment->enrichSingle($selectedGroup);
+ $selectedGroup = $enrichment->enrichSingle($selectedGroup);
- $splits = count($selectedGroup['transactions']);
- $keys = array_keys($selectedGroup['transactions']);
- $first = $selectedGroup['transactions'][array_shift($keys)];
+ $splits = count($selectedGroup['transactions']);
+ $keys = array_keys($selectedGroup['transactions']);
+ $first = $selectedGroup['transactions'][array_shift($keys)];
unset($keys);
if (null === $first) {
throw new FireflyException('This transaction is broken :(.');
}
- $type = (string) trans(sprintf('firefly.%s', $first['transaction_type_type']));
- $title = 1 === $splits ? $first['description'] : $selectedGroup['title'];
- $subTitle = sprintf('%s: "%s"', $type, $title);
+ $type = (string) trans(sprintf('firefly.%s', $first['transaction_type_type']));
+ $title = 1 === $splits ? $first['description'] : $selectedGroup['title'];
+ $subTitle = sprintf('%s: "%s"', $type, $title);
// enrich
- $enrichment = new TransactionGroupEnrichment();
+ $enrichment = new TransactionGroupEnrichment();
$enrichment->setUser($admin);
/** @var array $selectedGroup */
- $selectedGroup = $enrichment->enrichSingle($selectedGroup);
+ $selectedGroup = $enrichment->enrichSingle($selectedGroup);
/** @var TransactionGroupTransformer $transformer */
- $transformer = app(TransactionGroupTransformer::class);
- $groupArray = $transformer->transformObject($transactionGroup);
+ $transformer = app(TransactionGroupTransformer::class);
+ $groupArray = $transformer->transformObject($transactionGroup);
// do some calculations:
- $amounts = $this->getAmounts($selectedGroup);
- $accounts = $this->getAccounts($selectedGroup);
+ $amounts = $this->getAmounts($selectedGroup);
+ $accounts = $this->getAccounts($selectedGroup);
foreach (array_keys($selectedGroup['transactions']) as $index) {
$selectedGroup['transactions'][$index]['tags'] = $this->repository->getTagObjects(
@@ -139,15 +139,15 @@ final class ShowController extends Controller
);
}
// get audit log entries:
- $groupLogEntries = $this->aleRepository->getForObject($transactionGroup);
- $logEntries = [];
+ $groupLogEntries = $this->aleRepository->getForObject($transactionGroup);
+ $logEntries = [];
foreach ($selectedGroup['transactions'] as $journal) {
$logEntries[$journal['transaction_journal_id']] = $this->aleRepository->getForId(TransactionJournal::class, $journal['transaction_journal_id']);
}
- $events = $this->repository->getPiggyEvents($transactionGroup);
- $attachments = $this->repository->getAttachments($transactionGroup);
- $links = $this->repository->getLinks($transactionGroup);
+ $events = $this->repository->getPiggyEvents($transactionGroup);
+ $attachments = $this->repository->getAttachments($transactionGroup);
+ $links = $this->repository->getLinks($transactionGroup);
$selectedGroup['transactions'] = array_reverse($selectedGroup['transactions'], true);
diff --git a/app/Jobs/CreateAutoBudgetLimits.php b/app/Jobs/CreateAutoBudgetLimits.php
index 476da65ac3..affea656a0 100644
--- a/app/Jobs/CreateAutoBudgetLimits.php
+++ b/app/Jobs/CreateAutoBudgetLimits.php
@@ -132,7 +132,13 @@ class CreateAutoBudgetLimits implements ShouldQueue
// if has one, calculate expenses and use that as a base.
$repository = app(OperationsRepositoryInterface::class);
$repository->setUser($autoBudget->budget->user);
- $spent = $repository->sumExpenses($previousStart, $previousEnd, null, new Collection()->push($autoBudget->budget), $autoBudget->transactionCurrency);
+ $spent = $repository->sumExpenses(
+ $previousStart,
+ $previousEnd,
+ null,
+ new Collection()->push($autoBudget->budget),
+ $autoBudget->transactionCurrency
+ );
$currencyId = $autoBudget->transaction_currency_id;
$spentAmount = $spent[$currencyId]['sum'] ?? '0';
Log::debug(sprintf('Spent in previous budget period (%s-%s) is %s', $previousStart->format('Y-m-d'), $previousEnd->format('Y-m-d'), $spentAmount));
@@ -222,7 +228,13 @@ class CreateAutoBudgetLimits implements ShouldQueue
// if has one, calculate expenses and use that as a base.
$repository = app(OperationsRepositoryInterface::class);
$repository->setUser($autoBudget->budget->user);
- $spent = $repository->sumExpenses($previousStart, $previousEnd, null, new Collection()->push($autoBudget->budget), $autoBudget->transactionCurrency);
+ $spent = $repository->sumExpenses(
+ $previousStart,
+ $previousEnd,
+ null,
+ new Collection()->push($autoBudget->budget),
+ $autoBudget->transactionCurrency
+ );
$currencyId = $autoBudget->transaction_currency_id;
$spentAmount = $spent[$currencyId]['sum'] ?? '0';
Log::debug(sprintf('Spent in previous budget period (%s-%s) is %s', $previousStart->format('Y-m-d'), $previousEnd->format('Y-m-d'), $spentAmount));
diff --git a/app/Listeners/Model/TransactionGroup/StoresAuditLogEntry.php b/app/Listeners/Model/TransactionGroup/StoresAuditLogEntry.php
index 7afe187338..86095c9ee1 100644
--- a/app/Listeners/Model/TransactionGroup/StoresAuditLogEntry.php
+++ b/app/Listeners/Model/TransactionGroup/StoresAuditLogEntry.php
@@ -71,6 +71,7 @@ class StoresAuditLogEntry implements ShouldQueue
Log::debug(sprintf('Converted "after" to "%s".', $event->after));
}
Log::debug(sprintf('Will now store event log for event "%s"', $array['action']));
+
/** @var ALERepositoryInterface $repository */
$repository = app(ALERepositoryInterface::class);
$repository->store($array);
diff --git a/app/Support/Http/Controllers/AugumentData.php b/app/Support/Http/Controllers/AugumentData.php
index a3a940b1ba..a507156873 100644
--- a/app/Support/Http/Controllers/AugumentData.php
+++ b/app/Support/Http/Controllers/AugumentData.php
@@ -222,7 +222,14 @@ trait AugumentData
$currentEnd->addMonth();
}
// primary currency amount.
- $expenses = $opsRepository->sumExpenses($currentStart, $currentEnd, null, $budgetCollection, $entry->transactionCurrency, $this->convertToPrimary);
+ $expenses = $opsRepository->sumExpenses(
+ $currentStart,
+ $currentEnd,
+ null,
+ $budgetCollection,
+ $entry->transactionCurrency,
+ $this->convertToPrimary
+ );
$spent = $expenses[$currency->id]['sum'] ?? '0';
$entry->pc_spent = $spent;
diff --git a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php b/app/Support/JsonApi/Enrichments/RecurringEnrichment.php
index d0c09bf027..2428353cb0 100644
--- a/app/Support/JsonApi/Enrichments/RecurringEnrichment.php
+++ b/app/Support/JsonApi/Enrichments/RecurringEnrichment.php
@@ -354,7 +354,11 @@ class RecurringEnrichment implements EnrichmentInterface
/** @var RecurrenceRepetition $repetition */
foreach ($set as $repetition) {
- $recurrence = $this->collection->filter(static fn (Recurrence $item): bool => (int) $item->id === (int) $repetition->recurrence_id)->first();
+ $recurrence = $this->collection->filter(
+ static fn (Recurrence $item): bool => (int) $item->id === (int) $repetition->recurrence_id
+ )
+ ->first()
+ ;
$fromDate = clone ($recurrence->latest_date ?? $recurrence->first_date);
$recurrenceId = (int) $repetition->recurrence_id;
$repId = (int) $repetition->id;
diff --git a/app/View/Components/Lists/Accounts.php b/app/View/Components/Lists/Accounts.php
index 24428e97dc..6cf9469b6b 100644
--- a/app/View/Components/Lists/Accounts.php
+++ b/app/View/Components/Lists/Accounts.php
@@ -33,7 +33,7 @@ class Accounts extends Component
{
public LengthAwarePaginator $accounts;
public string $objectType = '';
- public int $page = 1;
+ public int $page = 1;
/**
* Create a new component instance.
diff --git a/changelog.md b/changelog.md
index 8b398f0536..274d0574ea 100644
--- a/changelog.md
+++ b/changelog.md
@@ -10,9 +10,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
- [Issue 12758](https://github.com/firefly-iii/firefly-iii/issues/12758) (Dashboard shows transactions values when value hiding is enabled) reported by @ppslim
- [Issue 12761](https://github.com/firefly-iii/firefly-iii/issues/12761) (Fiscal year start date not showing it settings) reported by @ppslim
- [Issue 12755](https://github.com/firefly-iii/firefly-iii/issues/12755) (Tags are not visible when editing transactions) reported by @fabienfitoussi
-- #12768
-- #12765
-- #12766
+- [Issue 12768](https://github.com/firefly-iii/firefly-iii/issues/12768) (redundant shadow for session logo) reported by @zhiiwg
+- [Issue 12765](https://github.com/firefly-iii/firefly-iii/issues/12765) (Transaction Group Title not Showing on `/transactions/show/<id>` (& some tagged-along questions)) reported by @gthbusrr
+- [Issue 12766](https://github.com/firefly-iii/firefly-iii/issues/12766) (Transaction Journals in the same Transaction Group have different `dates`) reported by @gthbusrr
## v6.7.1 - 2026-09-15
diff --git a/composer.lock b/composer.lock
index ce71d0a110..ca977859bf 100644
--- a/composer.lock
+++ b/composer.lock
@@ -10208,16 +10208,16 @@
},
{
"name": "carthage-software/mago",
- "version": "1.48.1",
+ "version": "1.49.0",
"source": {
"type": "git",
"url": "https://github.com/carthage-software/mago.git",
- "reference": "4b833d559b9fc21da7c49a2458d0d057d9b2227a"
+ "reference": "bbdaf378e69114f5d9c580862c8533dd3f01c050"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/carthage-software/mago/zipball/4b833d559b9fc21da7c49a2458d0d057d9b2227a",
- "reference": "4b833d559b9fc21da7c49a2458d0d057d9b2227a",
+ "url": "https://api.github.com/repos/carthage-software/mago/zipball/bbdaf378e69114f5d9c580862c8533dd3f01c050",
+ "reference": "bbdaf378e69114f5d9c580862c8533dd3f01c050",
"shasum": ""
},
"require": {
@@ -10259,7 +10259,7 @@
],
"support": {
"issues": "https://github.com/carthage-software/mago/issues",
- "source": "https://github.com/carthage-software/mago/tree/1.48.1"
+ "source": "https://github.com/carthage-software/mago/tree/1.49.0"
},
"funding": [
{
@@ -10267,7 +10267,7 @@
"type": "github"
}
],
- "time": "2026-09-11T05:32:18+00:00"
+ "time": "2026-09-16T05:38:39+00:00"
},
{
"name": "cloudcreativity/json-api-testing",
diff --git a/config/firefly.php b/config/firefly.php
index 510d9f02c3..605e47fddf 100644
--- a/config/firefly.php
+++ b/config/firefly.php
@@ -78,8 +78,8 @@ return [
'running_balance_column' => (bool)env_default_when_empty(env('USE_RUNNING_BALANCE'), true), // this is only the default value, is not used.
// see cer.php for exchange rates feature flag.
],
-'version' => 'develop/2026-09-15',
-'build_time' => 1789497307,
+'version' => 'develop/2026-09-16',
+'build_time' => 1789539461,
'api_version' => '2.1.0', // field is no longer used.
'db_version' => 28, // field is no longer used.
diff --git a/resources/assets/v3/js/pages/accounts/index.js b/resources/assets/v3/js/pages/accounts/index.js
index 8b4f7963d6..f1cf1cd8f7 100644
--- a/resources/assets/v3/js/pages/accounts/index.js
+++ b/resources/assets/v3/js/pages/accounts/index.js
@@ -18,14 +18,13 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-
import "../../boot/bootstrap.js";
import sidebar from "../shared/sidebar.js";
import dates from "../shared/dates.js";
-import {addDrag} from "../shared/drag-and-droppable-rows.js";
+import { addDrag } from "../shared/drag-and-droppable-rows.js";
import Alpine from "alpinejs";
-import {getVariable} from "../../store/get-variable.js";
-import Put from '../../api/model/account/put.js';
+import { getVariable } from "../../store/get-variable.js";
+import Put from "../../api/model/account/put.js";
window.enableDates = false;
@@ -33,26 +32,33 @@ let index = function () {
return {
listPageSize: 50,
init() {
- getVariable("listPageSize").then((listPageSize) => {
- console.log(listPageSize);
- this.listPageSize = listPageSize;
- addDrag();
- document.addEventListener("firefly-iii-drag-complete", (e) => {
- for(let i = 0; i < e.detail.length; i++) {
- if(Object.hasOwn(e.detail, i)) {
- let item = e.detail[i];
- if(item.order !== item.currentOrder) {
- // PUT new order to system.
- (new Put).put({order: item.order}, {id: item.id});
- // save new order as current order in the row.
- document.querySelector(`tr[data-id="${item.id}"]`).setAttribute('data-current-order', item.order);
+ getVariable("listPageSize").then((listPageSize) => {
+ console.log(listPageSize);
+ this.listPageSize = listPageSize;
+ addDrag();
+ document.addEventListener("firefly-iii-drag-complete", (e) => {
+ for (let i = 0; i < e.detail.length; i++) {
+ if (Object.hasOwn(e.detail, i)) {
+ let item = e.detail[i];
+ if (item.order !== item.currentOrder) {
+ // PUT new order to system.
+ new Put().put(
+ { order: item.order },
+ { id: item.id },
+ );
+ // save new order as current order in the row.
+ document
+ .querySelector(`tr[data-id="${item.id}"]`)
+ .setAttribute(
+ "data-current-order",
+ item.order,
+ );
+ }
}
}
- }
- console.log(e.detail);
+ console.log(e.detail);
+ });
});
-
- });
},
};
};
diff --git a/resources/assets/v3/js/pages/dashboard/dashboard.js b/resources/assets/v3/js/pages/dashboard/dashboard.js
index 499b73e38a..0afedd3325 100644
--- a/resources/assets/v3/js/pages/dashboard/dashboard.js
+++ b/resources/assets/v3/js/pages/dashboard/dashboard.js
@@ -54,11 +54,12 @@ let index = function () {
drawMultiCurrencyChart(
"stacked-column",
"api/v1/chart/budget/overview?start=" +
- format(start, "yyyy-LL-dd") +
- "&end=" +
- format(end, "yyyy-LL-dd"),
+ format(start, "yyyy-LL-dd") +
+ "&end=" +
+ format(end, "yyyy-LL-dd"),
"budgets-chart",
- value, false
+ value,
+ false,
);
});
},
diff --git a/resources/assets/v3/js/pages/shared/drag-and-droppable-rows.js b/resources/assets/v3/js/pages/shared/drag-and-droppable-rows.js
index c26f84b038..7627f1b5a7 100644
--- a/resources/assets/v3/js/pages/shared/drag-and-droppable-rows.js
+++ b/resources/assets/v3/js/pages/shared/drag-and-droppable-rows.js
@@ -19,13 +19,13 @@
*/
export function addDrag() {
- const tbody = document.querySelector('.sortable tbody');
+ const tbody = document.querySelector(".sortable tbody");
let draggedRow = null;
// animation Helper
function getRowOffsets() {
const map = new Map();
- tbody.querySelectorAll('tr').forEach(row => {
+ tbody.querySelectorAll("tr").forEach((row) => {
map.set(row, row.getBoundingClientRect().top);
});
return map;
@@ -33,9 +33,13 @@ export function addDrag() {
// swap logic
function handleRowSwap(clientY, targetElement) {
- const targetRow = targetElement.closest('tr');
+ const targetRow = targetElement.closest("tr");
- if (targetRow && targetRow !== draggedRow && targetRow.parentNode === tbody) {
+ if (
+ targetRow &&
+ targetRow !== draggedRow &&
+ targetRow.parentNode === tbody
+ ) {
const rect = targetRow.getBoundingClientRect();
const next = (clientY - rect.top) / (rect.bottom - rect.top) > 0.5;
const nextSibling = next ? targetRow.nextSibling : targetRow;
@@ -47,18 +51,18 @@ export function addDrag() {
const lastPositions = getRowOffsets();
- tbody.querySelectorAll('tr').forEach(row => {
+ tbody.querySelectorAll("tr").forEach((row) => {
const firstTop = firstPositions.get(row);
const lastTop = lastPositions.get(row);
const deltaY = firstTop - lastTop;
if (deltaY !== 0) {
row.style.transform = `translateY(${deltaY}px)`;
- row.style.transition = 'none';
+ row.style.transition = "none";
requestAnimationFrame(() => {
- row.style.transform = '';
- row.style.transition = 'transform 0.2s ease-out';
+ row.style.transform = "";
+ row.style.transition = "transform 0.2s ease-out";
});
}
});
@@ -68,30 +72,30 @@ export function addDrag() {
function getRowOrder() {
let index = 1;
- return Array.from(tbody.querySelectorAll('tr')).map(row => ({
- id: row.getAttribute('data-id'),
+ return Array.from(tbody.querySelectorAll("tr")).map((row) => ({
+ id: row.getAttribute("data-id"),
order: index++,
- currentOrder: parseInt(row.getAttribute('data-current-order')),
- page: parseInt(row.getAttribute('data-page')),
+ currentOrder: parseInt(row.getAttribute("data-current-order")),
+ page: parseInt(row.getAttribute("data-page")),
}));
}
// add events
- tbody.addEventListener('mousedown', (e) => {
- if (e.target.classList.contains('object-handle')) {
- e.target.closest('tr').setAttribute('draggable', 'true');
+ tbody.addEventListener("mousedown", (e) => {
+ if (e.target.classList.contains("object-handle")) {
+ e.target.closest("tr").setAttribute("draggable", "true");
}
});
- tbody.addEventListener('dragstart', (e) => {
- draggedRow = e.target.closest('tr');
- setTimeout(() => draggedRow.classList.add('is-dragging'), 0);
+ tbody.addEventListener("dragstart", (e) => {
+ draggedRow = e.target.closest("tr");
+ setTimeout(() => draggedRow.classList.add("is-dragging"), 0);
});
- tbody.addEventListener('dragend', () => {
+ tbody.addEventListener("dragend", () => {
if (draggedRow) {
- draggedRow.removeAttribute('draggable');
- draggedRow.classList.remove('is-dragging');
+ draggedRow.removeAttribute("draggable");
+ draggedRow.classList.remove("is-dragging");
draggedRow = null;
const currentOrder = getRowOrder();
const event = new CustomEvent("firefly-iii-drag-complete", {
@@ -101,35 +105,46 @@ export function addDrag() {
}
});
- tbody.addEventListener('dragover', (e) => {
+ tbody.addEventListener("dragover", (e) => {
e.preventDefault();
handleRowSwap(e.clientY, e.target);
});
- tbody.addEventListener('touchstart', (e) => {
- if (e.target.classList.contains('object-handle')) {
- draggedRow = e.target.closest('tr');
- draggedRow.classList.add('is-dragging');
- }
- }, { passive: true });
-
- tbody.addEventListener('touchmove', (e) => {
- if (!draggedRow) return;
-
- // Get finger coordinates
- const touch = e.touches[0];
-
- // Find what element is currently underneath the user's finger
- const elementUnderFinger = document.elementFromPoint(touch.clientX, touch.clientY);
-
- if (elementUnderFinger) {
- handleRowSwap(touch.clientY, elementUnderFinger);
- }
- }, { passive: true });
+ tbody.addEventListener(
+ "touchstart",
+ (e) => {
+ if (e.target.classList.contains("object-handle")) {
+ draggedRow = e.target.closest("tr");
+ draggedRow.classList.add("is-dragging");
+ }
+ },
+ { passive: true },
+ );
+
+ tbody.addEventListener(
+ "touchmove",
+ (e) => {
+ if (!draggedRow) return;
+
+ // Get finger coordinates
+ const touch = e.touches[0];
+
+ // Find what element is currently underneath the user's finger
+ const elementUnderFinger = document.elementFromPoint(
+ touch.clientX,
+ touch.clientY,
+ );
+
+ if (elementUnderFinger) {
+ handleRowSwap(touch.clientY, elementUnderFinger);
+ }
+ },
+ { passive: true },
+ );
- tbody.addEventListener('touchend', () => {
+ tbody.addEventListener("touchend", () => {
if (draggedRow) {
- draggedRow.classList.remove('is-dragging');
+ draggedRow.classList.remove("is-dragging");
draggedRow = null;
const currentOrder = getRowOrder();
const event = new CustomEvent("firefly-iii-drag-complete", {
diff --git a/resources/assets/v3/js/pages/transactions/create.js b/resources/assets/v3/js/pages/transactions/create.js
index 892a5c6c29..e9f6e57ce2 100644
--- a/resources/assets/v3/js/pages/transactions/create.js
+++ b/resources/assets/v3/js/pages/transactions/create.js
@@ -175,7 +175,7 @@ let create = function () {
this.detectTransactionType();
},
changedGroupTitle() {
- console.warn('changedGroupTitle: event is not used.')
+ console.warn("changedGroupTitle: event is not used.");
},
changedSourceAccount() {
diff --git a/resources/assets/v3/js/pages/transactions/edit.js b/resources/assets/v3/js/pages/transactions/edit.js
index 528e868d9e..39c766d9db 100644
--- a/resources/assets/v3/js/pages/transactions/edit.js
+++ b/resources/assets/v3/js/pages/transactions/edit.js
@@ -209,7 +209,7 @@ let transactions = function () {
console.warn("changedDateTime, event is not used");
},
changedGroupTitle() {
- console.warn('changedGroupTitle: event is not used.')
+ console.warn("changedGroupTitle: event is not used.");
},
changedDescription() {
diff --git a/resources/assets/v3/js/pages/transactions/shared/parse-downloaded-splits.js b/resources/assets/v3/js/pages/transactions/shared/parse-downloaded-splits.js
index 7182189881..0a5cf481fd 100644
--- a/resources/assets/v3/js/pages/transactions/shared/parse-downloaded-splits.js
+++ b/resources/assets/v3/js/pages/transactions/shared/parse-downloaded-splits.js
@@ -30,7 +30,9 @@ export function parseDownloadedSplits(downloads, groupId) {
let current = createEmptySplit();
// meta data
- current.transaction_journal_id = parseInt(download.transaction_journal_id);
+ current.transaction_journal_id = parseInt(
+ download.transaction_journal_id,
+ );
current.transaction_group_id = groupId;
current.bill_id = download.bill_id;
current.bill_name = download.bill_name;
diff --git a/resources/assets/v3/js/pages/transactions/shared/parse-from-entries.js b/resources/assets/v3/js/pages/transactions/shared/parse-from-entries.js
index 07c8a2e038..0fd1ed83ca 100644
--- a/resources/assets/v3/js/pages/transactions/shared/parse-from-entries.js
+++ b/resources/assets/v3/js/pages/transactions/shared/parse-from-entries.js
@@ -43,8 +43,13 @@ export function parseFromEntries(entries, originals, transactionType) {
}
// original transaction journal id.
- if(Object.hasOwn(entry, 'transaction_journal_id') && parseInt(entry.transaction_journal_id) > 0) {
- current.transaction_journal_id = parseInt(entry.transaction_journal_id);
+ if (
+ Object.hasOwn(entry, "transaction_journal_id") &&
+ parseInt(entry.transaction_journal_id) > 0
+ ) {
+ current.transaction_journal_id = parseInt(
+ entry.transaction_journal_id,
+ );
}
// source and destination NAME
@@ -57,8 +62,13 @@ export function parseFromEntries(entries, originals, transactionType) {
// dates
current.date = entry.date;
- if(i > 0 && !!returnArray[0]) {
- console.log("Overrule date for entry ", i, " with ", returnArray[0].date);
+ if (i > 0 && !!returnArray[0]) {
+ console.log(
+ "Overrule date for entry ",
+ i,
+ " with ",
+ returnArray[0].date,
+ );
current.date = returnArray[0].date;
}
diff --git a/resources/assets/v3/js/shared/draw-chart.js b/resources/assets/v3/js/shared/draw-chart.js
index 053d0bacf9..058864a079 100644
--- a/resources/assets/v3/js/shared/draw-chart.js
+++ b/resources/assets/v3/js/shared/draw-chart.js
@@ -100,16 +100,24 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
// make custom options set.
let options = structuredClone(defaultChartOptions);
let datasets = {};
- console.log('All data is', all);
+ console.log("All data is", all);
// loop all collected data.
for (let i = 0; i < all.length; i++) {
if (Object.hasOwn(all, i)) {
let current = all[i];
- let label = formatLabel(current.label + " (" + current.currency_code + ")", 20);
+ let label = formatLabel(
+ current.label + " (" + current.currency_code + ")",
+ 20,
+ );
// if there is NOTHING in this budget, skip it.
- if (0 === parseFloat(current.entries.budgeted) && 0 === parseFloat(current.entries.spent) && 0 === parseFloat(current.entries.left) && 0 === parseFloat(current.entries.overspent)) {
- console.log('SKIP', current.entries);
+ if (
+ 0 === parseFloat(current.entries.budgeted) &&
+ 0 === parseFloat(current.entries.spent) &&
+ 0 === parseFloat(current.entries.left) &&
+ 0 === parseFloat(current.entries.overspent)
+ ) {
+ console.log("SKIP", current.entries);
continue;
}
@@ -146,29 +154,52 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
//console.log('EMPTY What to choose from ['+i+'] (label "'+label+'" is index: '+labelIndex+') (i: '+i+', keys[i]: '+keys[i]+')?', current.entries[keys[i]]);
//}
if (0 !== parseFloat(current.entries[keys[i]])) {
- console.log('Budget "' + current.label + '" has amount for "' + keys[i] + '" in ' + current.currency_code + ' so we skip it.', current.entries[keys[i]]);
+ console.log(
+ 'Budget "' +
+ current.label +
+ '" has amount for "' +
+ keys[i] +
+ '" in ' +
+ current.currency_code +
+ " so we skip it.",
+ current.entries[keys[i]],
+ );
// console.log('What to choose from ['+i+'] (label "'+label+'" is index: '+labelIndex+') (i: '+i+', keys[i]: '+keys[i]+')?', current.entries[keys[i]]);
- datasets[key].data[labelIndex] = parseFloat(current.entries[keys[i]]) * multiplier;
+ datasets[key].data[labelIndex] =
+ parseFloat(current.entries[keys[i]]) *
+ multiplier;
}
}
- if (parseFloat(current.entries.spent) * -1 < parseFloat(current.entries.budgeted)) {
+ if (
+ parseFloat(current.entries.spent) * -1 <
+ parseFloat(current.entries.budgeted)
+ ) {
// user has not overspent.
let key = "budgeted" + current.currency_code;
- datasets[key].data[labelIndex] = 0;// parseFloat(current.entries.budgeted);
+ datasets[key].data[labelIndex] = 0; // parseFloat(current.entries.budgeted);
key = "spent" + current.currency_code;
- datasets[key].data[labelIndex] = parseFloat(current.entries.spent) * -1
+ datasets[key].data[labelIndex] =
+ parseFloat(current.entries.spent) * -1;
key = "left" + current.currency_code;
- datasets[key].data[labelIndex] = parseFloat(current.entries.left);
+ datasets[key].data[labelIndex] = parseFloat(
+ current.entries.left,
+ );
key = "overspent" + current.currency_code;
datasets[key].data[labelIndex] = 0;
}
- if (parseFloat(current.entries.spent) * -1 >= parseFloat(current.entries.budgeted) && 0 !== parseFloat(current.entries.budgeted)) {
+ if (
+ parseFloat(current.entries.spent) * -1 >=
+ parseFloat(current.entries.budgeted) &&
+ 0 !== parseFloat(current.entries.budgeted)
+ ) {
// user has overspent!
let key = "budgeted" + current.currency_code;
- datasets[key].data[labelIndex] = parseFloat(current.entries.budgeted);
+ datasets[key].data[labelIndex] = parseFloat(
+ current.entries.budgeted,
+ );
key = "spent" + current.currency_code;
datasets[key].data[labelIndex] = 0;
@@ -177,16 +208,23 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
datasets[key].data[labelIndex] = 0;
key = "overspent" + current.currency_code;
- datasets[key].data[labelIndex] = parseFloat(current.entries.overspent);
+ datasets[key].data[labelIndex] = parseFloat(
+ current.entries.overspent,
+ );
}
- if (parseFloat(current.entries.spent) * -1 >= parseFloat(current.entries.budgeted) && 0 === parseFloat(current.entries.budgeted)) {
+ if (
+ parseFloat(current.entries.spent) * -1 >=
+ parseFloat(current.entries.budgeted) &&
+ 0 === parseFloat(current.entries.budgeted)
+ ) {
// user has no budget set.
let key = "budgeted" + current.currency_code;
datasets[key].data[labelIndex] = 0;
key = "spent" + current.currency_code;
- datasets[key].data[labelIndex] = parseFloat(current.entries.spent) * -1;
+ datasets[key].data[labelIndex] =
+ parseFloat(current.entries.spent) * -1;
key = "left" + current.currency_code;
datasets[key].data[labelIndex] = 0;
@@ -195,7 +233,6 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
datasets[key].data[labelIndex] = 0;
}
-
// if there is no axis yet for this currency, create one.
let currencyCode = current.currency_code;
let axisId = "y" + currencyCode;
@@ -218,11 +255,9 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
},
};
}
-
}
}
-
// loop all collected data.
for (let i = 0; i < all.length; i++) {
if (Object.hasOwn(all, i)) {
@@ -231,10 +266,7 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
// console.log('Now processing "' + label + '"');
// // add the name as a label
// data.labels.push(label);
-
-
// wil je dan niet eerst de labels + currencies maken in objectjes.
-
// each data set is per budget (so per label):
// if (!Object.hasOwn(datasets, label)) {
// datasets[label] = {
@@ -245,10 +277,7 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
// yAxisID: "y" + current.currency_code,
// };
// }
-
// there must be 4 data sets with a length of X budgets * currencies.
-
-
// there are four possible data sets for this chart
// // TODO this is very much hard coded.
// let keys = ["budgeted", "spent", "left", "overspent"];
@@ -264,10 +293,8 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
// };
// }
// }
-
// for the first and all other datasets, create a new dataset object.
// add the data to the dataset.
-
// // add spent and left to the dataset, if they exist.
// // console.log('current', current);
// if (parseFloat(current.entries.spent) * -1 < parseFloat(current.entries.budgeted)) {
@@ -321,24 +348,21 @@ function drawMultiCurrencyStackedColumnChart(url, holder, anonymous) {
// console.log(datasets);
// add it to the dataset collection.
//data.datasets.push(dataset);
-
-
}
}
- console.log('All labels are', data.labels);
- console.log('All datasets are', datasets);
- console.log('All scales are', axes);
+ console.log("All labels are", data.labels);
+ console.log("All datasets are", datasets);
+ console.log("All scales are", axes);
// do a proper conversion so its in the right order?
-
data.datasets = Object.values(datasets);
- console.log('Final datasets are', data.datasets);
+ console.log("Final datasets are", data.datasets);
// remove the standard y-axis, do not need it.
delete options.scales.y;
options.scales.x.stacked = true;
// options.scales.y.stacked = true;
// add the new axes.
- options.scales = {...options.scales, ...axes};
+ options.scales = { ...options.scales, ...axes };
// console.log(options);
// console.log(data);
@@ -497,7 +521,7 @@ function drawMultiCurrencyLineChart(url, holder, anonymous, drawTodayMarker) {
delete options.scales.y;
// options.scales.y.stacked = true;
// add the new axes.
- options.scales = {...options.scales, ...axes};
+ options.scales = { ...options.scales, ...axes };
// add a callback for the label.
options.plugins.tooltip.callbacks.label = function (tooltipItem) {
@@ -620,7 +644,7 @@ function drawSingleCurrencyLineChart(url, holder, anonymous) {
return label + ": " + string;
};
- let options = {...defaultChartOptions};
+ let options = { ...defaultChartOptions };
options.scales.y.ticks.callback = yAxisCallback;
options.plugins.tooltip.callbacks.label = labelCallback;
@@ -705,5 +729,5 @@ function formatLabel(str, maxWidth) {
}
});
- return sections.join('X'); // temp value "X"
+ return sections.join("X"); // temp value "X"
}