skopix 2.0.58 → 2.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/web/app/index.html +5 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "skopix",
3
- "version": "2.0.58",
3
+ "version": "2.0.60",
4
4
  "description": "Browser-based QA tool — record tests by using your app, replay them deterministically, generate Playwright code automatically",
5
5
  "main": "cli/index.js",
6
6
  "bin": {
@@ -5597,8 +5597,7 @@ function renderPendingSteps(steps) {
5597
5597
  const section = document.getElementById('library-pending-section');
5598
5598
  const list = document.getElementById('pending-steps-list');
5599
5599
  const countLabel = document.getElementById('pending-count-label');
5600
- console.log('[pending] renderPendingSteps called, steps:', steps?.length, 'section:', !!section);
5601
- if (!section || !list) { console.warn('[pending] missing elements!'); return; }
5600
+ if (!section || !list) return;
5602
5601
 
5603
5602
  if (!steps || steps.length === 0) {
5604
5603
  section.style.display = 'none';
@@ -5606,7 +5605,6 @@ function renderPendingSteps(steps) {
5606
5605
  return;
5607
5606
  }
5608
5607
 
5609
- console.log('[pending] showing section with', steps.length, 'steps');
5610
5608
  section.style.display = 'block';
5611
5609
  updatePendingBadge(steps.length);
5612
5610
  if (countLabel) countLabel.textContent = `${steps.length} element${steps.length > 1 ? 's' : ''} waiting`;
@@ -5638,7 +5636,6 @@ async function loadLibraryView() {
5638
5636
  fetchLibrarySteps().catch(() => []),
5639
5637
  fetchPendingSteps().catch(() => [])
5640
5638
  ]);
5641
- console.log('[pending] loadLibraryView got steps:', steps.length, 'pending:', pending.length);
5642
5639
  renderPendingSteps(pending);
5643
5640
  populateLibraryTagFilter();
5644
5641
  renderLibrarySteps(steps);
@@ -6072,7 +6069,7 @@ let builderSteps = [];
6072
6069
  let builderActionFilter = '';
6073
6070
  let previousView = 'all-tests';
6074
6071
 
6075
- function openTestBuilder() {
6072
+ async function openTestBuilder() {
6076
6073
  previousView = currentView || 'all-tests';
6077
6074
  builderSteps = [];
6078
6075
  document.getElementById('builder-test-name').value = '';
@@ -6084,12 +6081,9 @@ function openTestBuilder() {
6084
6081
  const bv = document.getElementById('view-test-builder');
6085
6082
  bv.style.display = 'flex';
6086
6083
  renderBuilderSteps();
6087
- // Load library if not cached
6088
- if (libraryStepsCache.length === 0) {
6089
- fetchLibrarySteps().then(() => renderBuilderLibrary());
6090
- } else {
6091
- renderBuilderLibrary();
6092
- }
6084
+ // Always fetch fresh library data before rendering
6085
+ await fetchLibrarySteps();
6086
+ renderBuilderLibrary();
6093
6087
  }
6094
6088
 
6095
6089
  function closeTestBuilder() {