mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-16 20:48:27 +00:00
Added the simulation of the test situation to the sessions shared from the BeyondFacts Lab
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user