Skip to content

Customising quick pairing buttons#19631

Open
yafred wants to merge 27 commits intolichess-org:masterfrom
yafred:custom-pairing-buttons
Open

Customising quick pairing buttons#19631
yafred wants to merge 27 commits intolichess-org:masterfrom
yafred:custom-pairing-buttons

Conversation

@yafred
Copy link
Contributor

@yafred yafred commented Feb 26, 2026

Note:

  • We could display a perf (text or icon) instead of rated (nothing if casual)
  • I'd like to be able to use escape to exit the customisation dialog
  • Should we save color in customisations for ai and friend (it's not at the moment)
  • We could add a few buttons in the customise dialog with preset that may be useful (recent preset, most used preset ...)
  • Should it go to server preferences instead of browser storage? (or both) ?
2026-02-26.14-13-47.mp4

Copy link
Contributor

@Simek Simek left a comment

Choose a reason for hiding this comment

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

This is an interesting feature! 👍

Left few comments related to the UI part below.

I also wonder if this should be stored in the user preferences instead of local storage, so the pins are shared between multiple devices.

const variantIcon =
customisation.settings.variant !== 'standard' || customisation ? variantDef?.icon : undefined;
const typeIconAttrs =
customisation.gameType === 'hook'
Copy link
Contributor

Choose a reason for hiding this comment

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

We might want to skip group icon to match default tiles, which are hooks. Also icons feels a bit too big.

Copy link
Contributor Author

@yafred yafred Feb 27, 2026

Choose a reason for hiding this comment

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

(I'm happy you think we are at this stage of polishing 😄 )

The default tiles are not really hooks, there are pools:

  • customised tiles should send you to the lobby (unless you configure them with some pool settings)
  • default tiles just blink and wait for another player to click the same tile

My initial idea was to create a second layer of tiles and let the exisiting one in peace (but the reception was ... not great)

If this proposal goes through, we are going to spend a lot of attention on visual details (this is the home page)

attrs: { role: 'button', 'data-id': poolId, tabindex: '0' },
},
[
hl('div.clock', [
Copy link
Contributor

Choose a reason for hiding this comment

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

With icons in, would be nice to make it flex layout and align icons and text vertically.

@yafred yafred marked this pull request as ready for review February 27, 2026 09:23
@yafred
Copy link
Contributor Author

yafred commented Feb 28, 2026

Update look (based on @Simek feedback)

image

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.

2 participants