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

thoughtspot / visual-embed-sdk / #3956
94%
main: 94%

Build:
Build:
LAST BUILD BRANCH: pre
DEFAULT BRANCH: main
Ran 02 Jun 2026 05:14AM UTC
Jobs 1
Files 51
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

02 Jun 2026 04:42AM UTC coverage: 94.224% (-0.09%) from 94.313%
#3956

Pull #547

yinstardev
SCAL-313306: refactor declarative embedParams building in V1Embed

Replace imperative embedParams construction with declarative pattern to eliminate
mutation chains and improve maintainability. Each embed type now declares
contributions separately, merged once in base class.

Changes:
- Create new embedParams-builder.ts with EmbedParamsContribution interface
- Add getEmbedParamsContributions() method to TsEmbed (returns empty by default)
- Update getDefaultAppInitData() to collect and merge contributions declaratively
- Refactor AppEmbed: replaces getAppInitData() with getEmbedParamsContributions()
- Refactor LiveboardEmbed: replaces getAppInitData() with getEmbedParamsContributions()
- Refactor SearchEmbed: adds getEmbedParamsContributions(), preserves searchOptions in getAppInitData()
- Refactor SpotterEmbed: replaces getAppInitData() with getEmbedParamsContributions()
- Add contribution builders to spotter-utils and spotter-viz-utils
- Keep old builder functions for backward compatibility

Benefits:
- Eliminates spread operator chains causing hidden mutations
- Type-safe embedParams with explicit interface
- Easier to test contributions in isolation
- Cleaner code with single responsibility
- Maintains 100% backward compatibility

Tests: all 1103 tests pass
Pull Request #547: SCAL-313306: refactor declarative embedParams building in V1Embed

2084 of 2337 branches covered (89.17%)

Branch coverage included in aggregate %.

36 of 37 new or added lines in 6 files covered. (97.3%)

54 existing lines in 3 files now uncovered.

3805 of 3913 relevant lines covered (97.24%)

140.98 hits per line

Uncovered Changes

Lines Coverage ∆ File
1
91.3
-2.17% src/embed/spotter-utils.ts

Coverage Regressions

Lines Coverage ∆ File
38
90.71
0.03% src/embed/ts-embed.ts
12
91.95
-0.15% src/embed/liveboard.ts
4
94.92
-0.16% src/embed/app.ts
Jobs
ID Job ID Ran Files Coverage
1 #3956.1 02 Jun 2026 05:14AM UTC 51
94.22
Source Files on build #3956
  • Tree
  • List 51
  • Changed 7
  • Source Changed 5
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Pull Request #547
  • PR Base - main (#)
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