Evalkeeper
    Preparing search index...

    Function loadSuitePage

    • Everything a suite's page shows, loaded together: on a remote database each read waits on round trips, so one after the other multiplies the wait. Null for a suite that doesn't exist. Sections read from this, so a page that arranges them its own way loads the same data once.

      Parameters

      Returns Promise<
          | {
              app: EvalAppConfig;
              attackBoards: {
                  caseResults: Record<string, { models: number; passed: number }>;
                  cases: number;
                  liveRunId: string | null;
                  provisional: number;
                  route: Route;
                  rows: BoardRow[];
                  suite: AnySuite;
              }[];
              attacks: AttackResults[];
              b: {
                  caseResults: Record<string, { models: number; passed: number }>;
                  cases: number;
                  liveRunId: string | null;
                  provisional: number;
                  route: Route;
                  rows: BoardRow[];
                  suite: AnySuite;
              };
              cases: CaseRecord[];
              choosesHere: boolean;
              estimates: Map<
                  string,
                  {
                      answers: number;
                      cases: number;
                      costUsd: number
                      | null;
                      reused: number;
                  },
              >;
              health: AnswerKeyHealth<CaseRecord>;
              history: HistoryEntry[];
              inInstructions: CaseInInstructions[];
              key: string;
              live: BoardRow | undefined;
              liveSettings: { settings: Settings; version: SettingsVersion | null };
              operation: string;
              priority: SuitePriority;
              rows: BoardRow[];
              s: Suggestion<BoardRow> | null;
              showAttacks: boolean;
              splitBy: Record<string, { right: string[]; wrong: string[] }>;
              suite: AnySuite;
              testing: boolean;
          }
          | null,
      >