Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Examples/Front-end] Tic-tac-toe #18526

Merged
merged 24 commits into from
Jul 11, 2024
Merged

[Examples/Front-end] Tic-tac-toe #18526

merged 24 commits into from
Jul 11, 2024

Commits on Jul 11, 2024

  1. [Examples/Move] Tic-tac-toe

    ## Description
    
    Port Move code for the tic tac toe example into the `sui/examples`
    directory, modernising it in the process:
    
    - Standardise the implementation between the owned, shared and
      multi-sig variants, so that the only differences are relevant to what
      they need to do differently. In doing this, the owned and multi-sig
      variants become identical (at least at the level of Move code).
    - Use transfer-to-object in the "owned" example, to send potential
      moves to the `Game` object, instead of the admin that owns the game.
    - Use more Move 2024 features (`syntax(index)`, receiver function
      aliases, etc).
    - Improve test coverage
    
    ## Test plan
    
    New unit tests:
    
    ```
    tic_tac_toe/move$ sui move test
    ```
    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    3501ecf View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e8fc1d3 View commit details
    Browse the repository at this point in the history
  3. fixup: clever errors

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    7bb12a4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    53cd199 View commit details
    Browse the repository at this point in the history
  5. fixup: test_only for tests

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    16836c6 View commit details
    Browse the repository at this point in the history
  6. [Examples/Tic-Tac-Toe] Front-end

    ## Description
    
    Build front-ends for shared and multi-sig tic-tac-toe, using
    `create-react-dapp`.
    
    ## Test plan
    
    Manually tested, (screenshots TBD).
    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    56d308a View commit details
    Browse the repository at this point in the history
  7. fixup: stale doc comment

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    e9d57a4 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f919dc5 View commit details
    Browse the repository at this point in the history
  9. fixup: License headers

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    faad2c2 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    f061124 View commit details
    Browse the repository at this point in the history
  11. fixup: pnpm workspace unignore tic-tac-toe

    Use --ignore-workspace when installing instead.
    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    292785b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    5139b2f View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    a7c2b74 View commit details
    Browse the repository at this point in the history
  14. fixup: publish to testnet

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    d65e3b4 View commit details
    Browse the repository at this point in the history
  15. fixup: Use Polymedia for local explorer

    Couldn't get SuiScan's local explorer to work.
    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    782d410 View commit details
    Browse the repository at this point in the history
  16. fixup: Default to testnet in UI.

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    bb5302d View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    370f92f View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    5b25548 View commit details
    Browse the repository at this point in the history
  19. fixup: stub out localnet env

    This will change for each person, so don't check-in an actual package.
    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    2d53664 View commit details
    Browse the repository at this point in the history
  20. fixup: Address some more comments.

    - useExecutor exposes more info about mutation status, we leverage
      this for the play buttons.
    
    - Early return style for validation labels.
    
    - Strict equality for address validation.
    
    - `<>` instead of `<div>`
    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    32bd537 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    5c56895 View commit details
    Browse the repository at this point in the history
  22. fixup: re-publish to testnet

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    5cb3346 View commit details
    Browse the repository at this point in the history
  23. fixup: re-publish to testnet

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    0915285 View commit details
    Browse the repository at this point in the history
  24. fixup: Exclude from workspace

    amnn committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    f308c58 View commit details
    Browse the repository at this point in the history