Repository navigation
Expand file tree
/
Copy pathoptions.html
More file actions
283 lines (236 loc) · 18.9 KB
/
Copy pathoptions.html
File metadata and controls
283 lines (236 loc) · 18.9 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
278
279
280
281
282
283
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Lambda Rackside – Settings</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="form">
<h1 class="brand"><img src="icons/logo.svg" alt="" width="32" height="32"><span><span class="brand-name">Lambda</span> Rackside <span class="brand-sub">Settings</span></span></h1>
<nav id="tabs" class="tabs" role="tablist" aria-label="Settings sections"></nav>
<section class="guide" data-tab="start">
<h2 class="guide-title">Getting started (5 minutes)</h2>
<ol class="guide-steps">
<li>
<b>Be signed in to an AI chat in this browser (optional).</b> <a href="https://claude.ai" target="_blank" rel="noopener">Claude</a>, <a href="https://chatgpt.com" target="_blank" rel="noopener">ChatGPT</a> or <a href="https://gemini.google.com" target="_blank" rel="noopener">Gemini</a>: Rackside finds the one you're signed in to by itself. No API key needed. Without it the panel still works from the ticket and NetBox (server, power-down by keywords, BMC, parts, RMA); the AI adds the written brief, chat and RMA help.
</li>
<li>
<b>Install the helper tools</b> (ping, BMC).
<span class="os-mac">Open <b>Terminal</b> (press <kbd>⌘ Space</kbd>, type <i>Terminal</i>, press <kbd>Return</kbd>), paste this command with <kbd>⌘ V</kbd> and press <kbd>Return</kbd>.</span>
<span class="os-win">Open <b>PowerShell</b> (press the <kbd>Windows</kbd> key, type <i>PowerShell</i>, press <kbd>Enter</kbd>), paste this command with <kbd>Ctrl V</kbd> (or right-click) and press <kbd>Enter</kbd>.</span>
It asks before installing anything.
<div class="row" style="margin-top:6px">
<input id="setupCmd" type="text" readonly class="mono">
<button id="copySetup" type="button">Copy</button>
</div>
<div class="hint">It finds the <code>lambda-rackside</code> folder wherever you put it (Desktop, Downloads…). If it says the folder wasn't found, type <code class="os-mac">bash</code><code class="os-win">powershell -ExecutionPolicy Bypass -File</code> and a space, drag <code class="os-mac">setup.sh</code><code class="os-win">setup.ps1</code> from the folder into the window, add a space and the extension ID (<code class="ext-id"></code>), then press Enter.</div>
</li>
<li>
Open any Jira ticket and click the Lambda icon in Chrome's toolbar.
</li>
</ol>
</section>
<h2 data-tab="start">AI</h2>
<div class="field">
<label><input id="aiEnabled" type="checkbox"> <b>Use AI</b> for the brief, chat and RMA help</label>
<div class="hint">Off: nothing is sent to an AI. The brief is built from the ticket's own text (hostname, chassis S/N, IPs, rack, comments, and a power-down check by keywords), and the server is checked in NetBox as usual. NetBox, BMC health, ping, parts and RMA all still work. Click Save to apply; an open ticket updates right away.</div>
</div>
<div class="field">
<label for="aiChat">Chat to use</label>
<div class="row">
<select id="aiChat"><option value="auto">Auto: the chat you're signed in to (recommended)</option><option value="claude">Claude (claude.ai)</option><option value="chatgpt">ChatGPT (chatgpt.com)</option><option value="gemini">Gemini (gemini.google.com)</option></select>
<button id="testAi" type="button">Test it</button>
</div>
<div id="aiSignedIn" class="hint"></div>
<div class="hint"><b>Auto</b> uses the first chat you're signed in to in Chrome (Claude, then ChatGPT, then Gemini), and moves on to the next one if a chat is signed out or out of messages. No API key: sign in to the site in this browser once. Rackside loads the chat in a hidden frame (no window, no tab), sends the ticket there as a private chat that stays out of your chat history (with names, IPs and serials replaced when Privacy mode is on), and shows the answer in the panel as it's written. A blank chat stays loaded so requests start right away. If the chat asks you to sign in or to confirm you're human, a window comes up for you to do that, and Rackside carries on by itself afterwards. Rackside reads the chat page itself, so if the site changes its layout the AI can stop working until Rackside is updated; the basic brief still works.</div>
</div>
<h2 data-tab="start">Back up or move your settings</h2>
<div class="field">
<div class="row">
<button id="exportSettings" type="button">💾 Save settings to a file</button>
<button id="importSettings" type="button">📂 Load settings from a file</button>
<input id="importFile" type="file" accept=".json,application/json" class="hidden">
</div>
<label><input id="exportSecrets" type="checkbox"> Include my NetBox token (keep that file private)</label>
<div id="backupMsg" class="hint">Keep a copy, move to a new computer, or share your team's setup (Jira fields, team notes, catalog link) without the token. Saves what you last saved with <b>Save</b>. Loading a file changes only the settings in it.</div>
</div>
<h2 id="updatesHead" data-tab="start">Updates</h2>
<div class="field">
<div class="row">
<span id="updateStatus" class="muted" style="align-self:center; flex:1"></span>
<button id="checkUpdate" type="button">Check for updates</button>
</div>
<div id="updateHelp"></div>
<div class="hint">Checks the lambda-rackside repo on GitHub with your GitHub login in Chrome. The repo is private, so you need access to it. Chrome also checks every 2 hours: a new version shows a red <b>NEW</b> badge on the toolbar icon, one notification, and a 🆕 banner in the panel.</div>
</div>
<h2 data-tab="privacy">Privacy</h2>
<div class="field">
<label><input id="privacyMode" type="checkbox"> <b>Privacy mode:</b> hide sensitive data from the AI</label>
<div class="hint">Before a ticket is sent, the values below are replaced with placeholders like <code>[IP-1]</code> or <code>[PERSON-2]</code>. The AI works with the placeholders, and the real values are put back into the brief on this computer, so you still see them. Passwords, tokens and API keys found in tickets are always removed in privacy mode.</div>
<div id="privacyKinds" class="privacy-kinds"></div>
</div>
<div class="field">
<label for="privacyWords">Other words to hide (optional)</label>
<textarea id="privacyWords" rows="3" placeholder="One per line, e.g. customer names or project code names"></textarea>
</div>
<h2 data-tab="servers">Ping helper & reachability</h2>
<div class="field">
<label>Ping helper (one-time install)</label>
<div class="hint" style="margin-bottom:6px">Browsers can't ping, so a small helper on this computer does it. Open <b>Terminal</b> and paste:</div>
<div class="row">
<input id="installCmd" type="text" readonly class="mono">
<button id="copyInstall" type="button">Copy</button>
</div>
<div class="hint">Finds the <code>lambda-rackside</code> folder wherever you put it.
<span class="os-mac">Requires python3 (<code>xcode-select --install</code>). Run it in Terminal.</span>
<span class="os-win">Requires Python 3 (<code>winget install Python.Python.3.13</code>). Run it in PowerShell.</span></div>
<div class="row" style="margin-top:8px">
<button id="testHelper" type="button">Test ping helper</button>
<span id="helperMsg" class="muted" style="align-self:center"></span>
</div>
</div>
<div class="field">
<label><input id="pingAuto" type="checkbox"> Ping the server's IP addresses automatically when a ticket is analyzed</label>
</div>
<h2 data-tab="servers">Parts catalog</h2>
<div class="field">
<label for="catalogUrl">Lambda parts catalog (Google Sheets link)</label>
<div class="row">
<input id="catalogUrl" type="text" class="mono">
<button id="testCatalog" type="button">Test catalog</button>
</div>
<div id="catalogMsg" class="hint">The Parts card matches part numbers from the ticket, NetBox and the BMC against this sheet, shows each part's Lambda P/N first (with SKU, MPN and description), lets you search it, and opens the sheet on the part's row so you can confirm it. Paste any catalog link that opens in Google Sheets (a Google Sheet or an Excel file in Drive); you need access to it, and it's read once a day. Clear the field to go back to the default catalog. When you ask the AI chat about parts, the catalog rows that fit your question (about 30) are sent with it so it can answer with real Lambda P/Ns.</div>
</div>
<h2 data-tab="jira">Jira</h2>
<div class="field">
<label><input id="autoRun" type="checkbox"> Analyze automatically when I open a Jira issue</label>
<div class="hint">If off, click “Analyze” in the side panel.</div>
</div>
<div class="field">
<label for="jiraHosts">Self-hosted Jira hostnames (optional)</label>
<input id="jiraHosts" type="text" placeholder="jira.mycompany.com, jira2.mycompany.com">
<div class="hint">*.atlassian.net works out of the box. Chrome will ask permission for any host you add.</div>
</div>
<div class="field">
<label for="serverField">Server name field (optional)</label>
<input id="serverField" type="text" placeholder="e.g. Hostname or customfield_10234">
<div class="hint">If your tickets have a dedicated field, its value is used exactly. Otherwise it's found in the text (by the AI, or by pattern when the AI is off).</div>
</div>
<div class="field">
<label for="locationField">Location field (optional)</label>
<input id="locationField" type="text" placeholder="e.g. Datacenter or customfield_10301">
</div>
<h2 data-tab="servers">BMC logins, health & power</h2>
<div class="hint" style="margin-bottom:10px"><b>Check health</b> asks for the BMC password: copy the BMC IP (there's a button), find it in 1Password (<kbd class="k-quick"></kbd>), copy the password and paste it into the panel. The check starts as soon as you paste. The password is kept in memory until you close the panel, never saved or sent to the AI.</div>
<div class="field">
<label for="bmcUser">BMC username</label>
<input id="bmcUser" type="text" class="mono" placeholder="ADMIN">
</div>
<div class="field">
<label for="bmcUrl">BMC web address</label>
<input id="bmcUrl" type="text" class="mono" placeholder="https://{ip}">
<div class="hint">Used by the <b>Open BMC</b> button. <code>{ip}</code> is replaced with the BMC IP. Change it if your BMCs use http or a port, e.g. <code>http://{ip}:8080</code>.</div>
</div>
<h2 data-tab="servers">NetBox & Podcrawler</h2>
<div class="field">
<label><input id="netboxEnabled" type="checkbox"> Look up the server in NetBox</label>
<div class="hint">Shows NetBox status, location, serial, BMC IP and cabling, and warns when the ticket and NetBox disagree.</div>
</div>
<div class="field">
<label for="netboxUrl">NetBox address</label>
<input id="netboxUrl" type="text" class="mono" placeholder="https://netbox.prod.lambdalabs.cloud">
</div>
<div class="field">
<label for="netboxToken">NetBox API token (optional)</label>
<input id="netboxToken" type="password" autocomplete="off" placeholder="Leave empty to use your NetBox browser login">
<div class="hint">By default the extension uses your NetBox login in Chrome, so no token is needed. If that doesn't work, create a read-only token in NetBox (your profile → API Tokens) and paste it here.</div>
<div class="row" style="margin-top:8px">
<button id="testNetbox" type="button">Test NetBox</button>
<span id="netboxMsg" class="muted" style="align-self:center"></span>
</div>
</div>
<div class="field">
<label for="podcrawlerUrl">Podcrawler address</label>
<input id="podcrawlerUrl" type="text" class="mono" placeholder="https://podcrawler.aws.lambdalabs.cloud/#/racking">
<div class="hint">The <b>Open Podcrawler</b> button opens this and copies the hostname, so you can paste it into the search.</div>
</div>
<div class="field">
<label><input id="podcrawlerStep" type="checkbox"> Add a “Rescan in Podcrawler” step to replacement tickets</label>
</div>
<h2 data-tab="jira">People</h2>
<div class="field">
<label for="slackIn">Clicking a person's name opens Slack in</label>
<select id="slackIn">
<option value="browser">Slack in Chrome (opens the chat with them)</option>
<option value="app">The Slack desktop app (name copied)</option>
</select>
<div class="hint">With Slack in Chrome, the extension opens your chat with that person (it uses Slack's own search in your Slack tab; nothing is sent). If Slack is already open in a Chrome tab, that tab is used either way. The desktop app can't be controlled, so there the name is copied: press <kbd class="k-slack"></kbd> and paste.</div>
</div>
<h2 data-tab="jira">AI instructions</h2>
<div class="field">
<label for="teamContext">Team context / runbook notes (optional)</label>
<textarea id="teamContext" placeholder="e.g. Hostname format is <site>-<rack>-<node>. For GPU Xid 79, drain the node and reseat the GPU before RMA. Escalate PSU failures to DC Ops."></textarea>
<div class="hint">Added to every prompt so suggestions follow your team's procedures.</div>
</div>
<div class="field">
<label for="customInstructions">Custom instructions (optional)</label>
<textarea id="customInstructions" placeholder="e.g. Always answer in English. Keep next steps to 5 items max. Mention the RMA number if there is one. Flag tickets older than 7 days."></textarea>
<div class="hint">Added to every prompt and take priority over the built-in behaviour. The power-down safety check always stays on: “OK to power down” still requires evidence in the ticket.</div>
</div>
<h2 data-tab="look">Theme</h2>
<div class="hint look-note">Changes apply right away, here and in the side panel. No need to click Save.</div>
<div class="field">
<label>Mode</label>
<div class="look-seg" role="radiogroup"><label><input type="radio" name="theme" value="system" data-look="theme"><span>💻 Same as my computer</span></label><label><input type="radio" name="theme" value="light" data-look="theme"><span>☀️ Light</span></label><label><input type="radio" name="theme" value="dark" data-look="theme"><span>🌙 Dark</span></label></div>
</div>
<div class="field">
<label>Accent colour</label>
<div class="look-swatches" role="radiogroup"><label title="Lambda purple"><input type="radio" name="accent" value="lambda" data-look="accent"><span class="swatch" style="--sw:#5b3df5"></span><span>Lambda purple</span></label><label title="Blue"><input type="radio" name="accent" value="blue" data-look="accent"><span class="swatch" style="--sw:#0c66e4"></span><span>Blue</span></label><label title="Teal"><input type="radio" name="accent" value="teal" data-look="accent"><span class="swatch" style="--sw:#1d7f8c"></span><span>Teal</span></label><label title="Green"><input type="radio" name="accent" value="green" data-look="accent"><span class="swatch" style="--sw:#1f845a"></span><span>Green</span></label><label title="Orange"><input type="radio" name="accent" value="orange" data-look="accent"><span class="swatch" style="--sw:#c25100"></span><span>Orange</span></label><label title="Pink"><input type="radio" name="accent" value="pink" data-look="accent"><span class="swatch" style="--sw:#ae4787"></span><span>Pink</span></label><label title="Graphite"><input type="radio" name="accent" value="graphite" data-look="accent"><span class="swatch" style="--sw:#44546f"></span><span>Graphite</span></label></div>
<div class="hint">Buttons, links, the active tab and the "At a glance" card.</div>
</div>
<div class="field">
<label>Section colours</label>
<div class="look-seg" role="radiogroup"><label><input type="radio" name="sectionColors" value="colorful" data-look="sectionColors"><span>🎨 Each section its own colour</span></label><label><input type="radio" name="sectionColors" value="plain" data-look="sectionColors"><span>One colour (the accent)</span></label></div>
<div class="hint">Colourful: Request blue, Server teal, BMC purple, Steps green, Parts orange, RMA pink… so you can tell where you are.</div>
</div>
<h2 data-tab="look">Layout</h2>
<div class="field">
<label>The brief</label>
<div class="look-cards" role="radiogroup">
<label><input type="radio" name="layout" value="glance" data-look="layout"><span><b>⚡ At a glance first</b> (recommended)<br><span class="muted">One summary card on top; Request, Server, Parts and Cautions start folded.</span></span></label>
<label><input type="radio" name="layout" value="open" data-look="layout"><span><b>📖 Everything open</b><br><span class="muted">The summary card and every section open.</span></span></label>
<label><input type="radio" name="layout" value="classic" data-look="layout"><span><b>📜 Classic</b><br><span class="muted">No summary card; every section open, like before 1.31.</span></span></label>
</div>
</div>
<div class="field">
<label>Density</label>
<div class="look-seg" role="radiogroup"><label><input type="radio" name="density" value="comfortable" data-look="density"><span>Comfortable</span></label><label><input type="radio" name="density" value="compact" data-look="density"><span>Compact (more on screen)</span></label></div>
</div>
<div class="field">
<label>Text size</label>
<div class="look-seg" role="radiogroup"><label><input type="radio" name="textSize" value="small" data-look="textSize"><span>Small</span></label><label><input type="radio" name="textSize" value="normal" data-look="textSize"><span>Normal</span></label><label><input type="radio" name="textSize" value="large" data-look="textSize"><span>Large</span></label></div>
</div>
<div class="field">
<label><input type="checkbox" id="jumpBar" data-look="jumpBar"> Show the jump bar (section chips under the header)</label>
</div>
<div class="field"><button id="lookReset" type="button">↺ Back to the default look</button></div>
<div class="row save-bar">
<button id="save" class="primary" type="button">Save</button>
<span id="msg" class="muted" style="align-self:center"></span>
<span class="dev-contact muted"></span>
</div>
</div>
<script src="icons.js"></script>
<script src="common.js"></script>
<script src="chatpage.js"></script>
<script src="webchat.js"></script>
<script src="analysis.js"></script>
<script src="ping.js"></script>
<script src="netbox.js"></script>
<script src="privacy.js"></script>
<script src="bmc.js"></script>
<script src="catalog.js"></script>
<script src="options.js"></script>
</body>
</html>