Skip to content

Reload functions#3

Merged
ramytanios merged 4 commits into
mainfrom
reload-functions
Apr 5, 2026
Merged

Reload functions#3
ramytanios merged 4 commits into
mainfrom
reload-functions

Conversation

@ramytanios

Copy link
Copy Markdown
Owner

No description provided.

ramytanios and others added 4 commits April 5, 2026 01:22
- ExcelJsGenerator now generates dynamic JS: fetches /functions.json at
  runtime and calls CustomFunctions.associate() per function using a
  generic ...args handler + parameter name mapping from metadata
- functions.js polls OfficeRuntime.storage every 2s for a
  "cf-reload-signal" key; on detection it re-fetches and registers any
  newly added functions without reloading the add-in
- taskpane gains a "Reload Functions" button that writes the reload
  signal to OfficeRuntime.storage and re-renders the function list
- remove now-unused `functions` parameter from ExcelJsGenerator.generate
- update tests to match new dynamic JS shape

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- extract taskpane CSS and JS into src/main/resources/ as proper files
- extract functions-core.js into src/main/resources/
- serve /taskpane.css and /taskpane.js as separate routes
- delete ExcelIcon.scala (PNG generator); replace with a single inline SVG
- update manifest to point all icon resids to /icon.svg

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ramytanios ramytanios merged commit 837ecb6 into main Apr 5, 2026
1 check passed
@ramytanios ramytanios deleted the reload-functions branch April 5, 2026 08:30
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.

1 participant