Add OpenClaw integration, preview UI polish, and README updates#4
Open
Add OpenClaw integration, preview UI polish, and README updates#4
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Description
src/utils/openclaw.tswhich definesOpenClawCommand/OpenClawAck, URL param parsing (parseOpenClawURLParams), message validation (isOpenClawMessage), template resolution (resolveTemplateById) and ack posting (postOpenClawAck).src/App.tsxby addingdispatchOpenClawCommand, parsing URL params on load, adding amessagelistener for incoming commands, and exposing a host API onwindow.PageSkillOpenClawwithdispatchandgetState.src/components/Preview/Preview.tsxwith adjusted mobile/tablet widths, labeled preview header, icons, refined container styles and preserved animation.src/components/Header/Header.tsxto rename the app toPageSkilland add anOpenClaw Readybadge.src/index.cssincluding.app-shellbackground and.preview-surfacegrid to improve surface aesthetics.README.mdandREADME_EN.mdwith a project health check, recommended next steps, a growth playbook, OpenClaw usage examples (URL params andpostMessage) and common commands.Testing
npm run lintand it passed.npm run buildand the build succeeded.lint:eslintcurrently fails because the repository does not include an ESLint v9 flateslint.config.*, and this is noted in the README as the recommended next step.Codex Task