• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

semperai / amica-personas / 18258352473

05 Oct 2025 11:53AM UTC coverage: 19.103% (+0.001%) from 19.102%
18258352473

push

github

web-flow
Merge pull request #37 from kasumi-1/prevent-flash

Show debug UI elements after loading completes

896 of 1158 branches covered (77.37%)

Branch coverage included in aggregate %.

2 of 9 new or added lines in 3 files covered. (22.22%)

4608 of 27654 relevant lines covered (16.66%)

58.99 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

73.81
/amica/src/utils/fileLoadingProgress.ts
1
export function updateFileProgress(file: string, progress: number) {
1✔
2
  if (typeof window !== "undefined") {
20✔
3
    if(! (<any>window).chatvrm_loading_progress) {
20✔
4
      (<any>window).chatvrm_loading_progress = {};
10✔
5
      (<any>window).chatvrm_loading_progress_cnt = 0;
10✔
6
    }
10✔
7
  }
20✔
8

9
  if (progress === 100) {
20✔
10
    delete (<any>window).chatvrm_loading_progress[file];
2✔
11
  } else {
20✔
12
    (<any>window).chatvrm_loading_progress[file] = progress;
18✔
13
  }
18✔
14

15
  (<any>window).chatvrm_loading_progress_cnt++;
20✔
16
}
20✔
17

18
export function setLoadingStage(stage: string, progress: number = 0) {
1✔
19
  if (typeof window !== "undefined") {
10✔
20
    if(! (<any>window).chatvrm_loading_stage) {
10✔
21
      (<any>window).chatvrm_loading_stage = { stage: '', progress: 0 };
1✔
22
      (<any>window).chatvrm_loading_stage_cnt = 0;
1✔
23
    }
1✔
24
    (<any>window).chatvrm_loading_stage = { stage, progress };
10✔
25
    (<any>window).chatvrm_loading_stage_cnt++;
10✔
26
  }
10✔
27
}
10✔
28

29
export function completeLoading() {
1✔
30
  if (typeof window !== "undefined") {
×
31
    (<any>window).chatvrm_loading_stage = null;
×
32
    (<any>window).chatvrm_loading_stage_cnt++;
×
33

34
    // Show debug UI elements when loading completes
NEW
35
    const statsElements = document.querySelectorAll('.stats-js, .lil-gui');
×
NEW
36
    statsElements.forEach((el) => {
×
NEW
37
      if (el instanceof HTMLElement) {
×
NEW
38
        el.style.display = 'block';
×
NEW
39
      }
×
NEW
40
    });
×
41
  }
×
42
}
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc