feat(brand): switch user-facing copy + Mercure topic prefix to wevisto.com
CI / test (push) Has been cancelled
CI / test (push) Has been cancelled
Mercure topic identifiers updated in lockstep across PHP publisher + TS subscriber (and their tests). Help-page setup instructions now point to wevisto.com. Traefik already serves both hosts; this aligns the in-app references with the public brand. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -3,7 +3,7 @@ import { storeToRefs } from 'pinia'
|
||||
import { useDevicesStore } from '@/stores/devices'
|
||||
import type { Device } from '@/types'
|
||||
|
||||
const TOPIC_PREFIX = 'https://pictureframe.edholm.me/devices/'
|
||||
const TOPIC_PREFIX = 'https://wevisto.com/devices/'
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
|
||||
@@ -93,8 +93,8 @@ describe('useDeviceMercure', () => {
|
||||
|
||||
expect(instances).toHaveLength(2)
|
||||
const urls = instances.map(i => i.url)
|
||||
expect(urls.some(u => u.includes('topic=https%3A%2F%2Fpictureframe.edholm.me%2Fdevices%2F7'))).toBe(true)
|
||||
expect(urls.some(u => u.includes('topic=https%3A%2F%2Fpictureframe.edholm.me%2Fdevices%2F9'))).toBe(true)
|
||||
expect(urls.some(u => u.includes('topic=https%3A%2F%2Fwevisto.com%2Fdevices%2F7'))).toBe(true)
|
||||
expect(urls.some(u => u.includes('topic=https%3A%2F%2Fwevisto.com%2Fdevices%2F9'))).toBe(true)
|
||||
expect(instances[0].withCredentials).toBe(true)
|
||||
})
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -14,7 +14,7 @@
|
||||
<meta name="mobile-web-app-capable" content="yes" />
|
||||
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
||||
<meta name="apple-mobile-web-app-title" content="pictureFrame" />
|
||||
<script type="module" crossorigin src="/build/assets/index-gq5B6HCm.js"></script>
|
||||
<script type="module" crossorigin src="/build/assets/index-ClBfMwfs.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/build/assets/_plugin-vue_export-helper-BNDVmFr7.js">
|
||||
<link rel="stylesheet" crossorigin href="/build/assets/index-BlLBHR1q.css">
|
||||
</head>
|
||||
|
||||
@@ -11,7 +11,7 @@ use Symfony\Component\Mercure\Update;
|
||||
/**
|
||||
* Thin wrapper around the Mercure hub for device-state pushes.
|
||||
*
|
||||
* Topic shape: `https://pictureframe.edholm.me/devices/{id}` — same convention
|
||||
* Topic shape: `https://wevisto.com/devices/{id}` — same convention
|
||||
* aqua-iq uses. The browser subscribes per device id; the published payload is
|
||||
* the same JSON the REST API would have returned, so the SPA can splat it
|
||||
* straight into the device store with no separate envelope handling.
|
||||
@@ -21,7 +21,7 @@ use Symfony\Component\Mercure\Update;
|
||||
*/
|
||||
final class MercurePublisher
|
||||
{
|
||||
public const TOPIC_PREFIX = 'https://pictureframe.edholm.me/devices/';
|
||||
public const TOPIC_PREFIX = 'https://wevisto.com/devices/';
|
||||
|
||||
public function __construct(
|
||||
private readonly HubInterface $hub,
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
<h3><span class="pill pill-green">Step 2 of 2</span> Green screen, single QR code</h3>
|
||||
<p>The frame is now on your home WiFi. This QR points at the website where you'll create an account (or sign in) and link the frame to it.</p>
|
||||
<ol>
|
||||
<li>Scan the QR. Your browser opens to a setup page on <code>pictureframe.edholm.me</code>.</li>
|
||||
<li>Scan the QR. Your browser opens to a setup page on <code>wevisto.com</code>.</li>
|
||||
<li>Create an account or sign in. The frame is linked to whichever account claims it first.</li>
|
||||
<li>Upload your first photo. Within a minute or two the frame will pull it down and display it.</li>
|
||||
</ol>
|
||||
@@ -154,7 +154,7 @@
|
||||
<p>Frames pull from the server roughly once per configured wake interval (often hourly or every few hours, depending on what you set). If you want the new photo to appear right now, the easiest thing is to <strong>unplug the frame and plug it back in</strong> — a power cycle forces an immediate sync regardless of the schedule.</p>
|
||||
|
||||
<h3>The same photo has been showing for a long time</h3>
|
||||
<p>Open <code>pictureframe.edholm.me</code> on your phone, sign in, and check:</p>
|
||||
<p>Open <code>wevisto.com</code> on your phone, sign in, and check:</p>
|
||||
<ul>
|
||||
<li>The frame is shown as recently active (last sync timestamp).</li>
|
||||
<li>Wake times are set to a reasonable schedule — if you set a single daily wake at 9am, that's the only time it will check.</li>
|
||||
|
||||
@@ -35,7 +35,7 @@ class MercurePublisherTest extends TestCase
|
||||
|
||||
$this->assertNotNull($captured);
|
||||
$this->assertSame(
|
||||
['https://pictureframe.edholm.me/devices/42'],
|
||||
['https://wevisto.com/devices/42'],
|
||||
$captured->getTopics(),
|
||||
);
|
||||
$this->assertSame('{"id":42,"name":"Living Room"}', $captured->getData());
|
||||
|
||||
Reference in New Issue
Block a user