Skip to content

Commit a57ccc0

Browse files
google-labs-jules[bot]arii
authored andcommitted
chore(test): update visual regression snapshots
Updated the visual regression snapshots to reflect the UI changes in the timer controls.
1 parent 9422ec1 commit a57ccc0

12 files changed

Lines changed: 500 additions & 267 deletions

File tree

.github/workflows/ci-cd.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020

2121
steps:
2222
- name: Checkout Code
23-
uses: actions/checkout@v4
23+
uses: actions/checkout@v6
2424

2525
- name: Setup Node.js ${{ matrix.node-version }}
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@v6
2727
with:
2828
node-version: ${{ matrix.node-version }}
2929
cache: "npm"
@@ -57,10 +57,10 @@ jobs:
5757
# We only need the latest, validated Node version here.
5858
steps:
5959
- name: Checkout Code
60-
uses: actions/checkout@v4
60+
uses: actions/checkout@v6
6161

6262
- name: Setup Node.js 20.x
63-
uses: actions/setup-node@v4
63+
uses: actions/setup-node@v6
6464
with:
6565
node-version: "20.x"
6666
cache: "npm"
@@ -120,10 +120,10 @@ jobs:
120120
runs-on: self-hosted
121121
steps:
122122
- name: Checkout code
123-
uses: actions/checkout@v4
123+
uses: actions/checkout@v6
124124

125125
- name: Setup Node.js
126-
uses: actions/setup-node@v4
126+
uses: actions/setup-node@v6
127127
with:
128128
node-version: "20.x"
129129
cache: "npm"

.github/workflows/pr-quality.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
timeout-minutes: 10
3131
steps:
3232
- name: Checkout
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v6
3434
with:
3535
ref: ${{ inputs.branch || github.ref }}
3636
fetch-depth: 0
@@ -50,7 +50,7 @@ jobs:
5050
pnpm config set side-effects-cache true
5151
5252
- name: Setup Node.js
53-
uses: actions/setup-node@v4
53+
uses: actions/setup-node@v6
5454
with:
5555
node-version: "20.x"
5656
# ---------------------------------
@@ -81,15 +81,15 @@ jobs:
8181
runs-on: self-hosted
8282
timeout-minutes: 10
8383
steps:
84-
- uses: actions/checkout@v4
84+
- uses: actions/checkout@v6
8585
with:
8686
ref: ${{ inputs.branch || github.ref }}
8787
clean: false # ⚡ KEEP WORKSPACE (Preserves node_modules & browsers)
8888

8989
# We still set up pnpm/node just to ensure the binaries are in PATH
9090
- uses: pnpm/action-setup@v4
9191
with: { run_install: false }
92-
- uses: actions/setup-node@v4
92+
- uses: actions/setup-node@v6
9393
with: { node-version: "20.x" }
9494

9595
- name: Lint Code
@@ -108,14 +108,14 @@ jobs:
108108
runs-on: self-hosted
109109
timeout-minutes: 15
110110
steps:
111-
- uses: actions/checkout@v4
111+
- uses: actions/checkout@v6
112112
with:
113113
ref: ${{ inputs.branch || github.ref }}
114114
clean: false # ⚡ KEEP WORKSPACE
115115

116116
- uses: pnpm/action-setup@v4
117117
with: { run_install: false }
118-
- uses: actions/setup-node@v4
118+
- uses: actions/setup-node@v6
119119
with: { node-version: "20.x" }
120120

121121
- name: Configure Envs
@@ -140,14 +140,14 @@ jobs:
140140
runs-on: self-hosted
141141
timeout-minutes: 15
142142
steps:
143-
- uses: actions/checkout@v4
143+
- uses: actions/checkout@v6
144144
with:
145145
ref: ${{ inputs.branch || github.ref }}
146146
clean: false # ⚡ KEEP WORKSPACE
147147

148148
- uses: pnpm/action-setup@v4
149149
with: { run_install: false }
150-
- uses: actions/setup-node@v4
150+
- uses: actions/setup-node@v6
151151
with: { node-version: "20.x" }
152152

153153
- name: Configure Envs

app/client/control/components/SpotifyControls.tsx

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import PlayArrow from '@mui/icons-material/PlayArrow'
66
import SkipNext from '@mui/icons-material/SkipNext'
77
import SkipPrevious from '@mui/icons-material/SkipPrevious'
88
import VolumeUp from '@mui/icons-material/VolumeUp'
9+
import LibraryMusic from '@mui/icons-material/LibraryMusic'
910
import Box from '@mui/material/Box'
11+
import Button from '@mui/material/Button'
1012
import Card from '@mui/material/Card'
1113
import CardContent from '@mui/material/CardContent'
1214
import FormControl from '@mui/material/FormControl'
@@ -16,6 +18,7 @@ import Select from '@mui/material/Select'
1618
import Slider from '@mui/material/Slider'
1719
import Stack from '@mui/material/Stack'
1820
import Typography from '@mui/material/Typography'
21+
import { useRouter } from 'next/navigation'
1922
import { useCallback, useEffect, useRef, useState } from 'react'
2023
import useVolumePreference, { clampVolume } from '@/hooks/useVolumePreference'
2124
import { useWebSocket } from '@/context/WebSocketContext'
@@ -32,6 +35,7 @@ interface SpotifyDevice {
3235
}
3336

3437
const SpotifyControls = () => {
38+
const router = useRouter()
3539
const { spotifyData, connectionStatus, sendData } = useWebSocket()
3640
const { volume, setVolume } = useVolumePreference()
3741
const lastSentVolumeRef = useRef<string | null>(null)
@@ -40,6 +44,10 @@ const SpotifyControls = () => {
4044
const [devicesLoading, setDevicesLoading] = useState(false)
4145
const [_devicesError, setDevicesError] = useState<string | null>(null)
4246

47+
const handleBrowseClick = () => {
48+
router.push('/client/spotify-selection');
49+
};
50+
4351
const hasSpotifyData =
4452
spotifyData.trackName !== 'Awaiting Login...' &&
4553
spotifyData.trackName !== '' &&
@@ -291,14 +299,18 @@ const SpotifyControls = () => {
291299
</FormControl>
292300
</Box>
293301
)}
302+
<Button
303+
variant="outlined"
304+
size="small"
305+
startIcon={<LibraryMusic />}
306+
onClick={handleBrowseClick}
307+
sx={{ mt: 2, borderColor: 'grey.600', color: 'grey.300' }}
308+
>
309+
Select Playlist
310+
</Button>
294311
</>
295312
) : (
296-
<Typography
297-
variant="body2"
298-
sx={{ color: 'grey.400', textAlign: 'center' }}
299-
>
300-
Login to Spotify on the main dashboard
301-
</Typography>
313+
<Button onClick={handleBrowseClick}>Select Music</Button>
302314
)}
303315
</CardContent>
304316
</Card>

0 commit comments

Comments
 (0)