Skip to content

Update wallet-aware personalization and batch flows - #80

Draft
fulldecent with Copilot wants to merge 2 commits into
mainfrom
copilot/update-personalize-pages
Draft

fulldecent with Copilot wants to merge 2 commits into
mainfrom
copilot/update-personalize-pages

Conversation

Copilot AI commented Oct 28, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Hide personalization controls until a wallet is connected, check balanceOf, and show a helpful message for wallets without Squares.
  • Load owned Squares 20 at a time with cropped thumbnails, selection checkboxes, individual title/link/image editors, and exact per-Square confirmation pricing.
  • Replace the batch image form with expandable agent instructions, a paginated text list of owned Squares, and validated tab-separated title/link/RGB data.
  • Recheck ownership before submitting, invalidate stale batch validation, and report transaction failures explicitly.

Validation

  • node --test tests/personalization.test.mjs — 11 tests passed.
  • JavaScript syntax and git diff --check passed.
  • Browser checks with a mocked wallet covered empty/disconnected wallets, pagination, image validation and encoding, exact transaction arguments/value, wallet changes, validation races, RPC failures, rejected/reverted transactions, and mobile table scrolling.
  • No live Ethereum transaction was submitted.

@github-actions

Copy link
Copy Markdown

Preview deployment

https://copilot-update-personalize-p.tenthousandsu-com.pages.dev

Branch: copilot/update-personalize-pages

The wallet UI matches main and loads Reown AppKit.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@fulldecent
fulldecent force-pushed the copilot/update-personalize-pages branch from 83ae04d to 92cae25 Compare December 2, 2026 03:35
@fulldecent
fulldecent requested a balanced review from Copilot December 2, 2026 03:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

A shadowing const metadata causes wallet connections with Squares to throw an assignment error, preventing loading and leaving the personalization editor hidden.

1 open issue
What changed in this PR

Updates Su Squares personalization with wallet-aware editors and a validated text-based batch flow.

Changes:

  • Adds paginated ownership lists, per-Square editors, thumbnails, and exact pricing.
  • Introduces batch instructions, ownership rechecks, and explicit transaction failure reporting.
  • Extracts shared JavaScript modules and adds regression tests and documentation.
File Description
tests/​personalization.test.mjs Tests validation, pricing, ownership, pagination, and animation detection.
README.md Documents personalization flows and the test command.
personalize.html Replaces the single-Square form with a wallet-aware table.
personalize-batch.html Adds agent instructions and validated batch-text controls.
assets/​personalize.mjs Implements shared wallet, editor, and transaction flows.
assets/​personalization.mjs Provides contract definitions and validation helpers.
assets/​main.css Styles tables, thumbnails, previews, and batch lists.

Review effort: Balanced

Comment thread assets/personalize.mjs Resolved
The AppKit metadata object had the same name as the loaded Square data, so a wallet that owns Squares could not open the editor.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues are identified in the personalization and batch-submission changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants