Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: IntroToCode/codemate-7-app
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: fixbug/publishing-error
Choose a base ref
...
head repository: IntroToCode/codemate-7-app
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 5 commits
  • 3 files changed
  • 3 contributors

Commits on Mar 31, 2026

  1. Merge pull request #43 from IntroToCode/fixbug/publishing-error

    Fixbug/publishing error
    asunoka authored Mar 31, 2026
    Configuration menu
    Copy the full SHA
    3b73103 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2026

  1. Transitioned from Plan to Build mode

    Replit-Commit-Author: Agent
    Replit-Commit-Session-Id: 7d6cf2b1-1234-4d1c-9fed-40f7bec5ea5a
    Replit-Commit-Checkpoint-Type: full_checkpoint
    Replit-Commit-Event-Id: 3b781ce7-57d4-4faa-aec6-13bcd83d31bd
    Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/de101c3e-94cf-4350-8636-b7ea30a6ba8d/7d6cf2b1-1234-4d1c-9fed-40f7bec5ea5a/Y1oVtGk
    Replit-Helium-Checkpoint-Created: true
    asunoka
    asunoka committed Apr 1, 2026
    Configuration menu
    Copy the full SHA
    1fbe3d2 View commit details
    Browse the repository at this point in the history
  2. Task #3: Unlock 7-day checkbox after spin result

    Two targeted changes to client/src/pages/SpinPage.jsx:
    
    1. Checkbox disabled prop (line ~430):
       - Changed from `disabled={controlsLocked}` to `disabled={wheelBusy}`
       - controlsLocked = wheelBusy || hasParkedResult, so the checkbox was
         previously disabled whenever a result was shown. Now it only disables
         during an active spin (wheelBusy), matching the user's request.
       - Cuisine and price filters are unchanged — still use controlsLocked.
    
    2. Wheel re-population useEffect (lines ~305-320):
       - Removed `hasParkedResult` from the early-return guard so the wheel
         re-populates immediately when eligibleRestaurants changes (triggered
         by toggleing excludeRecent) even while a result is on screen.
       - Added `if (hasParkedResult) setWinnerIndex(null)` after repopulating,
         so the stale winner-slice highlight is cleared when the pool changes
         mid-result. The result overlay (result state) is unaffected and stays
         visible. hasParkedResult remains in the deps array since it's still
         referenced inside the effect body.
    
    No backend changes. Build: 55 modules, 0 errors. Tests: 123/123 pass.
    asunoka
    asunoka committed Apr 1, 2026
    Configuration menu
    Copy the full SHA
    afd070c View commit details
    Browse the repository at this point in the history
  3. Make the wheel repopulate immediately after a spin

    Reset the winner index and update the wheel's state to immediately reflect changes after a spin, ensuring it repopulates correctly.
    
    Replit-Commit-Author: Agent
    Replit-Commit-Session-Id: 7d6cf2b1-1234-4d1c-9fed-40f7bec5ea5a
    Replit-Commit-Checkpoint-Type: full_checkpoint
    Replit-Commit-Event-Id: 9f28882e-4c71-47e6-bbd6-1af324e9901a
    Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/de101c3e-94cf-4350-8636-b7ea30a6ba8d/7d6cf2b1-1234-4d1c-9fed-40f7bec5ea5a/eyoA5jO
    Replit-Helium-Checkpoint-Created: true
    asunoka
    asunoka committed Apr 1, 2026
    Configuration menu
    Copy the full SHA
    aabe4cf View commit details
    Browse the repository at this point in the history
  4. Merge pull request #46 from IntroToCode/issue-45-skip-checkbox-toggle

    Issue 45 skip checkbox toggle
    RayS123-lab authored Apr 1, 2026
    Configuration menu
    Copy the full SHA
    09a4250 View commit details
    Browse the repository at this point in the history
Loading