Added the simulation of the test situation to the sessions shared from the BeyondFacts Lab

This commit is contained in:
Thorsten Sommer committed 2026-11-15 16:36:23 +01:00
1 parent c08e5d7fb0
commit c11c5640c2
4 files changed
+40 -6

No files matched your search

@@ -45,7 +45,8 @@ public static class BflShareModelBuilder
/// <summary>
/// Appends what the research team needs to read the session: the version of AI Studio, the date, how much material
/// the person added, on which topics the lab researched, and how many people it researched in depth.
/// the person added, on which topics the lab researched, how many people it researched in depth, and whom the test
/// situation simulates.
/// </summary>
/// <param name="text">The session so far.</param>
/// <param name="input">What the session is put together from.</param>
@@ -62,9 +63,20 @@ public static class BflShareModelBuilder
AppendItem(text, TB("Material"), string.Format(input.Culture, TB("{0} documents, {1} recordings, {2} images"), documents, recordings, images));
AppendItem(text, TB("Research on the web"), topics.Count > 0 ? string.Join(", ", topics) : TB("none"));
AppendItem(text, TB("People researched in depth"), input.ResearchedPeople.ToString(input.Culture));
AppendItem(text, TB("Simulation in the test situation"), Simulation(input));
AppendItem(text, TB("Personal disclosures"), input.IncludePersonalDisclosures ? TB("included") : TB("left out"));
}
/// <summary>
/// Describes whom the test situation simulates: the mode and how many people, without their names.
/// </summary>
/// <param name="input">What the session is put together from.</param>
private static string Simulation(BflShareInput input)
{
var simulation = input.Simulation ?? BflEffectiveSimulation.GENERIC;
return simulation.People.Count is 0 ? simulation.Mode.Title : string.Format(input.Culture, TB("{0} ({1} simulated)"), simulation.Mode.Title, simulation.People.Count);
}
/// <summary>
/// Appends a step: its details, its confirmed work state, its conversation, and for the last step the confirmed
/// materials.