north-star / commit
removed test participants
src/app.js | 36 +++--------------------------------- 1 file changed, 3 insertions(+), 33 deletions(-) diff --git a/src/app.js b/src/app.js index 59867bc..aceedaf 100644 --- a/src/app.js +++ b/src/app.js @@ -581,37 +581,7 @@ const getParticipantsToRender = () => { }); } - // Add Space Needle and Cascadia as a test participant if there are no other participants (for testing purposes, local only) - if (participantsToRender.findIndex(p => p.id === 'space-needle') === -1) { - participantsToRender.push({ - id: 'space-needle', - name: 'Space Needle', - color: '#f211c9', - position: spaceNeedle, - timestamp: Date.now() - }); - } - if (participantsToRender.findIndex(p => p.id === 'cascadia-pizza') === -1) { - participantsToRender.push({ - id: 'cascadia-pizza', - name: 'Cascadia Pizza', - color: '#00ff00', - position: cascadiaPizza, - timestamp: Date.now() - }); - } - // Mt Rainier: 46.852200555312315, -121.76028300395946 - if (participantsToRender.findIndex(p => p.id === 'mt-rainier') === -1) { - participantsToRender.push({ - id: 'mt-rainier', - name: 'Mt Rainier', - color: '#c2c2e8', - position: { lat: 46.852200555312315, lon: -121.76028300395946 }, - timestamp: Date.now() - }); - } - - // For local testing, add a "stalker" participant that moves in a circle around the self participant. This is useful for testing the arrow rotation without needing multiple devices. The stalker will NOT be added as a participant in the database, so it will show up only on the local device and won't affect other participants. + // For testing, add a "stalker" participant that moves in a circle around the self participant. This is useful for testing the arrow rotation without needing multiple devices. The stalker will NOT be added as a participant in the database, so it will show up only on the local device and won't affect other participants. const stalkerAngle = (Date.now() / 10000) % (2 * Math.PI); // angle in radians that changes over time // console.debug('Stalker angle (radians):', stalkerAngle); const stalkerDistance = 0.001; // distance in degrees (about 111 meters) @@ -620,8 +590,8 @@ const getParticipantsToRender = () => { lon: selfPosition.lon + stalkerDistance * Math.sin(stalkerAngle) }; const testParticipant = { - id: 'test-stalker', - name: 'Test Stalker', + id: 'test', + name: 'Guardian Angel', color: '#ff0000', position: stalkerPosition, timestamp: Date.now()