Skip to content

armgit / qm

Public Imported from GitHub
0

Multiplayer agent harness for work.

Put the desktop download in Settings and remove the announcement (#1587)

Regan Bellf577beae3b05
diff --git a/plugins/web-ui/src/settings.ts b/plugins/web-ui/src/settings.ts
index af80b1fd8..36c8593f6 100644
--- a/plugins/web-ui/src/settings.ts
+++ b/plugins/web-ui/src/settings.ts
@@ -3,7 +3,7 @@ import "./slack-account";
import { openModelConnectManager, type StatusResponse } from "./model-connect";
import { api, withBase } from "./core-bridge";
import { html, nothing, render, type TemplateResult } from "lit";
-import { BookOpen, ExternalLink, LogOut, Monitor, Moon, ShieldUser, Sun, type IconNode } from "lucide";
+import { Download, ExternalLink, LogOut, Monitor, Moon, ShieldUser, Sun, type IconNode } from "lucide";
import { icon } from "./ui";
import { ADMIN_HOME_URL, appState, can, signOut } from "./shell";
import { sessionsState, setWebOnly } from "./sessions";
@@ -17,7 +17,7 @@ const CUSTOM_THEME_KEY = "theme:custom";
const CUSTOM_THEME_STYLE_ID = "custom-theme";
const THEME_FILE_ACCEPT = ".itermcolors,.plist,.json,.jsonc,application/json,text/xml,application/xml";
-const QM_ABOUT_URL = "https://github.com/yc-software/qm";
+const QM_MAC_DOWNLOAD_URL = "https://github.com/yc-software/qm/releases/download/desktop-v0.1.0/QM-mac-arm64.zip";
const THEME_OPTIONS: Array<{ value: ThemeChoice; label: string; glyph: IconNode }> = [
{ value: "light", label: "Light", glyph: Sun },
@@ -388,17 +388,15 @@ function adminRow(): TemplateResult {
`;
}
-function aboutRow(): TemplateResult {
+function desktopRow(): TemplateResult {
return html`
<div class="settings-row">
<div class="settings-row-copy">
- <div class="settings-row-title">Learn more about QM</div>
- <div class="settings-row-note">
- Why Y Combinator built this open-source agent harness, and how to run your own.
- </div>
+ <div class="settings-row-title">Desktop app</div>
+ <div class="settings-row-note">QM for Mac. Requires Apple Silicon and macOS 13 or later.</div>
</div>
- <a class="btn settings-row-action" href=${QM_ABOUT_URL} target="_blank" rel="noreferrer noopener">
- ${icon(BookOpen, 15)}<span>Read the announcement</span>${icon(ExternalLink, 14)}
+ <a class="btn settings-row-action" href=${QM_MAC_DOWNLOAD_URL} target="_blank" rel="noreferrer noopener">
+ ${icon(Download, 15)}<span>Download for Mac</span>
</a>
</div>
`;
@@ -427,7 +425,7 @@ function settingsPane(): TemplateResult {
<h1 class="pane-title">Settings</h1>
</div>
<div class="settings-group">
- ${aiAccountsRow()} ${themeRow()} ${sidebarSurfaceRow()} ${can("admin") ? adminRow() : nothing} ${aboutRow()}
+ ${aiAccountsRow()} ${themeRow()} ${sidebarSurfaceRow()} ${can("admin") ? adminRow() : nothing} ${desktopRow()}
${accountRow()}
<div class="settings-row settings-slack-account">
<qm-slack-account .user=${`${appState.me?.org}:${appState.me?.user}`}></qm-slack-account>