Skip to content

docs: document portal UI and server libraries - #255

Merged
gkrajniak merged 2 commits into
platform-mesh:mainfrom
gkrajniak:doc
Sep 17, 2026
Merged

gkrajniak merged 2 commits into
platform-mesh:mainfrom
gkrajniak:doc

Conversation

@gkrajniak

Copy link
Copy Markdown
Contributor

What changed

Extend the Portal reference page with the libraries it is built from and add
sub-pages for @platform-mesh/portal-ui-lib and
@platform-mesh/portal-server-lib.

Refs platform-mesh/portal#340

Why

The Portal page described the runtime behavior but not that the frontend and
backend are assembled from the OpenMFP portal libraries plus the Platform Mesh
portal libraries. The generic UI, which lets providers render resources
without building a microfrontend, was not documented on the site at all.

Details

  • reference/components/portal.md: new Architecture section with the library
    layering; repositories and related links for both libraries.
  • reference/components/portal/portal-ui-lib.md: library purpose, entry
    points, registered web components, a summary of the generic UI
    configuration, and a link to the full generic UI guide.
  • reference/components/portal/portal-server-lib.md: the providers passed to
    PortalModule.create() and their responsibilities.
  • Sidebar, components index, and llms.txt list the new pages.
  • .vitepress/config.mts: pre-bundle mermaid in the dev server. Mermaid
    imports the CommonJS-only fastdom package, which broke vitepress dev
    with a blank page (does not provide an export named 'default').

http://github.com/platform-mesh/portal/issues/340

gkrajniak and others added 2 commits September 15, 2026 13:22
## What changed
Document the marketplace UI's new `uiConfig.filters` Luigi context field in
`reference/components/marketplace.md`, alongside the existing Configuration
table.

## Why
The marketplace UI now builds its provider-catalog filter row dynamically
from `uiConfig.filters` instead of always rendering hardcoded Category and
Provider filters. This documents the new config surface so integrators know
how to drive the catalog's filtering UI without a UI code change.

## Details
- Added a `uiConfig.filters` row to the context-fields table.
- Explained the `{label, providerMetadataPath}` shape: one filter control per
  entry, no entries means no filter row at all.
- Explained that `providerMetadataPath` is a dot-path resolved against each
  provider's `ProviderMetadata`, transparently walking through JSON-encoded
  sub-objects such as `spec.data` (e.g. `spec.data.category`).
- Explained option derivation (distinct values found across the catalog) and
  filtering semantics (selection narrows results, empty selection shows all).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Signed-off-by: gkrajniak <gkrajniak@gmail.com>
## What changed
Extend the Portal reference page with the libraries it is built from and add
sub-pages for `@platform-mesh/portal-ui-lib` and
`@platform-mesh/portal-server-lib`.

Refs platform-mesh/portal#340

## Why
The Portal page described the runtime behavior but not that the frontend and
backend are assembled from the OpenMFP portal libraries plus the Platform Mesh
portal libraries. The generic UI, which lets providers render resources
without building a microfrontend, was not documented on the site at all.

## Details
- `reference/components/portal.md`: new Architecture section with the library
  layering; repositories and related links for both libraries.
- `reference/components/portal/portal-ui-lib.md`: library purpose, entry
  points, registered web components, a summary of the generic UI
  configuration, and a link to the full generic UI guide.
- `reference/components/portal/portal-server-lib.md`: the providers passed to
  `PortalModule.create()` and their responsibilities.
- Sidebar, components index, and `llms.txt` list the new pages.
- `.vitepress/config.mts`: pre-bundle `mermaid` in the dev server. Mermaid
  imports the CommonJS-only `fastdom` package, which broke `vitepress dev`
  with a blank page (`does not provide an export named 'default'`).

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: gkrajniak <gkrajniak@gmail.com>
@gkrajniak
gkrajniak merged commit 39d20c7 into platform-mesh:main Sep 17, 2026
5 checks passed
@github-project-automation github-project-automation Bot moved this from In-Review to Done in OpenMesh - Backlog Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants