Sites and locales of the admin, and the multi-site admin half (A-35)

Aperta
#3,423 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
csharp, openapi

Direzione di ricerca

Read docs/planning/admin-technical-spec.md, sections 4.16, 5.6 and 10.7, and first resolve the stated dependency on A-51. Then locate the administration assembly and FluentCMS.Plugins.MultiSite.Admin entry points, along with the OpenAPI document and component, API and end-to-end tests. Done means both admin areas meet the listed acceptance criteria and all specified tests cover them.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area:admin type:feature

Problem

Rows 3.17, 7.1 and 7.10 ask that a site's locales, and with the multi-site plugin the sites and their host names, are managed in the admin. The Management API has /sites with its locales, and the multi-site plugin adds the creation and deletion of sites and their host names. The admin has no page for any of it, and no multi-site half beyond the stub of A-51.

Proposal

Core, in the administration assembly (4.16). A page /sites for a caller who holds sites.manage in the site:

  • The site's name and default locale.
  • Its locales with position, enabled flag and fallbacks: add, change, reorder and remove, with the server's refusals shown by their code.
  • After a change the shell reads GET /me/sites again, so the site switcher and the locale switcher follow without a reload.

The multi-site half (5.6), FluentCMS.Plugins.MultiSite.Admin, whose pages all need sites.manage for the instance:

  • /multi-site/sites with a menu item beside core's sites: create a site (name, slug, default locale), and delete one after a confirmation that names it.
  • /multi-site/sites/{id}/hosts: the host names with the primary first, add, make primary and remove.
  • The half's records are checked against the OpenAPI document.

Acceptance

  • An administrator adds a locale with a fallback to a site, disables it and removes it, and the locale switcher of a content form follows each step
  • The default locale of a site is changed, and what the server refuses is shown with its reason
  • With the multi-site plugin a site is created, gets a second host name that is made primary, and is deleted after the confirmation; the site switcher follows
  • A caller who holds sites.manage in one site sees that site's locales and none of the multi-site pages
  • In a site where the multi-site plugin is disabled its pages and menu item are absent, and the half is not fetched
  • Component tests cover both parts; the API tests check the records against the OpenAPI document; an end-to-end case adds a locale and creates a site

Design: docs/planning/admin-technical-spec.md, sections 4.16, 5.6 and 10.7 (A-35). Rows 3.17, 7.1, 7.10. Needs A-51; #3104 is merged. Size: M.

Lingua principale
C#
Stelle
567
Fork
107
Merge medio
1h 19m
PR unite (30g)
353

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.