Skip to content

feat(dashboard): add dashboard:refresh embed event and refresh() method - #267

Open
bwebs wants to merge 1 commit into
masterfrom
bryan/feat-dashboard-refresh
Open

feat(dashboard): add dashboard:refresh embed event and refresh() method#267
bwebs wants to merge 1 commit into
masterfrom
bryan/feat-dashboard-refresh

Conversation

@bwebs

@bwebs bwebs commented Aug 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add support for the dashboard:refresh embed event and a corresponding refresh(options?: LookerDashboardRefreshOptions) method on DashboardConnection and ILookerEmbedDashboard.

Closes #266

Changes

  • Types:
    • Added LookerDashboardRefreshOptions interface (run?: boolean, delay?: number).
    • Added refresh(options?: LookerDashboardRefreshOptions): Promise<void> to ILookerEmbedDashboard and ILookerConnection.
    • Added typed entry for 'dashboard:loaded' in LookerEmbedEventMap.
  • Implementation:
    • Implemented DashboardConnection.refresh(options?: LookerDashboardRefreshOptions) using sendAndReceive('dashboard:refresh', options).
    • Added EmbedConnection.refresh delegation for dashboards page type.
  • Tests:
    • Added unit test coverage for refresh() and refresh(options) in tests/DashboardConnection.spec.ts.
    • Added unit test coverage for refresh() in tests/EmbedConnection.spec.ts.
  • Demos:
    • Added Refresh button and click handlers to demo_single_frame, demo_multi_frame, and message_example.

Verification

  • npm run lint passes
  • npm test passes (all 149 tests across 11 test suites)
  • npm run build compiles clean bundle and type declarations

@bwebs
bwebs force-pushed the bryan/feat-dashboard-refresh branch 2 times, most recently from aa96fa0 to a0d293f Compare August 10, 2026 22:51
…od (#266)

Add support for the dashboard:refresh embed event and a corresponding refresh() method on DashboardConnection and ILookerEmbedDashboard.

- Add LookerDashboardRefreshOptions interface to src/types.ts
- Add refresh(options?: LookerDashboardRefreshOptions) to ILookerEmbedDashboard and ILookerConnection
- Implement refresh() in DashboardConnection and EmbedConnection
- Add typed entry for dashboard:loaded in LookerEmbedEventMap
- Add unit tests in DashboardConnection.spec.ts and EmbedConnection.spec.ts
- Add UI controls and event handlers to demo pages

Closes #266
@bwebs
bwebs force-pushed the bryan/feat-dashboard-refresh branch from 81451a2 to 1740a19 Compare August 12, 2026 08:00
@bwebs
bwebs marked this pull request as ready for review August 12, 2026 08:02
@bwebs
bwebs requested a review from a team as a code owner August 12, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support dashboard:refresh embed event and refresh() method

1 participant