Skip to content

MILAB-6950: update SDK - #14

Merged
AStaroverov merged 1 commit into
mainfrom
MILAB-6950_update-sdk
Sep 29, 2026
Merged

AStaroverov merged 1 commit into
mainfrom
MILAB-6950_update-sdk

Conversation

@AStaroverov

@AStaroverov AStaroverov commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Bumps the SDK catalog to the current npm latest (pnpm update-sdk), mainly to pick up @platforma-sdk/ui-vue 1.84.2.

That release fixes PlAgDataTableV2 rebuilding its AG Grid endlessly (~20 times a second) when the page has a saved grid state — most often right after a block rebuild. The loop strobed the column headers and flooded the console with AG Grid licence banners. The reload comparison now filters the stored state down to the columns the grid actually has and compares only the fields that state expresses, so it converges.

Changes:

  • pnpm-workspace.yaml: SDK catalog entries → npm latest
  • pnpm-lock.yaml: regenerated
  • patch changeset for the block

Verified locally: pnpm install + pnpm build:dev-no-software pass.

RetriggerConfidence Score: 4/5

The PR appears safe to merge, with a non-blocking gap in regression coverage for saved grid state.

Fix All in Claude CodeFindings

  1. P2 Saved Grid State Untested ▶
Fix with agent prompt
### Issue 1
pnpm-workspace.yaml:16
The UI SDK update is intended to stop `PlAgDataTableV2` from repeatedly rebuilding when a project has saved grid state, but this PR adds no regression test for that behavior. The block binds the table to persisted `tableState`, while the test package permits zero tests. CI can therefore pass without checking that the grid settles after a block rebuild. Please add a test that loads saved state and checks that transition.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Summary

The PR updates six Platforma SDK catalog entries, regenerates their lockfile resolutions, and adds a patch changeset for the block.

  • The UI update targets repeated PlAgDataTableV2 grid creation with saved state.
  • Important touched terms (types in the codebase): PlDataTableStateV2 is the persisted table-state type; its model SDK dependency moves to 1.84.1, with no block-side schema change. BlockData is the block’s persisted data type containing tableState; its definition is unchanged. PColumnIdAndSpec identifies a table column and its specification; its definition and use are unchanged, while the UI SDK that renders columns moves to 1.84.2.
Diagram
%%{init: {'theme': 'neutral'}}%%
flowchart LR
  Catalog["pnpm SDK catalog"] --> Lock["pnpm-lock.yaml"]
  Lock --> Model["@platforma-sdk/model 1.84.1"]
  Lock --> UI["@platforma-sdk/ui-vue 1.84.2"]
  Model --> State["Persisted PlDataTableStateV2"]
  State --> Grid["PlAgDataTableV2"]
  UI --> Grid
Loading

Reviews (1) · Last reviewed commit: "MILAB-6950: update SDK"

Comment thread pnpm-workspace.yaml
"@platforma-sdk/tengo-builder": 4.1.1
"@platforma-sdk/workflow-tengo": 6.12.1
"@platforma-sdk/model": 1.84.1
"@platforma-sdk/ui-vue": 1.84.2

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Saved grid state untested The UI SDK update is intended to stop PlAgDataTableV2 from repeatedly rebuilding when a project has saved grid state, but this PR adds no regression test for that behavior. The block binds the table to persisted tableState, while the test package permits zero tests. CI can therefore pass without checking that the grid settles after a block rebuild. Please add a test that loads saved state and checks that transition.

Prompt To Fix With AI
This is a comment left during a code review.
Path: pnpm-workspace.yaml
Line: 16

Comment:
**Saved grid state untested** The UI SDK update is intended to stop `PlAgDataTableV2` from repeatedly rebuilding when a project has saved grid state, but this PR adds no regression test for that behavior. The block binds the table to persisted `tableState`, while the test package permits zero tests. CI can therefore pass without checking that the grid settles after a block rebuild. Please add a test that loads saved state and checks that transition.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

Fix in Claude Code

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The fix and its regression coverage live in the SDK, not in this block. @platforma-sdk/ui-vue tests the stored-state comparison in sdk/ui-vue/src/components/PlAgDataTable/sources/grid-state.test.ts and mounts PlAgDataTableV2 through a reload in sdk/ui-vue/src/components/PlAgDataTable/__tests__/PlAgDataTableV2.reload.jsdomtest.ts. This PR only bumps the dependency; a block-level test would duplicate that coverage and needs a mounted AG Grid, which the block test setup does not provide. Not adding one here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

That’s a valid distinction. Since the behavior change and its regression tests live in @platforma-sdk/ui-vue, and this PR only updates the SDK catalog/lockfile, a block-level test would duplicate the SDK coverage rather than test code changed here. The block test setup also cannot mount the AG Grid needed to exercise this path. I’m withdrawing the “Saved Grid State Untested” finding; no additional test is required in this PR.

Tip: You can customize Greptile's behavior for this repo with .greptile/rules.md and .greptile/config.json.

@AStaroverov
AStaroverov merged commit 45be5fd into main Sep 29, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant