Skip to content

v11.0.0 - Celeritas

Choose a tag to compare

@GiuseppeDM98 GiuseppeDM98 released this 08 Oct 17:18
· 377 commits to main since this release
22020f2

✨ New Features

  • Every dashboard page now opens on the figures it showed last time, at once, and rereads them behind: the app keeps its last successful reads on the device (instruments, snapshots, movements, categories, settings, pension contributions, the trade ledger, cost centres, goals, the Hall of Fame, the metrics of Rendimenti and the Panoramica summary — nothing of the assistant, the benchmarks or the demo account), so a reload or a return after an hour no longer starts from a skeleton. While the fresh read is in flight the page header says so in the line under the title — «Aggiornato alle 18:42, sto rileggendo…», «Aggiornato ieri alle 18:42…» — and the sentence goes the moment the fresh figures land, without anything moving. What is kept expires after a day and is forgotten at sign-out; a save you make still shows its result the usual way, with no sentence, because nothing on screen is old then.

  • Added an optional reading of Analisi › Flusso by 50/30/20 role (Necessità · Desideri · Risparmi): switch it on in Impostazioni › Spese, give each spending category a role (a subcategory can override it), and the Flusso opens on «Per ruolo» with «Per tipo» one tap away. What has no role yet reads «Da classificare», a period that spent more than it earned shows the gap as «Coperto dal patrimonio», and when some spending is itself a saving the reading says how much was set aside and how much was left over. (Contributed by Ciocc128.)

  • Added, in Cashflow › Divisione, the income left «In comune» paying the shared spending first: a refund on a shared bill or a salary nobody attributed comes off the pool before the shares, the «In comune» tile shows it under its figure («Entrate in comune −300 €», «Da dividere 2110 €») and the verdict says it in the same sentence («le spese in comune sono 2410 €, meno 300 € di entrate in comune: 2110 € da dividere, 1266 € a Giuseppe (60%)…»); when the shared income covers the shared spending whole the surplus is stated («avanzano 100 €») rather than handed out. The shares now come from every income attributed to a person whatever its category, so the tab no longer depends on the categories marked as labor income and says «entrate» where it said «stipendio» («Registra le entrate di Marcella in Tracciamento e intestagliele»); the monthly email's «Spese in comune» section carries the same figures.

  • Rebuilt the Esposizione tile of Allocazione: Titoli and Settori now weigh the notional exposure of the equity sleeves (a 2× fund counts twice its price, a 60/40 fund enters with its equity leg only), Emittenti the market value of every quoted instrument once, and a line above the list says where every euro went — «In questa vista: 120.000 € di azionario nozionale, letti al 94%: 7000 € (un ETF sintetico) non hanno una composizione pubblicata; i primi dieci titoli di ogni fondo ne nominano il 31%, il resto è «Resto letto». Fuori da questa vista: 40.000 € di obbligazionario; 8000 € di materie prime, senza titoli per natura». The percentages are shares of the base named beside the column, the list closes on «Resto letto» and «Non letto» and always adds up to 100, and «Aggiorna» asks Yahoo again while the footer dates the oldest answer used. (Proposed by Ciocc128 in #402, implemented with changes.)

🐛 Bug Fixes

  • Fixed the light/dark switch revealing only the sidebar: the circle now spreads from the button over the whole page, header and tiles included, instead of the page simply fading.

  • Fixed the phone's bottom bar disappearing and popping back at every change of page: it now stays in place while the page changes beneath it, and only the highlight slides to the new section.

  • Closing any dialog or bottom sheet now hands the keyboard focus back to the control that opened it, on every page: 27 of the 40 dialogs still dropped it on the page body, so a keyboard user landed at the top of the page after every «Salva» or Escape.

  • Captions, reading lines and inactive labels meet the AA contrast floor (4,5:1) on the page, on tiles and on pills in all twelve colour themes: six were below it — the default light theme on pills, Retro Arcade dark at 2:1, Midnight Bloom light at 2,9:1 — and a test now holds the floor.

  • Every switch (Impostazioni, FIRE, the dialogs) has a 44×44 touch target without changing its look.

  • Fixed account balances and bond coupons showing long tails of digits in their edit forms (for example «4033,050000000001» as a balance, «6,500000000000001» as a coupon per unit). A balance is now stored to the cent at every movement and a coupon as the decimal it is, without changing any figure shown at two decimals.

  • Fixed the asset and cash-account windows on Patrimonio closing without their animation or leaving the keyboard focus nowhere: both now slide away as every other window does and hand the focus back to the button or row that opened them. Editing an account from its detail returns to that account's row in Liquidità once the form closes.

  • Fixed «Aggiorna» on Rendimenti with a custom period selected leaving the page on «Servono almeno due snapshot mensili…»: the refresh now drops the custom range and returns to the year to date.

  • Fixed the Panoramica showing old figures for up to five minutes after a change it reads from: renaming a category, changing its type, moving or reassigning its movements, recording, editing or deleting a dividend that is not credited to an account, saving goals (from FIRE › Obiettivi or from the assistant), adding or removing a pension contribution, and changing the goals or pension-return settings on their own. Each of these now refreshes the Panoramica at once.

  • Fixed a cost centre deleted or renamed from Cashflow › Centri di Costo keeping its old chip on the movements in Tracciamento for a few minutes: the rows it rewrites are now reread at once.

  • Fixed Cashflow › Tracciamento going back to its loading skeleton every time a movement was saved or deleted: the page was rereading the dividends for the Dividendi tab (even when that tab had never been opened) and hiding the month meanwhile. A save now updates the counters and the list in place, and the dividends are reread only where they are shown.

  • Fixed a category edited in Impostazioni › Spese (name, type or role) keeping its old values in Analisi for up to five minutes: the change now arrives at once.

  • Fixed the smallest categories of the Analisi › Flusso chart being painted black — invisible on a dark theme — when a branch held more than seven categories: a shade now never goes darker than 55% of its colour.

  • Fixed the Esposizione asking Yahoo Finance for every fund and stock on every opening of Allocazione, because its cache never matched its own key: Yahoo's answers now live in one cache shared by every account, per instrument (30 days for a useful answer, 24 hours for an empty one), so a second opening costs no call and a new instrument costs one, for everyone.

  • Fixed a member of a shared account seeing their OWN exposure on the owner's Allocazione page: the Esposizione now reads the owner's instruments, like every other tile.

🔧 Improvements

  • Pages with charts mount with less work: the active theme's chart colours are read once, while the app's frame waits for the sign-in, instead of once per chart on every page — each chart is now drawn once instead of twice, and Storico and FIRE e Simulazioni do about a sixth less script at opening. The Panoramica and Patrimonio no longer measure the whole page after every change, and the phone's bottom bar animates only where it is visible (it still glides aside when the «+» of Tracciamento appears). The Panoramica's tiles cascade in the first time you open it in a session; when you come back to it they are there at once. The safeguard that swaps a chart colour too pale for a light page (or too dark for a dark one) now actually works — no colour of today's twelve themes trips it.

  • Impostazioni types fluently and opens at once: the page used to re-render every tile of every visited tab on each keystroke (the whole form was one component with seventy pieces of state), and on a reload it was the one page left showing a skeleton while the others painted their last figures. Each tab is now a view of one shared draft, so typing in Preferenze re-renders Preferenze alone, a target typed in Allocazione re-renders its own list, a collapsed group of subcategories is not on the page at all, and a reload paints the saved form from the device's copy with «Aggiornato alle…» in the header while the fresh read lands behind it. Nothing changed in what is saved: a value typed in one tab is still there after a visit to another, «Salva» from any tab still writes every field, «Salva» with a group that does not add up still opens that group and puts the cursor on the field, and «Annulla modifiche» still re-reads what is saved.

  • The AI surfaces — Rendimenti's «Analizza con AI», the assistant and the periodic emails — run on one model generation, Claude Sonnet 5.5 (the analysis was still on Sonnet 4.6, at a higher price); the assistant's memory extraction moved to Claude Haiku 5.5. When the model declines a request the assistant says so in one line instead of showing an empty bubble.

  • Improved the speed of Cashflow › Dividendi: the payments and the yield and growth figures arrive together in a single request, read once on the server instead of in several steps, and every figure is the same as before. After you add, edit or delete a payment the list stays on screen while it is refreshed and the yield figures follow at once; if those figures cannot be computed the payments are still shown and the page says so («Lettura fallita»).

  • Cashflow loads only the code of the tab you open: Dividendi, Budget, Divisione and Centri di Costo arrive on their own once Tracciamento has its figures, so the first load of Cashflow stays as fast as before and a tab opened later usually appears at once. While a tab's code is still on its way — opened from a link, say — the tab shows its own placeholder, the toolbar and the period picker included, so nothing moves when it takes over.

  • The assistant's «Riprendi una conversazione» list now loads the 50 most recent conversations and offers «Mostra altre» for the earlier ones, instead of reading every conversation ever saved at each opening; while some are still unread the header says «Più di 50 conversazioni» and the list says the ones shown are the most recent, so none is hidden.

  • Rendimenti opens sooner: it reads each of its collections once and asks the dividend yields of all five periods (Yield on Cost, current yield) in a single request sent together with the metrics, instead of two requests per period sent after them. On a reload it shows the figures of the last visit at once, with «Aggiornato alle…» in the header while it rereads them, like the other pages; every figure is the same as before.

  • Moved the app's server functions to Frankfurt, next to the database (which is in Belgium and the Netherlands) instead of Washington: every read a page makes from the server no longer crosses the Atlantic, so pages that fetch several figures at opening answer sooner.

  • Improved the Panoramica's speed: when its figures must be recomputed everything is read at once instead of in six steps, the saved result is written after the page already has it, and that result now stays good for the whole day (until you change something it reads, at most six hours) instead of five minutes — the first opening of a new day always recomputes, because «this month» depends on the date. Its response also carries a Server-Timing header, so the browser's developer tools show where the time went and whether the figures were recomputed.

  • Cashflow › Tracciamento, Divisione, Budget and FIRE e Simulazioni now read only the movements they show — the period and the months behind it, the year and its six trailing months, last year and this one — instead of the whole ledger every time they open: on an account with a few years of movements Cashflow shows its first figure about half a second sooner from a cold start and FIRE about a third, and every figure is the same as before. A period never opened before is read when it is picked (the picker stays where it is, the tiles wait a moment), and one opened in the last day comes from the device. Storico, Centri di Costo and Analisi keep reading the whole ledger, because their questions span it.

  • Typing, switching tabs and opening forms now do far less work: the app is compiled with the React Compiler, which keeps every part of a page that did not change from being drawn again — a keystroke in a form redraws the field, not the page. Nothing on screen changes; what changes is the work behind it, most noticeable on a slower phone.

  • Every page with charts downloads less before it can show a figure: the charting library now ships once for the whole app instead of once per page; the PDF report's engine arrives only when «Esporta PDF» is pressed (Storico's first download roughly halved); the charts behind Rendimenti's and Analisi's «Dettaglio», Analisi's «Confronto annuale» and the category card, and the four FIRE tabs other than the Calcolatore load when they are opened, each placeholder the size of its chart so nothing moves when it lands; the flow chart of Analisi is never downloaded on a phone, where it is drawn as a bar and rows; and a category icon downloads only itself instead of the whole icon library. Measured on the same machine: Storico and Analisi show their first figure about 0,2 s sooner from a cold start, and a section opened later draws its chart at once.

  • Every page and every form now reads the same data — instruments, snapshots, movements, categories, settings, pension contributions, the trade ledger, cost centres, goals and the Hall of Fame — from one set of shared caches, so moving between pages no longer re-reads what another page just loaded: Storico opens on the figures Patrimonio and Cashflow already hold (it used to read seven collections again on every visit, the settings twice), Cashflow › Centri di Costo reads its rows once instead of once per centre, «Nuova spesa» opens from the cache with nothing to wait for, FIRE e Simulazioni reads its four collections in one round trip instead of three in a row, and the «Mutuo» tile asks for every property's instalments in a single query. No figure changed: the same pages, the same numbers, fewer reads.

  • «Riprova» on a failed read and «Aggiorna» on Rendimenti, Storico and the Hall of Fame now refresh the shared caches, so every other page that shows the same data is fresh too.

  • Improved every dashboard page's first moments: the app's frame — the sidebar with its routes, the bottom bar on a phone, the skip link, a muted header line and skeleton tiles where the page will be — is now part of the page the server sends, so it is on screen before the sign-in check has run instead of a lone spinner, and the profile shows two muted lines until the account is known, the name landing without anything moving. The sign-in check no longer waits on a database read for the display name (it arrives a moment later and is remembered by the account from then on), and a saved colour theme is applied before the first paint, so a page never flashes the default palette.

  • Added, for development, a repeatable measure of the app's speed and a size budget per page: npm run perf:bench opens every page of a production build against the local emulators, cold and by navigation, and reports how long each takes to show its first figure; npm run perf:budget reads the build and fails when a page ships more JavaScript than its ceiling allows; npm run perf:census counts how many components one keystroke or one tab switch redraws. A ceiling only goes down with a measure, and a change that makes a page grow must raise that page's ceiling in the same commit and say why.

  • Improved Analisi › Flusso on a phone: it is now a bar of the period's spending split by type, each type's categories as rows (a row opens its Scheda) and what was left over as a closing line, instead of a Sankey too narrow to read; the printed shares always add up to 100, a type that rounds to zero reads «<1%», and when the period holds amounts that are only scheduled the closing line says so. From 640px up the Sankey is unchanged. (Contributed by Ciocc128.)

  • Patrimonio opens faster, most of all on a phone: the instruments are drawn once (the table on a wide screen, the rows on a phone, no longer both), a row draws its price line only when you open it, and the asset form exists only while it is open. Typing in the form no longer redraws the whole window at each key, and every figure and element looks as before.

  • Improved Patrimonio › Strumenti for a composite instrument (a 60/40 fund, a balanced ETF): still one row, but its class chip now shows every class it holds — one segment per class, as wide as its share and in that class's colour, «Azioni · Obbl.» for two, «Misto» for three or more. A class under 5% gets no segment, a screen reader hears every share, and the group headers and the sort by class keep the prevailing class. (Contributed by Ciocc128.)

🔒 Security

  • Updated Next.js to 16.4 (every 16.x up to 16.3.7 carried critical advisories), firebase-admin to 14 and the Firebase SDK to 12.19: the dependency audit goes from 50 advisories, two critical, to 20 with none critical, all inside developer tooling.

📚 Documentation

  • The speed manual now lives among the theme guides as doc/guide/velocita.md (it was perf/README.md), with the measure of 2026-09-26 the whole speed work started from kept as its historical baseline; the repo rules say why a hidden element's layout animation is judged by the render census and not by the browser's layout counter, why the lighter motion runtime is not used, and why the app stays on query-plus-invalidation rather than realtime reads or a database change; the workflow records how a specification is closed and that these notes describe surfaces, never process; the Analisi guide notes the one single-render claim that was never measured; the chart-palette test now reads the lightness thresholds from the module that applies them.

  • The theme guide describes the one place the chart colours are read (the provider in the dashboard frame, with the hooks' own read as the fallback outside it), the one colour parser and the lightness safeguard; the repo rules say why a page wrapper carries no layout animation and why a hidden element's layout animation is switched off; the speed manual gains two measures — a whole page load and a change of page — with their before/after.

  • The shell guide records why a dashboard page can read the URL without a Suspense boundary (at prerender the auth gate renders only its placeholder); the speed manual now says that Impostazioni no longer shows a skeleton on a reload and records the one secondary timing target of its rewrite that fell short; the page's line count and the census figures are stated with the machine they were measured on.

  • The unit suite is green under TZ=UTC as well: the four fixtures that sat beside midnight are now named by the Italian clock, and the testing rules say how to write the next one. The speed manual records why fourteen size ceilings rose on 2026-10-08 (Firebase 12.19, required by firebase-admin 14) and the workflow says when develop reaches main.

  • The speed manual now records the before/after timings and page size of Patrimonio's lighter rows; the Patrimonio guide describes the account detail's state correctly and drops a stale note about lint errors; the testing guide records one isolated failure of the transfer-fee browser test.

  • The Patrimonio, dialog and testing guides now explain how Patrimonio keeps one list per width, draws a row's chart only once opened and mounts its two dialogs only while needed, and how to prove that a window really played its closing animation; the Cashflow and Dividendi guides explain why balances are stored to the cent and coupons without binary noise.

  • Retired the specification behind the React Compiler after reading it against the code (eighteen differences): the agent guidelines now say how to tell that a build is really compiled and that the compiler also lengthens the build, a configuration comment no longer calls the linter the map of what the compiler skips, and the speed manual declares that the full before/after benchmark of that change was never written down.

  • The agent guidelines now explain how to keep every component compilable by the React Compiler, with the test that names any component it skips, and the Cashflow guide how its tabs load on demand.

  • Retired the specification behind the server reads of Dividendi, the assistant and the Esposizione after reading it against the code (twenty differences): the Dividendi guide now describes the single request the tab opens with and what it shows when the yield figures cannot be computed, the assistant guide the preference its context preview takes from the page instead of reading it again, and two tests now say which failures they were seen to catch.

  • The Dividendi, Assistente and Allocazione guides now explain how their server reads work — the dividend statistics derived from one read, the conversations read a page at a time with a count that never stops in silence, and the timing header of the Esposizione that says whether its profiles came from the saved cache or from Yahoo.

  • Retired the specification behind Rendimenti's single read after reading it against the code (twenty-seven differences, none in the behaviour): the agent guidelines now say a date in a request is validated as text before it is converted — converted directly, a missing date was read as 1970 instead of being refused — and the Rendimenti guide and two code comments no longer describe a loader the page dropped.

  • The Rendimenti guide now explains how the page reads — every collection once, the metrics and the dividend yields asked together, why the yields are kept beside the saved metrics and not inside them — and the PDF guide notes that a yearly export of the current year measures one month less than the page's «YTD».

  • Retired the specification that moved the server functions next to the database after reading it against the code (thirteen differences, no defect in the code): the setup guide now explains how to read which region a function ran in — the first part of the x-vercel-id header is the edge nearest to you, not the function — and what to look at after changing region, and the test that holds the deployment configuration was seen failing in each of the ways it guards against.

  • Retired the specification of the Panoramica's faster recompute after reading it against the code (fourteen differences: nine already explained in the guides, one small defect fixed on the spot — the summary now takes «this month» from the moment of the request in every part — four things postponed and now written where they will be read); the specifications that build on it describe the timing header as it exists today, and the owner's read-only check in production is carried by the next server specification.

  • The Panoramica guide now explains when its saved summary is recomputed (an invalidation, a new day, six hours, a new version), the rule that every change to something the Panoramica reads must invalidate it, and how to read the Server-Timing header in production.

  • The Cashflow guide's section on the expense windows now says why they ship without an emergency switch: nothing stored changes shape and every page filters in memory, so going back is a plain revert. The mobile specification for the Cashflow tabs reads the windows as they are in the code (Divisione on its own period) rather than as a plan.

  • The rule that a page never reads a collection directly — one key, one hook, queryClient.fetchQuery on the hook's options for a one-off read — in AGENTS.md § React Query and Derived State, with the list of hooks; the per-page consequences in the Storico, Patrimonio, Centri di Costo, FIRE, Coast FIRE, Cashflow, Analisi, Impostazioni and Stati guides; the PERF-05 spec retired into doc/doc/guide/velocita.md with its divergences, the warm baseline of doc/guide/velocita.md re-read on the new build, and the sister specs (PERF-03, 06, 09, 11, 13, MOB-04, 06, 07) rewritten to describe the data layer as it is.

  • How the app keeps each page's first download small: one module in front of the charting library (so it ships once), every chart inside something closed by default loaded when it opens with a placeholder of its own height, one chunk per category icon, never removing a worktree that shares the dependencies folder — in AGENTS.md, the Storico, Rendimenti, FIRE, Analisi, Cashflow and PDF guides; the size budget's manual explains the new «one copy per library» check and why the shared ceiling rose (code every page loads moved into the shared files; no page grew for it); what was left alone on purpose is written down too (the database module on the sign-in page, three libraries not yet checked, the icon picker not yet timed, the lazy charts no browser test holds).

  • Added the performance dossier (fourteen specifications; eight are implemented and retired — the new Esposizione, the speed benchmark with its per-page size budget, the app's frame before the sign-in check, the shared data caches, the last known figures first, the smaller first download of every page with charts, the movements read by window and the Panoramica recomputed in one round — every lesson moved into the guides (Allocazione, the loading states, the colour themes, the browser tests, sign-in, the shared account and demo), the contributor's guide, the benchmark's own manual and the code's own comments) and amended the performance and mobile specifications to match the code after the three contributions above and after each retirement. The contributor's guide now says how a contribution that arrives while that work is open is reviewed and merged, the Allocazione guide carries the Esposizione's rules (the two measures, the four destinies, the shared cache, the words of the coverage line, what it does not do by decision), the benchmark's manual says what its reload measure leaves out (a real session restores everything read in the last day, on every page), the setup guide gained the row for the seed that keeps the Allocazione browser tests off the network, and the example environment file lists the switch that turns the on-device cache off.

  • Added the mobile composition dossier (no code touched): the current small-screen layout measured on 19 surfaces at 390, 768 and 1024px, three directions drawn and tested, the «first screen» one chosen (a short verdict, a strip of at most four figures, one open tile, the rest as closed rows), and nine specifications to implement after the performance ones.