Skip to content

Commit e120010

Browse files
committed
Consolidate web configuration creation and update logic into a single upsert handler
- merge 'create', 'update' web configuration into 'upsert web configuration'. Place core login in `apps/editor/src/views/utils`. - `apps/editor/src/views/panel/backend/message-handlers/handle-upsert-web-configuration.ts` doesn't need to sennd web configurations to webview because we have appropriate listener. - fix message names in `apps/editor/src/views/panel/frontend/hooks/panel/use-web-configuration-editing.ts` - when creating a web configuration, should not open the edit form - simplify `apps/editor/src/views/panel/backend/message-handlers/handle-upsert-web-configuration.ts` (and `apps/editor/src/views/utils/upsert-web-configuration.ts`), as we always want to call [Fragment], no matter the result - review the recent edits [Changes] and restore highlighting newly created web configuration - when creating 'api configuration', it should be highlighted, just like the created 'web configuration' - `apps/editor/src/views/panel/backend/message-handlers/handle-upsert-web-configuration.ts` should use SELECTED_WEB_CONFIGURATION_CHANGED instead of [Fragment]. remove prop on_web_configuration_edit
1 parent c1688c8 commit e120010

14 files changed

Lines changed: 337 additions & 487 deletions

‎apps/editor/src/views/panel/backend/message-handlers/handle-commit-changes/utils/file-utils.ts‎

Lines changed: 0 additions & 93 deletions
This file was deleted.

‎apps/editor/src/views/panel/backend/message-handlers/handle-create-web-configuration.ts‎

Lines changed: 0 additions & 163 deletions
This file was deleted.

‎apps/editor/src/views/panel/backend/message-handlers/handle-get-donations-visibility.ts‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

‎apps/editor/src/views/panel/backend/message-handlers/handle-save-donations-visibility.ts‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)