Ricerca dei profili con suggerimenti e foto (#37)
verifica / controlli (push) Successful in 20s
verifica / prove (push) Failing after 19m40s
verifica / installatore (push) Skipped
verifica / immagine (push) Skipped

«Aggiungi account» ha una sola casella: mentre Alberto scrive compaiono
subito i suggerimenti locali, poi i profili di Instagram con la foto, come
chiesto in #37. Il browser di Febe scrive nella casella «Cerca» di Instagram
con tasti veri da una mappa chiusa (mai Invio, Tab o Esc), controlla prima
il fuoco, legge la risposta della pagina e non clicca mai un risultato.

La ricerca ha una categoria propria nel Governatore, con tetti larghi che
non consumano quelli della raccolta, e si dà il turno con il motore
sull'unica pagina; a fine sessione la pagina torna comunque al riposo. Le
foto passano dal CDN con un permesso ciascuna e restano solo in memoria.

Le risposte di Alberto del 15 novembre (controllo del fuoco, turni, evento
requestWillBeSent, niente foto dei seguiti per ora) sono in §6.1 e in
docs/decisioni.md. Su Instagram vero la ricerca parte quando i bersagli
search-open e search-box saranno raccolti dal vivo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-11-15 16:30:03 +01:00
1 parent 5e417c666d
commit 9941a2fa1f
98 files changed
+8021 -229

No files matched your search

@@ -8,6 +8,7 @@ using Febe.Core.Collection.Downloads;
using Febe.Core.Collection.Privacy;
using Febe.Core.Collection.Readers;
using Febe.Core.Collection.Recipes;
using Febe.Core.Collection.Search;
using Febe.Core.Domain;
using Febe.Core.Engine;
using Febe.SitoDiProva;
@@ -179,12 +180,20 @@ public sealed class DiagnosticPrivacyTests
diagnostics.DownloadSettled(new DownloadProgress(1, 2, 3, EntryKind.Story, DownloadStep.Retried) { Cause = DownloadCauses.Of(404) });
diagnostics.DownloadSettled(new DownloadProgress(1, 2, 3, EntryKind.Story, DownloadStep.Failed) { Cause = "https://cdn.esempio/marta.prova.jpg" });
// The profile search (issue #37): outcomes only, and a name where an outcome is expected becomes «altro».
diagnostics.SearchStepEnded(SearchOutcome.Ready);
diagnostics.SearchStepEnded(SearchOutcome.Empty);
diagnostics.SearchPhotoSettled("scaricata");
diagnostics.SearchPhotoSettled("marta.prova");
var text = Export(diagnostics.Collect(), clock);
Assert.AreEqual(0, diagnostics.Faults);
using var report = JsonDocument.Parse(text);
Assert.AreEqual(1, report.RootElement.GetProperty("sessioni").GetArrayLength());
Assert.AreEqual(1, report.RootElement.GetProperty("fuoriSessione").GetArrayLength());
StringAssert.Contains(text, "\"structure\"", "The unknown shape is there, by its keys.");
StringAssert.Contains(text, "\"searchSteps\"", "The steps of the search are there, by outcome.");
StringAssert.Contains(text, "\"altro\"", "An odd fate of a search photo becomes «altro».");
foreach (var hiddenMap in new[] { "{data:{counts:{#},node:{tags:{#:[]},edges:{seen:{#:{pk,seen}}},items:[{#:{pk}}]}}}" })
{
StringAssert.Contains(text, hiddenMap, "The maps are there, without their names.");
@@ -457,11 +466,12 @@ internal static partial class ReportLeaks
}
values.UnionWith(CdpResourceTypes);
values.UnionWith(CollectionDiagnostics.SearchPhotoOutcomes);
foreach (var type in new[]
{
typeof(SessionOutcome), typeof(SessionStopCause), typeof(RecipeStatus), typeof(RecipeKind), typeof(SignalLevel), typeof(ActionKind),
typeof(DenialReason), typeof(EntryKind), typeof(DownloadStep), typeof(BodyDropReason), typeof(HostKind), typeof(TargetCheckStatus),
typeof(SaveOutcome),
typeof(SaveOutcome), typeof(SearchOutcome),
})
{
values.UnionWith(Enum.GetNames(type));
@@ -478,7 +488,7 @@ internal static partial class ReportLeaks
"count", "resourceType", "mime", "status", "bytes", "maxBytes", "recognized", "empty", "unrelated", "unrecognized", "notSite",
"notRead", "contents", "profiles", "dropped", "reason", "structure", "verdict", "target", "kind", "signal", "actions",
"newEntries", "level", "code", "action", "saves", "files", "skipped", "step", "requests", "ok", "cdn", "error", "cause", "late",
"righeRovinate", "erroriRegistratore", "fileIlleggibili", "sessioniSenzaFine",
"righeRovinate", "erroriRegistratore", "fileIlleggibili", "sessioniSenzaFine", "searchSteps", "searchPhotos",
];
private static IEnumerable<string> Literals(SiteMap map) =>