Skip to content

Conversation

@jkmassel
Copy link
Contributor

What?

I had a suggestion for #114 that was longer than would make sense in the suggestions box

Why?

Prevents invalid states in the editor view controller

How?

Testing Instructions

Accessibility Testing Instructions

Screenshots or screencast

@jkmassel jkmassel changed the base branch from trunk to feat/host-provides-editor-settings April 16, 2025 19:48
Copy link
Member

@dcalhoun dcalhoun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the changes; solid improvements. Thank you for taking time to open a PR.

@dcalhoun
Copy link
Member

Also noting: I smoke tested both the bundled and site-specific editors—I did not encounter any issues.

@dcalhoun dcalhoun merged commit a1c456a into feat/host-provides-editor-settings Apr 16, 2025
9 checks passed
@dcalhoun dcalhoun deleted the suggestions/for-114 branch April 16, 2025 20:20
dcalhoun added a commit that referenced this pull request Apr 24, 2025
* feat: Limit block types to an allowed list

To improve stability, the remote, site-specific editor un-registers
block types that are not on the allow list.

* fix: Seed GBKit global from local storage

This is largely in place for development experience purposes, not user
facing. It allows the editor WebView to reload and retains its current
GBKit global.

* fix: Guard against undefined allowed block types configuration

Avoid exceptions invoking array methods on `undefined`.

* Revert "fix: Seed GBKit global from local storage"

This reverts commit 38fe2c7.

* hoist settings

* feat: Expose bridge method for updating editor settings

* Revert "feat: Expose bridge method for updating editor settings"

This reverts commit 2e1f1464ac65899dc3a5b23af12b59978a34dee9.

* feat: Improve editor start sequence

* refactor: Separate warm up mode load behaviour

To allow the host app to manage editor start sequence, we do not start
within `viewDidLoad`.

* refactor: Remote editor relies upon host app settings

* refactor: Android receives editor settings from host app

Hoist editor settings fetching and configuration to the host app to
allow more control of the editor initialization flow.

* refactor: Pass Android editor settings as JSON string

Avoid difficulties typing complex JSON structures.

* refactor: Clean up logic

Remove unnecessary or unused code.

* task: Capture build output

* task: Capture build output

* Make `isWarmupMode` immutable (#117)

---------

Co-authored-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
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.

3 participants