Write the manuals and fix what following them found
The manual, the runbook and the go-live list are written and checked claim by claim against the code, and the installation is done from zero by following them on both engines. That found real defects, now fixed: - with SQLite a missing database file left no way to restore a backup: the choices appear, and the file is created only by the user's choice; - an account whose difference vanished after the 15 minutes stayed prudent with no button, a missing stop could be left out for good, and a choice made while the broker was silent used old numbers; - after "Ferma tutto" the positions could not be closed without restarting; - a refused key looked like a silent broker: it has its own notice now; - the split of the capital between the strategies of a broker (SPEC 13.5) could not be changed from the interface. refs #72 #68 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2257c3e16c
commit
24e20584d4
28 files changed
+1147
-57
No files matched your search
@@ -79,7 +79,7 @@ else
|
||||
<section class="panel account" aria-label="@a.Name">
|
||||
<div class="account-head">
|
||||
<h2>@a.Name <span class="tag">@a.Kind</span></h2>
|
||||
<span class="link-state @(state.LastOutcome == ReconcileOutcomes.Unreachable ? "down" : null)"><span class="dot"></span>@Connection(a)</span>
|
||||
<span class="link-state @(ReconcileOutcomes.IsDown(state.LastOutcome) ? "down" : null)"><span class="dot"></span>@Connection(a)</span>
|
||||
</div>
|
||||
<div class="account-value">
|
||||
<span class="account-equity">@Shell.Money(a.Eur(a.Equity), c)</span>
|
||||
@@ -119,7 +119,16 @@ else
|
||||
<li>@d.Message</li>
|
||||
}
|
||||
</ul>
|
||||
@if (state.WaitsForUser(Clock.UtcNow, TimeSpan.FromMinutes(15)) && !Shell.IsDemo)
|
||||
@if (state.WaitsForUser(Clock.UtcNow, TimeSpan.FromMinutes(15)) && !state.HasChoices && !Shell.IsDemo)
|
||||
{
|
||||
<p>@(state.Differences.Count == 0
|
||||
? "La differenza non c'è più, ma si è spiegata dopo i 15 minuti: il conto torna normale quando lo dici tu."
|
||||
: "Manca ancora uno stop: riprovo a ogni confronto. Se nel frattempo è tornato al suo posto, ricontrolla adesso.")</p>
|
||||
<div class="choices">
|
||||
<form method="post" action="/azioni/conti/@a.Id/allinea"><AntiforgeryToken /><button class="btn btn-small" type="submit">Ricontrolla adesso</button></form>
|
||||
</div>
|
||||
}
|
||||
else if (state.WaitsForUser(Clock.UtcNow, TimeSpan.FromMinutes(15)) && !Shell.IsDemo)
|
||||
{
|
||||
<p>Sono passati 15 minuti e la differenza non si è spiegata da sola. Scegli tu:</p>
|
||||
<div class="choices">
|
||||
@@ -166,7 +175,11 @@ else
|
||||
}
|
||||
else if (state.LastOutcome is ReconcileOutcomes.Unreachable)
|
||||
{
|
||||
<li class="attention"><Icon Name="alert" Size="16" />Il broker non risponde: riprovo ogni 5 minuti (ultimo tentativo alle @Time(state.LastReconciledAt))</li>
|
||||
<li class="attention"><Icon Name="alert" Size="16" />Il broker non risponde: riprovo ogni 5 minuti (ultimo controllo riuscito alle @Time(state.LastReconciledAt))</li>
|
||||
}
|
||||
else if (state.LastOutcome is ReconcileOutcomes.KeyRefused)
|
||||
{
|
||||
<li class="attention"><Icon Name="alert" Size="16" /><span>Il broker non accetta più la chiave: inseriscine una nuova in <a href="/impostazioni#conti">Impostazioni</a></span></li>
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -353,6 +366,9 @@ else
|
||||
{
|
||||
("allinea", _) => ("Fatto: il registro ha preso i numeri del conto e il conto è tornato normale.", true),
|
||||
("escludi", _) => ("Fatto: la differenza resta fuori dal registro e il conto è tornato normale.", true),
|
||||
("ricontrollo", _) => ("Fatto: ho ricontrollato e il conto è tornato normale.", true),
|
||||
(_, "broker") => ("Il broker non risponde: non ho potuto confrontare il conto e non ho cambiato niente. Riprova tra poco.", false),
|
||||
(_, "stop") => ("Il conto resta prudente: manca ancora uno stop. Riprovo a metterlo e torna normale da solo quando c'è.", false),
|
||||
(_, "motore") => ("Il motore di trading non è attivo: riprova tra poco.", false),
|
||||
(_, "chiave") => ("Una chiave che permette i prelievi non si allinea: va sostituita in Impostazioni.", false),
|
||||
(_, "presto") => ("La scelta si fa dopo 15 minuti di modalità prudente: prima la differenza può ancora spiegarsi da sola.", false),
|
||||
@@ -374,6 +390,11 @@ else
|
||||
return "Il broker non risponde";
|
||||
}
|
||||
|
||||
if (a.State.LastOutcome == ReconcileOutcomes.KeyRefused)
|
||||
{
|
||||
return "Chiave non accettata";
|
||||
}
|
||||
|
||||
if (_latency?.GetValueOrDefault(a.Id) is > 0 and var ms)
|
||||
{
|
||||
return $"Connesso, risposta in {ms} ms";
|
||||
|
||||
Reference in new issue
Block a user