[DevEx]: Clean up and centralize the "Waiting for Game to Start" overlays
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- developer-experience, frontend
Research direction
Start by comparing the three named Vue components: src/routes/game/components/GameOverlays.vue, GameUnavailable.vue, and RematchView.vue; trace how each decides to show the overlay and how game.status is used. Check whether the existing status can consistently replace the current conditions and whether one or two shared components fit the cases. Done means the overlays and triggering logic are consolidated consistently without changing when players see them.
Written by the indexing model from the issue text.
Description
Improvement Summary
There are currently three separate overlays that display the text "Waiting for Game to Start". We should consolidate them and the logic that triggers them to simplify working with these components and debugging them.
Detailed Description
The three overlays are in:
src/routes/game/components/GameOverlays.vue
src/routes/game/components/GameUnavailable.vue
src/routes/game/components/RematchView.vue
We should investigate whether they can be combined into one or two components to give a consistent look and feel, and whether they can have the logic that triggers them consolidated to be more consistent. Currently, one of them is triggered based on the pressence of an id in the game store, one based on whether p0Ready && p1Ready in the game store, and one based on the route alone (the rematch view always displays this overlay because it goes away when you redirect to the GameView itself. We should investigate if we can make use of the existing game.status attribute and compare to GameStatus.STARTED rather than checking id and p0Ready + p1Ready since this is more consistently aligned with the central purpose of checking whether the game has begun.
- Dominant language
- JavaScript
- Stars
- 195
- Forks
- 145
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 32
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cuttle-cards/cuttle
-
enhancement version-minor
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
cuttle-cards/cuttle#1467 ·
Maintainers usually reply within 1 day
-
dev experience
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
cuttle-cards/cuttle#1461 ·
Maintainers usually reply within 1 day
-
[DevEx]: Convert the gameHistory store to TypeScriptMay be free again @aniruddh18122006-cyber claimed this 24 days ago, and no pull request is open. Opendev experience frontend good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cuttle-cards/cuttle#1424 · 1 comment ·
Maintainers usually reply within 1 day
-
dev experience frontend good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
cuttle-cards/cuttle#1422 · 1 comment ·
Maintainers usually reply within 1 day
-
dev experience frontend good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cuttle-cards/cuttle#1403 ·
Maintainers usually reply within 1 day
All issues in cuttle-cards/cuttle
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 25 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
libnativeapi/nativeapi#21 ·
-
area: core complexity: easy impact: medium
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
ueberdosis/tiptap#8668 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day