Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions PRODUCT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# What the modules are (and are not)

The modules add charts, a datagrid and a pivot report builder to PowerShell Universal (PSU) apps.
Each is a PowerShell module you install on its own. You pass the data as it comes, from SQL, REST
or any PowerShell command, and the component draws it in the browser. This page says who the
modules are for, what they are not, and what a change delivers. The [README](README.md) lists the
modules.

## Who they are for

I check every change against these three roles.

| Role | Wants | Success means |
| --- | --- | --- |
| Reader | to understand the data in an app: a chart, a grid or a pivot report | it reads at once, in light and dark mode, on a wide screen, and on a phone |
| App author or PSU admin | to put data into an app and run it on their PSU server | one command with the data as it comes, no JavaScript |
| Developer | to build on the modules: themes, template stores, reports from scripts, a change to a module | stable commands and formats, clear errors, docs that describe how it works now |

## What they are not

| Not | Instead |
| --- | --- |
| A chart, grid, or pivot engine of their own | Apache ECharts, Perspective and pivotkit draw. The modules connect them to PSU |
| Access control for data | remove the rows and columns a reader must not see before `-Data` |
| A UI framework next to PSU's | the components use the React that PSU provides and follow PSU's light and dark theme |
| A product of Devolutions | an independent, MIT-licensed project |

## What a change delivers

A change makes the product better for at least one of the three roles and keeps the
promises on the [versioning page](docs/versioning.md). [CONTRIBUTING.md](CONTRIBUTING.md) has the steps and checks.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Supported and tested versions: [Requirements](https://powershell-universal-compo

> [!NOTE]
> The modules are 0.x. A minor release can break things, so read the module's `CHANGELOG.md` before
> you update.
> you update. [Versioning](https://powershell-universal-components.eize.dev/versioning/) lists what the modules treat as public interface.

## Modules

Expand Down Expand Up @@ -100,7 +100,7 @@ Your own data from SQL, REST and PowerShell: [Getting started](https://powershel
## Development

Build, tests, docs site and releases: [Development](https://powershell-universal-components.eize.dev/development/).
Contributors and coding agents: [AGENTS.md](AGENTS.md), [CONTRIBUTING.md](CONTRIBUTING.md).
Contributors and coding agents: [PRODUCT.md](PRODUCT.md), [AGENTS.md](AGENTS.md), [CONTRIBUTING.md](CONTRIBUTING.md).

## License

Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ In the PowerShell Gallery: [PowerShellUniversal.Component.Pivot](https://www.pow
## Questions and stability

The modules are 0.x. A minor release can break things. Read the module's `CHANGELOG.md` before
you update.
you update. [Versioning](versioning.md) lists what the modules treat as public interface.

Ask questions and share ideas in [GitHub Discussions](https://github.com/eizedev/powershell-universal-components/discussions). Bugs go into
[issues](https://github.com/eizedev/powershell-universal-components/issues). Each release of a component module is announced in Discussions too.
Expand Down
60 changes: 60 additions & 0 deletions docs/versioning.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
---
title: Versioning
description: How the modules number their releases, when an update can break your app, and what counts as their public interface.
---

# Versioning

This page says when an update of a module may break your app. Each module has its own version and
its own `CHANGELOG.md`, and has releases of its own.

## The promise

### Before 1.0.0

The modules are 0.x and under active development.

- A minor release, from 0.y to 0.(y+1), can break things. The modules break as little as possible.
- The module's `CHANGELOG.md` says what changed. Read it before you update.

To choose when you update, install a fixed version:

```powershell
Install-PSResource -Name PowerShellUniversal.Component.Pivot -Version <x.y.z>
```

### From 1.0.0

A module that reaches 1.0.0 follows [Semantic Versioning](https://semver.org/):

| Release | May contain |
| --- | --- |
| Patch (1.2.3 to 1.2.4) | fixes |
| Minor (1.2 to 1.3) | additions |
| Major (1 to 2) | changes that break the public interface |

Each module reaches 1.0.0 on its own.

## What is public interface

These are the parts a break can hit:

- The commands a module exports, their parameters and the values they take, and what they return.
- The error ids of a command, such as `PivotServerUnreachable`.
- The `--psu-*` CSS custom properties an app's stylesheet sets
([themes](echarts/themes.md), [pivot themes](pivot/themes.md)).
- The data and view formats: the rows a component takes, a pivot view and the view file, with its
`$schema`.
- The keys of `-Labels`.
- Events: when a script block such as `-OnClick` runs and the `$EventData` it gets, and the answer to
`Get-UDElement`.
- Environment variables, such as `PSU_COMPONENT_PIVOT_SCHEMA_URL`.
- The addresses of the showcase apps' pages where the docs name them.
- The lowest supported versions of PowerShell Universal and PowerShell ([requirements](index.md#requirements)).

These are not public interface and can change in any release:

- The look: colours, sizes, and spacing.
- The wording of messages. Match on the error id, not on the text.
- The code in a module's `Private/` folder and the bundled JavaScript libraries.
- What `-Options` passes to Apache ECharts or `-Config` to Perspective: those libraries define it.
12 changes: 7 additions & 5 deletions modules/PowerShellUniversal.Component.ECharts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,13 @@ All notable changes to PowerShellUniversal.Component.ECharts. Format:

### Changed

- Tooltips of bar, line, area and step charts show the element under the pointer: a bar, a stacked
segment (with the stack total) or a line point alone; between them all series at that position,
between stacked bars the total only. Before, every series at the position was listed, also when the
pointer was on one segment. `-TooltipMode Axis` lists every series at the position as before.
Stacked tooltips have a total row in every mode (with `-SecondaryY` one per axis); switching line,
- **Breaking:** tooltips of bar, line, area and step charts show the element under the pointer: a bar,
a stacked segment (with the stack total) or a line point alone; between them all series at that
position, between stacked bars the total only. Before, every series at the position was listed, also
when the pointer was on one segment.
- Who is affected: readers who compare the series of a position in the tooltip.
- What to do: `-TooltipMode Axis` lists every series at the position as before.
- Stacked tooltips have a total row in every mode (with `-SecondaryY` one per axis); switching line,
bar or stack in the toolbox is followed, Restore goes back. The tooltip text of these charts is the
module's own now: one line per series (`Name: value`), series without a value at that position left
out (ECharts showed "-").
Expand Down
Loading
Loading