querysub 0.601.0 → 0.602.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "querysub",
3
- "version": "0.601.0",
3
+ "version": "0.602.0",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "note1": "note on node-forge fork, see https://github.com/digitalbazaar/forge/issues/744 for details",
@@ -8,8 +8,7 @@ import { InputLabel } from "../../library-components/InputLabel";
8
8
  import { DropdownSelector } from "../../library-components/DropdownSelector";
9
9
  import { closeAllModals } from "../../5-diagnostics/Modal";
10
10
  import { callOpenRouterModel, OpenRouterEffort } from "../../diagnostics/logs/errorNotifications2/openRouterHelper";
11
- import { formatNumber, formatTime } from "socket-function/src/formatting/format";
12
- import { timeInSecond } from "socket-function/src/misc";
11
+ import { formatNumber } from "socket-function/src/formatting/format";
13
12
  import { t } from "../../2-proxy/schema2";
14
13
 
15
14
  module.hotreload = true;
@@ -97,7 +96,6 @@ export class CommitModal extends qreact.Component<{
97
96
  diffLoading: t.boolean(true),
98
97
  summarizing: t.boolean(false),
99
98
  committing: t.boolean(false),
100
- committingStartTime: t.number,
101
99
  error: t.string,
102
100
  lastCost: t.number,
103
101
  });
@@ -174,7 +172,6 @@ export class CommitModal extends qreact.Component<{
174
172
  }
175
173
  Querysub.localCommit(() => {
176
174
  this.state.committing = true;
177
- this.state.committingStartTime = Date.now();
178
175
  this.state.error = "";
179
176
  });
180
177
  try {
@@ -224,7 +221,7 @@ export class CommitModal extends qreact.Component<{
224
221
  <div className={css.hbox(10).flexWrap("wrap").alignItems("flex-end")}>
225
222
  <button
226
223
  className={rowButtonStyle.hsl(45, 80, 85)}
227
- disabled={diffLoading || summarizing || committing}
224
+ disabled={diffLoading || summarizing}
228
225
  title={diff ? extractChangedLines(diff) : ""}
229
226
  onClick={() => void this.doSummarize()}
230
227
  >
@@ -271,10 +268,6 @@ export class CommitModal extends qreact.Component<{
271
268
  ⚠️ {this.state.error}
272
269
  </div>}
273
270
 
274
- {committing && <div className={css.pad2(10).bord2(0, 0, 20).hsl(120, 50, 92).boldStyle}>
275
- ⏳ Running {commitLabel} for {formatTime(Math.max(0, Querysub.nowDelayed(timeInSecond) - this.state.committingStartTime))}…
276
- </div>}
277
-
278
271
  <div className={css.hbox(10)}>
279
272
  <button
280
273
  className={rowButtonStyle.hsl(120, 70, 85)}