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

@@ -144,8 +144,10 @@ public partial class BflShareDialog : MSGComponentBase
}
var researchTopics = research.Where(entry => !string.IsNullOrWhiteSpace(entry.Value.Text)).Select(entry => entry.Key).ToList();
var researchedPeople = BflStepResearch.Of(research, await this.Store.LoadAllPersonResearchAsync(this.ProjectId)).People.Count(person => person.Stages.Count > 0);
this.source = new BflShareInput(forms, workStates, results, conversations, materials, researchTopics, researchedPeople, false, APP_VERSION, DateTimeOffset.UtcNow, Culture, await this.LoadValueDeckAsync());
var people = await this.Store.LoadAllPersonResearchAsync(this.ProjectId);
var researchedPeople = BflStepResearch.Of(research, people).People.Count(person => person.Stages.Count > 0);
var simulation = BflEffectiveSimulation.Of(forms.GetValueOrDefault(BflStep.TEST_SITUATION)?.Simulation, BflSimulationCandidates.Of(forms, research, people));
this.source = new BflShareInput(forms, workStates, results, conversations, materials, researchTopics, researchedPeople, false, APP_VERSION, DateTimeOffset.UtcNow, Culture, await this.LoadValueDeckAsync(), simulation);
this.otherNames = string.Join('\n', BflShareNames.Suggest(forms, workStates, research.GetValueOrDefault(BflResearchTopic.PARTICIPANTS)));
}
catch (Exception exception) when (exception is IOException or UnauthorizedAccessException or InvalidDataException)