fix(builder): un-hide and relabel static-page content editor, warn on publish/remove-language

- KNOWN-ISSUES item 11: the WYSIWYG page content editor was buried inside
  a collapsed Advanced <details>, labeled 'Raw HTML (advanced)'. Moved it
  to the top of the Content tab, unwrapped, relabeled 'Page Content' /
  'Содержимое страницы' / 'Эջի բովանդակություն' with a plain-language
  description. Advanced tab keeps genuinely technical fields (id, slug,
  route, custom template).
- Publish (save-bar) and Remove language (languages-section) had no
  confirmation despite being destructive/high-impact — added
  window.confirm guards using the existing builder.confirm* i18n pattern
  (matches resetDraft/resetSection/dirty-guard precedent), all 3 locales.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
sdarbinyan
2026-07-25 20:43:43 +04:00
parent 38253f7e83
commit 72846b44b1
8 changed files with 50 additions and 27 deletions

View File

@@ -37,7 +37,9 @@ export class ProjectEditorSaveBarComponent {
}
publish(): void {
this.facade.publish();
if (confirm(this.translate.t('builder.confirmPublish'))) {
this.facade.publish();
}
}
resetDraft(): void {

View File

@@ -59,7 +59,9 @@ export class ProjectEditorLanguagesSectionComponent {
}
removeLocale(code: string): void {
this.facade.removeLocale(code);
if (confirm(this.translate.t('builder.confirmRemoveLanguage'))) {
this.facade.removeLocale(code);
}
}
setDefault(code: string): void {