Repository navigation
Expand file tree
/
Copy pathsettings.html
More file actions
277 lines (260 loc) · 21.2 KB
/
Copy pathsettings.html
File metadata and controls
277 lines (260 loc) · 21.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lambda OS Settings</title>
<script src="theme.js"></script>
<link rel="stylesheet" href="newtab.css">
<style>
body { overflow: auto; }
select { padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-hi); background: var(--field); color: var(--text); font: 13px var(--font); }
.swatches { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--text); box-shadow: 0 0 0 2px var(--bg) inset; }
.keyrow { display: flex; gap: 8px; } .keyrow input { flex: 1; }
.note { font-size: 12px; color: var(--text-2); background: var(--panel-hi); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 32px 16px 60px; position: relative; z-index: 1; }
h1 { font-size: 22px; font-weight: 600; margin: 14px 0 4px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px; margin: 18px 0 0; }
legend { padding: 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-2); }
label { display: block; margin: 12px 0 4px; font-size: 12px; color: var(--text-2); }
input[type=text], input[type=password], input[type=url], input[type=email], textarea {
width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line-hi); background: rgba(5,7,13,.6); color: var(--text); font: 13px var(--font);
}
textarea { font-family: var(--mono); font-size: 12px; min-height: 52px; resize: vertical; }
.hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.radio, .checks { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.radio label, .checks label { margin: 0; display: flex; gap: 8px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; color: var(--text); }
.radio input:checked + span { color: var(--accent); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.row { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; align-items: center; }
.row .spacer { flex: 1; }
.btn.danger { border-color: rgba(208,59,59,.6); color: #ff9c9c; }
#result { margin-top: 14px; font-size: 12px; }
#result .boot-src { margin-top: 6px; }
@media (max-width: 600px) { .two { grid-template-columns: 1fr; } }
.saved-pill { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 50; display: flex; align-items: center; gap: 10px;
padding: 9px 16px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--good); background: var(--glass-strong, rgba(8,12,22,.95));
border: 1px solid var(--line-hi); box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: calc(100% - 32px); }
.saved-pill.warn { color: var(--warning); }
.saved-pill .btn { padding: 4px 10px; font-size: 12px; }
</style>
</head>
<body>
<div class="bg-grid" aria-hidden="true"></div>
<div class="wrap">
<div class="brand"><span class="brand-mark" aria-hidden="true">λ</span><span class="brand-name">LAMBDA<b>OS</b></span></div>
<h1>Settings</h1>
<p class="muted">Lambda OS reads everything with your own browser sign-ins. Nothing leaves your browser and no passwords or tokens are stored. Changes save automatically.</p>
<fieldset>
<legend>Appearance</legend>
<label>Theme</label>
<div class="radio" id="lookTheme">
<label><input type="radio" name="theme" value="system"><span>◐ System</span></label>
<label><input type="radio" name="theme" value="light"><span>☀ Light</span></label>
<label><input type="radio" name="theme" value="dark"><span>☾ Dark</span></label>
</div>
<label>Accent color</label>
<div class="swatches" id="lookAccent"></div>
<div class="two">
<div><label for="lookDensity">Density</label><select id="lookDensity"><option value="comfortable">Comfortable</option><option value="compact">Compact</option></select></div>
<div><label for="lookText">Text size</label><select id="lookText"><option value="small">Small</option><option value="normal">Normal</option><option value="large">Large</option></select></div>
<div><label for="lookGlow">Glow effects</label><select id="lookGlow"><option value="on">On</option><option value="off">Off (flatter)</option></select></div>
<div><label for="lookMotion">Motion</label><select id="lookMotion"><option value="full">Full (rotating globe, firing neurons)</option><option value="reduced">Reduced (calm)</option></select></div>
</div>
<p class="hint">Changes apply right away here, and on the next new tab. The map and second-brain stage stays dark in both themes so imagery and glow stay readable.</p>
</fieldset>
<fieldset>
<legend>Data</legend>
<div class="radio">
<label><input type="radio" name="mode" value="live"><span>Live</span></label>
<label><input type="radio" name="mode" value="demo"><span>Demo data</span></label>
</div>
<label>Sources</label>
<div class="checks" id="sourceChecks"></div>
<label for="refreshMinutes">Refresh data automatically</label>
<select id="refreshMinutes">
<option value="2">Every 2 minutes</option><option value="5">Every 5 minutes</option><option value="10">Every 10 minutes (default)</option>
<option value="15">Every 15 minutes</option><option value="30">Every 30 minutes</option><option value="60">Every hour</option>
<option value="0">Off: only when I click ↻</option>
</select>
<p class="hint">Runs in the background even when no dashboard tab is open, and alerts are checked after each refresh. Open dashboards pick up new data once you've been idle for a minute. Faster refreshes mean more requests to Jira, NetBox and NetSuite.</p>
<div class="checks" style="margin-top:10px"><label><input type="checkbox" id="news"><span>Show the News tab (new posts on the Lambda blog, read from its public feed; no sign-in or AI)</span></label></div>
<div class="checks" style="margin-top:10px"><label><input type="checkbox" id="appTabs"><span>Keep pinned background tabs for Slack, Google Calendar and Atium (and Gmail if it needs one)</span></label></div>
<p class="hint">Slack can only be read from an open Slack page. If you have Slack open, Lambda OS reads from your tab and never touches it. If not, it keeps its own small pinned Slack tab and keeps it healthy, so you don't have to. Google Calendar is read from its own pinned tab (Google blocks the automated agenda feed). Atium, like Slack, keeps its sign-in in the page, so it's read through an Atium tab; its sign-in token never leaves that tab. Gmail normally uses your Google sign-in directly and only gets a pinned tab when that doesn't work. If a pinned tab asks you to sign in, sign in there once. Turn this off to use only your own tabs.</p>
</fieldset>
<fieldset>
<legend>Jira</legend>
<label for="jiraUrl">Jira site</label>
<input type="url" id="jiraUrl" placeholder="https://lambda-inc.atlassian.net">
<label for="fleetJql">DC tickets (JQL)</label>
<textarea id="fleetJql"></textarea>
<label for="mineJql">“My tickets” (JQL)</label>
<textarea id="mineJql"></textarea>
<label for="portfolioJql">Projects & deployments (JQL): initiatives are projects, epics are deployments</label>
<textarea id="portfolioJql"></textarea>
<label for="intakeJql">More deployments (JQL, optional), e.g. Cluster Intake epics</label>
<textarea id="intakeJql"></textarea>
<p class="hint">Ticket fields are matched by name: “Data Center Location(s)”, “Hostname”, “Cabinet Name”, “Rack Position”, “Lambda Part Number”, “Time to resolution”. Deployments use “Planned Start”, “Planned End”, “Completion Date”, “Deployment Type”, “Slack Channel”. Progress counts their child workstreams.</p>
</fieldset>
<fieldset>
<legend>NetBox</legend>
<label for="netboxUrl">NetBox address</label>
<input type="url" id="netboxUrl" placeholder="https://netbox.prod.lambdalabs.cloud">
<label for="netboxToken">API token (optional)</label>
<input type="password" id="netboxToken" autocomplete="off" placeholder="Leave empty to use your NetBox browser login">
<p class="hint">Needs the VPN. “Low” stock means at or below each line’s alert quantity.</p>
</fieldset>
<fieldset>
<legend>NetSuite</legend>
<label for="netsuiteUrl">NetSuite address</label>
<input type="url" id="netsuiteUrl" placeholder="https://4930164.app.netsuite.com">
<div class="two">
<div><label for="nsOnHandSearch">Material on hand: saved search ID</label><input type="text" id="nsOnHandSearch" placeholder="3151"></div>
<div><label for="nsMovesSearch">Material movements: saved search ID</label><input type="text" id="nsMovesSearch" placeholder="3152"></div>
</div>
<p class="hint">Read with your NetSuite sign-in, using each saved search’s CSV export. The ID is the number after <code>searchid=</code> in the search’s address.</p>
</fieldset>
<fieldset>
<legend>Atium</legend>
<label for="atiumUrl">Atium address</label>
<input type="url" id="atiumUrl" placeholder="https://kelsier.aws.lambdalabs.cloud">
<p class="hint">Builds, hand-offs, onsite schedules and purchase orders, read with your Atium (Okta) sign-in.</p>
</fieldset>
<fieldset>
<legend>Yard</legend>
<label for="yardUrl">Yard Central address</label>
<input type="url" id="yardUrl" placeholder="https://yard-central.aws.lambdalabs.cloud">
<p class="hint">Each ticket host's state, pool, lock and Starbase, read with your Yard Central (Okta) sign-in through a pinned Yard Central tab. Read-only: Lambda OS never locks, unlocks or runs plans. What you can see depends on your Yard access (Yard Central → Profile → Access Change Request).</p>
</fieldset>
<fieldset>
<legend>Grafana</legend>
<label for="grafanaUrl">Grafana address</label>
<input type="url" id="grafanaUrl" placeholder="https://grafana.aws.lambdalabs.cloud">
<p class="hint">Production Grafana: each site's PDU power, hottest host inlets, firing hardware alerts (tied to devices and tickets) and unreachable network devices. Read with your Grafana sign-in; only small totals and alert lists are fetched. The staging Grafana has no production sites.</p>
</fieldset>
<fieldset>
<legend>Google</legend>
<label for="calendarEmail">Calendar to show (optional)</label>
<input type="email" id="calendarEmail" placeholder="Defaults to your Gmail / Jira address">
</fieldset>
<fieldset>
<legend>Alerts</legend>
<div class="checks"><label><input type="checkbox" id="alEnabled"><span>Desktop alerts on</span></label><label><input type="checkbox" id="alBadge"><span>Urgent count on the toolbar icon</span></label></div>
<label>Alert me when</label>
<div class="checks">
<label><input type="checkbox" data-al="myTickets"><span>My tickets near or past SLA</span></label>
<label><input type="checkbox" data-al="assigned"><span>A ticket is assigned to me</span></label>
<label><input type="checkbox" data-al="tracked"><span>A tracked deployment changes status</span></label>
<label><input type="checkbox" data-al="parts"><span>A part I'm waiting on is on hand</span></label>
<label><input type="checkbox" data-al="mentions"><span>I'm mentioned in Slack</span></label>
<label><input type="checkbox" data-al="siteCritical"><span>A site turns critical</span></label>
<label><input type="checkbox" data-al="siteHealth"><span>Site health: a leak detector alarming, or a breaker or power-shelf PSU newly down, at my sites (urgent)</span></label>
<label><input type="checkbox" data-al="yard"><span>Yard: one of my tickets' hosts is still in production and not locked, is locked by someone else, or I still hold a lock on a host I no longer have a ticket on</span></label>
<label><input type="checkbox" data-al="grafana"><span>Grafana: new critical hardware alerts at my sites (PSU, fan, GPU, PDU, temperature…), one notification per site</span></label>
<label><input type="checkbox" data-al="atium"><span>Atium: a build milestone goes late, a hand-off is a week away, or a purchase order at your sites goes past due</span></label>
<label><input type="checkbox" data-al="maint"><span>Maintenance (Jira MAINT): an emergency request or a window opening within the hour at your sites, or one of your tickets' hosts going into maintenance</span></label>
<label><input type="checkbox" data-al="sources"><span>A source is signed out or not updating (after 15 min)</span></label>
</div>
<div class="two">
<div><label for="alSla">Warn this many hours before an SLA breach</label><input type="text" id="alSla" inputmode="numeric" placeholder="4"></div>
<div><label>Quiet hours (no pop-ups)</label><div class="keyrow"><input type="time" id="alQuietFrom"><input type="time" id="alQuietTo"></div></div>
</div>
<div class="row" style="margin-top:10px"><button class="btn" id="alTest" type="button">Send a test alert</button><span class="hint">Alerts are checked after every background refresh (every 10 minutes). The first check only takes a baseline, so you're not flooded.</span></div>
</fieldset>
<fieldset>
<legend>Daily brief</legend>
<div class="checks"><label><input type="checkbox" id="brEnabled"><span>Daily brief on</span></label><label><input type="checkbox" id="brAuto"><span>Open it on my first new tab of the day</span></label></div>
<div class="two">
<div><label for="brTime">Time</label><input type="time" id="brTime"></div>
<div><label for="brDays">Days</label><select id="brDays"><option value="weekdays">Weekdays</option><option value="daily">Every day</option></select></div>
</div>
<div class="row" style="margin-top:10px"><button class="btn" id="brTest" type="button">Show the brief notification now</button><span class="hint">Meetings, your breached and due tickets, tracked deployments with progress since yesterday, new tickets and low spares at your sites, parts arrived, mentions. Ask AI can also summarize the brief.</span></div>
</fieldset>
<fieldset>
<legend>AI assistant</legend>
<label for="aiWeb">Chat to use</label>
<select id="aiWeb"><option value="auto">Automatic: whichever you're signed in to</option><option value="claude">Claude (claude.ai)</option><option value="chatgpt">ChatGPT (chatgpt.com)</option><option value="gemini">Gemini (gemini.google.com)</option></select>
<div class="row" style="margin-top:10px"><button class="btn" id="aiTest" type="button">Test it</button><span class="hint" id="aiTestOut"></span></div>
<p class="hint" id="aiSeen">Checking which chats you're signed in to…</p>
<p class="hint">No API key needed. <b>Automatic</b> uses the chat you're already signed in to in this browser (Claude first, then ChatGPT, then Gemini); pick one to always use it. You keep using the <b>✨ Ask AI</b> box (top bar, or ⌘J): Lambda OS opens the chat in one minimized window (never in your tabs, reused for every question), sends your question with the masked dashboard data, and shows the answer here as it's written. Each Ask AI conversation becomes one chat in your history there. It reads the chat page itself, so if the site changes its layout it can stop working until Lambda OS is updated. To keep everything away from any AI, choose “Never send to an AI” under Privacy.</p>
</fieldset>
<fieldset>
<legend>Privacy: what the AI may see</legend>
<div class="radio" id="privMode">
<label><input type="radio" name="privmode" value="redact"><span>Mask sensitive data (recommended)</span></label>
<label><input type="radio" name="privmode" value="off"><span>Send as-is</span></label>
<label><input type="radio" name="privmode" value="local"><span>Never send to an AI</span></label>
</div>
<div id="privOptions">
<label>Mask these before sending</label>
<div class="checks">
<label><input type="checkbox" data-priv="people"><span>People's names</span></label>
<label><input type="checkbox" data-priv="emails"><span>Email addresses</span></label>
<label><input type="checkbox" data-priv="network"><span>IP / MAC addresses</span></label>
<label><input type="checkbox" data-priv="serials"><span>Serial numbers</span></label>
<label><input type="checkbox" data-priv="hostnames"><span>Hostnames</span></label>
<label><input type="checkbox" data-priv="money"><span>Money amounts</span></label>
</div>
<label>Leave these out entirely</label>
<div class="checks">
<label><input type="checkbox" data-priv="messages"><span>Slack & email content</span></label>
<label><input type="checkbox" data-priv="calendar"><span>Calendar meetings</span></label>
</div>
<label for="privWords">Always mask these words (customer names, project code names…), one per line</label>
<textarea id="privWords" placeholder="Microsoft Project Starship"></textarea>
</div>
<p class="note">Masked values are swapped for placeholders like <code>[PERSON_2]</code> before the request leaves your browser, and swapped back in the answer only on your screen. Under every AI answer, <b>What was sent</b> shows the exact message.</p>
</fieldset>
<fieldset id="updates">
<legend>Updates</legend>
<p id="updStatus">Checking…</p>
<div class="row" style="margin-top:8px">
<button class="btn" id="updCheck" type="button">Check now</button>
<a class="btn" id="updChanges" target="_blank" rel="noopener">What's new</a>
<button class="btn" id="updLater" type="button" hidden>Later</button>
</div>
<div id="updHow" hidden>
<label>How to update (2 minutes)</label>
<ol class="hint" style="margin:6px 0 10px 18px;line-height:1.7">
<li>Open the <a class="linkish" id="updDownload" target="_blank" rel="noopener">Lambda OS download folder</a>, right-click <b id="updZipName">the lambda-os zip</b> (its name shows the version) → <b>Download</b>, and unzip it (Windows: right-click it → Extract All).</li>
<li>Delete your old <b>lambda-os</b> folder and put the new <b>lambda-os</b> folder in the same place (same name).</li>
<li>Click <b>Reload extension</b> below. Your settings, tracked deployments and keys are kept.</li>
</ol>
<div class="row" style="margin-top:4px"><button class="btn primary" id="updReload" type="button">Reload extension</button></div>
<details style="margin-top:10px"><summary class="hint">Advanced: update with one command (for git copies)</summary>
<label id="updCmdLabel">Paste this in Terminal (it finds your Lambda OS folder, then pulls if it's a git copy, or downloads the ZIP and opens the folder)</label>
<div class="keyrow"><input type="text" id="updCmd" readonly class="mono"><button class="btn" id="updCopy" type="button">Copy</button></div>
<p class="hint">Or <a class="linkish" id="updZip" target="_blank" rel="noopener">download the ZIP from GitHub</a>.</p>
</details>
</div>
<p class="hint">Updates come from the public GitHub repo (github.com/MarshallStunt/lambda-os). Checked every 2 hours; a NEW badge and one notification per version tell you when one is out.</p>
</fieldset>
<fieldset id="help">
<legend>Help and ideas</legend>
<p class="hint">Questions, ideas, something broken or a site/source you'd like added? Message <b>Hadi Khodja</b> on Slack.</p>
<div class="row" style="margin-top:6px"><a class="btn" href="newtab.html#tour" target="_blank" title="The four-stop tour of Lambda OS">🧭 Take the tour</a> <a class="btn primary" id="helpSlack" href="https://lambda.slack.com/team/U0AAMLCUCUA" target="_blank" rel="noopener">💬 Message Hadi on Slack</a></div>
</fieldset>
<div class="row">
<button class="btn primary" id="save" title="Changes save automatically; this checks that every source answers">Check connections</button>
<button class="btn" id="open">Open dashboard</button>
<span class="spacer"></span>
<button class="btn" id="exportBtn" title="Download your settings and tracked deployments as a file">Save backup</button>
<button class="btn" id="importBtn" title="Restore settings and tracked deployments from a backup file">Load backup</button>
<input type="file" id="importFile" accept="application/json,.json" hidden>
</div>
<div class="row">
<button class="btn" id="clear">Clear cached data</button>
<button class="btn danger" id="reset">Reset settings to defaults</button>
</div>
<div id="result" role="status"></div>
</div>
<script src="apptabs.js"></script>
<script src="live.js"></script>
<script src="ai.js"></script>
<script src="webchat.js"></script>
<script src="updates.js"></script>
<script src="settings.js"></script>
</body>
</html>