Ricerca dei profili con suggerimenti e foto (#37)
«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:
1 parent
5e417c666d
commit
9941a2fa1f
98 files changed
+8021
-229
No files matched your search
@@ -56,6 +56,25 @@ public sealed class SiteControl
|
||||
private int _cdnFiles;
|
||||
private int _cdnExpired;
|
||||
private int _cdnThrottled;
|
||||
private int _recentSearchWrites;
|
||||
|
||||
/// <summary>Extra wait before every answer of the search box (slow answers).</summary>
|
||||
public TimeSpan SearchDelay { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The search box answers shorter texts later than longer ones, so an earlier prefix arrives last (answers out of
|
||||
/// order, as on a slow network).
|
||||
/// </summary>
|
||||
public bool SearchDisorder { get; set; }
|
||||
|
||||
/// <summary>The page sends no request for a text it already searched, as a page with its own memory does.</summary>
|
||||
public bool SearchMemory { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Number of «ricerche recenti» the page wrote: clicking a result or pressing Enter in the search box writes one,
|
||||
/// as Instagram registers a search. Febe must never cause one.
|
||||
/// </summary>
|
||||
public int RecentSearchWrites => _recentSearchWrites;
|
||||
|
||||
public StopMode Mode
|
||||
{
|
||||
@@ -91,6 +110,10 @@ public sealed class SiteControl
|
||||
StoryDuration = TimeSpan.FromSeconds(5);
|
||||
AddressLifetime = TimeSpan.FromHours(6);
|
||||
CdnTooManyRequests = false;
|
||||
SearchDelay = TimeSpan.Zero;
|
||||
SearchDisorder = false;
|
||||
SearchMemory = false;
|
||||
Interlocked.Exchange(ref _recentSearchWrites, 0);
|
||||
Interlocked.Exchange(ref _cdnFiles, 0);
|
||||
Interlocked.Exchange(ref _cdnExpired, 0);
|
||||
Interlocked.Exchange(ref _cdnThrottled, 0);
|
||||
@@ -116,6 +139,8 @@ public sealed class SiteControl
|
||||
|
||||
internal void OnCdnServed() => Interlocked.Increment(ref _cdnFiles);
|
||||
|
||||
internal void OnRecentSearchWritten() => Interlocked.Increment(ref _recentSearchWrites);
|
||||
|
||||
internal void OnCdnExpired() => Interlocked.Increment(ref _cdnExpired);
|
||||
|
||||
internal void OnCdnThrottled() => Interlocked.Increment(ref _cdnThrottled);
|
||||
|
||||
Reference in new issue
Block a user