Skip to content

refactor(dynamo-editor): migrate to shared ResultPanel - #497

Merged
Blankll merged 4 commits into
masterfrom
refactor/dynamo-shared-result-panel
Aug 14, 2026
Merged

refactor(dynamo-editor): migrate to shared ResultPanel#497
Blankll merged 4 commits into
masterfrom
refactor/dynamo-shared-result-panel

Conversation

@Blankll

@Blankll Blankll commented Aug 13, 2026

Copy link
Copy Markdown
Member

Summary

Replace the MongoDB-style legacy DynamoDB result panel (dynamo-editor/components/result-panel.vue, 517 lines) with the shared ResultPanel (@/components/result) — the same component used by the Mongo editor (#495) and ES docs browser.

Net effect: −526 / +248.

Commits

  1. refactor(dynamo-editor): migrate to shared ResultPanel

    • ui-editor.vue: shared panel, offset-mode pagination (pageCount×pageSizetotal), @update:page/@update:page-size preserved
    • sql-editor.vue: shared panel, cursor mode@next-page replaces data (executePartiqlStatement gains mode: 'append' | 'replace', default append)
    • #cell slot injects edit/delete action buttons (same pattern as Mongo migration refactor(mongo-editor): migrate to shared ResultPanel #495)
    • delete-confirm-modal lifted into both editors
    • new utils/dynamo-result.ts: flattenDynamoColumns (unrolls Primary Key group columns), buildDynamoKeys, formatDynamoCell
  2. refactor(dynamo-editor): delete legacy result-panel, stop persisting result data

    • Delete result-panel.vue (517 lines)
    • dbDataStore: persist only the query form (pick: ['dynamoData.uiQueryForm']) — result panels start empty each visit (previously stale rows were resurrected from localStorage)
    • Remove 3 orphaned i18n keys

Behavior notes

  • PartiQL pagination: "Load More (append)" → next-page (replace) — confirmed with user
  • Delete flow moved to editors; deleteItem store action still updates both caches

Verification

  • vue-tsc --noEmit
  • vite build
  • No orphaned i18n references

Blankll and others added 4 commits August 13, 2026 18:18
Replace the legacy DynamoDB result panel with the shared ResultPanel for
both the UI editor (offset pagination) and PartiQL editor (cursor mode):

- ui-editor: shared panel with offset-mode pagination mapping
  pageCount×pageSize -> total, preserving page navigation
- sql-editor: shared panel cursor mode, @NEXT-PAGE replaces data
  (executePartiqlStatement gains mode:'append'|'replace')
- #cell slot injects edit/delete action buttons (same pattern as the
  Mongo migration in #495)
- delete-confirm-modal lifted to both editors
- new utils/dynamo-result.ts: flattenDynamoColumns (unrolls Primary Key
  group), buildDynamoKeys, formatDynamoCell — shared by both editors

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
…result data

- Delete result-panel.vue (517 lines) — superseded by the shared
  ResultPanel (commit c8c0907). Its delete-confirm-modal lives on.
- dbDataStore: persist only the query form (dynamoData.uiQueryForm),
  not queryData/partiqlData — result panels must start empty on each
  visit; previously stale rows from a prior session were resurrected
  even when the user never queried this session.
- Remove orphaned i18n keys (noData, partiql.itemsReturned,
  partiql.loadMore) no longer referenced after the migration.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@codecov

codecov Bot commented Aug 14, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.28%. Comparing base (7b78727) to head (e6f5b97).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #497   +/-   ##
=======================================
  Coverage   60.28%   60.28%           
=======================================
  Files         122      122           
  Lines       18962    18962           
  Branches      885      885           
=======================================
  Hits        11431    11431           
  Misses       7268     7268           
  Partials      263      263           
Files with missing lines Coverage Δ
src/lang/enUS.ts 100.00% <ø> (ø)
src/lang/zhCN.ts 100.00% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Blankll
Blankll merged commit 2db878a into master Aug 14, 2026
9 checks passed
@Blankll
Blankll deleted the refactor/dynamo-shared-result-panel branch August 14, 2026 17:17
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