wu-sheng opened a new pull request, #39:
URL: https://github.com/apache/skywalking-horizon-ui/pull/39

   One branch, two changes (kept together per request).
   
   ## 1. Import / Export for dashboard templates and translations
   
   Adds **Export** and **Import** to all four template admin editors.
   
   - **Overview templates**, **Layer dashboards**, **3D-map config** — act on 
the source template. **Export** downloads the *in-use* version (live on OAP, 
else the bundled default) as a JSON file. **Import** validates a file and loads 
it as a browser-local draft; the operator previews it and publishes with “Check 
diff & push” — import never writes OAP directly. Import targets the template 
the file names: overview can create or restore an id, layer targets a layer 
already loaded on this deployment, 3D is the singleton. Wrong-kind / malformed 
files are rejected with a message.
   - **Translations page** — per-locale Export/Import of the in-use overlay. 
Source templates and their translations are edited on separate pages, so their 
import/export are separate too — each on its own page.
   
   Implementation: one shared client-side helper (`templatePortability.ts` — 
file download/pick, export envelope, per-kind + overlay validation) with unit 
tests; per-page buttons matching each editor’s existing action cluster (export 
reads the in-use version, independent of the editor draft); new UI strings 
translated across all eight locales; CHANGELOG + operator docs updated.
   
   Export captures the **source** template only; per-locale translations are 
their own OAP rows, exported/imported on the Translations page.
   
   ## 2. Docs accuracy pass + principles + release tooling (commit 5fdeb72)
   
   Website docs brought current with the build and restructured concept-first 
(the admin UIs are the authoring surface; JSON is a reference appendix). 
Accuracy fixes across RBAC verbs, the audit-log action set, Metrics Inspect 
paths, layer-template flags, and the redesigned 3D-map config + loading stages; 
a new `docs/CLAUDE.md` records the doc-writing principles; release-finalize 
tooling simplified to verify published tags.
   
   ## Verification
   
   - `vue-tsc` type-check, ESLint, and `license-eye` header check all clean.
   - 16 unit tests cover the import/export validation (cross-kind rejection, 
envelope unwrap, key derivation, overlay parsing).
   - All edited SFCs compile through the dev server. Manual render-check of the 
Export/Import buttons is pending — native OS file dialogs aren’t headlessly 
automatable in this environment.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to