Skip to content

Open a class the playground hands over as #playground= - #8

Merged
oblomov-dev merged 2 commits into
mainfrom
claude/zealous-feynman-nf350a
Oct 18, 2026
Merged

oblomov-dev merged 2 commits into
mainfrom
claude/zealous-feynman-nf350a

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

The playground's new Open in Layout Editor (abap2UI5/playground#138) hands its app class over as #playground=<share fragment>. That is the same format Open in Playground already writes: version "2", then base64url of deflate-raw JSON [{name, source}].

The editor now reads that fragment the other way round:

  • Decoding: filesFromPlaygroundFragment() in src/handoff.js decodes the fragment. It refuses unknown versions and empty or malformed payloads.
  • Import: openClassFromPlayground() in src/ui/files.js imports the first file the way Open ABAP class does, then cleans the address. It runs on load and on hashchange.
  • Tests: a round-trip test and the refusal cases are in test/handoff.test.mjs (4/4 pass).
  • Docs: one README line.

Without this change, the playground falls back to copying the class to the clipboard.


Generated by Claude Code

The playground's Open in Layout Editor carries its app class in the share
fragment Open in Playground already writes; the editor now reads that
format the other way and imports the first file as Open ABAP class does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBPa75o3TYJo1ZCSndPFY7
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01PBPa75o3TYJo1ZCSndPFY7
@oblomov-dev
oblomov-dev merged commit f466ecf into main Oct 18, 2026
2 checks passed
@oblomov-dev
oblomov-dev deleted the claude/zealous-feynman-nf350a branch October 18, 2026 10:24
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