Skip to content

101 render the document outline with collapsible folders per tree - #111

Open
odungern wants to merge 15 commits into
devfrom
101-render-the-document-outline-with-collapsible-folders-per-tree
Open

101 render the document outline with collapsible folders per tree#111
odungern wants to merge 15 commits into
devfrom
101-render-the-document-outline-with-collapsible-folders-per-tree

Conversation

@odungern

Copy link
Copy Markdown
Contributor
  • TTL Export improved
  • Document display referencing an outline with collapsible folders.
  • Some refactoring

Copilot AI lite review requested due to automatic review settings August 18, 2026 16:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the document viewing UX to render a hierarchical outline (with collapsible folders) derived from cas:Root / cas:lists links, while also refactoring import/export behavior and updating fixture data to reflect the revised CASCaRA/TTL/JSON-LD semantics.

Changes:

  • Replace the flat document list with a recursive outline tree (OutlineTreeItem) and add an “Unreferenced Items (Recycle Bin)” section for orphaned entities.
  • Align importer responses/status handling (notably 603) and simplify import/export component styling by moving repeated scoped CSS into global styles.
  • Improve TTL enumeration export (datatype + owl:anyOf + individuals) and update XML/TTL/JSON-LD test fixtures accordingly.

Reviewed changes

Copilot reviewed 42 out of 55 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
tests/unit/import-xml.spec.ts Renames test descriptions for updated naming/terminology.
tests/unit/import-fmi.spec.ts Adjusts diagnostic logging behavior in FMI import tests.
tests/data/XML/21/Very Simple Model (FMC) with Requirements.cas.xml.new Adds new XML fixture variant reflecting updated outline/hierarchy structure.
tests/data/XML/21/Very Simple Model (FMC) with Requirements.cas.xml Updates title, enumerated link metadata, and outline/root structure.
tests/data/XML/11/Alice_works_for_ACME.cas.xml Updates outline listing structure in fixture data.
tests/data/XML/05/Requirement_with_Enumerated_Property.cas.xml Updates titles and enumerated link metadata in fixture data.
tests/data/TTL/21/Very_Simple_Model_(FMC)_with_Requirements.cas.ttl Updates TTL output fixture for enumeration/export and outline structure.
tests/data/TTL/11/Alice_works_for_ACME.with-itemTypes.cas.ttl Updates TTL fixture metadata/versioning and prefixes.
tests/data/TTL/11/Alice_works_for_ACME.cas.ttl Updates TTL fixture metadata/versioning and prefixes.
tests/data/TTL/05/Requirement_with_Enumerated_Property.cas.ttl Updates TTL fixture for enumeration/export and labeling.
tests/data/JSON-LD/21/Very_Simple_Model_(FMC)_with_Requirements.cas.jsonld Updates JSON-LD fixture for enumerated target link and hierarchy structure.
tests/data/JSON-LD/05/Requirement_with_Enumerated_Property.cas.jsonld Updates JSON-LD fixture for enumerated target link and labeling.
src/styles/main.css Centralizes shared component styling (cards/alerts/margins, dl layout).
src/plugins/import/xml/mount-import-xml.ts Refactors XML import plugin options typing and header comments.
src/plugins/import/xml/mount-import-any-xml.ts Adds an “any XML” import plugin registration (SEF-backed import UI).
src/plugins/import/xml/import-xml.vue.new Updates partial-success status handling in the newer XML import implementation.
src/plugins/import/xml/import-xml.vue Restricts accepted extensions to .cas.xml, removes SEF option, and updates partial-success status comment.
src/plugins/import/xml/import-any-xml.vue Introduces UI flow for importing arbitrary XML with required SEF transformation.
src/plugins/import/reqif/import-reqif.vue Removes duplicated scoped styling (now in global CSS).
src/plugins/import/jsonld/import-jsonld.vue Restricts accepted extensions to .cas.jsonld, updates partial-success status comment, removes duplicated scoped styling.
src/plugins/import/fmi/import-fmi.vue Removes duplicated scoped styling (now in global CSS).
src/plugins/export/ttl/export-ttl.vue Clarifies platform-independent write comment; removes duplicated scoped styling.
src/plugins/export/jsonld/export-jsonld.vue Clarifies platform-independent write comment; removes duplicated scoped styling.
src/components/PageDocument.vue Builds an outline tree from graph entities/links and renders it via a recursive component.
src/components/OutlineTreeItem.vue Adds a recursive outline tree item with collapsible folders.
src/common/schema/pig/ts/pig-package-constraints.ts Refactors constraint checking (naming, maps) and enumerated property/link handling.
src/common/schema/pig/ts/pig-metaclasses.ts Updates metaclass documentation and refactors instantiation eligibility; adjusts XML link parsing to support multiple <idRef>.
src/common/schema/pig/json/pig-schemata.ts Documentation/header tweak (author label).
src/common/lib/messages.ts Retires/blocks old 604 messaging and standardizes on 603 for partial success.
src/common/import/xml/import-xml.ts Returns APackage.status() + items directly and updates instantiation eligibility check.
src/common/import/reqif/import-reqif.ts Returns APackage.status() + items directly; adds a write-to-file step (currently unconditional).
src/common/import/jsonld/import-jsonld.ts Changes partial-success status from 604 to 603 with updated message context.
src/common/import/fmi/import-fmi.ts Returns APackage.status() + items directly; keeps optional debug write commented.
src/common/export/ttl/getTTL.ts Enhances enumeration export with datatype + owl:anyOf list and value individuals.
src/build-info.ts Updates generated build metadata (version/time/commit).
public/assets/xslt/SysML-v1-RDF.xsl.orig Removes an unused/original XSLT asset.
public/assets/xslt/STEP-p28-RDF.xsl.orig Removes an unused/original XSLT asset.
public/assets/styles/about.css Adds basic table styling for documentation pages.
public/assets/index.html Replaces transformation list with an HTML table linking XSL/SEF artifacts.
package.json Bumps package version to 0.2.10.
package-lock.json Updates lockfile version metadata to 0.2.10.
components.d.ts Registers OutlineTreeItem as a global component type.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread tests/unit/import-fmi.spec.ts
Comment thread src/common/import/reqif/import-reqif.ts Outdated
Comment thread public/assets/index.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants