Skip to content

Excel module#2

Merged
ramytanios merged 14 commits into
mainfrom
excel-module
Apr 4, 2026
Merged

Excel module#2
ramytanios merged 14 commits into
mainfrom
excel-module

Conversation

@ramytanios

Copy link
Copy Markdown
Owner

No description provided.

ramytanios and others added 14 commits April 3, 2026 23:31
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- add functions.html() to Excel: loads Office.js in <head>, custom
  functions script in <body>
- add ExcelServer: serves functions.js, functions.json, functions.html
  from a single origin on port 7777 via http4s + cats-effect
- content generated once at startup via Resource.eval
- fix field-order sensitivity in ExcelFunctionBuilderTest

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- add ExcelMain IOApp with Add and Repeat case classes, each with
  @description annotations
- POST /invoke route dispatches by functionId and executes real logic
- ExcelServer.server now accepts extraRoutes for composability
- add http4s-circe dep for JSON body decoding

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- FETCH_POST: calls jsonplaceholder.typicode.com/posts/{id}, returns title
- CURRENT_TEMP: calls api.open-meteo.com with lat/lon, returns temperature °C
- invokeRoutes now takes Client[IO]; EmberClientBuilder wires it at startup
- add http4s-ember-client dependency

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- extract HTML templates into ExcelHtml, icon generation into ExcelIcon
- slim Excel class down to pure delegation
- replace ExcelServer (full ember server) with ExcelRoutes (HttpRoutes only)
- add excel-example module with ExcelMain (ember server + invoke routes) and manifest.xml
- fix manifest: DesktopFormFactor (singular), AllFormFactors before DesktopFormFactor, bt:Images for icons

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
ExcelFunctionBuilder.from no longer accepts a description argument;
it reads the value from the schema's top-level "description" field
and throws IllegalArgumentException if it is absent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@ramytanios ramytanios merged commit 01c7d19 into main Apr 4, 2026
1 check passed
@ramytanios ramytanios deleted the excel-module branch April 4, 2026 22:49
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