Android / Build, or is the channel already serving this? (push) Successful in 4s
CI & Build / Build now, or wait for Android? (push) Successful in 4s
CI & Build / Python lint (push) Successful in 2s
CI & Build / TypeScript typecheck (push) Successful in 11s
Desktop (Tauri) / Build, or is the channel already serving this? (push) Successful in 3s
CI & Build / Python tests (push) Successful in 15s
CI & Build / integration (push) Successful in 58s
CI & Build / Build & push image (push) Skipped
Desktop (Tauri) / Windows installer (cross-compiled) (push) Successful in 4m17s
Desktop (Tauri) / Tauri desktop (Linux) (push) Successful in 7m50s
Desktop (Tauri) / Update manifest (push) Successful in 5s
Android / Kotlin + Rust (APK) (push) Successful in 11m37s
ThoughtSync is renamed Inkwell ("Fabled Inkwell" in full; Scribe note 5071).
This is step 1 of milestone 481: every string a person reads in the running
apps. Identities installed clients depend on are deliberately untouched — the
Tauri productName (it derives the .deb Package: field), identifier and binary
name, applicationId, X-ThoughtSync-* headers, the export's app marker, env vars,
module and crate names.
- web: title, PWA manifest (name "Fabled Inkwell", short_name "Inkwell"),
offline page, icon labels, build labels, prompts, notification title
- server: site_name default, import error, link-preview User-Agent
- 0030: a stored site_name of exactly the old default follows the rename. The
Settings page saves every key, so most servers hold "ThoughtSync" without an
admin ever having chosen it; a name they typed is left alone
- desktop: window title, default device name, local-mode site name, log line
- android: app_name and the strings that name the app
- core: probe and compatibility messages
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
72 lines
2.4 KiB
Vue
72 lines
2.4 KiB
Vue
<script setup lang="ts">
|
|
import { onMounted, ref } from "vue";
|
|
import BaseModal from "./BaseModal.vue";
|
|
import BaseButton from "./BaseButton.vue";
|
|
import { isDesktop, desktop } from "../desktop/bridge";
|
|
import { useUiStore } from "../stores/ui";
|
|
|
|
// First-run prompt (Linux AppImage only) offering to add Inkwell to the
|
|
// applications menu so it behaves like an installed app instead of a loose file.
|
|
// Shown once; the choice is remembered. Users who decline can integrate later from
|
|
// Account. No-op on the web build and on already-integrated / non-AppImage runs.
|
|
const DISMISS_KEY = "desktop.integration.prompted";
|
|
|
|
const ui = useUiStore();
|
|
const show = ref(false);
|
|
const working = ref(false);
|
|
|
|
onMounted(async () => {
|
|
if (!isDesktop() || localStorage.getItem(DISMISS_KEY)) return;
|
|
try {
|
|
const status = await desktop.integrationStatus();
|
|
if (status.is_appimage && !status.is_integrated) show.value = true;
|
|
} catch {
|
|
/* not an AppImage / no bridge — just don't prompt */
|
|
}
|
|
});
|
|
|
|
function dismiss() {
|
|
localStorage.setItem(DISMISS_KEY, "1");
|
|
show.value = false;
|
|
}
|
|
|
|
async function integrate() {
|
|
working.value = true;
|
|
try {
|
|
await desktop.integrate();
|
|
localStorage.setItem(DISMISS_KEY, "1");
|
|
show.value = false;
|
|
ui.showToast("Inkwell added to your applications menu.");
|
|
} catch (e) {
|
|
ui.showToast((e as { message?: string }).message ?? "Couldn't add to applications.");
|
|
} finally {
|
|
working.value = false;
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<BaseModal
|
|
v-if="show"
|
|
align="center"
|
|
panel-class="w-full max-w-md shadow-xl"
|
|
aria-label="Add Inkwell to your applications"
|
|
@close="dismiss"
|
|
>
|
|
<div class="p-6">
|
|
<h2 class="text-lg font-bold tracking-tight text-neutral-900 dark:text-neutral-100">
|
|
Add Inkwell to your applications?
|
|
</h2>
|
|
<p class="mt-2 text-sm text-neutral-600 dark:text-neutral-400">
|
|
We'll add a menu entry so you can launch Inkwell from your app launcher, and keep a stable
|
|
copy in <code class="font-mono text-xs">~/Applications</code> so it isn't lost from Downloads.
|
|
You can undo this any time from your account.
|
|
</p>
|
|
<div class="mt-6 flex justify-end gap-3">
|
|
<BaseButton variant="ghost" :disabled="working" @click="dismiss">Not now</BaseButton>
|
|
<BaseButton :loading="working" @click="integrate">Add to applications</BaseButton>
|
|
</div>
|
|
</div>
|
|
</BaseModal>
|
|
</template>
|