Repository navigation
Commit e120010
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_edit1 parent c1688c8 commit e120010
14 files changed
Lines changed: 337 additions & 487 deletions
File tree
- apps/editor/src/views
- panel
- backend
- message-handlers
- handle-commit-changes/utils
- frontend
- Main
- hooks/panel
- types
- utils
- upsert-api-configuration
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments