driggsby 0.7.5 → 0.7.6
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/dist/init/template-styles.js +12 -17
- package/dist/init/templates.js +7 -9
- package/package.json +3 -3
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
export const STYLES_CSS = `/* Driggsby's console palette, so this page reads as part of the app it
|
|
14
14
|
opens inside. Change these together if you re-theme (all but
|
|
15
15
|
--font-sans, which stays as it is); keep --bg-app equal to the
|
|
16
|
-
"background" in driggsby.json. The status tones are
|
|
17
|
-
|
|
16
|
+
"background" in driggsby.json. The status tones are for gains, losses,
|
|
17
|
+
warnings, and a live dot. */
|
|
18
18
|
:root {
|
|
19
19
|
color-scheme: dark;
|
|
20
20
|
--bg-app: #000000;
|
|
@@ -35,17 +35,14 @@ export const STYLES_CSS = `/* Driggsby's console palette, so this page reads as
|
|
|
35
35
|
--ease: cubic-bezier(0.2, 0, 0, 1);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
/* Inter,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
font
|
|
45
|
-
|
|
46
|
-
loads its font from its own address, so it looks the same everywhere
|
|
47
|
-
it's shown. Text waits for the font (font-display: block, preloaded)
|
|
48
|
-
rather than flash another face first. */
|
|
38
|
+
/* Inter, from this page's own address, so it looks the same everywhere
|
|
39
|
+
it's shown. Inter is the only font a dashboard uses: set all text with
|
|
40
|
+
var(--font-sans), keep that stack as it is, and name no other font
|
|
41
|
+
anywhere else. A <canvas> or a chart library's font setting can't read
|
|
42
|
+
var(): name "Inter" there, followed only by sans-serif, and draw a
|
|
43
|
+
canvas after document.fonts.ready. Text waits for the font
|
|
44
|
+
(font-display: block, preloaded) rather than flash another face
|
|
45
|
+
first. */
|
|
49
46
|
@font-face {
|
|
50
47
|
font-family: "Inter";
|
|
51
48
|
src: url("/-/inter.woff2") format("woff2");
|
|
@@ -78,8 +75,7 @@ textarea {
|
|
|
78
75
|
}
|
|
79
76
|
|
|
80
77
|
/* A compact column: a few figures and a short list read best close
|
|
81
|
-
together.
|
|
82
|
-
page grows. */
|
|
78
|
+
together. Widen it as the page grows. */
|
|
83
79
|
main {
|
|
84
80
|
max-width: 800px;
|
|
85
81
|
margin: 0 auto;
|
|
@@ -104,8 +100,7 @@ h2 {
|
|
|
104
100
|
letter-spacing: -0.02em;
|
|
105
101
|
}
|
|
106
102
|
|
|
107
|
-
/*
|
|
108
|
-
capped at the console's 920px. */
|
|
103
|
+
/* A card per figure, 16px apart. */
|
|
109
104
|
.stat-grid {
|
|
110
105
|
display: grid;
|
|
111
106
|
grid-template-columns: repeat(4, minmax(0, 1fr));
|
package/dist/init/templates.js
CHANGED
|
@@ -114,9 +114,8 @@ export const APP_JS = `// Your app's code. Edit anything — driggsby dev reload
|
|
|
114
114
|
// search_cash_transactions bank and card transaction search
|
|
115
115
|
// search_investment_activity trades, dividends, and transfers
|
|
116
116
|
//
|
|
117
|
-
// Params mirror Driggsby's public MCP tools of the same names
|
|
118
|
-
//
|
|
119
|
-
// leave it out — Driggsby fills one in naming the dashboard.
|
|
117
|
+
// Params mirror Driggsby's public MCP tools of the same names; a watch
|
|
118
|
+
// needs no "reason".
|
|
120
119
|
//
|
|
121
120
|
// To see a tool's exact result shape before writing render code, run it
|
|
122
121
|
// once from the terminal — the JSON it prints is what the callback gets:
|
|
@@ -236,9 +235,9 @@ function renderAccounts(result) {
|
|
|
236
235
|
const displayName = asText(account.account_display_name);
|
|
237
236
|
const institution = asText(account.institution_name);
|
|
238
237
|
const mask = asText(account.account_mask_last4);
|
|
239
|
-
// The institution's initial on a round pill
|
|
240
|
-
//
|
|
241
|
-
//
|
|
238
|
+
// The institution's initial on a round pill. Array.from keeps an
|
|
239
|
+
// emoji-leading name from breaking the render (it splits by whole
|
|
240
|
+
// character, not UTF-16 half).
|
|
242
241
|
const initialSource = (institution || displayName).trim();
|
|
243
242
|
const initial = (Array.from(initialSource)[0] || "?").toUpperCase();
|
|
244
243
|
const institutionLine = [institution, mask ? "····" + mask : ""].filter(Boolean).join(" ");
|
|
@@ -353,9 +352,8 @@ function settledRenderer(render) {
|
|
|
353
352
|
|
|
354
353
|
// ---------------------------------------------------------------------------
|
|
355
354
|
// When a call fails. A watch whose call fails never runs its callback; it
|
|
356
|
-
// runs onError instead, with { message, kind }, once for each new failure
|
|
357
|
-
//
|
|
358
|
-
// or slow. The section says why where its data would be: in place of its
|
|
355
|
+
// runs onError instead, with { message, kind }, once for each new failure.
|
|
356
|
+
// The section says why where its data would be: in place of its
|
|
359
357
|
// skeleton, so a failure never looks like a page still loading, or under
|
|
360
358
|
// the data it already shows, which stays. The watch asks again on its own
|
|
361
359
|
// the next time your data changes, and the next good result repaints the
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "driggsby",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "Set up and build on Driggsby, the MCP server for personal finance.",
|
|
5
5
|
"license": "Apache-2.0 AND OFL-1.1",
|
|
6
6
|
"repository": {
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"node": ">=18"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@driggsby/deploy": "0.7.
|
|
34
|
-
"@driggsby/sdk": "0.7.
|
|
33
|
+
"@driggsby/deploy": "0.7.6",
|
|
34
|
+
"@driggsby/sdk": "0.7.6"
|
|
35
35
|
}
|
|
36
36
|
}
|