Skip to content

Commit 73cb6b9

Browse files
committed
frontend: drop electron references from user-facing text
Users are not expected to know Electron is the desktop runtime, so every snackbar, tooltip, dialog, alert and data-lake entry now names the desktop edition "Cockpit Standalone" and the web edition "Cockpit Lite" instead of flip-flopping between "Electron", "Desktop" and "standalone". Internal identifiers, guards and comments keep the Electron name.
1 parent daeb8f2 commit 73cb6b9

15 files changed

Lines changed: 45 additions & 47 deletions

src/components/VideoLibraryModal.vue

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@
371371
class="flex items-center gap-2 cursor-pointer"
372372
@click="isInstructionsExpanded = !isInstructionsExpanded"
373373
>
374-
<span class="text-sm text-white/70">Browser Version Instructions</span>
374+
<span class="text-sm text-white/70">Cockpit Lite Instructions</span>
375375
<v-icon
376376
class="text-white/70 transition-transform duration-200"
377377
:class="{ 'rotate-180': isInstructionsExpanded }"
@@ -391,8 +391,7 @@
391391
<div class="text-white/80 text-sm space-y-1">
392392
<p>
393393
These are raw video chunks that need to be processed. The processing can be done
394-
exclusively in the standalone version of Cockpit. The browser version can only record
395-
the video chunks.
394+
exclusively in Cockpit Standalone. Cockpit Lite can only record the video chunks.
396395
</p>
397396
<div>
398397
<p class="font-medium mb-2">To process your videos:</p>
@@ -403,7 +402,7 @@
403402
</li>
404403
<li class="flex items-start gap-2">
405404
<span class="text-white font-bold">2.</span>
406-
<span>Open the standalone version of Cockpit (desktop app)</span>
405+
<span>Open Cockpit Standalone</span>
407406
</li>
408407
<li class="flex items-start gap-2">
409408
<span class="text-white font-bold">3.</span>
@@ -627,7 +626,7 @@
627626
<ol class="text-white/80 text-sm space-y-2">
628627
<li class="flex items-start gap-2">
629628
<span class="text-white font-bold">1.</span>
630-
<span>Download raw video chunks from the browser version's "Raw" tab</span>
629+
<span>Download raw video chunks from Cockpit Lite's "Raw" tab</span>
631630
</li>
632631
<li class="flex items-start gap-2">
633632
<span class="text-white font-bold">2.</span>
@@ -831,7 +830,7 @@ const videoSubTabs = [
831830
label: 'Processed',
832831
icon: 'mdi-video',
833832
disabled: !isElectron(),
834-
tooltip: isElectron() ? '' : 'Only available in standalone version',
833+
tooltip: isElectron() ? '' : 'Only available in Cockpit Standalone',
835834
},
836835
{
837836
name: 'raw',
@@ -845,7 +844,7 @@ const videoSubTabs = [
845844
label: 'Processing',
846845
icon: 'mdi-cog-outline',
847846
disabled: !isElectron(),
848-
tooltip: isElectron() ? 'Process ZIP files with raw video chunks' : 'Only available in standalone version',
847+
tooltip: isElectron() ? 'Process ZIP files with raw video chunks' : 'Only available in Cockpit Standalone',
849848
},
850849
]
851850
@@ -854,7 +853,7 @@ const openElectronFolder = (opener: () => void): void => {
854853
opener()
855854
} else {
856855
openSnackbar({
857-
message: 'This feature is only available in the desktop version of Cockpit.',
856+
message: 'This feature is only available in Cockpit Standalone.',
858857
duration: 3000,
859858
variant: 'error',
860859
closeButton: true,
@@ -876,7 +875,7 @@ const playVideoInDefaultPlayer = (fileName: string): void => {
876875
if (isElectron() && window.electronAPI) {
877876
window.electronAPI?.openVideoFile(fileName)
878877
} else {
879-
openSnackbar({ message: 'This feature is only available in the desktop version of Cockpit.', variant: 'error' })
878+
openSnackbar({ message: 'This feature is only available in Cockpit Standalone.', variant: 'error' })
880879
}
881880
}
882881

src/components/configuration/HttpRequestActionConfig.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@
171171
class="mt-2"
172172
>
173173
<div class="text-body-2">
174-
<strong>Note:</strong> Specifying the User-Agent header only works in the standalone Electron version of
175-
the application, not in the browser/extension version.
174+
<strong>Note:</strong> Specifying the User-Agent header only works in Cockpit Standalone, not in Cockpit
175+
Lite.
176176
</div>
177177
</v-alert>
178178
</v-form>

src/components/map/MapOverlaysDialog.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,8 @@
1111
>
1212
<v-icon icon="mdi-information-outline" size="16" class="mt-[2px]" />
1313
<span>
14-
In the browser (Lite) version, overlays are stored in limited browser storage that the browser may clear,
15-
so very large surveys may fail to save or not persist. For large datasets or reliable storage, use the
16-
Standalone (desktop) app.
14+
In Cockpit Lite, overlays are stored in limited browser storage that the browser may clear, so very large
15+
surveys may fail to save or not persist. For large datasets or reliable storage, use Cockpit Standalone.
1716
</span>
1817
</div>
1918

src/components/mini-widgets/SnapshotTool.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
/>
7878
</template>
7979

80-
<span> Some features like “Capturing Cockpit work area” are only available in the Electron version. </span>
80+
<span> Some features like “Capturing Cockpit work area” are only available in Cockpit Standalone. </span>
8181
</v-tooltip>
8282
</div>
8383
<div class="flex items-center justify-start w-[90%] -mb-2">
@@ -154,7 +154,7 @@
154154
@update:model-value="(val) => (miniWidget.options.captureWorkspace = val)"
155155
/>
156156
<p class="ml-[4px] -mb-[2px] text-sm" :class="{ 'opacity-20 pointer-events-none': !isElectronEnv }">
157-
Capture Cockpit work area (Desktop-only feature)
157+
Capture Cockpit work area (Standalone-only feature)
158158
</p>
159159
</div>
160160
<v-text-field

src/composables/videoChunkManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ export const useVideoChunkManager = (): {
581581
*/
582582
const processChunkGroup = async (group: ChunkGroup): Promise<void> => {
583583
if (!isElectron() || !window.electronAPI) {
584-
openSnackbar({ message: 'Manual processing is only available in Electron', variant: 'error' })
584+
openSnackbar({ message: 'Manual processing is only available in Cockpit Standalone', variant: 'error' })
585585
return
586586
}
587587

src/libs/connection/electron-connection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class ElectronConnectionIPC {
3434
*/
3535
async initialize(): Promise<void> {
3636
if (!window.electronAPI) {
37-
throw new Error('This connection is only available in desktop version')
37+
throw new Error('This connection is only available in Cockpit Standalone')
3838
}
3939

4040
this._isOpen = await window.electronAPI.linkOpen(this.path)

src/libs/electron/vehicle-discovery.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class VehicleDiscover {
264264
signal?: AbortSignal
265265
): Promise<NetworkVehicle[]> {
266266
if (!isElectron()) {
267-
throw new Error('For technical reasons, finding vehicles is only available in Electron.')
267+
throw new Error('For technical reasons, finding vehicles is only available in Cockpit Standalone.')
268268
}
269269

270270
if (this.currentSearch !== undefined) {
@@ -282,7 +282,8 @@ class VehicleDiscover {
282282

283283
try {
284284
if (!window.electronAPI?.getInfoOnSubnets) {
285-
const msg = 'For technical reasons, getting information about the local subnet is only available in Electron.'
285+
const msg =
286+
'For technical reasons, getting information about the local subnet is only available in Cockpit Standalone.'
286287
throw new Error(msg)
287288
}
288289

src/libs/live-video-processor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class LiveVideoProcessor {
7171
*/
7272
async startProcessing(): Promise<void> {
7373
if (!isElectron()) {
74-
throw new Error('Live video processing is only available in Electron')
74+
throw new Error('Live video processing is only available in Cockpit Standalone')
7575
}
7676

7777
this.isProcessing = true
@@ -232,7 +232,7 @@ export class LiveVideoProcessor {
232232
onProgress?: (progress: number, message: string) => void
233233
): Promise<string> {
234234
if (!isElectron() || !window.electronAPI) {
235-
throw new Error('ZIP processing is only available in Electron')
235+
throw new Error('ZIP processing is only available in Cockpit Standalone')
236236
}
237237

238238
if (!zipFilePaths || zipFilePaths.length === 0) {

src/libs/map/overlay-import.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const importGeoTiffFile = async (file: File): Promise<MapOverlayMeta> =>
7878
const available = await getOverlayStorageBytesAvailable()
7979
if (available !== undefined && file.size > available) {
8080
throw new OverlayStorageQuotaError(
81-
`Not enough browser storage to save "${file.name}". Free up space or use the Standalone (desktop) app.`
81+
`Not enough browser storage to save "${file.name}". Free up space or use Cockpit Standalone.`
8282
)
8383
}
8484

@@ -90,7 +90,7 @@ export const importGeoTiffFile = async (file: File): Promise<MapOverlayMeta> =>
9090
} catch (error) {
9191
if (error instanceof DOMException && error.name === 'QuotaExceededError') {
9292
throw new OverlayStorageQuotaError(
93-
`Browser storage is full, so "${file.name}" could not be saved. Free up space or use the Standalone app.`
93+
`Browser storage is full, so "${file.name}" could not be saved. Free up space or use Cockpit Standalone.`
9494
)
9595
}
9696
throw error

src/libs/sensors/gnss.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export const stopGnssDevice = async (deviceId: string): Promise<void> => {
455455
*/
456456
export const startGnssDevice = async (device: GnssDeviceInfo, publish = true): Promise<void> => {
457457
if (!isElectron() || !window.electronAPI) {
458-
throw new Error('GNSS reading is only available in the desktop version of Cockpit.')
458+
throw new Error('GNSS reading is only available in Cockpit Standalone.')
459459
}
460460

461461
await stopGnssDevice(device.id)
@@ -517,7 +517,7 @@ export const autodetectBaud = async (
517517
perBaudMs = 1500
518518
): Promise<number | null> => {
519519
if (!isElectron() || !window.electronAPI) {
520-
throw new Error('GNSS reading is only available in the desktop version of Cockpit.')
520+
throw new Error('GNSS reading is only available in Cockpit Standalone.')
521521
}
522522

523523
await stopDevicesOnPort(port)

0 commit comments

Comments
 (0)