Skip to content

Conversation

@davidyen1124
Copy link
Contributor

Summary

  • persist the current desktop bounds in the window manager and clamp non-maximized windows when the viewport shrinks
  • bound initial and resized window dimensions to the tracked desktop size and expose a setDesktopBounds API
  • sync the desktop surface size with the provider and add coverage for the new context surface

Testing

  • npm run format
  • npm run lint
  • npm test (fails: node: bad option: --experimental-transform-types)

https://chatgpt.com/codex/tasks/task_e_68e4326defc4832a9e3ca1e7e3a70b62

@netlify
Copy link

netlify bot commented Oct 6, 2025

Deploy Preview for bugbasher ready!

Name Link
🔨 Latest commit 22bd2bc
🔍 Latest deploy log https://app.netlify.com/projects/bugbasher/deploys/68e43637d3013700083ea43f
😎 Deploy Preview https://deploy-preview-160--bugbasher.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel
Copy link

vercel bot commented Oct 6, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
bug-bash Ready Ready Preview Comment Oct 6, 2025 9:36pm

@github-actions
Copy link

github-actions bot commented Oct 6, 2025

Test Coverage

file line % branch % funcs % uncovered lines
src/
src/components/
src/components/AimCursor.tsx 96.30 100.00 100.00 52 54
src/components/BugArea.tsx 25.14 62.50 37.50 31-38 43-44 51-52 56-88 98-167 171-193 203-234 239-310 316-325 331-332 343-350
src/components/BugCard.tsx 83.08 56.00 81.25 30 130-132 134-136 140-144 155 179 181 183-201
src/components/BugCrawler.tsx 57.92 41.67 38.46 88-89 92-100 105-158 171-176 185 199 201-207 209-221
src/components/BugForecast.tsx 26.97 100.00 33.33 24-84 86-89
src/components/BugTrendsChart.tsx 6.96 100.00 66.67 31-431
src/components/Captcha.tsx 77.27 100.00 25.00 22-25 28-30 40 43-44
src/components/components.test.ts 100.00 100.00 86.67
src/components/FortuneCookie.tsx 76.47 100.00 50.00 45-49 51-60 62
src/components/Meta.tsx 5.62 100.00 50.00 6-89
src/components/StartMenu.tsx 84.17 60.00 71.43 88-97 103 125-128 133-139
src/components/Taskbar.tsx 72.02 87.50 50.00 151-153 158-188 196 201-227 238-243
src/routes/
src/routes/Bugs.tsx 98.15 100.00 100.00 54
src/routes/dashboard-helpers.test.ts 100.00 100.00 100.00
src/routes/Dashboard.tsx 88.86 74.42 84.00 179-181 242 344 347 349-384 386
src/routes/EasterEgg.tsx 84.00 100.00 66.67 30-37
src/routes/Fortune.tsx 96.97 100.00 100.00 33
src/routes/InternetExplorer.tsx 65.75 50.00 28.57 21-23 25-37 41-44 47-51 113-117 126-144 146
src/routes/JobDescription.tsx 87.50 100.00 100.00 35-38 40
src/routes/leaderboard-helpers.ts 94.19 70.27 100.00 55-56 63-64 82
src/routes/leaderboard.test.ts 100.00 100.00 100.00
src/routes/Leaderboard.tsx 77.35 72.00 52.38 102-106 115-116 200-206 234-235 238-285 287
src/routes/NewBug.tsx 71.05 85.71 45.45 79-82 85-122 137 154 179-188 190
src/routes/NotFound.tsx 85.48 100.00 66.67 35-42 62
src/routes/pages.test.ts 100.00 100.00 100.00
src/routes/SignUp.tsx 82.86 80.00 50.00 88-92 98-116
src/routes/UserProfile.tsx 71.88 60.00 61.54 40 74-77 80-83 86-98 129-144 153-158 160
src/routes/Weather.tsx 90.20 91.67 100.00 60-61 94-100 102
all files 64.99 76.16 66.22

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

Comment on lines +306 to +310
changed = true
return {
...window,
position: { x: 0, y: 0 },
size: maximizeSize,

Choose a reason for hiding this comment

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

P1 Badge Clamp maximized windows without refreshing their restore state

When setDesktopBounds shrinks the desktop, maximized windows have their position and size reset but their saved previous snapshot is left untouched. Later, toggleMaximize restores from that stale snapshot, so unmaximizing after a viewport shrink will reopen the window at the old off‑screen coordinates and dimensions, undoing the clamping. Consider updating the previous values whenever a maximized window is resized so restore always respects the current desktop bounds.

Useful? React with 👍 / 👎.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@codex please fix this

Choose a reason for hiding this comment

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

Summary

Testing

  • npm run format
  • npm run lint
  • ⚠️ npm test (fails: node: bad option: --experimental-transform-types, --test-coverage-include=src/components/, --test-coverage-include=src/routes/)

View task →

@davidyen1124
Copy link
Contributor Author

@codex please review again

@chatgpt-codex-connector
Copy link

Codex Review: Didn't find any major issues. Swish!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting

@davidyen1124 davidyen1124 merged commit 8e2ce29 into main Oct 6, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants