Skip to content

Select homepage Squares, then mint them together. - #83

Merged
fulldecent merged 6 commits into
mainfrom
buy-selected-squares
Dec 2, 2026
Merged

fulldecent merged 6 commits into
mainfrom
buy-selected-squares

Conversation

@fulldecent

@fulldecent fulldecent commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

An available Square on the homepage enters minting mode. The first selection pulses that Square and scrolls gradually to the top. Mint 1 Square and Cancel replace the homepage sentence in a row whose height is already reserved, so the billboard stays put. Further Squares change the button to Mint 2 Squares, Mint 3 Squares, and so on, and do not scroll.

Cancel clears the selection and shows the homepage sentence again. A purchased Square stays on the homepage while minting. Its tooltip says the Square is already purchased and that visiting a Square requires leaving minting mode.

The mint button opens /buy?square= with the selected numbers in click order.

Checked locally: the prompt kept its height when Mint 1 Square replaced the sentence. The scroll moved part of the way after a third of a second, then reached the top. Square 7 stayed on the homepage with the purchased tooltip. Cancel restored the sentence.

Copilot AI balanced review requested due to automatic review settings December 1, 2026 20:11
@github-actions

github-actions Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Preview deployment

https://buy-selected-squares.tenthousandsu-com.pages.dev

Branch: buy-selected-squares

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

The blanket anchor guard blocks Enter on the map’s own #wheretogo anchor, preventing keyboard users from selecting an available highlighted Square.

1 open issue
What changed in this PR

This PR lets users select multiple available Squares on the homepage and open them together in the existing mint page.

Changes:

  • Adds selection toggling and a Buy button that preserves selection order in /buy?square=.
  • Scrolls to the top on the first selection and updates the button’s count afterward.
  • Adds pulsing selection markers and button styling, with reduced-motion support.
File Description
index.html Adds selection state, map interaction handling, and navigation to the multi-Square mint page.
assets/​main.css Styles selection overlays and pulse animations, including reduced-motion overrides.

Review effort: Balanced

Comment thread index.html Resolved

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.

🔵 Needs a closer look

Removing the map anchor’s href without adding tabindex makes it unreachable by Tab in the loading and available-Square branches, preventing keyboard users from reaching the new selection handling.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Keep the map keyboard-focusable when its href is removed

index.html:158

Removing href also removes the map anchor from the Tab order because #wheretogo has no tabindex. This affects both the loading and available-Square branches. For example, moving the highlight with an arrow key while a header link is focused can make the map untabbable; Enter then remains on the header link rather than reaching the new onMap selection handling. Keep the map explicitly keyboard-focusable even when it has no destination.

1 resolved since last review

Review effort: Balanced

@fulldecent

Copy link
Copy Markdown
Member Author

#83 (review)

The map anchor now has tabindex 0, so removing its href leaves it in the tab order. Enter on that focused anchor still selects an available Square.

Pushed in d278eb3.

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

There are no active review issues blocking approval of the homepage multi-selection change.

No open issues 🎉

Review effort: Balanced

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

Dragging can skip crossed cells, and revealing or hiding the Buy control shifts the map mid-gesture, causing unintended selection changes.

3 open issues

Review effort: Balanced

Comment thread assets/main.css Resolved
Comment thread index.html Resolved
Comment thread index.html Resolved

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.

🔵 Needs a closer look

Human assessment is needed to evaluate accessibility impacts from blocked pinch-to-zoom on the map and button animations that override reduced-motion preferences.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

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 remain for the homepage multi-selection change.

No open issues 🎉

Review effort: Balanced

@fulldecent

Copy link
Copy Markdown
Member Author

I am reviewing implementation now on mobile. The drag gesture on mobile also handle scrolling so we can't use that for selecting multiple squares. And also the pinched pressure is used to zoom in, but this is picking up to select multiple squares.

So we need to ensure that mobile does not do any of these things and if possible we do want to do those things on desktop

Or if we can't have this cake and eat it too, then we will just drop that part of the feature

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

The button still uses display-based hiding, causing the map to shift when it appears or disappears and misaligning subsequent pointer coordinates.

1 open issue

Review effort: Balanced

Comment thread assets/main.css Resolved

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.

🔵 Needs a closer look

Human assessment is needed because touch handling can block pinch-zoom magnification and cause unintended selections during multi-touch gestures.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

The first available Square pulses and the page scrolls gradually to the top. Mint 1 Square and Cancel replace the homepage sentence in a reserved row, so the billboard stays put. Further Squares raise the count and do not scroll. Cancel clears the selection. A purchased Square stays on the homepage while minting, and its tooltip says to exit minting mode to visit a Square.
@fulldecent
fulldecent force-pushed the buy-selected-squares branch from 1eab162 to ea47f7c Compare December 2, 2026 00:51
@fulldecent fulldecent changed the title Select homepage Squares, then buy them together. Select homepage Squares, then mint them together. Dec 2, 2026

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

CSS overrides cause Mint and Cancel to stack instead of forming a horizontal row, and a specificity mismatch leaves the Mint pulse active despite reduced-motion preferences.

2 open issues

Review effort: Balanced

Comment thread assets/main.css Resolved
Comment thread assets/main.css Resolved
The homepage controls no longer use the mint page's column layout. The reduced-motion rule uses the same selector as the pulse.

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.

🔵 Needs a closer look

Human assessment is needed because ongoing scrolling and untracked pointer interactions can cause unintended painting or erasing during selection gestures.

No open issues 🎉

2 resolved since last review

Review effort: Balanced

A later Square no longer moves the map under the pointer. Releasing the pointer outside the map ends the drag.
@fulldecent

Copy link
Copy Markdown
Member Author

#83 (review)

The scroll after the first Square still eases to the top. A later gesture holds that scroll until the pointer is released, so the map does not move under the drag. Releasing the pointer outside the map, or losing pointer capture, ends the drag.

Pushed in effc086.

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.

🔵 Needs a closer look

Human assessment is needed to weigh the user-facing impact of stale selection tooltips and multi-touch interference that can select unintended squares.

No open issues 🎉

Review effort: Balanced

A tap selects one Square. A mouse or trackpad drag still paints every Square it crosses.

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

On coarse-pointer devices, tapping a personalized Square outside minting mode follows a stale or placeholder link because the tap does not update the position before native link activation.

1 open issue

Review effort: Balanced

Comment thread index.html Resolved
…ollowed.

A completed tap on a personalized Square updates the map link. A drag still does not.

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 highlight moved onto a personalized Square during loading is not refreshed afterward, leaving Enter navigation disabled and the tooltip stuck on loading text until the highlight moves again.

1 open issue
1 resolved since last review

Review effort: Balanced

Comment thread index.html Resolved
The tooltip and the map link were staying on the loading state. Enter can then open that Square.

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

There are no active review issues for the homepage multi-Square selection changes.

No open issues 🎉

1 resolved since last review

Review effort: Balanced

@fulldecent

Copy link
Copy Markdown
Member Author

I tested and ENTER does work as expected

@fulldecent
fulldecent merged commit 1d5203f into main Dec 2, 2026
3 checks passed
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.

2 participants