Skip to content

Simplify the chat code for Statamic 6 - #33

Merged
edalzell merged 3 commits into
chore/commit-dist-assetsfrom
chore/simplify-chat
Oct 14, 2026
Merged

edalzell merged 3 commits into
chore/commit-dist-assetsfrom
chore/simplify-chat

Conversation

@edalzell

Copy link
Copy Markdown
Member

The CP script and the /!/front/config endpoint each built the user payload and HMAC separately, and the controller only read name (no first/last fallback). Both now go through ChatConfig::forCurrentUser(), which uses Statamic's User::name(). The provider passes a closure to Statamic::provideToScript (resolved per request) instead of wrapping it in a statamic::layout view composer, and drops hotFile since it matched the default.

Two of the three CP CSS rules could never match: #front-chat-container lives inside Front's iframe, and .fc-1_tjF no longer exists (checked on transformstudios.com front end and CP, FrontChat 9.74.17). Only the #front-chat-iframe z-index rule remains.

vue and @vitejs/plugin-vue2 were unused (cp.js is plain DOM, vite config never loaded the plugin); dropped, with Vite and laravel-vite-plugin brought current. Assets rebuilt.

Stacked on #32.

@github-actions github-actions Bot added the chore label Oct 14, 2026
@edalzell
edalzell added this pull request to stack #35 October 14, 2026 01:51
@edalzell
edalzell merged commit c468039 into main Oct 14, 2026
3 checks passed
@edalzell
edalzell deleted the chore/simplify-chat branch October 14, 2026 02:06
@edalzell edalzell mentioned this pull request Oct 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant