U2 changelog
1.0.0 (2026-11-27)
-
Spaces:
spaceSaveRow()andspaceSaveRowFor()takeSpaceSaveRowOptions(placeholder,tooltip) for the empty space box -
core#1507: Spaces: Fixed Open from space drawing an item's name in its icon slot, listing a space's own Files connection not marking a linked item, a cut-off search box and a bare caption as an app's preview, and OPEN doing nothing for an app, a script or a query (they open as in Browse); Down arrow in its search and in the Space picker's goes to the first match. Added
focusRows()toVirtualListandVirtualTree -
core#1507: Spaces: Fixed the Space row refusing to move a project into a space that links it:
spaceHasName()takes the project that does not count -
core#1507: Tree: Added
VirtualTree.rename(id), the inline rename F2 opens, for a node added a moment ago too; the rename box is namedRename <label>for screen readers -
core#1507: Added
spaceSaveRow()(u2/dg): the Space row of the Save project dialog - where the project goes, Move or Link for a saved one, and a name the space already holds refused -
core#1507: Added
SpaceInput(u2/dg): the space to save into, with a search, the spaces saved to last, read-only spaces greyed with the reason, a "+" on the heading for a top-level space and on each row for a space inside it, created as soon as it is named inline, and × to clear;saveToSpace(), which refuses a name the space holds as the platform's move does; andSpaceBrowser/openFromSpace(), which list what "All spaces" or a space and its subspaces hold and open the pick with its default action -
Inputs: Fixed
disabled: false(andinput.disabled = false) from plain JS turning the input off with no reason and taking it out of its form's verdict;falsenow means on -
Inputs: Added the
reason-booleanusage report fordisabled: true; where it is only reported, the reason reads "Unavailable" instead of "true" -
Inputs: Added the
bind-readonlyusage report: an input bound to a signal it cannot write (bind: computed(…)) is shown read-only instead of throwing on every keystroke;readOnly: truesays it is read-only on purpose -
Inputs: Added
Input.specValue(value, readOnly?), which the spec registrations use to hand an input a spec's value, so an input bound to a read-only path (bind: {value: '$.ro'}over a computed) renders read-only instead of a spec error -
Form: Fixed a required empty field the user cannot reach holding the form, and a dialog's OK, off: an input inside an
inertregion (aSectionoff with a reason) is no longer counted -
Form: Fixed a form's verdict going stale when an input, or an element around one, becomes
hiddenorinertafter the form is built; such a change re-judges the forms a microtask later -
Dialog: Changed (behaviour change) a close-only dialog whose CLOSE is off (
okDisabled, or a form in it not valid) to close as a cancel on Escape and ✕ without runningonOK; before, they ranonOKpast CLOSE's reason -
Dialog: Fixed a footer button whose own reason turned on while an async OK ran coming back on when OK settled; the dialog now releases only the buttons still saying "Wait for OK to finish"
-
Dialog: Fixed
getButton('Close')returning the title bar's ✕ instead of the footer's CLOSE in a close-only dialog -
Dialog: Added the
close-only-cancelusage report foronCancel()on a close-only dialog, which has no CANCEL -
Buttons: Added the
reason-missingusage report forbutton.disabled = trueon a u2 button that gives no reason; useReason.apply(button, '<why>'), or{disabled: '<why>'}when it is built -
ChoiceChip: Fixed re-picking the value the chip holds firing
onInput -
Lint: Improved
u2/no-unowned-rootto follow a package's own builders (const panel = () => component(…)) and to flag a control's.roothanded togrok.shell.newView/addView,DG.View.fromRoot,DG.Widget.fromRoot,ui.dialog().addordockManager.dock, namingViewHost.create,host(control)orViewHost.of(view).dock -
Lint: Fixed the
u2/no-unowned-rootmessage claiming that strict mode throws for a factory call -
Lint: Improved
u2/reason-textto flagx.disabled = <boolean>andx.setAttribute('disabled', …)on a u2 control -
Lint: Added
..., "Not allowed", "Cannot save" and a blank reason to the reasonsu2/reason-texttreats as empty -
Lint: Fixed
u2/reason-textandu2/no-unowned-roottaking their verdict from a variable of the same name in another function; they now resolve a name through its own scopes -
Ratchet: Fixed a new package's lint findings being recorded by its first
--update-baselineinstead of failing on growth:check-consumer.mjscounts a lint count that was never recorded as 0 -
Styling: Added
u2-adaptive,u2-p1andu2-p2to README › Styling as the documented utility classes; the lint and the ratchet no longer count them as internal selectors -
Styling: Removed
--u2-form-label-widthfrom the documented styling properties: Form sets it inline when it measures, so a package's value never applied -
Styling: Added
css/motion.css: under reduced motion the dialog's busy spinner, the notify countdown and the chevron and switch transitions stand still -
Samples: Changed "A list with details" to a
MasterDetailwith--u2-master-detail-height, as the rule says, instead of a hand-built splitter -
Docs: Changed AGENTS to write the owner verbs as
owner.build,owner.task,owner.subscribeandowner.own -
Docs: Added to AGENTS how to open an app (
grok.shell.addView(ViewHost.create({…}).view)) and that a lint finding alone is a warning -
Docs: Changed README to mark the rules that no check holds as docs only
-
Testing: Fixed
tests/dom-shim.js'sdocumentmissingcontains, which a browser's has, so an observer on the whole document failed under the shim -
Testing: Fixed the DOM shim (
U2_DOM=shim) not notifying attribute observers:setAttributeandremoveAttributenow notify them, honouringattributeFilterandsubtree, and observers get their records -
MasterDetail: Documented that it renders every row, so it is for lists up to a few hundred items; a longer list is a
VirtualListbeside a detail of your own, in aSplitter -
tableFromMap: Fixed an element value's cell (a molecule drawing) carrying a text row's 22px height and
overflow: hidden: the value cell takes the element's height and clips nothing that reaches past it; a text row stays 22px -
FilterBuilder: Fixed a disabled builder's own buttons (and/or, not, add, remove) saying no reason and its links (Advanced, Add condition, Flatten) still working from the keyboard: each carries the builder's reason and does nothing while it is off
-
Inputs: A read-only input's editing options (the colour swatch, the number clicker, the pickers) are off with the reason "Read-only" instead of a focusable button that does nothing; a read-only slider takes the pointer again, so its value shows on hover (a drag or a key still does not move it)
-
Form: Fixed
maxWidth, and aPage's, being ignored once an auto form turns wide -
Designer: In Design mode the canvas says why its controls do not work ("Switch to Run to use the controls")
-
ViewHost: Fixed a scripted press on a table view's parent crumb leaving no view current:
breadcrumbs.onClickruns once the shell has made the parent current -
Entry points (breaking):
@datagrok-libraries/u2,/dg,/filter,/dg/filterand/testing, the test helpers under/tests/…and/css/icons.css,/css/theme-dark.css;src,src/dg,src/core/filter,src/dg/filterandsrc/testingare aliases of the entry points, and any othersrc/…path no longer resolves -
Values (breaking):
input.valueis the plain value — followed inside an effect or acomputed, written by assignment —input.peek()reads it untracked andinput.signalis the signal to wire (bind: input.signal,span(input.signal)); the same onAsyncValue,ProgressBar,ComboboxandStateSource.scripts/codemod/u2-v1.mjsrewritesx.value.value,x.value.peek()and bare signal uses -
Reason (breaking): every "off" carries the reason the user reads —
disabled: Reason(string | null, or a signal of it) on inputs, buttons, icon buttons, actions, menu items, menu bar items, button group items, wizard actions, tree nodes and ribbon buttons, andsetDisabled(id, reason)onButtonGroupandMenuBar;enabled,setEnabled,okEnabledand booleandisabledare gone,okDisabled(reason)and a wizard'scanProceedtake reasons only.Reason.apply(el, reason)writesaria-disabledand the reason asaria-description; a reason is the tooltip. Wizard steps not reached yet, a busy footer, a locked filter row, inherited and locked access boxes, the designer's verbs and an empty message's Send now say why. A spec propenabledis a parse error namingdisabled.TagsInputOptions.deleteEnabledisdeletable -
Dialog:
{closeOnly: true}— one CLOSE and never a CANCEL, for a dialog whose work applies as it is done; CLOSE, ✕ and Escape all close as OK -
Bridges: a platform input the platform turned off is off in u2 with "Not available here", and u2's reason turns the platform input off; an editor the platform turns off (
ui-input-disabled) says why — the tooltip the platform gave it, else "Not available here" -
Owners (breaking): an owner is the receiver or an
{owner}option, never a positional argument —owner.subscribe(source, handler)(the freesubscribetakes whoever is building),toSignal(observable, initial, {owner}),bindText(el, source, {owner}),bindValue(input, source, {owner, commitOn}),Tooltip.bind(el, content, {owner}),Overlay.show(anchor, content, {owner, …}),Menu.bindContext(el, {owner}),Input.bindOwned(fn, {owner}),frameRows(df, {owner}),new FrameRows(df, {owner}),collectionSelection(source, rows, {owner}),new ViewSync(host, {owner}) -
Captions (breaking): a caption is named by its role — an action's, an action group's, a designer action's, a button group item's, a menu bar item's and a ribbon action's is
text(an action'snameis now its automation id, the text by default), a tab's istitle(TabOptions.title,TabStrip.setTabTitle) -
Inputs (breaking):
addOptionstakes a button or a link (iconButton(…),button(…), an anchor) — the rail no longer takes a drawn element -
Codemod:
scripts/codemod/u2-v1.mjsalso moves positional owners, renamesrunInScopetobuild,Scope.runWith(s, fn)tos.build(fn)and the role captions, rewrites the removed view wrappers throughViewHost, a path inside u2 to the entry point that exports what it takes, arunor key handler that hands back a value, and a spec document'senabled— type-checked against the u2 the code compiles with, and reporting what it cannot finish (a reason to write, a name on no entry point, a.value.valuethrough a local cast). Run twice, it changes nothing the second time (tests/codemod.test.js) -
Inputs (breaking): The required check comes before the validators — an empty value
required(ornullable: false) refuses never reaches them — and blank text is empty inTextInputandTextArea. An editor holding text it cannot read (a number, a date, a color, a typed file path) is not empty: its own message still shows. A file, files or key input says its own "Can't be empty." / "At least one file is required." forrequired: truetoo -
Inputs:
onEnter/onEscapehandlers answeringfalsedecline the key, which goes on to the form or the dialog (Escape cancels it);focus({select: true})selects the text in a text editor -
Actions (breaking): an
Action's, a ribbon action's and a ribbon button'srunreturns a promise or nothing (() => void | Promise<void>): aDG.Rowhanded back by mistake is a type error -
Exports:
ChoiceInputOptions,MultiChoiceInputOptions,TextInputOptions,TextAreaOptionsandBoolInputOptionsfrom the root, as every other input's options -
Format:
pluralcounts and an object form's date-only field go throughFormat(a date-only field's pattern now knows every platform token —yy,ddd, …) -
Controls:
dispose()called by hand takes the control off the page (engine: needs the js-api build carrying it); one disposed because its owner went leaves the DOM to whoever holds it -
Testing: The node runner (
scripts/run-tests.mjs, u2's and ems'npm test) runs u2 strict: a usage error throws (U2_STRICT=1;U2_STRICT=reportlists them all).tests/owned-test.js(also@datagrok-libraries/u2/tests/owned-test.js) isnode:test'stestwith the test as the owner of what it builds — its body under a root scope disposed when it ends,testOwner().build(…)after anawait. The node suites run on happy-dom with the CSS cascade (U2_DOM=shimkeeps the hand-written shim for one release);tests/layout.mjs(also@datagrok-libraries/u2/tests/layout.mjs) gives an element the sizes a test needs (layout(el, {clientWidth, rect})) and tracksResizeObserver.instances -
Testing: Added
@datagrok-libraries/u2/testing, the same innode:testand@datagrok-libraries/test—u2test(body)runs a test under a scope of its own and fails it on a scope, timer or global listener left live, a u2 usage error or an error reachingScope.onUnhandledError;mount(build);user.click/type/press/pick, which refuse what a user could not do (covered, inert, disabled — with its reason — or taking no pointer);expectOperable(el)overDG.U2.operability;byName,byKind,state -
Lint:
scripts/check-consumer.mjs, run bynpm testandgrok check, lints every consumer witheslint-plugin-u2(import-entry,no-internal-selectors,no-raw-subscribe,no-unowned-root,no-subclass,no-ui-in-class,build-in-owner,comments,no-snapshot-in-live-slot,reason-text,no-raw-column-list) and fails when a count grows overconsumers-baseline.json(scripts/audit-consumers.mjs): growth needs--update-baseline --allow-growth "<why>" -
Lint:
u2/no-unowned-rootalso reports a u2 control or control factory that consumer code builds with no owner — at module load, in a function that makes a view (DG.View.fromRoot(new AppHeader(…).root)), in a handler, or after anawait— following a helper's callers in the same file; a function that answers what it builds, or the piece it is part of, leaves it to its caller. check-consumer lints a tree outside public/ from its own folder (it matched no file there and reported nothing) -
Rules: Added
src/core/rules.ts, u2's usage rules as data (the rule, why, a wrong and a right line, and the lint rule, usage code, probe rule, type, ratchet count or choke point that holds it); the README's "Rules that matter", the newAGENTSdigest for coding agents and the manifest's per-kindwhenToUse/notFor(a column choice iscolumnInput, a table choicetableInput,DynamicInputvstableFromMap, …) are generated from it with a rule count inmanifest.json(npm run manifest,--from .test-buildbefore a build), andtests/rules.test.jsfails when a guard names nothing or a generated list drifts; the docs-drift test also readsAGENTSand fails on stale claims put back -
Notify: An error now stays until the user closes it, and an info or a warning hides by itself after 10 s (an info hid after 5 s, an error after 10 s), on u2's own stack and in the platform's alike:
notify.presentergets the resolvedautoHideandtimeout -
Buttons: A text or primary button shows u2's focus ring (
--dg-focus-ring) on keyboard focus instead of the browser's -
Rules: Added
settings-scope— personal settings apply at once, shared and admin settings stage behind "SAVE N CHANGES"; the property-form sample saves each valid edit as it is made, with no Save button -
Layout: Added
Page— a header, a body that alone scrolls and a pinned action row (buttons on the right, a status line beside them), titled sections with their actions andmaxWidth, one label column for the forms on it — andMasterDetail— rows with a check and a hint beside the current one's detail, built when first shown and kept, off with its reason; the arrow keys move the current row, Space checks it;labelnames the list (its accessible name) and a row'scheckTooltipis the tooltip of its check -
Forms and sections:
Form({maxWidth, density: 'compact', labelColumn: false})(a form joins the label column of thePagearound it unless told otherwise);Section({actions, disabled})— icons after the title that do not fold it, and a body off with its reason said after the title;Reason.region(el, reason) -
Styling: Each kind lists the custom properties a package may set on its own element (
stylingin manifest.json, README › Styling):--u2-page-*,--u2-form-max-width,--u2-form-section-gap,--u2-master-detail-height, the table rows'--u2-row-* -
Inputs: Added
ChoiceChip— a small choice inline among others, reading "R1 OH ▾": a press or ArrowDown opens a menu of the choices with their descriptions, the current one checked;invalidanddisabledwith their reasons,valueText,description,actionsandactive;value/peek()/signal/follow(read) -
Menu: An item is named by its label alone (
aria-labelledby); its check mark isaria-hiddenand its detail is its description, souser.pick(chip, 'Br')finds "Br" in a detailed menu -
Engine: u2 needs the u2 engine 1.2 (
DG.U2.version): on a platform whose engine is unversioned or older, a package bundling u2 still loads, and building a u2 control, component or source throws "u2 needs the u2 engine 1.2+; this platform has: update the platform" instead of failing later on a missing member -
Owners: Every control is an owner with the verbs
build(fn),task(async (t) => …)andsubscribe(source, handler)(dialog.build(() => new TextInput(…))), andcomponent((self) => …, {name})makes a function component (Control.buildis its deprecated name) -
Ownership: A thing given no owner while nothing builds (an
AsyncValue,AsyncSource,AsyncPager) reportsowner-missinginstead of being adopted by nobody in silence; a binding or asubscribewith no owner throws aU2UsageErrornaming the fix.owner.subscribe(source, handler)is the engine'sScope.subscribe, and a dialog is a root (built with no owner, it is not reported). Re-exportedlens,afterFlush,Usage,U2UsageError -
RecordsInput: Adding a row from a handler focuses its first cell when the handler's batch ends (
afterFlush), not a microtask later -
Kinds: A kind may carry
interactiveparts,stylingcustom properties andwhenToUse(DynamicInput has one); the manifest carries u2'sversion -
Dialog, Wizard: An OK, a commit or a finish answering a value whose
thencannot be read (aDG.Row) is a plain answer instead of a throw; a thenable that is noPromiseis still waited for (Scope.thenable) -
each: Fixed a focused row losing the focus when its list reordered around it (a chip kept across
setItems, a row moved by Alt+↑): the rows ahead of it move behind it instead of it moving, since every browser blurs a moved node -
FilterQueryInput: Fixed the list re-opened after a pick offering the property again instead of its operators: the caret was placed in the box's old text, which the browser clamped
-
Designer: Fixed the designer and its structure tree re-selecting each other forever (a hung page) when two selections were made before the tree had revealed the first: a selection the tree reports is not sent back to it
-
NumberInput: Fixed the unit and its underline dropping 9px below a field that has a slider: the room under the slider is the input box's, not the editor's, so the rail stays on the field's line
-
FilterBuilder: Fixed the horizontal builder cutting the operator ("greater tha…"): a chip's property and operator pickers are as wide as their choices, not the vertical builder's 120px column
-
ObjectForm: Added
unwrittenValues— what the fields holding an unwritten (invalid) edit hold, by property name -
Inputs: Added
Input.unreadable: the editor holds text the value cannot carry (abcin a number field);ObjectFormcounts such a field as unwritten -
Icons: an
svg-name (svg-view-layout) is the platform's picture of that name, drawn asui.iconSvg('view-layout')draws it, wherever u2 takes an icon name (icon,iconButton, a ribbon action, a menu item) -
Format: Added
Format.value(v, {format, utcDates}), the one text u2 shows for a value: booleans readtrue/false, a date reads in the platform's date format (the user's, elseM/d/yyyy) with the time it carries, a record of no known shape is empty instead of "[object Object]"; a catalog cell withoutrender, a group header, a filter's value, a stat card andtimestampall go through it, so a group header reads as its cells -
DataTable, tableFromMap: A DataTable cell without
renderand atableFromMapvalue that is no element read asFormat.valuegives it, as a CatalogTable cell does — a date in the platform's date format, a record empty — where they showedString(value)("Tue Oct 27 2026 …", "[object Object]") -
AccessGrid: With no
icon, a row shows the platform's picture of its principal (a group's id or name): a user's picture, a group's icon (backends.principalIcon) -
funcForm: Fixed dependent choices missing a value their parent got while they first loaded: a query's level 2 never saw level 1's default (Chembl's AtcClassification), and a parent pruned by its own choices left the child the old value's list. A result that read a param changed since is evaluated again, and a failed first load tries again once any param changes
-
funcForm: Added
loadingFields, the fields whose choices or computed default are loading (a reload after a dependency's change included); the form's Run button waits for them ("Loading: Level3"), so a run never takes a pick a reload is about to clear -
Inputs: Added
loading(live): the input says it is loading —aria-busyat once, a spinner in its box once the load runs pastInput.loadingGraceMs— and stays usable; funcForm's fields show their loads with it -
Form: Fixed a choice, number or date overflowing a row narrower than the width the form gives it (a choice's longest option hid its arrow): that width is now a cap, and the editor shrinks with the row
-
funcForm: A param whose editor cannot be built is an error row in its place ("Could not show
: …") and aproblemsentry; the rest of the form is built and works. A table field writes back the frame the call holds, and a column field whose table lists no matching column (a hidden~one not counted) says so -
LabelColumn:
report(member, width)andleave(member)are public: a platform form laid out beside u2 forms reports its measured captions, so the u2 rows above it line up with it -
u2/dg: Added
ViewHost— a platform view as the owner of what code living in it builds:ViewHost.of(view)answers one host per view whichever wrapper the platform hands out,ViewHost.create({name, content})makes a new view (the builder answers the content, or{root, ribbon, toolbox, status, path}, all built under the host);signals,ribbon(options)(theTableViewChromegroup),show(dialog)(pinned to the view),dock(control, place, {title, ratio})(disposed on its ✕, ondockManager.closefrom code and with the view; disposing it closes the panel) and the owner verbsbuild/task/subscribe; disposed when the shell removes the view or the platform kills a created view's content.appView,ownView,viewSignals,showInView,tableViewChrome(andAppViewOptions,TableViewChromeOptions) are removed (breaking): the codemod's W1 rewritestableViewChrome,showInViewandviewSignalsand reportsownViewandappView;new TableViewChrome(host, options)takes the view's host, which owns it -
u2/dg:
tableInputandtablesInputleave out an open table without a name (one renamed to null): it made them, and so everyfuncFormover a dataframe param, throw "Cannot read properties of undefined (reading 'label')".funcForm's default column is never a hidden~column (Chem's~<column>.canonicalSmilescache), which the platform's column pickers do not list either -
u2/dg: Fixed every column picker offering hidden
~columns:columnInput(all three variants),columnsInput,columnsMapInput,aggregatedColumnsInputand a frame's filter schema list what the platform's pickers list (Platform.listedColumns,column_grid.dart:909-911: no~column, none without a name), and no default (a new aggregation row, an arrow step,funcForm's pick) lands on one.columnInputtakes the input options (value,nullable,required, …).TableInput.tableis the picked frame itself — of two open tables under one name, the one set — and a name several open tables share is offered once;funcFormnever auto-fills a table with no name -
ChoiceInput, MultiChoiceInput: A null item (
grok.shell.tableNameslists a nameless table asundefined) is reported (item-null) and skipped instead of throwing while the list is built: the rest still render -
u2/dg:
fileInputoffers the platform's "Select a file" dialog over the file shares, as the platform input does ("Add file from Files", after Open file; feature-detected, so a host without the platform keeps the local picker alone): the picked file is the value at once, its share path in the box; a folder picked in file mode is judged as its typed path is -
u2/dg:
filesInputoffers the same dialog for several files ("Add file from Files", after Open files): share files join its rows already loaded, keyed by their share path, a folder or a fileacceptdoes not name refused with a warning;fileInputbound to aconnectionoffers the platform's chooser over that share ("Choose directory or file"). Both callui.pickFileFromFiles(options), feature-detected -
Menu: A context menu opened through
bindContext(el, {owner})closes when its owner goes (the row it was opened on): a scope or a control, whoever is building by default. AddedkeepOpenfor an item: a pick leaves the menu open and turns its check mark over, as the platform's checkable items do; the catalog table's columns menu uses it, so several columns are toggled in one visit. An item's handler may return a promise, and its failure reaches the item's owner -
Validation: Validators run inside the input's validation effect, so one that reads another input or signal ("To is before From") re-judges when that changes, from the moment it is added — before, only after the input's own value changed once
-
Inputs:
required: trueshows the caption's asterisk (u2-input-required, which only ems set before, by hand) besidearia-required;nullable: falsealone still refuses an empty value, without either, and an explicitrequired: falselets an empty value through -
DataTable: A column without a
widthshares the row but never narrows below 80px — a narrow pane scrolls sideways instead of drawing the columns one letter wide over each other -
Elements:
div/divV/divH(children, {gap, cls})space the children on the token scale (xs2px …xxl24px) through the newu2-gap-<size>classes, which work on any flex or grid element; a class string still works as the second argument -
Specs: Added
u2-form-buttons— a row of buttons, the form's button row inside au2-form(align);u2-buttontakesdisabled, the reason it is off (live; its tooltip andaria-description);u2-panel/u2-div-v/u2-div-htakegap -
AsyncValue, AsyncSource, AsyncPager: Disposed with whoever was building them (AsyncSource and AsyncPager were not, so a page left loading after its owner went), or with the
ownerthey are given — one built after anawait; all three leave nothing behind on a long-lived owner when disposed early.AsyncPager.errorkeeps the message of a failed page. AsyncValue withoutdepsstarts its one automatic run at once (the 300 ms debounce had nothing to coalesce, and every load-once list waited for it) -
notify: Content may be a function, built in a scope of the balloon's own and ended with it, so an Undo link raised from a row works after the row goes and leaves nothing behind;
onCloseruns once the balloon is gone -
Tabs: A tab marked by its Form says which field ("Name: Value can't be empty",
Form.shownProblem), not just the message -
Specs: A u2 tag rendered through a registry without u2's components says to call
registerAll()(every node was a bare "not a registered component" placeholder) -
Docs: README, the recipes and the new
docs/samples/(the "Build with u2" samples, whole code, each with its write-up in<id>) teach the v1 API only — function components (component((self) => …), or a plain builder for a piece of its parent),ViewHostfor views, the entry points (/dg,/filter,/dg/filter,/testing) and neversrc/…,input.value,disabled: '<reason>', the close-only dialog — and say where a failedrunends up, that arunreturns a promise or nothing, what a hovered table row does,tableFromMapfor a detail pane andDynamicInputfor an element among a form's inputs,requiredandnullable: false(one message, the asterisk only forrequired), load-then-build-rows, the form's button row on the right, local and UTC dates throughFormat, and that a column choice iscolumnInput.tests/recipes.test.jscompiles every TypeScript block of the README and the recipes and every sample against u2's sources and runs the live ones headless under the testing kit — strict usage, nothing left live, the probe clean, nothing said to the console — with the blocks that need the platform marked, and why, in one table; the docs-drift test checks the samples' text and every import path the docs show -
Tests: The DOM shim has
firstElementChildand the child combinator (a > b), and inspects a node as its tag, so a failingassert.equalon elements no longer hangs ~90 s walking the node graph -
Owner: Every
owneru2 takes —toSignal,Menu.bindContext,Dialog.show, the async primitives — is a scope or a control (type Owner), whoever is building by default;subscribe,toSignalandbindContextcalled with neither say they need one -
SortOrder: Added the one sort every u2 table keeps — a string,
'Code','!Created',''for the default order — read, built and cycled bySortOrder.parse/of/next, which DataTable, BasicTable and CatalogTable share -
Toolbar: The overflow button is "…", "More actions", as a ribbon group's is (
Toolbar.OVERFLOW_ICON,OVERFLOW_LABEL); it was "»", "More" -
Tooltip: Added
titleIfCut(el)— an element's whole text as its title while the text is cut, gone once it fits (a title of its own stays); table cells, list lines and dialog captions use it -
Tooltip: Added
Tooltip.delay, the hover delay in ms (300); at 0 a hover shows the tooltip at once, so a test reads it without waiting -
subscribe: Added
owner.subscribe(source, handler)and the freesubscribe(source, handler)(owned by whoever is building) — an rxjs or platform event subscription (grok.events.*,df.onValuesChanged) unsubscribed with its owner; the handler is batched and a throw goes to the owner. Each is asubscriptionscope with its stack underDG.U2.debug, so the leak audit sees one that outlived its owner. After anawaitthere is no builder: subscribe on the owner -
u2/dg:
ViewHost.of(view).signals—isCurrent,grid(a new one after a layout is applied),dataFrame, a writablecurrentRowIdx,selection,filter,columns,rowCountas signals;host.show(dialog)— hidden while another view is current, closed when the view goes -
u2/dg: Added
ViewHost.of(tv).ribbon({actions, buttons, fold, pin, hideSave, breadcrumbs, status, name, label})(TableViewChrome) — a package's ribbon group after a rule at the ribbon's end, pinned there while the ribbon overflows; the small icons fold into one "…" menu, "More actions" (their labels, their icons), when the ribbon cannot hold them, the buttons always show; an action'shintpulses its icon and is its tooltip and accessible name while it stands, and, folded, dots the "…"; an action or button that fails reports to the chrome's scope (onError), not as an unhandled rejection; the crumb back to the app is the shell's (TableView.parentView+showParentCrumb),breadcrumbs.onClickadding what the app does on its press;hideSaveisTableView.showSaveButton = false. When the chrome goes it puts back the Save button, parent view and crumb it found, and writes nothing to a view the shell already removed.labelis the group's accessible name ("Actions"),nameits automation id. Kindribbon-group(extra.folded) -
RecordsInput: Added the editable list of records (
u2-records-input): a row per record, an inline input per field under a header, remove per row, an add link that focuses the new row;orderablerows move by a handle or Alt+↑/↓. The value is the records, a new array per edit; a failing cell names its row ("Row 2: Name: Value can't be empty") -
ChecklistInput: Added checkboxes the user can also order (
u2-checklist-input): the value is the checked items in the order shown,orderevery item's — the items' own order, or withorderablethe user's (handles and Alt+↑/↓), new items last; no items show "No items" (emptyText) -
confirmDialog: Added
confirmDialog({title, message, detail, confirmText, destructive, onConfirm})→ whether the user went ahead: CANCEL and the action as a verb (DELETE);onConfirmkeeps it open and busy until the work is done, a failure in its error row. Notconfirm, which a missing import would turn intowindow.confirm. CANCEL takes the first focus, so Enter cancels: the platform's confirmations never focus their action either -
Dialog:
show({height})and the newshow({resizable})let the body fill the dialog (it stopped at 80vh, leaving the footer mid-dialog);show({visible})hides it without closing,show({owner})closes it with its owner; acloseevent carries the reason. Addedstatus(text)— a quiet line opening the footer that says what the action will do, the reason instead while OK is off — andaddButton(…, {start: true})for a tool of the dialog at the footer's start ("Modify Stages"); CANCEL always follows them. The first focus goes to the first field that takes edits — a read-only one (a summary's Name) is passed by instead of focused with its text selected -
AccessGrid: The capability headers no longer wrap ("Can / View")
-
Inputs: Fixed a control a caller adds to the options rail (
addOptions) being dead on a read-only input — a download, or a pencil that turns editing on;addOptions(el, {edits: true})marks one that changes the value, which read-only stops, as it does the number clicker, the date and colour pickers, the file pickers and the designer's binding picker -
AccessGrid: Rows at form height with room between the columns;
iconputs a picture before each principal's name, and u2/dg'sgroupIcon(group)is the one the platform's group pickers show (a user's picture or initials, a group's icon), asgroupInput's suggestions now do too -
Tables: A hovered row is marked as the platform grid marks its own: the grid's mouse-over tint over the table (
--dg-grid-mouse-over-row), lighter than a section header and blue where the header is grey, and the grid's stripe at the row's start (it was the section header's grey); a hovered selected row keeps the selection colour in its pinned cells -
u2/dg:
fromDartInput(input, name, {fill: true})stretches a bridged platform input across its row, asfilldoes a u2 one (it kept the platform input's own width in a wide form) -
Form: Added
shownProblem— the verdict the form shows, with its field's caption ("Key: KHL is used by …"): what a status line beside Save says in red, whereproblemnamed the first field still waiting for a touch. The button row centres what stands beside its buttons (astatusLinesat above their middle), and the fluent methods (add,addAll,addGroup,addColumns,addElement,addButtons,remove) returnthis, so a chain on apropertyFormkeeps itsObjectFormtype -
CatalogTable: Added the catalog / records table (
u2-catalog-table): a double click on a header sorts up, down and back to the default order (numbers, dates and natural-order text; empties last), groupings fold the rows into sections with counts, a columns menu with submenus chooses what shows, row actions show as icons by each row's access and as a context menu, running as the table's (what one opens, a confirmation, outlives a rebuild of the row's icons), and the choices are kept through a persistence adapter — the sort as aSortOrderstring, a kept{column, ascending}still read; a columns list recomputed with the same columns keeps the rows, their focus and scroll; skeleton, empty and error states,chrome()for the heading's icons,CatalogTable.sortItemsfor the same order outside the table, a state block for tests (docs/recipes/catalog-table) -
BasicTable: Columns are live; a header can sort (
sort,sortGesture, the arrow andaria-sort), sections can fold (collapsed, withsectionCountsandsectionLabel), columns can be pinned to the start or the end and capped withmaxWidth, rows take the form height withrowHeight: 'control'; header cells are thecolumn-headerkind (DataTable's too). WithonSort/onCollapsethe table hands a change to whoever holdssort/collapsedinstead of writing them;contextActionsopens a row's actions as a menu on a right click, the context-menu key or Shift+F10;revealItemfinds a folded row by its label too; a cut cell shows its whole text on hover -
Buttons: The
tooltipofbutton()andiconButtonis a string or a signal, no longer a function: the hover text and the accessible name (aria-label) both follow a signal, where a function changed the hover text only. A click handler's promise is returned, so a failed async click reaches the owner'sonError -
AppHeader: Added the app home's hero (
u2-app-header): an icon beside the bullets of what the app does — each text, an element or a link, or markdown bullets throughdescription— an optional title and subtitle, and Learn more as a URL or an action. At the platform header's widths it draws as that header did; only a narrow host (a docked panel, a phone) changes it, by the header's own width: under 480px a smaller icon, under 400px the bullets below the icon. Its state names the link (extra.learnMore, andlearnMoreHreffor a page). Replacesu2.appHeaderof@datagrok-libraries/utils -
Tabs: Fixed a tab made active in code scrolling the page around the strip
-
DateTimeInput: Fixed typing a time in a form turning "09:3" into "09:03"
-
TypeAhead: Fixed Enter on a look-up opened over a held value replacing it with the first row
-
Viewers: An option bound to a signal now reaches a package (JS) viewer: its properties appear a tick after it is made, and the link waits for the property (it bound nothing, silently)
-
funcForm: An override's
visible: falsehides its field (the param'svisible:expression alone decided it) -
funcForm: Added
collapsedCategories— categories that open folded, their headers still shown (['Advanced']) -
funcForm: A
fileparam gets a field (the FileInput registered for the type) instead of landing inunsupported -
FileInput: Emptying the box clears the file (the value kept the last one)
-
Buttons:
iconButtonandbuttonWithIcontakedisabledwith its reason, asbuttondoes — the reason is the tooltip while disabled -
NumberInput: Added
placeholder, as TextInput and QNumInput have: what an empty value means ("Auto") -
Buttons: A disabled u2 button —
button(), a button group's items, a dialog's OK and footer, a wizard's BACK / NEXT — isaria-disabledand keeps its tab stop, so keyboard focus shows its reason tooltip and a screen reader reads the reason (aria-description); a click, Enter or Space on it does nothing, andel.disabledstill reads and writes the state (focusableWhenDisabledanddescribeDisabledfor a button built by hand);Dialog.addButtontakesdisabled, asbutton()does -
Validation: Every message waits until the input is edited, left or validated (a required field already did; a validator's message showed at once, and an
ObjectForm/propertyFormrequired field too);validitystill judges from the start, so Save and OK stay off with the reason. A field focused from code and left untouched is not touched -
Dialog: Enter on a dialog whose OK the form holds off shows every field's message and focuses the first one to fix, instead of doing nothing
-
FilterQueryInput: A refused commit, and text shown with its problems, show their message at once
-
NumberInput: The slider no longer overlaps the next row: the editor keeps the 9px it hangs below the field
-
FilterBuilder: A disabled builder disables every editor in its rows, a row added while it is disabled too, and a locked row keeps its lock once it is enabled again
-
DateInput: The calendar's week starts on the browser locale's first day (Sunday in en-US, Monday in de-DE) instead of always on Monday;
firstDayOfWeektakes 0–6 andDates.firstDayOfWeek(locale)answers it -
ObjectForm / propertyForm: Only a valid value is written into the bound object; an invalid edit stays in its field, which says why, and is written once it turns valid (a platform editor under
editors: 'auto'still writes the property itself).refresh()keeps such an edit while the object holds still; the newreset()drops it — what a discard comes back to; the newunwrittencounts the fields holding one -
Wizard: CANCEL, Esc and ✕ abort a step's run, and one that has not settled 2 s later is abandoned: the dialog closes as a cancel and says so (CANCEL was disabled while a run was in flight)
-
Filters: A
matches regex/does not matchvalue that does not compile no longer throws when the filter is applied: validation refuses it on the condition, saying why (the query box and the builder row show it, an Apply or OK stays off), and a tree evaluated anyway matches nothing (FilterOperator.check). The pattern is judged as a JS RegExp for every target; a domain query runs it as Postgres~*, which may still refuse one at the edges of the two dialects -
FuncCallForm: A parameter whose
validatorregex does not compile fails its field with why instead of the form failing to build -
Notify: On a platform page notifications go into the platform's balloon stack (
notify.presenter, installed by the platform layer); elsewhere u2 keeps its own toasts -
Filters: Added host operators (
FilterOperator.host,OperatorRegistry.hosted()): conditions the app answers, which parse, format, validate and complete like any other -
Platform inputs: Fixed a form's own messages on a bridged platform input (a molecule input) showing only as a tooltip: "required" and an app's validator now show under the field, and a refused save names it ("Structure is required", not " is required")
-
Molecule input: Fixed a filter row not hearing the molecule drawn in it:
moleculeInputandfromDartInputtakevalueandonChanged -
Styles: Added a console warning, once per page, when a package built before stylesheet revisions injects its own copy of the u2 CSS over the installed revision: the packages that bundle u2 need republishing
-
Tooltip: Keyboard focus shows a bound tooltip too (a click's focus does not), the tooltip is
role="tooltip", and its anchor lists it inaria-describedbywhile it shows, beside its own ids -
ColumnsInput: The control says its popup is a dialog (
aria-haspopup="dialog", the popuprole="dialog", "Choose columns") — a checklist with OK / CANCEL, not a listbox -
RadioInput:
buttons: truelays its buttons out in a row again (the stacked editor rule outranked it) -
Buttons: A disabled primary button in a view ribbon or the toolbox keeps the disabled skin (it stayed teal under grey text, unreadable)
-
Inputs: In a right-aligned form or a dialog, a required caption's asterisk hangs in the gap before the editor, so its text ends where every other caption's does (it was pushed off the column)
-
DateInput: In a form a date (140px) and a date-time (170px) keep their own width, as a number does, instead of stretching across a wide row; the calendar popup keeps its own width instead of taking the field's (new
Overlay.show(anchor, content, scope, {matchWidth: false})) -
Wizard: In a dialog the wizard fills the body, so BACK / NEXT / FINISH sit at the bottom like a dialog footer instead of under a short step
-
Inputs:
tooltipTextshows u2's tooltip over the caption, as the platform'ssetTooltipdoes (over the whole input when it has none), and is the editor'saria-description; it no longer sets a nativetitleon the root, which the hover never showed inside a form and bdd could not read -
Menu: Added
detailto an item's options — grey text after the label saying what the item stands for ("hydroxyl · O[*:2]"); the details of one menu start in one column -
Form:
addButtons(build, {align, host})—hostplaces the form's button row elsewhere (a footer pinned under a form that scrolls) and its primary button keeps the platform's form-button blue there;align: 'start'starts the buttons at the row's left -
Form: Added
addColumns(inputs, {minWidth, columns, host})— short fields two (orcolumns) to a row, every column's captions and editors in line and each editor filling its column (a choice and a number too), one to a row where two would go underminWidth -
Form: Added
quiet(theu2-quietclass on any other host) — values read as text: an editor's underline shows while it is hovered, focused, empty or wrong, a key/value row's buttons while it is hovered or focused, and editors take the host's background; an input marks itselfu2-input-emptywhile it holds nothing -
Accordion:
addPane(title, content, {expanded, icon, hint, validity, persistKey})— a folded pane says what it holds (a signal, or an element for a live summary), shows the problem inside it in place of the hint, and remembers the user's open or close (pane.userSet); the older(expanded, icon)arguments still work -
Accordion: Added
flush— titles and content start at the left edge, in line with the captions of a form around it, the chevron at the header's end -
Badges: Added
statusLine(problem, otherwise)— the line beside an action: what it will do, or why it cannot yet, in the error color after a warning mark; two lines at most, the whole text its tooltip,role="status" -
Elements: Added
effect(fn)— an effect owned by whoever is building (aneach()row), stopped with it, ason()is for listeners;Tooltip.binddefaults to that owner too -
Section: A
hintmay be an element (a summary with swatches);chevron: 'end'puts the chevron after the title and hint, always shown, for a header placed in a row of its own (Details beside a Save) — it stays the section's toggle and keeps its error marker there -
Accordion: A pane's
validityshows in its items (invalid) -
Form: In a
quietform a value too long for its box ends in an ellipsis until it is edited -
Dialog: OK's reasons read top to bottom, the form's fields first
-
Section: The title keeps its width and the hint gives way; the hint hides while the section is open
-
NumberInput: A decimal in a whole-number field says "Must be a whole number"; ColorInput: the swatch's accessible name says which colour
-
Form: Captions are measured at their own width while a form aligns, so a form nested in one gone tall no longer takes the row's width as its label column (the column stuck wide after one narrow moment)
-
Styles: u2's stylesheet installs itself, once per page: the first u2 control loaded inserts one
<style data-u2-styles data-revision>after the platform's stylesheets and before every package's (a package's CSS wins a tie with u2's whatever order packages load in), and a newer copy from another package replaces its text in place, so the page runs the newest u2 CSS whatever order packages load in. Packages no longer importcss/*.css(onlyicons.cssandtheme-dark.cssstay importable); a standalone host that links the sheets opts out with<meta name="u2-styles" content="linked">;css/styles.lock.jsonholds the revision:npm run styles -- --bumpmints the next one with a CSS change (a build keeps the committed one, and CI fails on a stale lock) -
Icons: The
icon()sizing classes (u2-icon-small,-medium,-large,-action) moved from the opt-inicons.cssinto the stylesheet every page gets -
Inputs: Added
onInput(and theuserInputevent) — the user's own edits only, never a write from code,reset,followor the input's pruning (systemWrite, marked on the input, so even inside a user's event);onChangedstill hears the program's writes, as the platform's does -
Inputs: Added
error(the message the input shows: a required verdict waits for the touch) andtouchedbesidevalidity(the verdict from the start) -
Inputs: Added the
widthoption (px or a CSS length) — the editor's own width in any form, over the fitted widths; a row narrower than it shrinks it -
ChoiceInput:
itemsmay be a signal, followed live; the value may arrive before its item -
Form: Labels align in a microtask after the form is built, before the first paint, instead of an animation frame later;
layoutNow()aligns at once -
Form: Added
labelWidth(a fixed column) andlabelColumnwithLabelColumn(one column shared by several forms — the tabs of an editor, a header over a body — measured off hidden captions' text too) -
Form: Added
error, the first message a counted input shows, andproblem, the first verdict with its caption ("Name: Value can't be empty"), besidevalidity -
Form: Added
addGroup(caption, inputs, {captionsAfter, host})— one caption in the label column over several inputs side by side -
TabStrip: A tab takes a
validitysignal and marks itself; a tab whose content is a Form answers with the form's shown error;contentmay be a control;eagerplaces element contents at once, hidden, so a form on a tab not yet visited measures its captions -
Section: Added
hint(what the body holds, shown while folded),validity(marks the header, and replaces the hint while folded) andpersistKeywithuserSet(remembers the user's own open or close) -
Buttons:
button()takesdisabled— the reason, which becomes its tooltip; live as a signal — andtooltip -
Dialog: Added
okDisabled(reason); a disabled OK says why in its tooltip — the reason, or the form's first verdict ("Name: Value can't be empty") -
Elements: Added
on(el, type, handler)— a listener owned by whoever is building, removed with it -
ColorInput: The swatch has a hairline at rest, so a white color shows on a white form
-
Tooltip: An empty text shows no tooltip
-
Scope: With u2 debug tracking on (dev, tests, the bdd leak audit),
effect()/own()on a control called again from a differenteach()row or effect run warns once per call site: what it registers would pile up with every rebuild -
Docs:
tests/docs-drift.test.jsfails when the README, the recipes, the manifest's usage or the two shipped contracts name an API that does not exist; the README has the install, the rules that matter and testing -
Form: Fixed a form built hidden (in a collapsed section, behind a toggle) keeping a misaligned label column once shown; every caption-left form now re-aligns when its size changes
-
Form: Added
remove(input); an input disposed with its row (aneach()key, a rebuilt section) now leaves the form instead of still failing its validity -
Inputs:
addOptionsis public, so a caller can put its own icon on an input's options rail, as with Dart'sInputBase.addOptions -
u2/dg: Added
host(control)— a control placed in a docked panel or a pane is disposed when the platform closes it (appViewuses it) -
Form:
addButtons(build, {align: 'editors'})starts the buttons where the editors do, asui.buttonsInput; a primary button in a form takes the platform's form button color (blue-2) and padding -
Buttons: A disabled button takes the pointer again (no
pointer-events: none), so its tooltip can say why it is disabled and a click on it no longer falls through to what is under it -
Inputs: Fixed CANCEL taking two clicks when an empty required field had focus — a field left for a button shows its verdict once that press is over, so the new error line no longer moves the button from under the pointer
-
MapInput: Fixed a repeated key dropping the earlier row from the value; the value keeps the last map the rows stood for until the key is fixed
-
ColorInput: Fixed a "Not a color" left by typed text staying after a valid color is set from outside
-
Dialog: Closing a dialog gives focus to the dialog still open below it (unless its opener sits inside that one), so Escape still reaches it
-
Inputs: Added
reset(value)— a fresh start for another record: no verdict waiting on an earlier touch, the editor's unreadable text (a "Not a number", "Not a color", a half-typed map) replaced even when the value is the same, and noonChanged -
MapInput: A row with a value but no key is flagged ("A value needs its key") instead of being left out of the value silently
-
TabStrip: An invalid tab also shows a dot, not only its red caption
-
Dialog: CANCEL comes with the first action (
onOK,addButton), as in every platform dialog; before, it showed only withonCancel -
TabStrip: Added
setInvalid(id, message)— a red caption,aria-invalidandinvalidin the tab's item while its content has an error, the message as the header's tooltip -
Inputs: Fixed div-based editors (slider, list, column and columns pickers, comboboxes) staying short in a Form's normal state and in a Dialog body; they now grow as in
ui.form, except the check and radio lists -
Inputs: Fixed a u2 input bridged into a platform dialog (
asDartInput) staying 143 px; it now fills the row like the platform's own editor -
Form: Fixed radio and multi-choice collapsing to 0 px in a wide form
-
Inputs: Multi-choice now has the platform's 150 px floor; the Columns picker has a 100 px floor and the platform's chevron
-
Form: A choice keeps the width its form measured after it moves elsewhere; added
Form.fitChoices -
Property grid: Number rows now fill the cell like the other rows
-
Inputs: Disabled inputs use the platform's grey text and near-white field
-
Inputs: Error lines start under the editor, in forms and in loose captioned inputs; an invalid radio or check list no longer draws an underline
-
Inputs: The color field no longer spills out of its box; the image preview scales into its row instead of wrapping under its caption
-
Inputs: The Columns popup keeps OK and CANCEL visible when the window's bottom edge squeezes it
-
Inputs: Mapping's nested x/y captions take their own width
-
Dialog: A choice placed straight in a dialog body takes the width a form measures for it (longest option plus 30 px), as in ui.dialog
-
Accordion: The open pane's content sits 2 px under its header, 10 px above the next and 20 px in, in grey-5, as the platform's
-
BasicTable: Rows are 22 px, inset 12 px, with no rules and a 13 px bold header, as ui.table
-
VirtualTree: Rows are 20 px with a caret icon twistie and a 20 px indent per level, as the platform tree
-
TabStrip: The default strip is 34 px, with tabs padded 8 px 16 px and no full-width rule, as ui.tabControl
-
FilterBuilder: Disabled dims + / − and Advanced; read-only hides add, remove, the drag handles and Advanced; a blank required builder shows its error even where an older copy of the stylesheet is loaded
-
Dialog: Fixed a dialog whose content grows after show running off the window, so OK is reachable
-
Dialog: Fixed a dialog dragged to the right being crushed when the window narrows
-
Dialog: Matched the platform's backdrop, shadow, footer rule and spacing, and its 18 px close icon shown on hover
-
Dialog: Added
onHelp, the platform's "?" in the title bar -
Dialog: The first text editor's text is selected on show, as in the platform
-
Menu: Re-skinned popup menus to the platform's look, with a chevron for submenus
-
Tooltip: Matched the platform's tooltip size, font, translucency and border
-
Breadcrumbs: Widened the separator spacing to the platform's
-
Wizard: Long values wrap instead of being clipped
-
Toolbar: Breaking:
addButton'siconis a Font Awesome name, as a menu item's is (it was shown as text), so a button folded into the » menu keeps its icon -
Inputs: A captioned editor shrinks to a 60px floor before it drops under its caption, as the platform's row never wraps
-
Inputs: Captions sit on the first line of multi-line editors (text area, radio, map, aggregations, checklists), as in the platform
-
Inputs: Fixed the invalid underline on list, password, columns, file and saved-run editors, which showed only under the rail icon
-
Inputs: Disabled inputs grey their rail icons and dim the image preview; read-only choices drop the chevron; text areas lose the resize grip when disabled or read-only
-
Inputs: The list placeholder ends in an ellipsis; password dots keep clear of the eye icon; captioned text areas fill the row and cap at 12 lines with a scroll
-
Property grid: Fixed an invalid value collapsing its editor to 0px; the error shows under the editor
-
Property grid: Rows are captioned the platform way (
showLegend→ Show Legend); the tooltip is the description -
Range slider: Handles no longer overhang the component at either end
-
Func form: Run is gated only on non-nullable params, so a form of nullable params can run at open
-
Func form: A failed computed default shows its message and Retry on their own line under the editor; the auto badge keeps a gap from the rail
-
Dialog: Kept a shown dialog on screen through window resizes; a tall dialog scrolls its body inside the viewport
-
Dialog: Matched the platform dialog: 34px header with an 18px title, square corners, CANCEL first and OK right-most and flat, captions in one column sized to the longest
-
Dialog: Disabled OK and Enter while the form in the body is invalid
-
Dialog: Kept the focus in the dialog when a busy OK disables the clicked button; an edit clears the error row, which no longer widens the dialog
-
DartInput: Fixed Enter in a bridged input inside a platform dialog re-opening the dialog through the button that opened it
-
DartInput: An empty value the u2 input refuses now disables the platform dialog's OK; a validity change re-validates the host
-
Overlay: Closed anchored popups on a window resize instead of stranding them away from their anchor
-
TypeAhead: Cleared stray text on blur, turned spellcheck off, and added a
maxHeightoption; user, entity and rich column pickers open on focus -
User picker: Dropped the repeated second line and capped the popup height
-
Entity chip: Structure and image chips grow to show the whole depiction; handler markup gets the chip's gap and alignment
-
FilterBuilder: A new row says its value is missing only after it is edited or left, or the builder is validated; the message sits under the value, and value boxes fill the row
-
FilterBuilder: A required, empty builder shows its error
-
MessageInput: A space after a query with no match ends the mention
-
Toolbar: Fixed items folded into the » menu staying on screen and the » showing when everything fits; the toolbar now takes the free space of a flex row, so a toolbar next to a title folds and unfolds correctly
-
VirtualGrid: Fixed "ResizeObserver loop" errors when the grid narrows, and cells now stretch to fill the row instead of leaving a dead strip
-
Splitter: Panels keep
minSizewhen the splitter itself shrinks, not only while dragging; a drag no longer leaves a focus band on the sash -
BasicTable: Added a sticky header and the
fixedLayoutoption (host-wide columns, long cells end in an ellipsis) -
Table, VirtualGrid: The focus ring shows for keyboard focus only
-
Wizard: Fixed the first step marker sitting 3 px above the others
-
Tour: The counter and the DONE label skip steps whose target is not on screen
-
StatCard: A long value wraps before the icon instead of running under it
-
Menu: Wider gap between an item's label and its shortcut
-
Core: Breaking: What an effect run builds belongs to that run (the js-api engine gives each run its own scope), and what an element handler or a
bindValuecommit builds belongs to the handler's owner; build lasting content under a component scope, and useScope.runWith(undefined, …)for anything that must outlive its owner -
Core: DOM handlers —
button/linkhandlers,bindValuecommits and the controls' listeners (Scope.listenreplaced the private_listenhelpers) — run batched under their owner's scope, and a throwing handler is reported instead of thrown -
Core: Added
each()andshow()(core/region.ts), keyed and conditional regions: one element per key, built once in its own scope, patched in place, moved only when out of place, disposed when its key leaves -
Core: Breaking: Removed
keepFocus: controls keep their elements witheach(), so focus and the caret survive;focusMark/refocusremain for structural rebuilds -
Core:
span(signal)andbindTextrendernullandundefinedas empty;visible = falsehides a root even when its class setsdisplay -
Core: Importing u2 next to a second copy of the signal engine throws a named error;
@datagrok-libraries/build-configmapsdatagrok-api/u2coretoDG.U2by default, so a package no longer declares that external -
Exports: The package root exports the kind catalog (
U2_KINDS,kindCatalogand their types),ITEMS_CAP,IItemState,IItemsState,U2Plugin,WizardRunContext,CardSelectMode,BreadcrumbsClick,TabStripOptions,TableSectionandPropertyGridOptions;core/scopere-exportsdebugand its types -
Spec: Breaking: A bind never rebuilds a node at run time: every declared prop follows its bind in place (bindable props as signals, the rest through the component's setter), and a prop marked
structural(SpecPropMeta.structural; among themu2-func-form.functionName,u2-state.initialand the data sources' config) reads it once and warns; a bound tab title, button text or number max no longer rebuilds the form around it, and the form / stat card / source promotion loop is gone -
Spec: Every visual tag with the appearance group has a live
visibleprop; bound tab, accordion-pane and wizard-step titles follow in place (ComponentMeta.setChildProp); a forward-ref bind to a bindable prop with no same-named signal is linked; the manifest states the binding rule, andkinds[].propsleaves structural props out -
Spec:
u2-wizarddeclares thefinish,cancelandstepevents and a readablecurrentStep, and a designer rebuild keeps the open step and the visited ones -
Components: Added live setters — Button text/primary/icon, panel/div
cls, NumberInput/SliderInput min/max/step, RadioInput items/itemTooltips, MultiChoiceInput/ChipsInput emptyText, AccessGrid principalLabel/addText, ImageInput alt, FilterQueryInput placeholder, PropertyGrid properties, TextArea rows, RangeSlider label, DataTable columns (rows keep keys and selection), icon variant/size; Card title/subtitle and StatCard label are bindable -
Spec: A malformed node (a non-string bind, non-array children, a null child) renders as a placeholder naming the mistake, also when the node is named; the renderer no longer throws
-
Spec: Fixed
dump()sharing nested props with the live document: it deep-copies plain objects and arrays, keeping cycles, and passes other values (dates, functions, bigints) through unchanged -
Spec: Breaking: Removed
setSpecAmbient; a companion library installs withregistry.use(plugin)(U2Plugin: name, tagPrefixes, register, specAmbient), once per name, and the returned function removes its tags and ambient; every installed plugin's ambient wraps each tray build in install order, so a second writer no longer splits a spec's unit of work -
Spec: A domain or manifest tag the host has not installed renders a placeholder naming
@datagrok-libraries/emsandinstallEms(); an unregistered tray tag also warns in the console -
Manifest: Added the kind catalog (
kinds,kindsVersion1): everydata-u2value with its noun, family, roles, parts, state keys, settable props, items and gestures; components carry their kind and the states their props reach (invalidis{required: true}, not listed for bool, color and font inputs); part selectors are anchored at the component's root (a dialog's title and close button at its title bar), so a nested component's parts never match -
public#4275: Inputs: Breaking:
required(andnullable: false) makes an empty value invalid, so forms with such inputs start invalid; the error shows once the input was edited, left or its form validated (Input.touch()); an empty map or a filter without a condition is empty, while a checkbox'sfalseand a color or font default are values (Input.isEmptyValue) -
core#760: Inputs: Added
readOnly,visible,focus(),onEnter/onEscape(which keep the key from the form and dialog),filland TextArearows;readOnlyandrequiredare spec props on every input tag -
core#761: Inputs: The label is tied to the editor (
for/aria-labelledby); an invalid input carriesaria-invalidandaria-describedbypointing at the error, a disabled onearia-disabled, an inline one anaria-label; MultiChoiceInput and RadioInput items carrydata-u2-item,data-valueand an item-label part -
Inputs: Added
getState(): value, displayed text, validity, the error shown, placeholder,readOnly,required, a BoolInput'schecked, and the items of choice, radio and multi-choice inputs (a MultiChoiceInput's text is its checked captions) -
Inputs:
onChanged,onEnterandonEscaperun untracked under whoever built the input, or under the dialog that adopted it once the builder is gone (PropertyGrid's handlers too);onChangedreceives the input as its second argument; added thechangeevent,input.on('change', (value, input) => …), fired once per value change -
Inputs:
undefinedshows as empty in number, bigint, qnum, slider, switch and multi-choice inputs; NumberInput, BigIntInput, QNumInput and SliderInput honourcommitOn: 'change' -
Inputs: Every input (core, popup and picker, ChipsInput, AccessGrid, PlatformInput) works without
useDefineForClassFields: false -
BoolInput: Added
captionAfter; a switch toggles from its caption -
Form, Inputs: The auto form layout keeps the platform's editor widths (number 150px, choice = longest option + 30px) and rounds the label column up as the platform does; a captioned TextInput or SuggestInput fills its row (min 150px), and the 100px pin stays on inline inputs
-
public#4274: Form: Hidden and disabled inputs no longer fail its validity;
validate()shows every error and focuses the first -
Layout: An ImageInput's and a ColumnsMapInput's caption sit on the editor's first line, as the platform's do; a captioned MapInput shrinks to the form's editor floor instead of wrapping under its label; an error line in a form no longer spills past its row; a long token in a Card body wraps; an empty Breadcrumbs keeps its row height
-
Combobox, MultiSelect, TypeAhead, SuggestInput, TagsInput: Popup options are keyed: a keystroke keeps the options that still match and builds only the ones it brings in (a narrowing keystroke in a 500-item MultiSelect builds none); options carry
role="option",data-u2-item,aria-selected, an item-label part and stable ids foraria-activedescendant -
Combobox, TypeAhead, SuggestInput, TagsInput, FileInput: An async source marks the root
aria-busywhile it fetches, and the state reportsbusy -
Popup and picker inputs:
getState()reportsopen, the items (every option, not the filtered popup) and the selection;revealItemopens the popup over the whole list and resolves to the option, also whenminCharsis set -
Combobox, TypeAhead: Added
focus(),label,onEnter/onEscape(handled while the popup is closed, kept from the form or dialog) and achangeevent that passes the value and the control; TypeAhead gainedkeyOf -
RangeSlider: Added
labeland achangeevent;onChangedreceives the slider and runs owned by its builder; the state reports[lo, hi] -
TagsInput, MapInput, FontInput: Tag chips are list items kept by text, map rows are items keyed by key (an edit never reloads the rows), and font sizes are addressable items
-
FunctionInput: The prompt is the placeholder, and the text stays empty until a function is picked
-
public#4271: Dialog: Breaking: Closing disposes the dialog and what it holds, so a closed dialog cannot be shown again unless it has
keepAlive: true; a shown dialog outlives the scope that built it (a list row scrolled away, an effect re-run), a never-shown one dies with it; content added from a handler or from outside any scope belongs to the dialog, andadd(() => …)builds content owned by the dialog, so a dialog opened from a list row keeps its buttons and live text after the row is gone -
public#4272: Dialog: An OK handler may return a promise: the dialog stays open and busy (spinner,
aria-busy, footer disabled) until it settles, closes unless it answersfalse, and shows a rejection or a throw in an error row; Escape or ✕ while busy aborts the handler's signal -
core#757: Dialog: Added
getButton(text),onOK(fn, {text}),onClose(fn)with the close reason, and thebusy/errorsignals and state;addButtonhandlers get the event and the dialog; handlers run owned by whoever registered them -
core#758: Dialog: Breaking: Dialogs share the platform's dialog band and are no longer children of
.u2-overlay, so a DG.Dialog or menu opened from a u2 dialog is on top, and pressing a dialog raises it -
Dialog: Inputs placed straight in a dialog get the platform's grey, right-aligned 140px caption column
-
public#4273: Overlay: One stack routes Escape and outside presses; Escape in an open popup closes only the popup, never the dialog around it
-
core#758: Overlay: One
keydown, onepointerdownand one body observer serve every open popup and dialog, gone when none is open; positioning follows events (no frame loop); a context menu opened at a point is a popup of that stack, and a TabStrip listens to the page only while its overflow menu is open -
Overlay: Popups carry
data-u2-part="popup"anddata-u2-owner-id(the owning control's root id); the owner's focus target getsaria-controls,aria-expandedandaria-haspopup -
public#4272: Wizard: A commit, action or finish that throws or rejects keeps the step and shows its message in the footer's error row; each run gets an
AbortSignalthat Escape and ✕ abort; two NEXTs in one task commit once -
Wizard: Added the
step,finishandcancelevents, thebusyanderrorsignals andaria-busyon the root; content built inonActivatelives until the step's next visit; the wizard's dialog is kept alive between openings -
core#764: TabStrip: Breaking:
onTabClosedis no longer a signal; use theonTabClosed(id, strip)option orstrip.on('tabClosed', …); closing the same id twice notifies twice -
core#764: Card:
onClickgets the event and the card; addedselectMode('toggle'/'select') andcompact; a card givenselectedalways shows it; in dev mode a click on a disposed card warns -
Buttons:
button(),link(),iconButton,buttonWithIconand a splitdropDownButtonpass the DOM event to their handler, and ButtonGroup and Breadcrumbs item handlers get the event and the control;button()roots carrydata-u2="button"; an icon button without a tooltip warns in dev mode -
AsyncView: A reload keeps the last answer (dimmed,
aria-busy) until the next one lands -
State: Tabs, wizard, accordion, menu (items keyed by path, e.g. "File > Open"), menu bar, toolbar, breadcrumbs and button group report their items; sections report expanded, cards selected, splitters their sizes, progress bars and stat cards their values, AsyncView its error; FuncCallForm is
aria-busywhile it runs -
Parts: Dialog, section, card, stat card, progress bar, splitter, wizard and tab parts carry
data-u2-part; the spec tagsu2-panel,u2-div-vandu2-div-hstampdata-u2 -
EntityCard: The platform card's gallery title is the card's title part and its label, else the object's caption
-
VirtualList, VirtualTree: Breaking: Rows are keyed, and a row is rendered again only when its item is a new object under the same key — an item mutated in place needs
refresh(key), live proxies needliveItems: true; one edit in 10,000 rows renders 1 row (was 23) -
VirtualList, VirtualTree: Each row's render runs in its own scope, so
span(signal)works in a render and stops with the row; addedupdate,refresh(key),labelOf,liveItemsandrowAt; the multi-selection follows its keys acrosssetItems, so a pager load or a tree expand no longer collapses it -
VirtualList, VirtualTree: Rows carry
data-u2-item; the state reports every item with selected/disabled/rendered and the selection as keys;revealItemscrolls (in a tree, opens the ancestors) to a key or label and rejects an ambiguous label -
VirtualTree: Fixed a checkbox showing a state its node does not have: clicks never flip the box, a tree without
onCheckshows disabled boxes, the treeitem carriesaria-checked, and the box is named bycheckLabel -
VirtualTree: A failed lazy read is retried when the branch is opened again, new roots with new loaders read again, a read is released (scope disposed, signal aborted) once its node leaves the tree, and
expandPathkeeps the expand/collapse clicks made while it awaited a load -
core#762: BasicTable: Rows are keyed (
keyOf; by default a string or number item, else its name or id, else its position): an items change builds only the items that changed, each row in its own scope, and the selection follows its key; rows carryrole="row",data-u2-itemand an item-label part, and the state reports them as items -
core#762: BasicTable: Added the
row(item, index, tr)hook (it runs in the row's scope) and{section: 'Title'}items, header rows spanning all columns that clicks and the keyboard pass by -
DataTable: Rows of a plain array are rendered again only when their item is a new object (one edit in 10,000 rows: 1 row, was 23); a RowsLike or signal source stays live (
liveItemsoverrides); kept rows updatearia-rowindex; a row's label is its first column's value -
VirtualGrid: Cells are keyed like VirtualList rows (built once, a scope per cell, selection by key across
setItems) and carrydata-u2-item; addedgetItems,revealItem,refresh(key),cellAtandlabelOf; IconInput cells are addressable by icon name -
PropertyGrid: A keystroke re-runs one row (2 effects with 200 properties, was 201); rows are keyed by property name, so
setPropertieskeeps unchanged rows and their focus; rows carryrole="row",data-u2-itemand an item-label part, and the state reports them as items -
PropertyGrid: Breaking: Removed the
onChangedsignal; use theonChangedoption orgrid.on('change', (change, grid) => …) -
PropertyEditor, FunctionsBrowser: The state reports their fields or shown functions as items;
FunctionsBrowser.revealItemscrolls to a function by qualified or friendly name -
ChipsInput: Breaking: Chips are
u2-chips-chip/u2-chips-chip-on(no longer.u2-chip), so pressed chips look pressed underall.css; chips are kept by value across changes and carrydata-u2-item,role="button"and an item-label part; the state reports items, the selection and the pressed captions -
AccessGrid: Locked capabilities and inherited rows stay disabled after an enable, and clicks on them or on a disabled grid are ignored; an added principal gets the first unlocked capability
-
AccessGrid: The add select adds on a pick or Enter, never on an arrow, Home/End, Page Up/Down or a letter, and resets when left
-
AccessGrid:
principalsis live (a signal,setPrincipals(), theprincipalsaccessor, a bound spec prop); rows are kept by principal and patched in place, withrole="row",data-u2-itemand an item-label part, in a table withrole="grid" -
Input bridge: A u2 input handed to the platform as a value editor (
dartInputFor,asDartInput) is released when the platform kills the element hosting it (a closed view or dialog, a re-rendered panel); a deferred editor the platform never mounts holds no live scope -
Input bridge: Fixed
setStringValuethrowing on text that is not JSON (it leaves the value and warns once), and platform inputs writing object values back on every change -
Control inspector: Only u2 controls get the inspector (platform widgets and viewers keep their own context panel); the panel is disposed when the context panel moves on;
registerControlInspector()returns an unregister -
leakReport()also reports the pending timers and global listeners thatDG.U2.debugtracks -
Tokens: The palette,
--dg-text-color(-light),--dg-success/--dg-failureand--dg-font-weight-*alias the platform'sdatagrok.csstokens, with the old values as standalone fallbacks; success and failure now use the platform's #006400/#8B0000 -
Buttons, ChoiceInput:
.u2-btntakes the platform'sui-btnmetrics (28px, 13px bold caps) and primary is the platform's raised button; icon buttons stay 24px squares; the platform's denser styles apply in its ribbon and toolbox; ChoiceInput's chevron is the platform's stroked "v" -
CSS:
lint:tokensfails on a raw hex colour outsidetokens.css/theme-dark.css, and a test fails when two bundled sheets give one selector conflicting declarations -
Docs: Added the specs recipe (live binds, structural props, events,
installEms/Registry.use); the forms recipe covers the input contract and Wizard runs, the lists recipeeach/showand CardonClick -
Packaging: Replaced
.npmignorewith afilesallow-list, and the build starts from an emptydist; the tarball no longer ships the in-place src emits, files whose sources moved to ems,dist/testsor a second copy of the css (1,169 → 441 files) -
Testing: Fixed
pnpm teston Windows (it lists its test files itself); it runs on Node 20 without--experimental-detect-module -
EMS (domain tables) moved to
@datagrok-libraries/ems -
Breaking:
DomainSelection.bindis nowcollectionSelectioninsrc/dg/shell/ -
Added
tests/boundaries.test.js: nodatagrok-apibelowsrc/dgexceptu2core, no EMS imports -
under(path, base)exported fromsrc/dgwithmountView;DomainAddress.underis gone -
E2E:
run.mjs --checks <dir>runs another library's check files;startGalleryServer(root, served)serves another root -
Wizard: addedWizardAction.visible— an action follows the signal on its own step (shown when absent), without re-activating the step -
GROK-20298: Binding editing, the testing round's fixes: editing a column's readers never touches an editor the snapshot holds apart from them; the name column and the searchable one rebase as the table's choices (competing picks conflict) and a pick whose column is gone is dropped; column readers rebase per group, by name, with a conflict on a column whose restriction or readers moved meanwhile; column access ops carry
from(the state they were made from) and anaccess-conflictreloads like a version conflict; a lost answer the registry cannot confirm, or a binding deleted and re-created under the name, ends the edit — Outcome on Review, REOPEN in place of SAVE, nothing replayed; a registered table taken out reads as text on its panel; an apply the server answers as a no-op reads "Nothing to save" on Saved, not a new version -
Wizard:nextTextaccepts a signal, so the button's wording follows the state -
Dialog: Escape reaches the modal dialog on top once focus fell onto the body (a control rebuilt under the focused element), unless a popup or a platform dialog is open above it -
GROK-20298: Added the binding editing dialog,
domains.authoring.editBinding(schema)/BindingEditDialog: read-only connection facts, the editor in edit mode over the manifest, the access snapshot and a fresh draft (a failed read shown as unknown and said), Review with the change list annotated from the dry run (what a removal takes with it, what is already so; VALIDATE bound to the exact apply body; a destructive plan confirmed in the step), Saved with the effects as resolved under the lock and OPEN; a version conflict reloaded and rebased with a report and a look at Design before the save; a lost answer confirmed through the registry by tokens and content. ExtractedBindingWizard, what the create and the edit dialogs share -
GROK-20298: Binding editing model:
ManifestEditoredit mode over a registered manifest (immutable baseline, warehouse candidates, explicit drift — missing / unbindable / key / type / unknown — with blockers, locked registered names, declared refs authoritative, dormant opt-outs kept),AccessModel.editfrom the access snapshot (per table, exact permission deltas, "every table" bulk action, read-only targets, the author kept on a restricted column),editPlan()→{payload, changes, blockers},rebase()three-way merge →{applied, conflicts, dropped} -
GROK-20298: Focus survives re-renders (
keepFocus/refocusincore/focus.ts: a keyed path, a removed row hands focus to its neighbour, a rebuild during Tab waits one task) inAccessGrid,ChipsInputand the manifest panel; Enter on a control inside aDialog/Wizardis the control's (Dialog.entersDefault); a BoolInput's box is never covered by its postfix; lockedAccessGridcells paint unchecked; binding authoring: table/catalog presets scoped, sorted schemas, paged connections, name probe, 30 s read timeout, refusal without CreateDomainSchema (grok.dapi.permissions.checkGlobal) -
GROK-20298: Binding authoring: the
domain-schema-createdcustom event is gone — the platform'sDomainsClientrefreshes the Domains tree and gallery for every create and delete, whichever entry made the call; a create confirmed through the registry after a lost answer is announced to it (grok_Dapi_Domains_SchemaCreated) -
GROK-20298: Binding authoring, the dialog's design pass: with a connection and a schema preset it opens on Design (the Connection step pre-filled, a BACK away;
Wizard.start); the schema's Friendly name is the primary field and the Identifier follows it (ManifestRules.identifier: harmonized,s_when not letter-led;ManifestModel.proposeNamesteps past the registered and reserved names with_2,_3…;setSchemaNameby hand detaches it until cleared), defaulting to<connection> <schema>; every hint sits on its input's line as its postfix; the Dart entry point takes the Browse tree to the new schema after the create (grok.shell.browsePanel.expandPath) -
GROK-20298:
groupInput— the platform group and user picker overTypeAhead(groups/lookup, as the Share dialog);AccessGrid.pickerputs a look-up in place of the add select;ManifestEditorOptions.principalPickerfeeds the access grids and the visibility chips with it, the value staying{id, label} -
GROK-20298: Binding authoring, access semantics: a schema-scope access row is the same grant on every included table —
plan()fans it out client-side and merges it with the table rows;schema().grant()is never called for View/Edit/Delete.AccessGrant.scopeis a tagged union ({kind: 'schema'} | {kind: 'table', table}), groups are stored as{id, label}(the dialog loads them once, a duplicate name gets an id suffix),AccessGridshows a principal's label -
GROK-20298: Binding authoring, partial completion: after the create the column restrictions go first, then the table grants (none on a table whose restriction failed); with access rows the dialog ends on a Created step — what went through, what failed and why, RETRY ACCESS over the failed steps alone, OPEN, CLOSE — and
createBindingresolves to{name, access: {applied, failed}};grok.eventscarriesdomain-schema-createdat the completion boundary;createBindingrefuses while domain databases are off -
GROK-20298: Binding authoring, review state: a validation is bound to the exact create payload — any change since is not validated, a late answer to a changed payload is dropped; the Connection step reads the author's AddRows/ChangeValues/RemoveRows and the Writable switch is disabled with the reason
-
GROK-20298:
ManifestModel: a declared type —refincluded — is authoritative, so a registered manifest opened without an inventory round-trips; the inventory only explains and is consulted when the user changes inclusion (excluding a ref's target demotes it to the inventory's plain type, or drops the column with a reason; including a target promotes the refs the inventory stamped);table/columnremote names are emitted understorage.kind: 'external'alone -
GROK-20298:
Wizard: a step'scommit(work NEXT waits on;falsekeeps the step) withnextText,WizardAction.enabled; while a commit, an action or the finish runs the rail, CANCEL, ✕ and Esc are blocked (Dialog.closeGuard), and closing adonestep is its CLOSE button, never a cancel; spec-registered asu2-wizard(one step per child; gates, commits, actions and the finish are code options) -
GROK-20298: Binding authoring, the dialog:
domains.authoring.createBinding({connection, schema, catalog, table, groups})opens "Create domain schema" — Connection (the connection and its remote schema, the author's GetSchema/Query on it, the draft read as soon as both are picked with every refusal named where it happens) › Design (theManifestEditorover the draft, one table included when the caller named one) › Review (the manifest beside the findings; VALIDATE is the dry run and lands its findings on the rows, CREATE is the real one, then the schema/table grants and the column restrictions by group id, the app over the first table, a toast); resolves to the name, null on cancel -
GROK-20298:
Wizard: per-stepactions(buttons before NEXT, shown on their step only),finishTextfor the last step, astatusslot on the footer's left, and anonFinishthat may answer a promise — the footer waits, andfalsekeeps the wizard open -
GROK-20298: Binding authoring, the Design step:
domains.authoring.ManifestEditor(tagu2-manifest-editor) — a tree of the schema, its tables and their columns beside a context panel that edits the selected node;plan()answers the create envelope with the grants and column restrictions resolved to logical names -
GROK-20298:
ManifestTree: a checkbox includes each table and column (keys and unsupported columns locked), badges for the key, the foreign key as a ref or a plain value and the name column; a view, a keyless table or an unsupported column stays greyed with its reason, an excluded one is greyed but not disabled -
GROK-20298:
ManifestContextPanel: names checked with the mirroredDomainManifestRules, writable and the read-only opt-out, the name and searchable pickers, required, the relationships with an "include" link, the access grid with the schema's rows inherited, column visibility; the field offer follows the editor context ( external×create/viewbuilt, the other arms refuse by name) -
GROK-20298:
ManifestModelover the draft envelope: the ref RULE (a reported ref is a ref while its target is included, the scalar type otherwise),toJSON()carrying every declaration key through withbusinessKey,filters[].columnanddelegatefollowing renames and exclusions,revisionfor views -
GROK-20298:
AccessModelbeside the manifest — grants by scope and column visibility, applied by the dialog after Create -
GROK-20298:
ManifestEditor.diagnosticsaddressed by manifest path light up the row and the panel that own them -
GROK-20298:
VirtualTreenodes takechecked,lockedanddisabled— a checkbox before the label, toggled by click (the selection stays put) or Space, reported throughTreeOptions.onCheck -
GROK-20298:
AccessGrid(u2-access-grid), an input of principals × capabilities with inherited rows, locked capabilities, a remove button and an add picker -
GROK-20298:
ChipsInput(u2-chips-input), toggle chips over items -
GROK-20298: External bindings: the domain seam declares its storage switches —
support.updateWhere/captions/transaction/concurrency/filters/batchandinfo.rowAddress— and every control follows them: nocaptionsprojection unless declared, a table withouttransactionis read-only in u2, Bulk edit needsupdateWhere, the History pane needsaudit, rows are addressed by their id whererowAddressis'id', and thebasicfilter profile drops the operators a warehouse refuses -
GROK-20298:
Access.fieldknows'immutable'(a key column: editable on a draft, read-only on a saved row); an import maps targets by the draft policy -
GROK-20298:
domains.importoffers whatsupport.batchdeclares — upsert underupsert, "All or nothing" underpartial(fixed on otherwise), "Error on duplicate" underskipDuplicates— and sends nothing the storage refuses; withoutvalidatethe preview lists the mapped rows with no verdicts ("Rows are checked when imported"); the report and the toast countmergedrows in place ofupdated(DomainBatchReportLike.merged) -
GROK-20298:
DomainTransactionOpLike.expected— the old-value guard of an update wheresupport.concurrencyis'expected'; the memory backend refuses a moved guard column intransactionwith aversion-conflictnaming it -
Fixed
VirtualGridlaying out one column before it had a width and then, on its first measure, re-flowing those cells onto other items (a click on an icon right after the Icon input's popup opened picked another icon); it renders once it has a width, and a taller grid now renders the rows that came into view -
GROK-20753: The headless test stub loads
string-distancesfrom the js-apidist/emit, the layout the pnpm toolchain produces (the in-placesrc/**/*.jsemit is gone) -
GROK-20753: A live domain source reads the change token only where it answers —
support.versionAND the table-level View grant — and aggregates over what the caller may see otherwise, so a row-grant-only reader's live list no longer dies after three 403s and a platform-written table no longer looks frozen -
GROK-20753: Fixed a virtualized list rendering three rows after an in-place refresh (a bulk edit, a filter, leaving the trash) while the status bar said fifty: a scroller measured mid-swap answers height 0, the window that yields is the overscan alone, and since the height afterwards is the height it had BEFORE, no resize ever fired to put the rest back —
VirtualRowsnow re-renders on the next frame once per zero, so a list that is truly off screen still settles -
GROK-20753: The domain query box left the ribbon for a row of its own at the top of the list page: the shell’s ribbon is one fixed 32px line with
overflow: hidden, which clipped the box to a sliver and the buttons beside it to single letters.DomainApp.filtersis the control; the ribbon keeps New/Save/Discard/Refresh/⋯ and the search box -
GROK-20753: The shared overlay host takes itself down when it empties — one teardown for every surface that uses it (a popup, a dialog, a balloon) instead of a rule each of them has to remember
-
GROK-20753: Import auto-mapping reads a column the way a person does: case, spaces and punctuation are not identity, so "Chemical title" finds the title column and "Project ID" the project_id one, exact matches first; and the list writes a selection bit only when it differs, instead of an event per row on every pass
-
GROK-20753: Fixed the filter box pasting the wrong entity: a value whose candidates are NAMES (a reference column, an
undersubtree) is one slot, not one whitespace token —location_id under Building Asearches for "Building A" and a pick replaces the whole slot, where it used to search for "A", list every row and rewrite the wrong half of the name. Enter now takes the highlighted row only when the user put the highlight there or the row answers what is typed, so a suggestion nobody chose is never substituted silently and the keystroke meant to apply the filter is no longer eaten -
GROK-20753: A completion picked in the filter box is applied in the same action — by arrow key and by mouse alike — instead of waiting for a second Enter to confirm what was just chosen, and a pick that does not make a filter yet (a property with no operator, a
betweenwith one bound) applies nothing but clears the refusal the previous text earned, which used to stand on the status bar over a box that was already right -
GROK-20753: An empty domain list puts its message where the rows would be, centred, and the empty scroller goes with them; a trashed row dates itself in the reader’s own zone (
timestamp, the full moment as its title) instead of printing the wire string -
GROK-20753: A selection survives the collection being read again —
VirtualRows.selectKeys/selectedKeyscarry it by KEY, so the rows a bulk edit just wrote are still the rows the user picked, and a query answering none of them selects none -
GROK-20753: The search box and the filter travel as ONE ribbon item that wraps inside itself: as two, the shell’s own panel (which does not wrap) pushed the ribbon past the view and the whole thing scrolled sideways with a context panel open
-
GROK-20753: The import wizard marks required targets in the option labels ("Title *") as well as on the choice, and asks for "an open table or a file" where it used to say "dataframe"; a dialog takes the shared overlay host down with it when nothing is left in it
-
GROK-20753: The platform's own
/domains/<schema>/<table>mounts a LIVE app, so the canonical address behaves like the one a package mounts; an unquotedundervalue is refused with "under takes a location — pick one from the list" instead of the grammar's "Expected a value" (typed or carried by a?q=link alike), and the app's status bar carries the box's refusal verbatim rather than a placeholder -
GROK-20753: A trash list counts the table by its own name ("1 deleted substance", "5 deleted substances") the way a live list does, and
DomainSourceOptions.sort(a signal,'col,!col') sets the row order — aDomainAppin trash mode reads!updated_on, so what went in last is on top -
GROK-20753: ⛩ L3 pass over the domain controls: a tree node can be given back (click it again, Escape, or the new
allNoderow that stands for the whole table), twisties are the platform caret and a branch that answers with no children keeps none,DomainAppOptions.live/liveMsreach the list source (so "Data changed — Refresh" can actually appear in a shipped app), adatetimestamped at midnight UTC reads as that DATE rather than the evening before, typing in the search or filter box costs ONE history entry per burst instead of one per keystroke, clearing a refused filter releases the box, the status line and the stale mark, anundervalue slot offers the rows of the hierarchy it walks (and its unquoted-value hint no longer points at a dotted path that is refused server-side), and a caption follows the values a save writes back into its row — a new row used to keep showing its uuid -
GROK-20753:
DataTablepolish: numbers right-aligned, a header cell carries its own text as a tooltip, reference cells show a placeholder rather than a uuid until the caption answers, and the column tracks fit ten columns in a pane instead of pushing the last one off it;.u2-listand.u2-data-tableshow a focus ring on the scroller itself (WCAG 2.4.7), which the tree inherits -
GROK-20753: The bulk-edit dialog says what it can do and why: only targets the update endpoint would take are offered (never "all N matching" under a search it cannot carry), what blocks OK is a line above the buttons with OK disabled rather than a balloon across the screen, nothing in it is "required" (a checked field left empty CLEARS the column, which the hint under "Apply to" now says), and the report speaks the table’s words — "Updated 2 substances", never "rows"
-
GROK-20753: A
domains.listselection is a USER’s: the lead a load puts on the first row is no longer mirrored into the collection (a cold list offered "1 selected"), Escape clears it, andDomainAppshows "N selected" beside the count -
GROK-20753: A save refused over a whole row says why — a delete a child’s reference vetoes reported "the changes were refused" with no reason, because the platform editor’s sentence reached no cell and was kept nowhere; it is captured off the editor for the length of the save and read back through
EditState.problem -
GROK-20753: A batch of deletes alone balloons "Substance deleted" / "3 substances deleted" instead of "Substance saved"; a restore says what came back; an empty list says what it is empty OF, centred, with "Clear search" where a search made it empty; a trash row carries the time it was deleted
-
GROK-20753: The import wizard previews what it will send — the first 20 mapped rows under the target captions, every cell the schema refuses flagged — labels its targets the way a form does (asterisk on the required ones), reads "Add new rows" / "Add or update", and ends on a terminal report step (
WizardStep.done: no BACK, no CANCEL, the button reads CLOSE) -
GROK-20753: The ribbon’s search and filter shrink before the view does — their 160px and 240px floors added up to a ~430px one, which pushed the filter under the context panel and scrolled the whole view sideways at 1335px
-
GROK-20753:
domains.routeanswers an address an already-open app took with THAT app's view instead of null — null tells the platform there is no u2 route, so Back off a/domains/<schema>/<table>?trash=1address opened the Dart domain view over the live u2 app (the shell re-parses the URL onpopstatebefore the app's own handler, and the app then no longer owned the current view) -
GROK-20753: The bulk-edit dialog’s include checkbox sits OUTSIDE the input it enables (a disabled u2 input kills pointer events on its own children and disables the controls it holds, so the box that would switch it on was dead), and “Apply to” no longer offers an empty option; a
domains.listselection IS the collection’s — Ctrl/Shift+click writes the frame’s selection bitset, sosource.selection,bulkEdit’s “N selected” andrestoreSelectionall answer what the list shows -
GROK-20753: Added
domains.tree(u2-domain-tree) — aVirtualTreeover a table the schema declares a hierarchy: the roots are the rows with no parent, a branch reads its children when it is opened (plain query rows, no frame or writer per node),expandTowalks the row's ancestors and opens the whole path to it,selectedis the signal a collection's query follows as<fk> under "<id>"(a declared prop, so a spec binds$.<tree>.selected), a table that is not a hierarchy is refused by name, and a path truncated at an ancestor the caller cannot see says so instead of opening nothing in silence -
GROK-20753: Added
domains.dataTable(u2-domain-data-table) — the source's rows as the HTMLDataTable, with the columns derived from the schema the way the grid's decoration derives them (the name column first, system and~service columns out) and the source's writer painting the cells by ROW KEY; a cell reads what it holds rather than what the column stores — a reference as the row it points at (DomainForm.captionOf, cached per id), a datetime through the sharedtimestamp, a float without its packing noise and under the schema's own format — and the column tracks follow the column types, so a wide table reads instead of truncating every column equally; it repaints on the writer's tick instead of swapping its items -
GROK-20753:
DomainSourceOptions.livepolls: one probe per interval (DomainTableLike.probe— the platform's aggregatecount+max(updated_on)in ONE request, under the source's own filter, search anddeletedmode), reloading while the session is clean and settingDomainSource.stalewhile it is not, with the app's status bar reading "Data changed — Refresh" andDomainApp.refresh()behind it; nothing is asked while the tab is hidden, while a batch is being written back, or after the source is disposed; a save clears the mark the way a reload does, a failed probe keeps the last known pair (an outage cannot baseline a change away), and three failures in a row stop the timer -
GROK-20753: The domain filter panel offers "is under" only where the hierarchy it walks exists — on a ref column whose target declares
hierarchy: true, and onidof a hierarchy table (FilterSchema.operatorsnarrows what the builder and the query box offer, leaving the operator registry itself wide);VirtualTreetakes arenderhook for the node label -
GROK-20753: Added
domains.bulkEdit(source)— one value written into many rows through the platform’sPOST …/{table}/update: a dialog of the columns the caller may write, each with an include checkbox (a checked column left empty CLEARS the column, an unchecked one is not in the request at all), the target either the frame’s selection (id in (…), refused by name past the server’s 1000-row cap rather than silently truncated) or everything the list’s filter matches, the unsaved gate in front of it, and one balloon saying how many rows the server touched -
GROK-20753: Added
domains.import(table)— the import wizard the DartDomainImportDialoghad: source (any open frame or readable file throughui.input.table), mapping (aDataTableof source column → target, auto-matched by name and caption, only the columns the caller may write offered), preview (the schema’s own rules over the first 10k rows, plus the batch engine’s text coercion — advisory, the server re-validates) and the server’s per-row report; only the MAPPED columns are posted, under their target names, and the source frame is never touched -
GROK-20753: The ⋯ menu of a
› Trash” on the LIST page too, and entering or leaving it is ONE history entry, so Back leaves the trashDomainAppcarries Import… (insert), Bulk edit… (edit) and Trash (delete); the trash reads “ -
GROK-20753: A frame over deleted rows hands the js-api
DomainFrameEditorthe NARROWED access, so the platform writer refuses to edit and to insert exactly where the controls do; the dg backend also fills the seam’supdateWhere,ancestorsandbatch -
GROK-20753: Added
DataTable(u2-data-table) — a virtualized table of pooledrole="row"rows under a sticky header, columns as CSS grid tracks, and the editor's per-cell verdicts through a platform-freeCellStateLikekeyed by ROW KEY (u2-cell-changed/u2-cell-errorwith the message as the cell's tooltip /u2-cell-readonly); the scroller, the row pool and the selection model it shares withVirtualListmoved intoVirtualRows, which also fixes a Shift+click ranging from an anchor a shortersetItemsleft behind and a recycled row keeping attributes its last renderer wrote -
GROK-20753:
MemoryTablemirrors two more server calls so the headless tests do not lie:updateWhere(non-empty filter and values, only rows the caller may edit, cap 1000 withhasMore, immutable columns refused before anything is written, all-or-nothing) andancestors(root-first and without the row itself, over thehierarchy: trueschema key's self-referencing column, truncated at an ancestor out of sight, cycle-safe, depth 64); a frame over deleted rows hands its writer the NARROWED access, so a trash source refuses to edit and to insert -
GROK-20753:
DomainSourceOptions.live— whether the collection follows the server, as a signal on the source whose poller rides the source's scope -
GROK-20753: Discarding the draft a
DomainApp's create page was opened for returns the app to the list — the Discard button and a gate's DISCARD both left?entity=newon a page whose row was gone ("… was not found.") -
GROK-20753: The seams around a landed batch hold: every writer of the batch stays closed until the re-base has swapped the frame (an edit made in that window is refused, never swapped away), a save that the backend accepted reports success and fires
onSavedeven when the re-read after it fails (the source says "Saved; refresh failed: …" and starts its next load over), deleting the whole loaded page re-bases onto the rows that are left, every session source has its CELLS rebound to the ids the batch assigned (a pristine child of a just-saved parent keeps its state and its reference), a discard, a restore and a secondsaveAllare refused while a batch is in flight, and the unsaved gate is consulted for every search, filter, preset and view close — the clean fast paths that skipped it let a change land during a write-back -
GROK-20753: Draft ids are matched as own properties everywhere the assigned map is read, and only where they are a whole value: a cell, a default or a query literal reading
constructoris text,~new:inside a longer value is text, and only the quoted literal is rewritten -
GROK-20753: Form constraints are evaluated the way a SQL CHECK is (
Filters.toCheckMask): a comparison against an empty column is unknown,and/or/notare Kleene's, and a row is refused only on FALSE —a > 0 and b > 0with a = -1 and b empty is refused, as Postgres refuses it -
GROK-20753: Added
src/dg/domain/styles.ts— every sheet the domain stack paints with in one import, for an app that builds ondomains.*;uuid4in core replacescrypto.randomUUID(secure contexts only, so a stand on plain HTTP threw on the first draft row); an app answers only for paths under its own base at a segment boundary; the search box carries the class its sheet selects; a filter schema the platform refuses no longer leaves the control without an input for good -
GROK-20753: Domain saves are correct at the seams: the loaded window is re-read after a batch that inserted, deleted or moved a row (paging no longer skips or repeats), guards run for every source of the batch and over every pending row the frame holds — the ones a filter hides included — the same persisted row pending in two sources is refused by name before anything is sent, the search box and a same-page
open(?q=)go through the unsaved gate, that gate refuses through the write-back interval, and the memory backend closes its writers for the wholesaveAll; a child collection under a draft parent (fk = "~new:…") asks for nothing until the batch lands, and then its query, its defaults and its current row are about the id the parent was given -
GROK-20753: A bridged molecule editor shows its structure again — the u2 editor skin no longer stretches the Dart input's canvas into a one-row strip; Ctrl+S / Ctrl+Enter save from anywhere in a
DomainApp's view, the ribbon included (where Tab from the last field lands) -
GROK-20753: Every refused save is one balloon and one status-bar line, form or not (
DomainTablereports the source's error,DomainApp.summaryputs it ahead of the change count, and the next edit or discard takes it back); a second press on the preset in force clears the query; a child tab label is a caption ("Order lines");DomainGridcaptions the grid columns from the schema and hides the system ones -
GROK-20753: Domain sources have a real session seam —
src.session(SharedSession; thesessionoption shares one, a spec instance ortable.app()shares its ambient one) is whatsave/discard, the buttons andcmd:savego through, with the one "saved" balloon andonSaved/onDiscarded; aDomainFormpairs through the source (src.guard,src.activate) instead of being passed to the list and the buttons -
GROK-20753:
MemoryDomainBackendis a frame host:frame()answers aMemoryFramewithMemoryEditStateas its writer, soDomainSourcehas one collection path (FrameRows); the memory backend validateschoices/min/max, stampsauthor_id, orders nulls as Postgres does and carries~can_shareas null off row mode — the cases both backends share are listed indocs/domain-backend-contract -
GROK-20753:
DomainSourcetakesdraft: true(andDomainTable.newRow()becamedraft());Rowsholds the~state/service-column/draft-key conventions;Access.row()reads any~can_<name>column;EditorEditState.validityis lazy;SplitterandappView({own})own the controls and sources handed to them; the core and dg barrels export the public surface only -
GROK-20753: Added the schema-driven filter model and string grammar in core (
src/core/filter/), kept in sync with the Dart smart-filter parser by a shared corpus -
GROK-20753: Added
FilterBuilder(simple / horizontal / advanced with drag-and-drop, templates) andFilterQueryInput(grammar-driven completion), registered asu2-filter-builder/u2-filter-query-input -
GROK-20753: Added the platform filter layer
src/dg/filter/—FilterSchemas.forDataFrame/forDomainTable/forEntityType,toBitSet, operator sets fromfilterOperatorsproviders viaregisterSet -
GROK-20753: Added
DateInput.relative(spans such as-1w,now) backed bysrc/core/span.ts -
GROK-20753: Unified the suggestion-popup skin (
u2-suggest-*ininputs.css) and the editor resolver shared by forms and filter rows -
GROK-20849: DataFrame masks are
DG.U2.BitArray;ColumnEvaluatorreplacesMasks; type names use theTYPE/COLUMN_TYPE/SEMTYPEconstants -
GROK-20753: Package is npm-ready (0.1.0,
type: module,.npmignore) but not published yet; in-repo consumers reference it by relative path -
Automation identity (core/docs/features/ui2/AUTOMATION): an explicit
nameon any control stampsdata-u2-name(an input's label fallback stays a form key and never stamps);Inputstampsdata-u2-parton label/editor/options/error and answers the same elements fromgetWidgetStatus().parts;Overlay.showstampsdata-u2-owneron portaled popups from the anchor's nearest named ancestor, so hierarchical selectors survive the portal;Dialogtakes{name},appViewnames its content root after the view;Form.addwarns once per kind on an input with neither name nor label -
GROK-20753: The control inspector no longer lists a property whose value cannot be read — a control built by hand rather than through
registry.creategets the registry's metadata but reads nothing for a prop backed by a private field or by an unpassed constructor option, and a row that can neither show a value nor take one reads as broken; the no-control empty state now says the element is not a u2 component instead of denying it is a control -
GROK-20753:
Wizardmarks a step completed only while it is behind the current one — going BACK no longer leaves a green check on the step ahead of you (a visited step stays reachable) -
GROK-20753: The horizontal
RangeSliderkeeps a 60 px floor, so a narrow host cannot collapse it onto its own two handles -
GROK-20753:
TreeNodegainedtooltip— everyVirtualTreerow now carries atitle(the node's tooltip, or its label), so a label the pane truncates still says its full name on hover -
GROK-20753: The control inspector now resolves controls inside a caller-given subtree (
controlAt) instead of walking to the document root, renders an explicit empty state (noControl) for a click that hit no control, and says so where a control has no registry metadata rather than rendering an empty grid; theVirtualListfocus ring moved from the scroller to the focused row and is:focus-visibleonly, so a mouse click no longer rings a full-height list -
GROK-20753:
appViewgainedpath— the view's URL path (string or signal), written verbatim toview.path; a signal is mirrored on every change so in-app navigation round-trips to the address bar, and the mirror is disposed with the content -
GROK-20753: Added
FunctionInput(u2-function-input) — a one-row picker over a namespace-qualified function name (the newFunctionNamesemantic type) that opens the FunctionsBrowser in an anchored popup; a row click, Enter or double-click commits; registered in theEditorsregistry forsemType: 'FunctionName'properties -
GROK-20753: Added
Section(u2-section) — a collapsible titled section with a hover chevron left of the caption;FuncCallFormrenders every parameter category as one -
GROK-20753: Form gained
layout: 'auto' | 'normal' | 'wide' | 'tall'(replacing thecondensed/widebooleans; dg-layercondensed: truemaps to'tall') — auto picks wide or tall by fit (--dg-form-min-editor-widththreshold, 10px hysteresis, ResizeObserver-driven; dialog-hosted and nested forms stay plain caption-left) — plus live-bindablecaptionAlignand platform-parity styling (13px bold headers, grey right-aligned captions, 8px pitch) -
GROK-20753: MultiChoiceInput gained
showSummaryCheckbox— a tri-state "N of M" summary row flush with the item checkboxes that toggles all/none and collapses the list; func-form multi-choice params render it -
GROK-20753: Fixed the NumberInput stepper clamping an out-of-range typed value to the bound — it now steps from the typed value toward the range while the validation error stands (55 with max 10 steps to 54, not 10)
-
GROK-20753: Added FunctionsBrowser — searchable, tag/role-filterable virtualized function list
-
GROK-20753:
FuncCallFormnow honors the annotation rules —visible:/enabled:expressions (evaluated through the platform's sync scriptSync seam per keystroke, previous state kept on a script failure; an inactive field is exempt from validation and the gate while its value survives in the call),validator:regex literals and expressions (Dart-verbatim verdict mapping), namedvalidators:through the newFuncCall.evalParamValidators(async verdicts with stale-drop; resolution failures land inline asCouldn't validate (validator '…' is misconfigured)with the underlying message on the verdict's tooltip and one console warn, instead of Dart's form-build throw),categoryGroupsgrouped headings with level classes (l1 visibly outranks l2), unlisted categories appended instead of dropped, malformed JSON falling back to flat, and header auto-hide following expression-driven hiding; addedmissingRequiredandinvalidFields— the visibility-aware Run-gate members; a field disabled by itsenabled:expression says why on hover (Enabled when: …); inline error verdicts clamp to three lines with the full text on their tooltip;.u2-input-root[hidden]now actually hides (the W3showTableSelectors: falsegap); the form never displays a literaldefaultValuethe call doesn't hold — display, expressions and the executed call always agree (W1's display-only seed removed;options['default']commits stay the one default route, matching the Dart form) -
GROK-20753:
FuncCallFormcategory headers now also follow inputs hidden directly by the consumer (input.root.hidden = true) — one MutationObserver on the field roots'hiddenattribute re-runs the header auto-hide, however the hide happened -
GROK-20753: Added universal binding — every declared prop bindable (live + re-render tiers), HTML nodes fully live, input chrome live, panel chips + unified Bindings
-
GROK-20753: added
CardandStatCard(u2-card,u2-stat-card) — a bordered surface with optional header (title, subtitle, icon, actions), media band, body and footer, plusclickableandselectablevariants over an adoptedselectedsignal; the KPI card carries a formatted signal-aware value, an optional up/down delta (invertible for error rates) and skeleton/error states straight off anAsyncValuesource -
GROK-20753: added
Tour— a guided walkthrough over UI that already exists: one click-through fixed layer whose SVG mask punches the spotlight holes, a popup anchored by floating-ui'sautoUpdate(nothing polls), steps as plain data ({target, content, position, extra, advanceOn}) targeting spec names throughdata-u2-name, NEXT/SKIP/DONE with a step counter, Esc/Enter/Tab keyboard, and unrenderable targets skipped forward with a single warning -
GROK-20753: added
MessageInput— a contenteditable compose box whose value serializes to Datagrok markup:@opens a caret-anchored suggestion popup, a pick inserts an atomic non-editable chip that backspace deletes whole, drafts persist, Enter/Ctrl+Enter send modes;u2/dg'smessageInput/userMentionProvidersupply the users out ofgrok.dapi.users, render rows and chips through the object handler, and emit the platform's own<span>#{x.<id>."<name>"}</span>token -
GROK-20783: Appearance props — shared per-node CSS prop group (13 props, bindable, injected at registration, HTML nodes included, viewers excluded), designer Appearance pane with count badge and clear-to-delete, manifest top-level
appearanceblock -
GROK-20753:
ColumnsInput's multi-column popup now hosts the REAL platform ColumnsGrid in checkbox mode (DG.ColumnGrid.columnSelector— its All/None links, checked count and search ride in) with dialog semantics: checks buffer in the grid until OK commits one write through the existing value path; Cancel, Esc (capture-phase, past the Dart search box's swallow) and an outside click write nothing; the u2 check-list stays the feature-absent/headless backend -
GROK-20753:
tableInputnow answers aTableInput(extendsChoiceInput) carrying the platform table input's action icons — 'Open file' always, 'Add file from Files' and 'Query database' where the platform dialogs answer (feature-detected on thegrok_UI_PickTableFrom*doors) — with a per-instanceactionsget/set API (InputAction {id, icon, tooltip, run}; anactions?:construction option replaces the defaults wholesale); a picked frame joins the workspace and becomes the value as a user edit (divergence #16) -
GROK-20753: added
ColumnInput(columnInput(..., {grid: true})) — the single-column combo whose dropdown is the REAL platform ColumnsGrid (DG.ColumnGrid.popupin u2's Overlay: search visible from open, current column highlighted, arrows/Enter keyboard, Esc closes without a write) with a fully headless native backend (Overlay + VirtualList +columnRenderer); the control follows its frame itself (drop prunes, rename remaps), closed-combo arrows step through the passing columns,changeTableclears the value;FuncCallForm's column route now builds it (TableBindingretargets throughchangeTable, call-write semantics unchanged) -
GROK-20753: a table switch that wipes a non-empty
column_listselection now says so on the field — a transientSelection cleared — columns belonged to 'X'note (ParamState.notice), dismissed by the next interaction with the field; the[]write itself is unchanged (Dart parity) -
GROK-20753: auto-picked columns and the auto-filled table read as guesses — a dimmed
autobadge on the field that survives binding re-defaults and disappears for good on the user's first own edit;column_listfields (never auto-picked) are never marked -
GROK-20753: the table routes' empty states say why — a required column field over a table with no passing columns names the cause (
No categorical columns in 'X';Inputgainedrevalidate()), dependent required errors stay quiet while the table param is null,tableInputshows aNo open tables — open or import oneplaceholder (ChoiceInputgainedemptyText), and aColumnsInputwithout a table reads visibly inert (aria-disabled,Select a table first) until one is picked -
GROK-20753: added
notify— the toast service (notify.info/warning/error, top-right stack): info auto-hides with a hover-paused countdown, warnings and errors stay until closed;oneTimeKey(localStorage),singleKeydedupe, copy/close on hover, click-to-dismiss; string content always renders as text, never as markup -
GROK-20753: added
RangeSlider— a two-handle range selector (u2-range-slider) with horizontal and vertical (bottom-to-top) orientations: relative handle drag (no teleport on grab), band pan preserving the span with the whole root height as its hit area, a press outside the selection jumps the nearer handle, per-handle keyboard (arrows/Page/Home/End) and ARIA slider semantics,stepsnapping (pans included),minRange, two-waylo/hisignals bindable from specs -
GROK-20753: slider tooltips/
aria-valuetextdefault to at most two decimals (SliderInputandRangeSlider); an explicitformatoverrides -
GROK-20753: gallery gained a context panel — the first control on each page is selected on load, clicking any control shows its registry-declared properties in a
PropertyGridon the right, and writable ones edit the live control (built on the newControl.forElementand the accessor property tier) -
GROK-20753: live properties across the controls —
Inputgainedlabel/tooltipTextaccessors and anenabledconstruction option (enabledis now a declared prop of every input),TextInput/TextAreagainedplaceholder,ChoiceInput/MultiChoiceInputgaineditems(routes throughsetItems),RangeSlider'smin/max/step/minRangebecame writable, andu2-tabsdeclaresactiveTab(bindable, two-way; a literal in a spec selects the tab) -
GROK-20753:
FuncCallFormgained the table routes —dataframe/column/column_listparams render a table picker, a filtered column choice and aColumnsInput, with the Dart form's table auto-fill and default-column pick written into the call, dependent rebinding + re-defaulting on the param stream (external writes included),ColumnFilter.fromProp-parity filtering (type/semType/maxCategories via the feature-detectedgrok_Property_Getdoor), and objects-into-the-call / names-in-the-inputs converters; newFuncFormOptions:skipTableAutoFill,showTableSelectors -
GROK-20753:
tableInputaccepts input options (back-compat widening);ColumnsInput.changeTableaccepts a null table and tolerates the empty no-table state -
GROK-20753: added
SuggestInput— a free-text input with an async suggestion popup over the typed text (theu2-typeaheadskin reused; arrows/Enter/Esc/Tab keyboard map, Enter with the popup open contained from the hosting dialog; Esc with the popup closed reverts a type-over to the value at focus, the last pick, or the last external write) -
GROK-20753:
FuncCallFormgained the dynamic routes — a presentchoices/suggestionsoption evaluates through the call'sevalParamChoices/evalParamSuggestions(dependency-driven refresh with abort/stale-drop,propagateChoice: 'all'lookup writes,descriptionstooltips, loading/error-with-Retry state on the field); computedoptions['default']commands are evaluated and written into the call (R6), withskipDefaultInitnow live to suppress the writes -
GROK-20753: added
FuncCallForm.settled— resolves when the initial async population of the current source has landed (each choices source ready-or-error, each computed default written-or-failed); re-arms onsourcerebind, never rejects, never hangs on a dispose or rebind mid-flight -
GROK-20753: added
funcForm/FuncCallForm— a FuncCall parameter form over the propertyForm machinery (scalar routing, captions/units/tooltips, flat categories, validation, two-way echo-suppressed FuncCall binding); openedkindOfandObjectForm.coerce/samefor reuse -
GROK-20753:
PropertyLikeis gone — the canonicalIProperty/IPropertyMetafrom datagrok-api replace it across the library (propertyForm,inputForProperty,SpecPropMeta, sources, designer) -
GROK-20753: removed
WidgetLike(a widget's introspection surface isComponent's own);BindProp/BindSourceare now the core's canonical shapes re-exported by the spec layer (BindPropLike/BindSourceLikedeleted);ComponentMetaextends the core'sComponentMetaBase(wasComponentMetaLike) -
GROK-20753: moved the platform-free core (signals,
Scope,Component/Control,dfBindings) into datagrok-api asDG.U2/datagrok-api/u2core; the u2 core files became re-export shims, anddatagrok-apibecame a peerDependency (>=1.28.0) -
GROK-20753: removed
adopt,hostandU2Widget— everyDG.Widgetis now a u2Controlby inheritance -
GROK-20753: renamed
Component.metatocomponentMeta(it would shadowViewer.meta) -
IconInput: added
IconInput— a Font Awesome picker: a button-like control showing the glyph and name, and an anchored popup with a search box over a virtualized grid of every icon the platform ships (1853 + 456 brands, generated intoicon-names.tsbynpm run icons); a pick commits and closes, Esc / outside click cancel, Backspace clears -
VirtualGrid: added
VirtualGrid— the fixed-cell, two-dimensional sibling ofVirtualList: columns follow the width, arrows/Page/Home/End move by cell, row and viewport, click/Enter/Space activate,keyOfkeeps the selection acrosssetItems -
Icons:
icon()renders a brand name in thefabface on its own;IconVariantgainedbrands -
Spec:
u2-buttongained aniconprop; registeredu2-icon(name / variant / size) andu2-icon-input; theiconprops ofu2-button,u2-icon,u2-icon-inputand the tab/accordion pane child prop carryinputType: 'Icon', whichpropertyFormroutes toIconInput— so the designer's context panel offers the picker wherever a prop is an icon -
TabStrip: the platform's
ui.tabControllook is the default — accent text, a 2px accent underline on the selected tab, no stripe chrome; the IDE document-tab skin survives asvariant: 'document' -
TabStrip: added
orientation: 'vertical'— the header is a column on the left, the selected tab shows a 4px accent bar, ↑/↓ move focus, and overflow is measured on the vertical axis -
TabStrip: added
TabOptions.icon(a Font Awesome name or an element) rendered before the label and in the overflow menu; an empty label with an icon makes an icon-only tab, whose headertitlecarriesTabOptions.tooltip -
Accordion: restyled to the platform's
ui.accordion— 28px rows indented past an absolutely placed chevron that turns from right to down, normal-weight titles, no borders between panes -
Accordion:
addPane(title, content, expanded, icon)takes a Font Awesome name or an element;AccordionPane.iconexposes it -
Spec:
u2-tabsandu2-accordionchildren accept aniconchild prop;u2-tabsgainedorientationandvariantchoice props -
Components:
src/components/is split by role —inputs/,forms/,containers/,actions/,navigation/,collections/,display/— the same vocabulary as the registry categories;src/dg/likewise intoinputs/,forms/,entities/,shell/besidedesigner/. The public surface (src/index.ts,src/dg/index.ts) and the flatcss/paths are unchanged -
Designer: split the view into its layers behind the same surface —
view.tskeeps the canvas and the wiring,selection.tsthe selection model and hit-testing,drag.tsthe mouse-drag layer,actions.tsthe editing verbs,keys.tsthe keyboard map,ribbon.tsthe ribbon and its dialogs; the object handler intohandler.ts,prop-model.ts(the property model) andprop-editors.ts. Names, signatures and import paths are unchanged -
Tests: introduced one module of getter-backed platform doubles (
tests/platform-doubles.mjs) for the headless suite — every fakeProperty,Func,FileInfo,DataFrameor entity row keeps its state ondartbehind prototype getters, as the real one does, and the module pins it; the loader hooks serve these same classes -
E2E: split the designer checks into per-feature files under
e2e/checks/, each opening on its own fixture, ids numbered per file;npm run e2e:local -- --only <feature>runs one -
Sources: extracted what the five sources shared — the async pair's status projection and
state/errorsteps (AsyncSteps), the start()-time bind resolution (subBind) and the backend guard (requireBackend) -
Entity ref: fixed the binding picker offering
dart— the raw Dart handle a platform entity keeps as its one own field — as a leaf of everyu2-entity-ref -
Designer: the spec a host hands over is a constant, not the designer's document.
SpecDesigner.open()— the one funnel the constructor, New form, the samples, the gallery and the Open dialog all go through — copies an object input once, so the editor's in-place patching (DD10) can no longer reach it. A host that passes a module-level literal, asu2DesignerAppdoes withDESIGNER_SPEC, was getting it progressively edited: close the designer, reopen the app, and the next one came up on the previous session's work -
Build:
npm run buildnow fails on a stalemanifest.json(npm run manifest:check) and on anyvar(--dg-…)naming a token no sheet declares (npm run lint:tokens, reported asfile:line). The manifest stays checked in — the gallery fetches it, the recipes point at it, and it ships in the npm tarball — so the fix for its drift is a freshness gate, not gitignoring it; the token lint exists becausevar(--dg-text-light)shipped as a silently inert rule that nothing in the toolchain could see -
Designer: a file or a query dragged out of Browse becomes a data source. Dropped anywhere over the designer it lands on the tray — the same Delphi gesture the palette's non-visual drag already made — as one
u2-func-source: a file over the platform's ownOpenFilewith itsfullPath(a path reopens on any client, where an open table's name does not), a query or function under the name a spec can call. A multi-selection drops as many sources in one gesture and one undo step, and the first of them is selected -
Designer: a dropped file is read once on arrival, through the same Refresh path the tray chip offers, and the balloon says what came of it — the drop is the explicit act DD9 permits, and a source with no visible pulse reads as broken. Nothing else a drop carries is run: a hand-written query is inserted and left for Refresh, exactly as it is when it is picked by hand
-
Designer: a dropped file nothing can open as a table is refused BY NAME, with the extension in the message — the drag itself is accepted so that the refusal has somewhere to appear. Refusing at
acceptDragis what makes a drop fall through in silence, which is the worst possible answer to "why did nothing happen". What counts as tabular is the text formats,d42, and every extension a registeredfile-handlerdeclares — read per drag, so a package staged later in the session counts -
Designer: a tabs or an accordion dropped from the palette arrives with one pane —
Tab 1,Pane 1— instead of an empty box with a 'Drop here' hint and no tab strip at all, which showed the user nothing of what they had just made and gave them no header to click. A splitter seeds two panels: one has no sash to drag. Registrations declare them asComponentMeta.defaultChildren(plain JSON, in the manifest), deep-cloned and uniquely named per insert, and they ride the container's own patch — one undo takes the whole thing back, and the first 'Add tab' counts the seeded pane and producesTab 2 -
Designer: the binding picker never opens onto silence. A source that has not run knows no columns, so
currentRowexpanded to nothing at all — no message, no spinner, nothing to tell a data source that is empty from one that is broken ("I genuinely thought my data source was broken"). Any walkable step that enumerates empty now carries one explanatory child, and it is not pickable -
Func source and entity ref: an explicit Refresh runs the source whatever the design-time policy says. The engine used to exist only under
live, so on everything else the tray's Refresh — the one run DD9 does allow, because the user asked for it — reached a source that had nothing to run and did nothing at all, silently. What a run brings back outranks the preview it replaces -
AsyncValue.refresh()starts the run now instead of behind the debounce, and answers when it lands. The debounce is there to coalesce dependency changes; sitting on the user's own ask is what made a Refresh look ignored -
Designer: a Refresh says what came of it —
orders: ready · 4 rows, or the error the run ended with. A source whose refresh answers nothing (a pager's) is watched until it stops loading, so the balloon names the result and not the wait -
Designer: the context panel of a data source shows its pulse — state, how much it holds, the message when it failed, and, for the sources that have no
designDataat all, that they are always live. It is the one live section of the panel: a source runs on its own clock, and until now the canvas showed the same empty fields whether it was loading, was never run, or had failed. The tray chip follows the same status in its class and its hover text -
DataFrame bindings: a
currentRowIdxpast the last row reads everycurrentRow.<column>as empty, in both directions and from any state. The fields used to keep the last row that DID exist, sitting there as if it were data — and the frame is no longer moved to an index it cannot hold, which threwRow out of boundsand took the field refresh down with it -
Func source: the
samplepreview is built once and kept. It was rebuilt on every read of a dependency-free computed, so every binding under it pointed at a frame nothing else referenced -
Designer: the Bindings and Events sections fold. One row per bindable prop is a lot of panel for a node that binds nothing, and it pushed Events past the bottom of the platform's property pane — which scrolls with no scrollbar and no fold shadow, so the section simply was not there. Bindings opens when there is wiring to see and folds when every row is an empty invitation; Events, the section it was hiding, stays open
-
Designer: an Events row says it picks a FUNCTION — the field's own hint and the
…beside it, which the dialog it opens has said all along -
Designer: the binding picker's search reveals what it matched. A match used to arrive inside branches the picker then left closed — three levels to open by hand, every keystroke — and clearing the box collapsed every one of them again, because the rows were re-keyed per query and the tree's expansion is keyed by row. A row id is now the node's own place in the tree: the branches down to a match are opened for it, a match keeps its whole subtree (it is what was asked for, so the filter stops there), and clearing the query keeps open what the search opened
-
Designer: both pickers say when nothing matched — a blank white box read as a dialog still loading, twice, in two separate acceptance passes
-
Designer: the binding picker groups its roots under the heading that says where they came from — App data (the app that opened the designer), Data sources (the tray) and Form controls — so a brand-new empty form no longer offers two names out of nowhere with nothing to explain them
-
Designer: the function picker draws its own rows — icon, caption, name and description on one line — instead of the platform's entity markup, which drew the icon on top of the caption and let the descenders fall outside the row. The description is on the row because the search matches it:
recordused to return two functions with the word nowhere in sight -
Designer: the function picker offers only what a spec can call.
Func.findalso answers registrations keyed by a path (/molecule.json), which nocmd:can name -
Designer:
bindPickerButtontakes the tooltip its row needs — an Events row opens the function picker, and said "Pick a binding" while doing it -
Func source: a design-time auto-run is limited to VISUAL queries — the class the row cap actually covers and the only one that is known to read.
DG.DataQueryalso covers hand-written SQL, and GrokConnect executes what it is given, DML and DDL included, so opening someone's shared spec used to run whatever that query does with no user gesture at all; a hand-written query now waits for the tray's Refresh exactly as a script or a function does. The backends seam grew thetable-querykind to say the difference (DD9/Q5/Q9 amended by the P4 review) -
Source backends: the design-time row cap is serialized per query entity.
TableQuery.limitlives on the SHARED query, and the platform cannot cancel a run, so two overlapping design-time runs interleaved: the first restored the limit the second had just set, and the query was left capped at 100 rows for the rest of the session — including when the user opened it themselves. Only the first run captures the previous limit now, and only the last one puts it back -
Entity source: a filter that comes from a BOUND value is sanitized before it reaches the server's smart-filter grammar — that value is whatever the user typed into an input. The literal
filterprop stays raw: the author of the spec writes it, and writes it in the grammar -
Spec: a tray component is owned by the instance, never by whatever scope is ambient when it is built — a patch committed while the context panel was constructing its form handed a live data source to the panel's scope, and the next panel disposal killed a source the form on screen was still bound to
-
Spec: a component is started once per change, however many ways it was reached. A source whose param binds to another source is a dependent that is itself a component: the Design/Run toggle re-mounted it and then re-rendered it again as a dependent, so
start()— which is not idempotent — ran twice, registering its effects twice and doubling its listing and count requests for the session -
Func source and entity ref: the failure is a binding step —
$.orders.erroris the message the run or the lookup ended with, so a form can say WHY it is empty instead of looking exactly like one whose query returned nothing -
Spec: the default-binding walk is depth-bounded like the picker's own — a source whose
bindStep('')answers itself no longer spins in the renderer -
Designer: the tray's entity-collection dialog owns its inputs through the tray's scope, like the function wizard beside it — closing it any other way than OK or Cancel used to leak them
-
Func source: a function's outputs are enumerated field by field instead of by copying the platform property — a
DG.Propertykeeps everything on prototype getters, so the copy was an empty object and every output showed as a nameless, untyped row in the binding picker, unpickable and unwalkable. The fake runner the headless suite uses hands out plain objects, which is what hid it until the designer was driven against a real package function -
Designer: the whole walk is covered end to end — a new e2e check builds a working master-detail form from
New formwith zero hand-written JSON (the tray wizard for the data, the palette for the controls, the binding picker for the paths, the function picker for the button), round-trips it through its own dump, and then proves theschemapolicy empties the preview while running nothing: a spy overgrok.functions.onBeforeRunActionand one over the page's requests, not a look at the canvas -
Designer: the stand lane gained the two checks canned data cannot answer — an entity source listing the users that server actually holds, and the design-time 100-row cap surviving a real query execution (the check creates the visual query it needs and removes it again)
-
Designer: the function picker — one dialog over every function the client registry knows, searched by name, caption and description (
Func.find's own name is an exact match, so the search is one enumeration and a local filter), rows drawn by the platform's own entity handlers, and the picked function's inputs as an arguments form: a typed editor per param, or the binding picker beside it for the ones that follow a value. It opens from the Events section of the context panel (the…beside the hand-editable command field) and from the tray's source wizard -
Designer: an event picked this way is written as one patch — the plain
cmd:namestring while there is nothing to pass, the structured{cmd, args}form otherwise, with a literal that looks like a path escaped once ($$.) and a bound argument left as its path -
Designer: a source that names a function gains a Parameters section in the context panel — one typed editor per input the function declares, every edit coalescing into the one
paramsprop (a whole pass is one undo step), and a…per row writing the dottedparams.<name>sub-bind through the same funnel a typed path takes; a bound param shows the path it follows, read-only, and is cleared in the Bindings section below -
Designer: the tray gains a
+menu — the tables already open in the workspace (picking one inserts au2-table-sourcenamed after the table, with the by-name caveat said out loud), a function or query through the picker, an entity collection through a small dialog, and a state variable. Each ends in exactly oneadd-component, seeded off the tag's defaults; a picked function's literal arguments becomeparamsand its bound ones the dotted keys, anddesignDatais deliberately left unseeded — the source computes the policy from the function's kind -
Spec: a re-mounted component is started only once everything the same change re-renders has been rendered again — the two phases construction already had, on the way back. A dependent's re-render promotes to the container that adopts it, which rebuilds every input under it; a source started before that held the signal of an input nothing shows any more, so a param bound to an input stopped re-running the source after a Design/Run toggle or a prop edit
-
Added the four platform-backed data sources (src/sources/):
u2-func-sourceruns a function, query or script and exposes its outputs — a DataFrame output walks the whole frame surface, and a single-table source answers those steps directly, so$.orders.currentRow.nameis the master-detail bind;u2-entity-sourcepages agrok.dapi.*collection intoitems/names/state/totalwithrefresh/loadMore;u2-table-sourcefollows an open workspace table by name;u2-entity-reflooks one entity up by id and answers its properties as binding leaves. All four registervisual: falseunder the palette's Data pane -
Func source: a param takes a path of its own through the sub-bindable
paramsprop ("bind": {"params.days": "$.daysInput"}), resolved once the whole form exists, and the source cancels and re-runs — debounced — whenever a bound param changes;refreshis a component function, socmd:orders.refreshwires a button to it -
Design-time policies (DD9):
designDataislive(real runs, capped at 100 rows),schema(never runs, still enumerates the declared outputs) orsample(built from thesampleprop stored with the spec, or the tag'sdesignPreview, with rows going throughDG.DataFrame.fromObjects); a query defaults to live and everything else to schema, and a function that is not a query is never auto-run at design time however live the policy — the tray's Refresh is its only run -
Added src/dg/shell/source-backends.ts: fills the sources' platform seam at dg import —
DG.Funclookup andprepare(params).call()(the design-time cap throughTableQuery.limit, held across the whole call because the platform reads it as the query EXECUTES, and serialized per query entity so overlapping runs cannot leave it set; a plain-SQL query or an arbitrary function has no FuncCall-level cap to honor, and the platform offers no cancellation either — a superseded run finishes and its answer is dropped), a curatedgrok.dapi.*collection map,grok.shellplus onTableAdded/Removed for the workspace, andDG.DataFrame.fromObjectsfor samples -
Choice and multi-choice inputs:
itemsis bindable, so a data source feeds a picker directly ("bind": {"items": "$.people.names"}) and the list follows the signal instead of being copied once -
Inputs: a bound source holding nothing yet — a data source before its first run — leaves the field empty instead of showing the literal "undefined"
-
Designer: the binding picker — a
…button beside every path field opens a dialog holding the tree of everything the form can bind to (context data, the tray, then the named controls, each expanding throughbindProps()), with one search box over the labels; a leaf answers its assembled path (identifier steps dotted, anything else bracketed and escaped), a walkable step is a group that commits nothing on its own, and the commit takes the same funnel a typed path takes —canApply, thenset-bind, or a warning naming the loop when the path would close a binding cycle. The tree is lazy by contract: enumerating a frame's columns allocates no column signal -
Designer: the Bindings section renders one row per bindable prop, bound or not (plus anything the node binds beyond them — a dotted sub-bind key, a prop of a tag the registry no longer knows), so a binding is ADDED there instead of only corrected; the path field stays hand-editable, and a bound prop stays read-only in Properties
-
Added
bindTree(instance)/filterBindTree(nodes, query)(src/dg/designer/bind-model.ts): the picker's model, pure and platform-free — lazy children thunks,walkabledriving expandability,writableshown as ⇄, and type plus semType in the leaf label -
Spec: the envelope gains the non-visual tray —
components: SpecNode[], validated byparseSpecand emitted bydump()BEFOREroot(what the form binds to is declared first, and an emptied tray goes with its last entry). Construction is two-phase: every component is built first, so a visual bind resolves against it, andstart()ed after the whole form exists, which is where a source resolves the params bound to inputs. A component takes no children (warned and dropped), warns once when it has no name to be bound to, and maps the sameu2-spec-errorplaceholder when it cannot be built — counted, selectable and undoable like any other node;nodes()/node(name)widen toComponent | HTMLElement -
Spec:
SpecInstancegainsdesignTime(constructor option) andsetDesignTime(x)— the designer's Design/Run toggle rebuilds every component for the mode and renders everything bound to one again, without touching the edit history (the mode is view state, not document state);rerenderAll(nodes)andrenderRootOf(node)are the one authority on render-root promotion, which the editor now calls instead of computing its own -
Registry:
visual: false+createComponent(props, env)register a non-visual component (createis optional now, and register-time validation says which factory a tag needs);ComponentEnvcarriesdesignTime, the node's raw binds and aresolvedeferred tostart();designPreviewjoins the metadata; the manifest stripscreateComponentand carriesvisual/designPreview -
SpecEditor:
add-component/remove-component(structural, mirrored inverses, no move — chip order is cosmetic);canApplyrefuses a data source in the form and a control on the tray while letting an unknown tag land in either (containment); names are unique across both trees; and any patch on a component extends the re-render to every rendered node whose bind or event references it — otherwise a rebuilt component leaves its consumers wired to the corpse.referencesOf(spec, name)(in src/spec/path.ts, besidefindBindingCycle) is the read-only sibling ofrenameRefs -
Added
u2-state(src/sources/state.ts): the value a form owns — one writable signal several controls share, a type-checkedinitialit starts at and aclearfunction it returns to;$.draftbinds it two ways through the default step -
Designer: the components tray — a chip strip along the bottom edge in design mode, one chip per component carrying its name, tag tooltip, broken and selected styling, and
data-u2-name(a component has no canvas element, so the chip is its automation handle); a click selects through the ordinary pipeline, a right-click opens the same action menu plus 'Refresh' where the component declares it, and the structure tree lists the form first and the tray after it. Palette items registeredvisual: falsegroup under a 'Data' pane, and dragging one anywhere over the designer highlights the tray and lands there -
Added the binding path grammar (src/spec/path.ts):
parsePathover$.firstplus.ident/['quoted string']steps (with\'and\\escapes; anything malformed answers null rather than throwing),segmentsToPathas its exact inverse for the picker, andfindBindingCycle(spec)— a DFS over named nodes' and components' bind first segments that answers the loop, closed, or null -
Spec: full binding resolution —
SpecInstance.resolveBinding(path)walks components → named visual nodes → context data, continues through anyBindSource, and takes the source's default binding (bindStep('')) where the path runs out; named visual nodes ARE bind sources (everyComponentanswersbindStep/bindPropsgenerated off its registry meta,''= itsvaluesignal), so$.doseInput.valuebinds one control to another; node-to-node binds resolve in document order and say so when they don't -
Spec: a two-way bind to a read-only leaf (a computed) keeps the one-way bridge and warns once instead of silently doing nothing (
isWritableSignalin core/signals.ts is the gate — a prototype-descriptor check, so the vendoredComputedclassifies read-only without engine knowledge); a hand-written binding cycle renders its members broken with the loop named -
Spec:
cmd:tiers (DD6) —cmd:#nameis reserved for code-behind and warns, a name containing:calls the context's newcallFunctionhook, a dottedcmd:orders.refreshapplies that named component'sgetFunctions()entry, and a bare name is a context command falling back tocallFunction; events widen toSpecEventEntry = string | {cmd, args}, whose args resolve when the event fires ($.paths peeked untracked,$$.unescaped once, everything else literal) and deep-copy throughdump() -
SpecContext: values that already satisfy
isBindSourcepass through un-wrapped,bindProps()enumerates the data keys for the binding picker (type inferred from the current value,writablefrom the signal), andcallFunctionis the platform-function seam —platformContext()in src/dg/shell/spec-context.ts fills it withgrok.functions.callplus one error balloon at that boundary -
SpecEditor:
set-bindrefuses a path that does not parse, accepts a dotted key (params.days) only where the head prop declares the newSpecPropMeta.subBindable, and refuses a patch that would close a binding cycle with the loop in the message (an unresolvable path stays contained, as before);set-eventvalidates both entry forms and requires args to be a plain record; a rename now also rewrites structured entries — the component-tiercmdand$.old…argument paths — and walksspec.components -
Added AsyncValue
(src/core/async-value.ts): the single-value twin of AsyncSource — idle/loading/ready/error states, one abortable run at a time with stale responses dropped, dep-driven re-runs debounced (deps thunk on an internal scope), refresh()/dispose(), ambient scope adoption; asyncValue factory -
Added dfBindings (src/sources/df-bindings.ts): the BindSource over a repointing DataFrame signal — df/currentRowIdx/currentRow.
/selection/filter/rowCount/columns steps, lazy cached two-way column signals with comparison echo suppression, live-object selection/filter signals that re-fire on version bumps without changing identity, repoint resubscribes and refreshes everything, bindProps enumerates without allocating a signal
-
Added src/sources/backends.ts: the platform seam type skeleton for the v1 data sources (FuncRunnerLike, WorkspaceLike, SourceBackends + the empty backends const dg fills at import)
-
Designer: event and binding fields commit on blur/Enter, not per keystroke — typing
cmd:submitno longer trips thecmd:guard on every prefix and wipes the text mid-word; a refused final value warns with the complete reason and keeps the typed text for correction (the balloon used to truncate at"cmd:because the platform's HTML sanitizer ate the<name>placeholder together with everything after it — the message is angle-bracket-free now); clearing an event or binding by emptying the field still works and now confirms itself ('click: command removed') -
Designer: a drop on the canvas over no rendered node — the padding around and below a small form — appends into the root container instead of silently doing nothing, and the empty-container affordance is taller (64px), so an empty form is a real target
-
Tree: the whole row is the rename double-click handle (the twistie keeps toggling) — a short auto-name like
textInput1left most of the row bare, and a double-click aimed at the row silently missed the label span -
SpecEditor:
dirty+markClean()— 'modified' and the discard guard compare the undo position against the last saved mark instead of barecanUndo, so saving to the gallery marks the document clean (keeping its history) and undoing back to the save point is clean again -
Designer: a finished palette drag hands focus back to the designer root — Ctrl+Z or Delete right after a drop no longer die silently in the palette filter box
-
Designer: a freshly inserted splitter seeds
direction: 'horizontal', so the panel dropdown shows a real value instead of the empty nullable option -
Designer: Shift+F10 over the designer surfaces opens no browser or platform menu (pointer right-clicks were already contained)
-
Designer: multi-selection the Datagrok way (F5) — Ctrl/Cmd+click toggles a node in and out of the selection (in the tree and on the canvas), Shift+click selects the contiguous tree range from the last plain click; every member gets its own adorner, the status bar says 'N selected · M nodes', and the context panel shows the multiple-objects summary ('N nodes' with tag counts and member paths, read-only) through one
grok.shell.oassignment per gesture (SpecNodesRef); Delete removes the whole selection as one compound patch after filtering out members whose selected ancestor already takes them, so ONE Ctrl+Z restores everything, and the survivor is the lead's former parent; Move Up/Down/Duplicate wait for a single node; Esc collapses a multi-selection to its lead before walking to the parent; a plain re-click on the lead row still re-asserts the panel -
VirtualList/VirtualTree: multi-selection —
selectedIndices/selectedNodescarry the full set whileselectedIndex/selectedNodestay the lead; Ctrl/Cmd toggles (the lead follows), Shift ranges from the anchor, the row context menu keeps a selection it lands in and collapses to a row outside it, and every single-select path — plain click, keyboard,setItems(key preservation applies to the lead alone), a programmatic lead write — collapses the set, so single-select consumers behave exactly as before -
SpecEditor:
applyAll(patches)— validates and applies in order as ONE undo entry; a mid-sequence refusal unwinds the already-applied members via their inverses in reverse order and throws, leaving the document and the history untouched; undo replays a compound's inverses in reverse, redo forward, and the keystroke coalescing never merges into or out of a compound;AppliedPatch.patchbecamepatches: SpecPatch[]withstructuraltrue when any member is (breaking internal shape, both consumers migrated) -
Designer: the ribbon verbs are icon buttons — New form, Open (one menu: the five built-in samples, the saved gallery entries, 'Open spec…' and 'Save to gallery…'), Copy spec, Undo/Redo, the four editing actions and Control bounds — each with a tooltip that doubles as its accessible name; the Design/Run mode switch stays a labeled button group and leads the ribbon, so a narrow view container clips icon verbs (all present in the menus) rather than the mode (
tip()in buttons.ts now setsaria-label, so every tooltipped button is addressable by role) -
Designer: 'New form' opens the blank sample, asking 'Discard changes?' first whenever the document is dirty — the same mark the status bar's
modifiedreads -
Designer: a sample-form gallery — five conceptually distinct samples (Blank, Data entry, Master–detail, Settings, Dashboard), each guaranteed to render broken-free against a bare context, plus 'Save to gallery…' into localStorage (explicitly a stopgap until the P5
dg-formasset; an existing name overwrites, and the dialog says so) -
Designer: the palette is an accordion — one collapsible pane per category, all expanded at first; the filter works across panes, hides the ones it empties and force-opens the ones with matches, and a collapse is remembered for the session (surviving designer reopen, gone with the page)
-
Designer: hovering a row in the Structure tree highlights its node on the canvas — the same adorner the canvas hover draws, suppressed while a drag is in flight and in Run mode (
VirtualTree.nodeForRowis the new public row-to-node accessor) -
Designer: bounds are visible — the form root always carries a solid outline in design view, and every control a dashed one, toggleable from the ribbon's 'Control bounds' button (outline, never border, so the geometry never lies about run mode)
-
Designer: the platform's 'Properties...' menu never appears over the designer — the design surface consumes every right-click (even where it has no menu of its own), a tree row's menu stops propagation in
VirtualListitself, and catch-all listeners contain right-clicks on the designer's and the toolbox's padding -
Designer: Escape selects the parent container; a drag in flight, a rename box, an open menu and the Open… dialog keep their own Escape
-
Designer: tabs and accordion headers stay live at design time — a click activates or toggles the pane and selects its node — and selecting a node hidden in an inactive tab or a collapsed accordion pane from the tree reveals it first, so the adorner never lands on a zero rect (
Accordion.paneAtaddresses a pane by position, unambiguous under duplicate titles) -
Designer: the context panel is now
propertyFormsections instead of a hand-fed property grid — one section per prop category (plusParent (<tag>), Bindings and Events), which brings the platform editor routing (choices dropdown, number bounds, sliders, tooltips) for free; the inputs persist for the panel's lifetime and refresh in place on undo/redo/external edits (same commit funnel, per-keystroke patches, one undo step per field, refusal reverts with the reason), and every field root carriesdata-u2-propas the automation handle -
Designer: a component inserted from the palette starts usable — the registry's new
ComponentMeta.defaultsseed it (u2-breadcrumbsand the choice/radio/multi-choice inputs: 'Item 1..3';u2-button: 'Button'), and an input whose defaults leavelabelunset gets one humanized from its unique name (textInput1→ 'Text input 1') -
Designer: per-component design-time context actions via the new
ComponentMeta.designerActions— 'Add tab' (tabs), 'Add pane' (accordion), 'Add panel' (splitter), 'Add item' (breadcrumbs) — on the canvas and tree right-click menus; an added child is seeded, uniquely named and selected exactly like a palette drop, and the manifest strips the actions (they carry closures) while keepingdefaults -
Spec: a literal value for a prop that declares
choicesmust be one of them, refused with a message naming the choices (u2-splitter: directionandu2-number-input: modenow declare theirs, so the panel offers a dropdown); bound values are exempt — they are the context's -
Form: fixed spec children that are not inputs — a button, a heading, a broken child's error placeholder — teleporting to the form's bottom:
Form.addElementkeeps them as plain rows in document order, so the canvas always matches the tree and the spec index (in the wide two-column variant such a row spans both columns) -
Designer: fixed Ctrl+Z ballooning the platform's "Nothing to undo" right after a ribbon or context-menu action — the click parked focus on chrome outside the designer; every finished action (Undo/Redo/Copy spec/Delete/Move/Duplicate, the mode toggle, closing the Open… dialog, menu items) now hands focus back to the designer root, so the shortcuts land in the designer's own scope
-
Designer: pinned by regression tests that a re-rendered node keeps its
cmd:command wiring — alone, promoted through a form, and across undo — and that the command still fires in Run mode after a panel edit and its undo (the acceptance-reported silence was not reproducible; the wiring is rebuilt with every re-render by construction) -
Tree: fixed double-click on a row label not starting the inline rename F2 starts —
expandPathrewrote the expansion set even when nothing changed, rebuilding every row between the two clicks so the browser never synthesized the dblclick; an unchanged set is no longer written (the handle later widened to the whole row — see above) -
Designer: a rename now renders every node whose
$.name…/cmd:name.…references it rewrote — they stayed wired to the path the document no longer carried — and a rename onto a name the context already owns (a data key or a command) is refused, because undoing it would capture references that were never the node's -
Designer: one
grok.shell.oassignment per structural patch, so the platform rebuilds the property panel once per delete, insert, move or duplicate instead of twice (clicking the row that is already selected still re-asserts it); and only the left mouse button starts a drag — a middle-button press used to commit a move, a right-button one to arm a ghost that outlived the context menu -
Designer:
designerView({registry})— a designer over a private registry builds the canvas and fills the palette from that registry -
Designer: the context panel writes — a property grid over what the node declares (a
stringwith choices as a choice list, a per-child prop like a pane title under aParent (<tag>)category, a bound prop read-only because the binding row is where it is edited, a structured value as the JSON the spec carries), plus editable Bindings and Events rows; every row edit is a patch through the same engine the canvas gestures use, so a refused one goes back with the reason and changes nothing, an edit reaches the canvas per keystroke without the row being rebuilt (the caret stays where it was), typing one value is one undo step, and an undo made elsewhere refreshes the rows in place -
Designer: a plain HTML node — and a node that failed to build — finally shows properties in the panel: both the writable and the read-only panel are built from one property model (
text/clseverywhere,hrefona,srconimg; a broken node's values read from the node itself) -
PropertyGrid: a
string_listrow edits throughListInput, and list values compare element-wise, so the same list rebuilt is no longer read as an edit -
Designer: the toolbox leads with a palette of every component the instance's registry carries, grouped by the new
ComponentMeta.category(Inputs / Containers / Actions / Display, also inmanifest.json) and narrowed by one search box; dragging a row onto the canvas inserts the component where the drop indicator says, under a name the designer picks the Delphi way (textInput1— the camelCased tag suffix plus the smallest free counter) -
Designer: drag-and-drop on the glass pane — a press that travels 4px starts a drag (a shorter one is still a click), the pointer resolves to a drop into the container under it or to a line before/after a leaf along its parent's own flow axis, legality comes from registry child metadata alone (no component carries designer code), Escape cancels, and a canvas node can be dragged to a new parent the same way; a container with nothing in it shows a dashed "Drop here" affordance in design mode
-
Designer: Delete / Move Up / Move Down / Duplicate over the selection — one action list feeding the ribbon buttons and the right-click menu on both the canvas and the structure tree, each greyed out exactly where the engine would refuse it; Undo/Redo in the ribbon and on Ctrl+Z / Ctrl+Y / Ctrl+Shift+Z (Delete deletes), listening on the designer and its toolbox only and never inside an editor; renaming a row in the tree renames the node, and a name already taken is refused with the reason; the status bar says
modifiedwhile there is anything to undo -
Tree:
contextActions— the per-node action list, forwarded to the row list, so a right-click selects the row and opens its full menu; anActioncan declare itselfenabled: falseand stay visible but inert -
Spec:
SpecEditor— the patch engine the designer edits through: add/remove/move/set-prop/set-bind/set-event/rename patches against the live spec, each validated bycanApplyagainst the renderer's own rules, applied by mutating the document and re-rendering only the subtrees it touched, and reversible through an undo/redo stack that merges consecutive edits of one field into a single step; renaming a node carries its$.name…andcmd:name.…references with it, andSpecInstancenow renders a scope per node, sorerender(node)releases one subtree — components, effects and listeners — and builds it anew in place -
Testing: every named spec node stamps
data-u2-nameon its root element — one automation id shared by browser checks, package tests, tutorials and agents — ande2e/runs the designer checklist against the serverless client (?mode=local, no login, no publish) in ~25 s vianpm run e2e:local, with the stand-only checks (publish, URL route, Browse card) kept apart innpm run e2e:stand -
Designer: the property panel heads itself with the node's name, tag and — for a node that failed to build — that it is broken; a prop the component keeps neither as a signal, a member nor an
optionsentry (acreatewrapping a bare button, a splitter storingdirectionas_horizontal) now reports the value the spec set instead of a blank; and selecting the row that is already selected re-asserts the shell object, so a context panel that missed an update comes back on a second click -
Designer: a read-only inspector over any rendered spec —
designerView(spec)is a platform view whose canvas is the liveSpecInstance, whose toolbox is its structure tree, whose ribbon carries Open…/Copy spec and the Design/Run toggle, and whose status bar shows the selection path, the node count and how many nodes are broken -
Designer: selection is the platform's own mechanism — clicking a node (on the canvas or in the tree) makes a
SpecNodeRefthe shell's current object, andregisterSpecNodeHandler()'sObjectHandlerrenders it in the context panel: identity, the component's properties grouped by category with their live values, every event the component declares with itscmd:wiring, and the node's bindings verbatim; a node that failed to build is selectable too, and the panel says why -
Designer: Design mode is one transparent glass pane over the canvas — components render exactly as they run but take no clicks, and the pane hit-tests through
SpecInstance.nodeAtto outline the node under the pointer and the selected one; Run mode removes the pane and the outlines, same rendered tree either way -
Property metadata:
PropertyLikegainedcategory, which the property panel groups by — it reaches the panel through metadata-generatedgetProperties()with no per-component code -
dg:
appView({toolbox})puts a component or an element in the view's toolbox pane, alongside the existing ribbon and status-bar options -
Breaking — Component/Control split:
Componentis now the DOM-free base (name, scope, effects, disposal) andControl extends Componentis everything visual, so a data source can be a component on a form without pretending to render; every u2 component is aControl, andComponent.buildisControl.build -
Spec: a node can carry a
name(unique within the spec, preserved bydump(), a duplicate warns instead of failing), andSpecInstanceexposes what it rendered —nodes()over every node including plain HTML ones,node(name), andnodeAt(element), the hit-test a designer selects through -
Widget convergence: a component answers the questions the platform asks every widget —
getProperties()generated from its registry metadata over its own signals,getFunctions(),onEvent()(component events plus the DOM events of that name),aiDescriptionandgetWidgetStatus()— through the platform-freeWidgetLike;host()now returns a realDG.Widgetsubclass delegating all five to the component, with its functions minted as platformFuncs, and a compile-time assertion keeps the structural copy from drifting offDG.Widget -
Spec registry: a component prop is described the way the platform describes every property —
PropertyLike(theDG.Propertyshape, now in the platform-free core) plusbindable/twoWay— and prop types are platform TYPE strings:float→double,string[]→string_list,json→object -
Breaking — PropertyGrid: a row descriptor's
typespeaks that same platform vocabulary (float→double), so the manifest describes one type vocabulary throughout -
Widget convergence:
getProperties()reports what a control actually holds — a same-named signal, else a same-named member, else the matchingoptionsentry — instead ofundefinedfor every prop whose state lives in options; writes stay signal-only, so a prop without one renders read-only -
Fixed: a component-event subscription left open survived
dispose()and kept delivering (the DOM half already died with the scope) -
Fixed: Designer — Open… left an arbitrary node of the new spec selected (and announced it) whenever a row had been selected before: the tree preserves selection by row key, and ordinal ids collide across specs; the tree gained
VirtualTree.clearSelection(), andopen()clears before it swaps roots, so the new root is what ends up — and stays — selected -
Inputs: a validation message is a line of its own under the editor, always — beside a 100px color field it used to fit on the row and render off the edge of a narrow pane, so the same message appeared under one input and out of sight next to another
-
Inputs: commitOn — an input can report its value when the edit is committed (blur or Enter), as Dart's fireChanged does, instead of on every keystroke; asked for where the consumer acts on the value irreversibly
-
dg: propertyEditor() renames on commit — the name field reports when it is left or Enter is pressed, so a caller keying properties by name no longer renames the property through every prefix of what is being typed (
dose→n→na→nam→name) -
Tooltip: a hovered element torn down before the hover delay elapses takes its pending tooltip with it, and a detached anchor is never shown against — a rebuilt list used to leave the tooltip of a row that no longer exists stuck over the page
-
Inputs: every input now carries the platform options rail — units and side icons sit right of the editor on one 28px row whose underline continues the field's, with the units pinned leftmost (Dart InputBase.options); the rail travels with the editor through the platform bridge, so a u2 value editor keeps its units and icons inside a Dart form
-
NumberInput: the slider and the − + clicker are the platform chrome exactly — hidden at rest, revealed on hover anywhere over the input, the clicker 20px and blue on the rail before the units, the slider spanning the field width under it (overlapping the next row by 9px, as d4.css positions it); u2's own hover spinner has no platform counterpart and is now opt-in (spinner: true), so a bare number input is a bare field
-
SliderInput: dropped the readout beside the track — a bare track is what the platform shows; the value surfaces in the tooltip, on hover and while dragging
-
TextInput: the search variant's clear icon shows only while the pointer is over the input, at the right edge of the field, as the platform's does
-
DateInput/DateTimeInput: the calendar affordance is the platform's calendar-alt icon on the options rail, always visible, beside a 140px field
-
ColorInput: the platform layout — a 100px hex field with the swatch on the options rail right of it; swatchOnly drops the field and the rail underline with it
-
dg: the columnsInput check-list is an anchored popup instead of a modal dialog — it opens under the control (up, near the viewport bottom) as Dart's own selector does, and follows its dismissal: an outside click or Esc cancels, OK or Enter commits (from the search box too, so arrow → Space → Enter picks a column without touching the mouse), and clicking the control closes it again; the list is a whole number of rows tall, so it never ends on a half-drawn one
-
dg: propertyForm/objectForm route on the property's own editor hints, as the platform does — inputType first (Radio, Color, Font, Image, Tags, Slider, Choice, MultiChoice, TextArea, Switch…), then editor (textarea, password, switch, slider), then the type; list, map and file properties get the list/multi-choice, map and file editors instead of a disabled text box
-
dg: a u2 value editor no longer repeats the units of the property the platform bound it to — the Dart host renders those itself, so the bridge drops the rail postfix (and the rail, where nothing else is on it) on that path alone
-
dg: the options rail is pinned to the platform's own size instead of
font-size: smaller, which resolved differently under a Dart form's root than in a standalone page -
dg: rsaInput() accepts a dragged key whose
connectioncannot be read — js-api'sFileInfo.connectionthrows on deployed bundles, which silently rejected every drop — and says so when the file itself cannot be read -
dg: propertyEditor() captions every field in sentence case and takes per-field validators, so a caller can report what only it knows (a name already taken) on the field instead of dropping the edit
-
dg: propertyEditor() — a reusable editor of property METADATA (the
IPropertyoptions themselves), with the platform's field vocabulary and its applicableTo visibility rules: an identity section plus a type-dependent one that swaps min/max/step/sliders for choices as the type changes; every edit reports the whole record, which the caller turns back into a property with DG.Property.fromOptions -
dg: tableInput() and tablesInput() gained the platform input's import action — a folder-open icon on the options rail opens a local file, adds the table to the workspace and picks (or checks) it; csv/tsv/txt parse and d42 deserializes, and an extension neither reader takes is refused with the platform's own message, since js-api has no door to the FileHandler that opens xlsx, sdf and the rest for the Dart input
-
dg: rsaInput() takes the dragged object however the platform hands it over (a DragDropArgs or the object itself) and leaves a drag that is not a key file of a file share alone, instead of reading whatever was dropped
-
dg: the file and files pickers sit on the shared options rail like every other input's side icons, so their underline continues the field's and they cross the platform bridge with the editor; the file, files and rsa rails carry the platform's icon metrics — a blue 16px icon box, 8px from the one before it, in a control-height row
-
TypeAhead: a typed query highlights its first match, so plain Enter accepts the suggestion on screen instead of doing nothing; TagsInput still highlights nothing (its box's own text is what Enter is for)
-
Inputs: a validation message with no room beside the editor takes the next line whole instead of shrinking to one word per line
-
dg: the name-valued column pickers — columnInput (both variants), columnsInput, columnsMapInput and aggregatedColumnsInput — now follow onColumnNameChanged and REMAP the name they hold; a rename fires that event alone, so until now every one of them silently pointed at a column that no longer answered to it
-
MultiChoiceInput: emptyText — an empty list reads as empty instead of as an empty box; tablesInput says 'No open tables'
-
dg: the columns dialog gained All / None links and an 'N selected' count, and its checkboxes name their column for a screen reader
-
propertyForm/objectForm: a datetime field no longer reports a change (and no longer writes the property back) the moment it is constructed — every read builds a fresh Date, which identity comparison took for an edit
-
dg: fileInput() says 'File does not exist.' without repeating the path the box already shows
-
NumberInput: the inline slider draws a focus ring when it is reached by keyboard, as the standalone slider does
-
Inputs: a computed-style sweep over the side-by-side demo closed the measured gaps against the platform's own metrics — the choice box at 200px with its 20px dropdown inset, the text box at 100px, bigint and qnum at 140px, radio and multi-choice stacked as 20px rows with the box 4px in and 8px off its label, map rows on the platform's key/value/button table, the font row at its own 11px scale, and one 16px blue icon box for every glyph on the options rail
-
Inputs: the platform draws its side affordances with icons, so the number clicker, the map row buttons and the font size steppers do too, instead of text plus and minus signs
-
FontInput: the − + size steppers the platform puts beside the size box
-
ListInput: the expand toggle moved onto the options rail, where the platform's is, and the field stopped drawing a second underline under the editor's
-
ImageInput: the preview is the platform's fixed 300×200 box, with REMOVE as a link over its top-right corner
-
TextInput: the password reveal icon sits over the right edge of the field, as the platform's does, instead of taking width from it
-
dg: an editor hint applies only to the types the platform honours it for —
{editor: 'textarea'}on an int property builds the int editor, asInputBase.forPropertydoes -
dg: the input bridge fires the platform events from a microtask instead of from the value effect — a platform onChanged subscriber that writes a u2 signal back no longer trips the signal runtime's cycle guard and kills the bridge; one edit is still one fireInput/fireChanged pair
-
dg: the bridge re-registers the u2 validity feed on the dart handle the platform re-homes the input on, so a registered value editor's invalid state now marks the platform input invalid and disables a dialog's OK
-
Inputs: Input.system() marks a value the input prunes on its own (an item list that lost the selected entry, a column dropped from the table) as programmatic, so the bridge reports onChanged alone, as Dart does
-
dg: inputForProperty() takes assumeWritable — a value editor gets the editor the type asks for even though a FuncParam carries no setter (a form still renders a setter-less property read-only)
-
dg: fileInput() — a value written from outside drops the verdict on the path it replaces and cannot be overruled by a check still in flight; a path the listing does not carry now reports "does not exist" instead of staying silently valid; the extension filter is applied in file mode only, so a folder whose name carries a dot resolves
-
dg: filesInput() and fileInput() cancel a read still running when the input is disposed, instead of settling onto a disposed component
-
dg: rsaInput() refuses a drop of several files, as the single-file input does, and ignores a platform drop that lands after dispose
-
dg: aggregatedColumnsInput() rows are built from ChoiceInput and icon buttons instead of hand-rolled select/button markup
-
dg: added tablesInput() — a checkbox per open table with the names as the value, following table open and close (port of Dart TablesMultiChoiceInput)
-
dg: columnInput() gained the rich variant — a type-ahead over the columns with type glyphs, names and semantic types (Dart's ColumnComboBox affordances), on the same name-valued contract as the plain choice variant
-
dg: added columnRenderer() — an ObjectRenderer over column names any u2 control can take; a name the table no longer has still renders
-
dg: added columnsInput() — Dart's
(3) age, sex, race/(N) Allsummary opening a searchable check-list (u2 VirtualList, not the platform selectColumns modal) with the picked columns on top; OK commits, cancel does not, changeTable() starts over (port of Dart ColumnsInput minus its additional-column checks) -
dg: added columnsMapInput() — a column picker per key, the key's type restricting what it offers (int and double count as one type, as in Dart); unmapped keys stay out of the value (port of Dart ColumnsMapInput)
-
dg: added aggregatedColumnsInput() and aggregationsFor(type) — column + aggregation rows whose aggregation list is ddt's per-type registry minus the exclusions of Dart's aggregation editor, so string and bool columns offer the counts and datetime those plus range (port of Dart editColumnAggregations)
-
MultiChoiceInput: setItems() — the checked items that are still there stay checked, as in the Dart input
-
dg: added fileInput() — path box with a local-file picker and a drop zone, checked against the file share as it is typed (debounced, one check at a time, late answers to abandoned paths dropped) with the platform's empty / still-checking / does-not-exist states; a connection namespaces the path with its nqName (port of Dart FileInput)
-
dg: added filesInput() — several files at once, each row with its own percentage and a ✕ that cancels the read or drops the file, re-adding a name replaces it, and the loaded FileInfos are published once every read has settled (port of Dart FilesInput)
-
dg: added rsaInput() — a key file goes in and is held masked: its text when it opens with a PEM header, BASE64 of its bytes when it does not; keys dragged from the platform's file browser are read through grok.dapi.files and must be PEM (port of Dart RsaInput)
-
Added FontInput: the platform's strict font string ("
-
Added ImageInput: preview of the URL or data URL it holds, with a REMOVE link revealed on hover (port of Dart ImageInput)
-
TextInput: password variant (masked field plus an eye toggle) and autoResize (width follows the text between minWidth and maxWidth); the platform PASSWORD_PLACEHOLDER focus/blur dance stays out of the core input
-
Added TagsInput
: object tags over AsyncSource and ObjectRenderer — chips with per-item deleteEnabled, sync or async suggestions that drop what is already picked, allowNew creation, and the full keyboard contract (arrows/Home/End, Enter accepts or creates, Esc closes the popup only, Backspace pops the last chip); MultiSelect stays the string-list control -
TagsInput: Ctrl+Enter (and Cmd+Enter) no longer adds a chip and no longer swallows the key — it stays the hosting dialog's OK shortcut, as in the Dart input
-
FontInput: the size popup toggles — a click on the box it is already under closes it, and the next click brings it back
-
Overlay: closing an overlay now drops its cleanup from the owning scope, so an input reopened all day stops accumulating dead closures (Scope.disown)
-
Added SuggestionList (src/core/suggestion-list.ts): the overlay-hosted listbox, the active-row machine and the loading/empty/error rows now live once and back both TypeAhead and TagsInput
-
Added QNum (src/core/qnum.ts): the qualified-number packing ported from ddt's QNum — create/getValue/getQ/parse/format over the two lowest mantissa bits, byte-for-byte with the Dart original
-
Added QNumInput: editor over a packed qnum double, taking a leading < or >; unparseable text stays and marks the input invalid (Dart reports null for it)
-
Added BigIntInput: integer of any size kept as text end to end, so no digit ever passes through a double (port of Dart BigIntInput)
-
Added DynamicInput: a read-only input that renders its value through a supplied renderer and swaps the element on every write (port of Dart DynamicInput)
-
dg: added metaInput() — DynamicInput over the object handler's card, with Dart MetaInput's
<null>marker -
NumberInput: platform parity — min/max now validate instead of clamping typed text (the typed number reaches the value signal and the message shows; only the slider and the stepper stay inside the bounds), plus the showSlider/showPlusMinus equivalents (slider/clicker), a display format hook, and Dart's dynamic float precision
-
Inputs: postfix option on every input — units after the editor, as InputBase.addPostfix
-
propertyForm/objectForm: number properties now carry step, format, units, showSlider and showPlusMinus into the generated editor with the platform's defaulting rules; inputForProperty() exposes that mapping
-
propertyForm/objectForm: bigint and qnum properties now generate BigIntInput and QNumInput instead of a number input
-
dg: added dartInputFor(build) — a value editor that builds its u2 input once the platform has bound the property, so registered editors keep the property's metadata
-
Added SliderInput: bare range track, (max - min) / 100 default step (port of Dart SliderInput)
-
Added RadioInput: native radio group sharing one name, setItems, per-item tooltips, raised-button variant (port of Dart RadioInput)
-
Added ColorInput: hex field plus a swatch fronting the native color picker, swatchOnly variant; bad hex marks invalid and keeps the last good color (port of Dart ColorInput, platform palette not ported)
-
Added ListInput: comma-separated list with Dart's quote-aware split and the expand-to-textarea toggle
-
Added MapInput: key/value rows with per-row add/remove; duplicate keys go through the validity signal and empty-key rows stay out of the value
-
MultiSelect: allowCustom — Enter in the filter box adds the typed text as a tag, matching existing items case-insensitively
-
Tokens: added semantic selection (--dg-selection-bg/text), elevation scale (--dg-shadow-1/2/3), focus ring (--dg-focus-ring), and overlay radius (--dg-radius-l) tokens; component CSS converted
-
Tokens: adopted the P7 designer-pass values as defaults — layered elevation shadows, 4px/6px radii, accent-tinted selection, 2px focus ring, calibrated success/failure colors, 16/14px heading hierarchy
-
Added theme-dark.css (parked draft, [data-dg-theme='dark']); gallery gained a theme toggle
-
Added item actions (list-item-rendering recipe): the Action type, rowActions() hover/focus-revealed icon block (opacity-hidden so buttons keep their space and stay tabbable), actionsMenu(), and VirtualList contextActions — right-click selects the row and opens the full action list at the cursor
-
Added timestamp() element factory: locale short date (year only when not current), full date-time in the tooltip; accepts Date, numbers, strings, or anything with toDate()
-
Added css/adaptive.css: u2-adaptive container + u2-p1/u2-p2 priority classes — secondary row content hides as the pane narrows (container queries, fixed 420/340px defaults)
-
Menu: item icons now render as icon glyphs instead of raw text
-
Overlay: fixed positioning strategy + animationFrame autoUpdate (dock_spawn moves anchors outside scroll/resize); Combobox popup anchored to the input, not the stretched root
-
host(): optional closeIn dock manager — auto-detaches on pane ✕ via onClosed (the platform never kills non-view dock content)
-
Added ambient scope ownership (Scope.ambient/runWith, Component.build) — components and signal bindings created under an owner are disposed with it
-
Added fluent element factories (div/divV/divH/span/label/h1-h3/link/button/bigButton/panel/empty) accepting T | Signal
-
Added Input
foundation (label/editor layout, validators + validity signal, inline variant) with TextInput/TextArea/BoolInput (+switch) -
Added Tooltip service: singleton in the shared overlay layer, 300ms delay with instant warm switch
-
Added Splitter: VS Code-style sashes, pointer-capture drag, keyboard resize, nesting
-
Added TabStrip: lazy panes, dirty markers, middle-click close, overflow dropdown
-
Added Menu: fluent builder (DG.Menu-shaped), submenus with hover intent, typeahead, machine-state signal
-
Added VirtualTree over VirtualList: lazy branches, inline rename, expandPath, 100k-node scale
-
Gallery: per-page scope — navigating away disposes the previous page's components
-
Added ChoiceInput (styled native select, platform convention) and MultiChoiceInput
-
Added NumberInput: int/float parsing, min/max clamp on commit, hover spinner, arrow/wheel stepping
-
Added Dialog: fluent DG.Dialog-shaped API, modal backdrop, focus trap, dragging, stacking, per-show scope
-
Added Accordion (lazy panes on per-pane scopes) and Breadcrumbs (overflow ellipsis collapse)
-
Added Toolbar: flat buttons/toggles/menus/separators/slots, overflow-collapse into a mirror Menu
-
Added Form: aligned label column, aggregate validity signal, validate/getValues/setValues, condensed/wide
-
Overlay: shared monotonic layer counter — later-opened popups/dialogs always paint on top (fixes combobox-in-dialog occlusion)
-
Added PropertyGrid: two-column inline editors from PropDescriptors, collapsible categories, write-through values signal
-
Added AsyncView + loader/skeleton: standardized loading/empty/error-with-retry rendering over AsyncSource
-
Added Perf instrumentation and the gallery performance page (budgets: 200-widget construct <15ms, 1M-row 60fps scroll, zero-leak round-trip — all passing)
-
Added node test harness: tests/dom-shim.js + 25-test smoke suite (npm test), leak assertion on every test
-
Added dg input bridge (asDartInput → JsInputBase) and columnInput/tableInput pickers
-
VirtualList: rowRole + render row argument + keyOf identity-preserving selection; VirtualTree native per-row ARIA (retrofit removed)
-
Menu: Home/End navigation, focus restore on close; Input: name option (Form keys values by it)
-
Added dg-ui/1 spec layer: Registry + manifest, renderSpec/SpecContext with $.path bindings and cmd: commands (no eval), SpecInstance.dump round-trip, node-level error containment; 13 components registered; manifest.json + npm run manifest; gallery spec page
-
Spec: adopt()/createWithChildren child hooks + childProps metadata + 'json' prop type — splitter/accordion/tabs/form now spec-registrable (manifest: 16 components)
-
Added schema-driven forms (dg): propertyForm/objectForm over PropertyLike — editors by type, required from nullable, min/max, overrides; ObjectForm.refresh()
-
Overlay.nextLayer(): u2-local monotonic order inside the overlay host's own z band (platform surfaces keep their banded z-orders)
-
host() stamps data-kill-on-close — the new core dock contract kills the component on pane ✕ (older cores covered by the closeIn onClosed auto-wire)
-
Added fromDartInput (dg): any DG.InputBase participates in u2 Forms — value sync, Dart validators feeding Form.validity via the new core validity surface (feature-detected), full platform chrome; asDartInput/fromDartInput unwrap instead of double-wrapping
-
objectForm: editors 'auto' mode — real DG.Property fields resolve the platform's own editor (DG.InputBase.forProperty) wrapped via fromDartInput, generated u2 editors as fallback
-
Added Wizard: step rail with visited/current states, canProceed gates composing Form.validity (reason shown), lazy per-step scopes, Enter-to-advance, openInDialog
-
Added TypeAhead
: complex rendered option rows (per-render child scopes), itemText filtering, selected signal cleared on typing, async loading/empty/error states, minChars; dg userInput() over dapi.users with avatar rows -
Added badges: badge (5 token variants), countBadge (99+ cap, hides at 0, signal-driven), status dot, removable tag
-
Added ProgressBar: clamped 0..1 value signal, runtime-switchable indeterminate, percent label, reduced-motion fallback
-
Added BasicTable
+ tableFromMap: semantic compact table for small data, string/element cell renderers under per-render scopes, live signal rows, keyboard row selection -
Added MultiSelect: popup multi-select Input<string[]> — tag field with +N overflow, stay-open checkbox popup, auto filter, select all/none over visible rows
-
Added icons: icon(name) emitting the platform's grok-icon fal fa-* convention (FA Pro in-app); vendored FA Free 5.15.4 woff2 + .u2-standalone-gated codepoint shim for standalone hosts (1002 solid names)
-
Added iconButton (flat square, toggle signal) and buttonWithIcon (optically aligned to the button typography)
-
Added ButtonGroup: segmented/flat, toggle none|single(radio)|multi, iconOnly with auto-tooltips, form|toolbar|ribbon densities, roving tab stop tracked by id
-
Icons: standalone fallback upgraded to the platform's own FA Pro 5.15.4 (true Light face, full 2309-name map, brands included); faces requested on first icon() use to avoid blank first paint
-
Added dropDownButton: plain (whole button opens a fresh Menu per open) and split (main action + attached arrow) modes, aria-expanded via a self-disposing per-open scope, ArrowDown opens
-
Added MenuBar: classic top-menu over Menu popups — click opens, instant hover-switch while open, roving arrows switch the open menu, transparent chrome for ribbon/toolbar hosting
-
Added DateInput + DateTimeInput (the 18th audited control): shared APG-pattern calendar popup, strict yyyy-MM-dd[ HH:mm] parse/commit with min/max clamp, native Date values, time segments keep time-of-day on day change; objectForm datetime properties now generate DateTimeInput (Date/dayjs/ISO coerced)
-
Added AsyncPager
(src/core/pager.ts): the paged twin of AsyncSource — pages accumulate into one items signal, short page marks done, reset() drops in-flight responses and re-reads the total; dg dapiPager() pages any grok.dapi.* collection (factory-per-request, thunk filter, order pass-through); gallery pager page -
Initial scaffold: library skeleton, platform-free-core eslint guard, vendor/ layout, standalone gallery shell
-
Added design tokens (css/tokens.css): 74 --dg-* tokens codifying current Datagrok styles, compact density axis, gallery token sheet
-
Added signals core: vendored @preact/signals-core 1.14.4, Scope/Component lifecycle with leak counter, bindText/bindValue with echo suppression, dg adapter (host(), toSignal/toObservable, leakReport)
-
Added VirtualList (src/components/collections/list.ts): VS Code listView virtualization ported onto the u2 core — fixed row height, row recycling, signal-driven selection, keyboard navigation, listbox ARIA; css/list.css and a 1M-row gallery page
-
Added AsyncSource (src/core/async-source.ts): debounced, abortable idle/loading/ready/empty/error-with-retry contract for every async control
-
Added Overlay (src/core/overlay.ts): single body-level layer host, @floating-ui/dom positioning (flip + size), dismissal on outside pointerdown / Esc / anchor detach
-
Added Combobox (src/components/inputs/combobox.ts): hand-written WAI-ARIA 1.2 combobox machine (Zag.js vendoring evaluated and rejected — see the file header), sync and async sources, css/combobox.css and a gallery page