Skip to content

Enable dynamic widget data fetching#1

Open
roypark wants to merge 1 commit into
mainfrom
cursor/enable-dynamic-widget-data-fetching-2422
Open

Enable dynamic widget data fetching#1
roypark wants to merge 1 commit into
mainfrom
cursor/enable-dynamic-widget-data-fetching-2422

Conversation

@roypark

@roypark roypark commented Sep 5, 2025

Copy link
Copy Markdown
Owner

What type of change does this PR introduce?

  • Bugfix
  • Feature
  • Refactor
  • Documentation
  • Not Sure?

Does this PR introduce breaking changes?

  • Yes
  • No

List any relevant issue numbers:

N/A

Description:

This PR enables dynamic data fetching for widgets, allowing them to update their content from a skill action without requiring a full re-render.

Key changes include:

  • Dynamic Widget Data Fetching: Widgets can now specify an onFetchAction to dynamically fetch updated data from a skill via the /api/v1/fetch-widget endpoint.
  • Custom Widget IDs: The Widget constructor now supports custom IDs, ensuring consistent widget identification across fetches.
  • Timer Skill Refactor: Refactored the timer skill's memory management into a dedicated db.ts file for improved code organization.
  • E2E Test: Added an end-to-end test to validate the dynamic widget fetching functionality.
  • Module Resolution Fixes: Implemented configuration adjustments to resolve module path issues in scripts.

Open in Cursor Open in Web

@cursor

cursor Bot commented Sep 5, 2025

Copy link
Copy Markdown

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@roypark
roypark marked this pull request as ready for review September 5, 2025 03:58
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.

2 participants