Repository navigation
PowerShellUniversal.Component.Pivot 0.9.0
·
45 commits
to main
since this release
Added
Invoke-UDPivotReport -Engine Node -Numbers Full|Shownand-FlatHeader: pivotkit-cli 0.5.0's
--numbersand--flat-header. CSV and JSON numbers rounded to the decimals the view shows, and a
CSV file with one header row
(#153).New-UDPivotReport -Uri -Source -Tokenshows the rows of a pivotkit-server source for the signed-in
person, also when a link from pivotkit'screate_linkopens the page
(#144,
rows from a server).- PowerShell fetches the rows from the server's rows route (
POST /sources/records) with the
person's token,$AccessTokenof PSU's OpenID Connect sign-in. The browser makes no request to
the server, and the token never reaches it. - The server's answer goes to the report as JSON text, never as PowerShell objects. The report
parses it in the browser. - A link's parameters come from the page's query string (
$Query, or-Query), only those the
server lists in the source'slinkParams.-Parametersets them instead. -Viewtakes the name of a view the server publishes for the source: only the fields it uses
leave the server.-MaxBytes(default 32 MB, at most 64 MB) caps the answer. The module reads it in pieces and
stops past the cap.-Parameteralso binds as-Params, the name of the issue.- When the server refuses, the report tells the reader in plain words, in English or German. The
operator's message with a fixed error id goes to the warning stream, the app's log.
-ErrorActionor-ErrorVariableget the error itself;-ErrorAction Stopthrows it. The new
error ids arePivotRowsNotAllowed,PivotNoDataandPivotServerBusy. - A page without a token asks the reader to sign in, and a token without the server's scope says
the service is not set up for the sign-in. - A link's view that needs a field the server held back says which field above the report.
- PowerShell fetches the rows from the server's rows route (
Get-UDPivotSourcegives each sourceRecords,LinkParams,Views,RowsandDataAsOf, where
the server sends them.PivotServerProblemhasNotShown, the fields of aNOT_ALLOWEDanswer of the rows route.- The docs list the module's own network requests next to pivotkit's
(#146,
network requests). - A sizing section: what the rows of a server take in the browser, the PowerShell process and PSU's
server process, measured on PSU 2026.2.5 and 2026.3.4, andDOTNET_GCHeapHardLimitper PSU process. - pivotkit 0.9's chart types in views and in
Invoke-UDPivotReport -Layout:combo(bars and lines)
andtreemap. High and low points on a chart,chart.referenceLines.extremes. - pivotkit 0.9's view keys pass
ConvertFrom-UDPivotView, view files,-Templatesand the template
stores:fieldLabels(a field's name of the report's own),display = 'both'(the table and the chart
side by side),sort[].column(rows sorted by one column) and a colour scale'sconditional.colors.
The check refuses afieldLabelsthat is no object of field names with a text of 1 to 256
characters each. - Theme properties
--psu-pivot-chart-axis(falls back to--psu-chart-axis) for the chart's axis
line, and--psu-pivot-chart-otherfor a pie's slice "Other (n)". Without it the slice takes
pivotkit's colours: the muted text in the light theme, a grey in the dark.
Changed
- pivotkit-core 0.9.0, pivotkit-react 0.9.0, pivotkit-report 0.5.0 and pivotkit-xlsx 0.6.0, all pinned.
What readers see:- Chart settings offers Bars and lines and Treemap, and High and low points under
Reference lines. - A pie or donut without a legend puts its smallest slices into one grey slice "Other (n)" when
their labels have no room. - The messages about a loaded view no longer name pivotkit.
- A click on a bar, a point or a heatmap cell opens a menu at it: Show the rows, Only … and
Without …. A double click opens the rows at once. - Name in the menu of a field in Rows, Columns or Filters, a tab Both for the table and the
chart side by side, Colours for a colour scale, a click on a column's name sorts by that
column, and a date in Filters can be grouped. - A tip on stacked bars of a value that does not add up (
stackedTotalfor-Tips). - On a touch screen every button and menu row is at least 44 by 44 pixels.
- The German texts and the tips are part of the module's one bundle, as before: PSU loads no
new file.
- Chart settings offers Bars and lines and Treemap, and High and low points under
-OnCellClickfor a chart point runs at Show the rows in the point's menu or at a double click,
no longer at the first click. The docs of the event say so.ConvertFrom-UDPivotViewtakesdisplayin lower case only, as pivotkit writes it:'Table'is
refused.- The bundle is about 1.8 MB, 550 KB with gzip.
- Views with the new keys need this version on every PSU server that reads them. Module 0.8 skips a
view withdisplay = 'both'in a view folder or store with a warning, refuses it in-Viewand
-Templates, and dropsfieldLabels. Update every server that shares
a template store or a view folder before readers save such views. - The chart's axis line takes
--psu-chart-axiswhere an app sets it, also when it sets
--psu-pivot-borderfor the report's other lines. Invoke-UDPivotReport -Engine Nodenames Node 24 or later for pivotkit-cli 0.5.0 and later
(Node 22 for pivotkit-cli 0.4 and older).
Fixed
-ErrorVariableholds the error that stops a command, once. It also held each step the error took
through the module, often eight records or more. With-ErrorVariable +name, the entries you had
before stay. This holds for every command of the module
(#153).- With
-ErrorAction SilentlyContinueorIgnore, a command of the module went on after its own
error:Invoke-UDPivotReportwithout a command line still tried to run it, and
ConvertFrom-UDPivotViewreturned a result for a view it had refused. Such an error now stops the
command with every-ErrorAction. Catch it withtryandcatch
(#153). New-UDPivotReport -Tipsrefuses an id pivotkit does not know, and names the ones it knows. A wrong
id or a notice id such asfilterEmptywent to pivotkit, which ignored it. An id in other case, such as
Values, now reaches pivotkit in its spelling
(#154).- The views page lists the chart settings in a table of their own
(#154).
In the PowerShell Gallery: https://www.powershellgallery.com/packages/PowerShellUniversal.Component.Pivot/0.9.0