@metabase/cli 0.1.6 → 0.1.8
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/README.md +14 -14
- package/dist/{add-collection-BU8r3r2M.mjs → add-collection-CwrbKmC1.mjs} +8 -6
- package/dist/add-collection-DxtuNxeP.mjs +11 -0
- package/dist/{archive-DMPS8Kih.mjs → archive-BAjGIzhn.mjs} +7 -7
- package/dist/{archive-C1enZgKV.mjs → archive-BO3DOWI4.mjs} +6 -6
- package/dist/{archive-CRhiBpPJ.mjs → archive-BpKZsGAm.mjs} +7 -7
- package/dist/{archive-lWgqiFAt.mjs → archive-BzvqQd34.mjs} +6 -6
- package/dist/{archive-CDA0KxL8.mjs → archive-DqUtqRut.mjs} +6 -6
- package/dist/{archive-BNinrUak.mjs → archive-ZnnJc2iT.mjs} +7 -7
- package/dist/auth-B9B4pUaH.mjs +19 -0
- package/dist/{body-DjdFxjpg.mjs → body-DDYKoyMt.mjs} +1 -1
- package/dist/{branches-B1WRfG7-.mjs → branches-DjiGsjAz.mjs} +5 -5
- package/dist/{cancel-Dl_Ho056.mjs → cancel-BwtDQ2MR.mjs} +6 -6
- package/dist/{cancel-task-CdigdCaO.mjs → cancel-task-uJp18RvR.mjs} +6 -6
- package/dist/card-D54unw6r.mjs +20 -0
- package/dist/{card-DlCAaAPq.mjs → card-ezYiriML.mjs} +1 -1
- package/dist/{cards-BGiJS675.mjs → cards-z68PANDD.mjs} +5 -5
- package/dist/cli.mjs +24 -24
- package/dist/collection-B5kIKRTL.mjs +20 -0
- package/dist/{create-BYlIju0b.mjs → create-4EAGYVyp.mjs} +7 -7
- package/dist/{create-BTcpaop_.mjs → create-6XE7GYxk.mjs} +6 -6
- package/dist/{create-BNiva__H.mjs → create-7JOWFxqu.mjs} +8 -8
- package/dist/{create-dhxPxfF3.mjs → create-BzK59YlR.mjs} +10 -10
- package/dist/{create-CHF313Qg.mjs → create-C8gA-XP2.mjs} +8 -6
- package/dist/{create-DGth_uOp.mjs → create-CQ4Vg4Ge.mjs} +7 -7
- package/dist/{create-CwGtmwqm.mjs → create-DHWfmO2L.mjs} +7 -7
- package/dist/{create-CzzrbL0u.mjs → create-Dd_Gyg_F.mjs} +6 -6
- package/dist/{create-Be_0Vier.mjs → create-GVfCQU3B.mjs} +6 -6
- package/dist/{create-branch-DKZkoQ64.mjs → create-branch-CdWGiREu.mjs} +6 -6
- package/dist/{credentials-dzeq7ckm.mjs → credentials-CFA9iGZG.mjs} +9 -9
- package/dist/{current-task-CCRzm0_7.mjs → current-task-nPs-iCLi.mjs} +7 -7
- package/dist/dashboard-lw6IFfOs.mjs +21 -0
- package/dist/{database-CIXwHKjK.mjs → database-BPT6BrmF.mjs} +3 -3
- package/dist/{database-lH-B3G1I.mjs → database-BXiue1in.mjs} +1 -1
- package/dist/db-CBCj8sBg.mjs +22 -0
- package/dist/{delete-ZjnV35OJ.mjs → delete-CJqLgr6w.mjs} +7 -5
- package/dist/{delete-CM3jnAeQ.mjs → delete-CiV6f69N.mjs} +12 -8
- package/dist/{delete-Dimc-2y8.mjs → delete-Do1agSiL.mjs} +7 -5
- package/dist/{delete-runtime-B6RQo_pw.mjs → delete-runtime-uuYbd4k2.mjs} +5 -5
- package/dist/{delete-table-agZJpivt.mjs → delete-table-ZiJDpMFT.mjs} +7 -5
- package/dist/{deprovision-CwxcIT3k.mjs → deprovision-C-qEnh-P.mjs} +11 -9
- package/dist/{dirty-D4d0yHqj.mjs → dirty-BnTG7w7v.mjs} +5 -5
- package/dist/{docker-Oq80q3tu.mjs → docker-B-QQWThD.mjs} +3 -3
- package/dist/{eid-BXzaQh0o.mjs → eid-CwQ_smOD.mjs} +10 -5
- package/dist/{error-C9S6PN3-.mjs → error-CTVL5CdB.mjs} +3 -2
- package/dist/{export-DTygoXBP.mjs → export-DR2cC4rL.mjs} +10 -9
- package/dist/field-DJmQ2pul.mjs +18 -0
- package/dist/{field-yomXlkvl.mjs → field-E0IBy4Uw.mjs} +12 -3
- package/dist/{fields-CoQi99gv.mjs → fields-Ck31lDz9.mjs} +6 -6
- package/dist/{get-C3HdQ91a.mjs → get-BFJ3VBPa.mjs} +5 -5
- package/dist/{get-DSWFjy7O.mjs → get-BNKsNCcx.mjs} +5 -5
- package/dist/{get-C2p383Qc.mjs → get-BPOd0Rm8.mjs} +5 -5
- package/dist/{get-CzuzeKSe.mjs → get-BZiu-u-9.mjs} +7 -7
- package/dist/{get-Bzys7vgp.mjs → get-C71ypFQk.mjs} +5 -5
- package/dist/{get-C_w1kvN3.mjs → get-CICzGFSW.mjs} +6 -6
- package/dist/{get-CP3Z3NiH.mjs → get-CyG_P55z.mjs} +6 -6
- package/dist/{get-lb7q3JYs.mjs → get-DauAF3sm.mjs} +5 -5
- package/dist/{get-DQTZG_NP.mjs → get-DxqzDKKK.mjs} +5 -5
- package/dist/{get-D3SbEQSE.mjs → get-DyArILlF.mjs} +6 -6
- package/dist/{get-Ddr0XLh7.mjs → get-F338MOK-.mjs} +5 -5
- package/dist/{get-DFxZXaKz.mjs → get-GWRprk7k.mjs} +5 -5
- package/dist/{get-Hc93A0Yz.mjs → get-pO0wiy1e.mjs} +5 -5
- package/dist/{get-run-B7sKdaDU.mjs → get-run-DhM_PyVy.mjs} +5 -5
- package/dist/git-sync-rmjYOGFK.mjs +28 -0
- package/dist/{has-remote-changes-BY10-nnE.mjs → has-remote-changes-Ca0exJmb.mjs} +7 -6
- package/dist/{import-CiMz4Wz-.mjs → import-DjclIzGP.mjs} +11 -9
- package/dist/{is-dirty-BZOaryxT.mjs → is-dirty-Cke0a1ie.mjs} +5 -5
- package/dist/is-dirty-DFGgGLDi.mjs +10 -0
- package/dist/{items-BWfvkY-J.mjs → items-BSpapmCU.mjs} +7 -7
- package/dist/{license-Dxarh-gG.mjs → license-j0tDQLKI.mjs} +3 -3
- package/dist/{list-Brgh-Z2v.mjs → list-BI1PfPjn.mjs} +4 -4
- package/dist/{list-D4sFiqX8.mjs → list-BRXGDSMo.mjs} +5 -5
- package/dist/{list-DXH7TlkU.mjs → list-Br77Mw6U.mjs} +4 -4
- package/dist/{list-sD5N3fGk.mjs → list-Brt4oKO7.mjs} +6 -6
- package/dist/{list--OYdUTtu.mjs → list-CEE9yKNp.mjs} +4 -4
- package/dist/{list-DZ8fNUoQ.mjs → list-D1qhCQn0.mjs} +6 -6
- package/dist/{list-SOG0whQ-.mjs → list-DUyWON1F.mjs} +4 -4
- package/dist/{list-Clz5igWg.mjs → list-DWWGcUTg.mjs} +5 -5
- package/dist/{list-CL7eCOQE.mjs → list-DmO4ADQq.mjs} +4 -4
- package/dist/{list-BI4zr8LW.mjs → list-Fjjtpghb.mjs} +5 -5
- package/dist/{list-2j7GsXsl.mjs → list-V5IuMr_5.mjs} +4 -4
- package/dist/{list-C3hfovHv.mjs → list-bVlCwg8g.mjs} +4 -4
- package/dist/{list-zSO0DMw-.mjs → list-evetBTcH.mjs} +4 -4
- package/dist/{list-d58BprgJ.mjs → list-fIV-P6wP.mjs} +4 -4
- package/dist/{login-Bm2AnCez.mjs → login-BJGhZLgZ.mjs} +13 -9
- package/dist/{logout-BlyRJODO.mjs → logout-BAGLqtnV.mjs} +8 -7
- package/dist/{logs-CywPikkL.mjs → logs-jx5b_YDk.mjs} +6 -6
- package/dist/{manifest-BBR46KFM.mjs → manifest-BNh0Lw6p.mjs} +1 -1
- package/dist/measure-BfgxqewH.mjs +19 -0
- package/dist/{metadata-DqiI2q9q.mjs → metadata-B-GOcWqL.mjs} +6 -6
- package/dist/{metadata-B8ZSF9LA.mjs → metadata-DJAdsOoh.mjs} +7 -7
- package/dist/{parse-id-lk_K-CEF.mjs → parse-id-D1LTTt9L.mjs} +1 -1
- package/dist/{parse-schemas-BqUdWUwq.mjs → parse-schemas-DDK9nXuh.mjs} +1 -1
- package/dist/{path-AEtZ3mBq.mjs → path-D5kX-msX.mjs} +5 -5
- package/dist/{poll-DHKDpCiq.mjs → poll-DxpnK1wW.mjs} +1 -1
- package/dist/{poll-task-Cooi0lQV.mjs → poll-task-D8mG49IN.mjs} +19 -3
- package/dist/{preflight-aXV5LyDs.mjs → preflight-Df_FqJ6o.mjs} +3 -3
- package/dist/{provision-UWcNDoDe.mjs → provision-BJd6zO1D.mjs} +12 -11
- package/dist/ps-CpyHEvv7.mjs +11 -0
- package/dist/{ps-CJU0EbrC.mjs → ps-dEqRGeB3.mjs} +4 -4
- package/dist/{query-BlsVNZpD.mjs → query-OIuumiXN.mjs} +9 -8
- package/dist/query-result-ABPLz6I4.mjs +19 -0
- package/dist/{query-AaKzYnTY.mjs → query-zWFRDH3T.mjs} +9 -7
- package/dist/{remove-BFWun0e8.mjs → remove-BNQ1c6hB.mjs} +8 -7
- package/dist/{remove-collection-CoCmrrQs.mjs → remove-collection-BxmiXWKz.mjs} +10 -8
- package/dist/{render-CfznwleY.mjs → render-0_GsapXa.mjs} +39 -9
- package/dist/{render-OQn3iRsI.mjs → render-khznBlla.mjs} +1 -1
- package/dist/{rescan-values-C0FDsjT7.mjs → rescan-values-M7g81KIl.mjs} +9 -9
- package/dist/{run-B4Wn43zm.mjs → run-DTsx8bLb.mjs} +14 -13
- package/dist/{runs-Bbaszr18.mjs → runs-CqfJIuh_.mjs} +6 -6
- package/dist/{runtime-Dmv5VtUK.mjs → runtime-B40L_bj8.mjs} +7 -11
- package/dist/{schema-tables-CaWinbuK.mjs → schema-tables-CjBRF0_0.mjs} +6 -6
- package/dist/{schemas-DUgGpAyB.mjs → schemas-GIIbek2O.mjs} +4 -4
- package/dist/{search-BLrBXLUk.mjs → search-h78uOYec.mjs} +4 -4
- package/dist/segment-CoElN2b-.mjs +19 -0
- package/dist/{set-DfGsta5O.mjs → set-BRDxcLcQ.mjs} +8 -7
- package/dist/{set-B8cUbRLD.mjs → set-Dclba9xF.mjs} +4 -4
- package/dist/setting-mKzZJpQY.mjs +17 -0
- package/dist/{setup-C9ikBRw_.mjs → setup-WTIT2WbM.mjs} +5 -5
- package/dist/{skills-CiN1OQ8W.mjs → skills-BkregMyb.mjs} +1 -1
- package/dist/{skills-CUHIcQS6.mjs → skills-tMYd5d9v.mjs} +3 -3
- package/dist/snippet-B84H3tfp.mjs +19 -0
- package/dist/{start-3PX3ahjT.mjs → start-B7ByBicB.mjs} +12 -11
- package/dist/{stash-EIDcSvpF.mjs → stash-DxoAJzcK.mjs} +11 -9
- package/dist/{status-B0_MiZEf.mjs → status-B1dc3bbQ.mjs} +4 -4
- package/dist/{status-95ElRAu9.mjs → status-D0Ukfodl.mjs} +10 -7
- package/dist/{status-CEplmC44.mjs → status-DAzD1Cn_.mjs} +4 -4
- package/dist/{stop-CQ0XGrN8.mjs → stop-Cvexagxh.mjs} +13 -9
- package/dist/{summary-C12LiEuJ.mjs → summary-3qOMUcEX.mjs} +5 -5
- package/dist/{sync-schema-Ba8M3DiX.mjs → sync-schema-CrmVX1cy.mjs} +9 -9
- package/dist/table-B0fRQv91.mjs +19 -0
- package/dist/{table-C7a5V6Zn.mjs → table-qDD2kApF.mjs} +1 -1
- package/dist/transform-K_kp6Rdm.mjs +24 -0
- package/dist/transform-job-CuNN8zgv.mjs +19 -0
- package/dist/{tree-Des2ZG9d.mjs → tree-DsnIPFyE.mjs} +4 -4
- package/dist/{update-F6DmZncY.mjs → update-BEtl9LpG.mjs} +7 -7
- package/dist/{update-njHe3j-s.mjs → update-BRLcnSwK.mjs} +8 -8
- package/dist/{update-Bx54nWEI.mjs → update-Baya6OkO.mjs} +10 -10
- package/dist/{update-DBi5U8zb.mjs → update-BsgHRoZ8.mjs} +9 -9
- package/dist/{update-CyIZdbIQ.mjs → update-CLsqoEJ8.mjs} +7 -7
- package/dist/{update-_QfgNa53.mjs → update-CZEd_Eej.mjs} +8 -8
- package/dist/{update-mYVnoYNV.mjs → update-DPouQi4U.mjs} +8 -8
- package/dist/{update-DSgceARZ.mjs → update-DWn-nLPo.mjs} +7 -7
- package/dist/{update-DzAN4SPj.mjs → update-UaPqSfPN.mjs} +8 -8
- package/dist/{update-dashcard-wpSjv4M7.mjs → update-dashcard-DK9X91ha.mjs} +7 -7
- package/dist/{update-DHZubok3.mjs → update-hiJdbbsb.mjs} +12 -11
- package/dist/{upgrade-iAuvhX-W.mjs → upgrade-UqdvTikR.mjs} +11 -25
- package/dist/{url-DWaT6WIZ.mjs → url-LMJZRDv4.mjs} +8 -8
- package/dist/{uuid-CMKnS8-z.mjs → uuid-BWCaWG4O.mjs} +3 -3
- package/dist/{validate-query-Cw6WE5Y8.mjs → validate-query-CYvOP8Ld.mjs} +1 -1
- package/dist/{values-BfSTAbzc.mjs → values-D_wycrcr.mjs} +14 -6
- package/dist/{verify-D5YtTqqp.mjs → verify-D7hb6VMy.mjs} +1 -1
- package/dist/{wait-Bv3Tsnv4.mjs → wait-B5IpNFCG.mjs} +8 -8
- package/dist/{wait-8yV9_WIo.mjs → wait-DHjXk3jD.mjs} +2 -2
- package/dist/{wait-flags-Dzq9BGQY.mjs → wait-flags-CNIeSq0_.mjs} +2 -2
- package/dist/workspace-Bt8n3ojY.mjs +25 -0
- package/dist/{workspace-credentials-BXpABsNZ.mjs → workspace-credentials-8CBMQJFz.mjs} +1 -1
- package/package.json +1 -1
- package/skill-data/visualization/SKILL.md +158 -0
- package/skill-data/visualization/references/settings.md +414 -0
- package/dist/add-collection-C0w6ACQF.mjs +0 -11
- package/dist/auth-CzXb_zB2.mjs +0 -19
- package/dist/card-DP4rfoOi.mjs +0 -21
- package/dist/collection-tY18ezvn.mjs +0 -21
- package/dist/dashboard-ChM_Tu0l.mjs +0 -22
- package/dist/db-DrQn_i3W.mjs +0 -22
- package/dist/field-Z6Pcxf4n.mjs +0 -19
- package/dist/git-sync-CiGAad76.mjs +0 -28
- package/dist/is-dirty-Ume4oV0j.mjs +0 -10
- package/dist/measure-C44EK_xt.mjs +0 -20
- package/dist/ps-DEroLgbI.mjs +0 -11
- package/dist/segment-B3Uwwcsm.mjs +0 -20
- package/dist/setting-D2p2MA7f.mjs +0 -18
- package/dist/snippet-B7D0uWlz.mjs +0 -20
- package/dist/table-e6h8SLVX.mjs +0 -20
- package/dist/transform-BMYh1lsC.mjs +0 -25
- package/dist/transform-job-Cm7z5TfH.mjs +0 -20
- package/dist/workspace-CKLZrR7l.mjs +0 -26
- package/skill-data/viz/SKILL.md +0 -137
- package/skill-data/viz/references/settings.md +0 -312
- /package/dist/{collection-B3sPXRLs.mjs → collection-Bcy8cWYH.mjs} +0 -0
- /package/dist/{dashboard-FY5UzJ_Z.mjs → dashboard-B4bn3z6t.mjs} +0 -0
- /package/dist/{key-C2XG394c.mjs → key-vkNkH82H.mjs} +0 -0
- /package/dist/{measure-ClESGxIb.mjs → measure-Bt3InQsA.mjs} +0 -0
- /package/dist/{paginate-Dfm9eO9A.mjs → paginate-BexjkjbY.mjs} +0 -0
- /package/dist/{parse-ref-BiETXmvm.mjs → parse-ref-DKag6a6I.mjs} +0 -0
- /package/dist/{process-C7V8LJ-j.mjs → process-CM7Uu5q_.mjs} +0 -0
- /package/dist/{revision-message-flag-WmsIzUOM.mjs → revision-message-flag-DY29-cgz.mjs} +0 -0
- /package/dist/{segment-Be2v4ilr.mjs → segment-DhBmcr_E.mjs} +0 -0
- /package/dist/{setting-oL97SNeO.mjs → setting-BzCng1Ub.mjs} +0 -0
- /package/dist/{snippet-COggaWxx.mjs → snippet-bi_0XbNT.mjs} +0 -0
- /package/dist/{transform-GTW3G-01.mjs → transform-BKahefz_.mjs} +0 -0
- /package/dist/{transform-job-DeTDPMxt.mjs → transform-job-DjhoJbiV.mjs} +0 -0
- /package/dist/{workspace-BBXJczJK.mjs → workspace-D8HtUN0y.mjs} +0 -0
- /package/dist/{yaml-YTQiYJ9s.mjs → yaml-Gv6wRFMF.mjs} +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/segment/index.ts
|
|
4
|
-
var segment_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "segment",
|
|
7
|
-
alias: "segments",
|
|
8
|
-
description: "Manage Metabase segments"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-SOG0whQ-.mjs").then((mod) => mod.default),
|
|
12
|
-
get: () => import("./get-Bzys7vgp.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-DGth_uOp.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-njHe3j-s.mjs").then((mod) => mod.default),
|
|
15
|
-
archive: () => import("./archive-DMPS8Kih.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { segment_default as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/setting/index.ts
|
|
4
|
-
var setting_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "setting",
|
|
7
|
-
description: "Inspect and update Metabase settings",
|
|
8
|
-
alias: "settings"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-2j7GsXsl.mjs").then((m) => m.default),
|
|
12
|
-
get: () => import("./get-D3SbEQSE.mjs").then((m) => m.default),
|
|
13
|
-
set: () => import("./set-DfGsta5O.mjs").then((m) => m.default)
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
//#endregion
|
|
18
|
-
export { setting_default as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/snippet/index.ts
|
|
4
|
-
var snippet_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "snippet",
|
|
7
|
-
alias: "snippets",
|
|
8
|
-
description: "Manage Metabase native query snippets"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list--OYdUTtu.mjs").then((mod) => mod.default),
|
|
12
|
-
get: () => import("./get-Ddr0XLh7.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-Be_0Vier.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-F6DmZncY.mjs").then((mod) => mod.default),
|
|
15
|
-
archive: () => import("./archive-C1enZgKV.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { snippet_default as default };
|
package/dist/table-e6h8SLVX.mjs
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/table/index.ts
|
|
4
|
-
var table_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "table",
|
|
7
|
-
alias: "tables",
|
|
8
|
-
description: "Manage Metabase tables"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-sD5N3fGk.mjs").then((m) => m.default),
|
|
12
|
-
get: () => import("./get-C_w1kvN3.mjs").then((m) => m.default),
|
|
13
|
-
metadata: () => import("./metadata-DqiI2q9q.mjs").then((m) => m.default),
|
|
14
|
-
fields: () => import("./fields-CoQi99gv.mjs").then((m) => m.default),
|
|
15
|
-
update: () => import("./update-_QfgNa53.mjs").then((m) => m.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { table_default as default };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/transform/index.ts
|
|
4
|
-
var transform_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "transform",
|
|
7
|
-
alias: "transforms",
|
|
8
|
-
description: "Manage Metabase transforms"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-C3hfovHv.mjs").then((mod) => mod.default),
|
|
12
|
-
get: () => import("./get-C2p383Qc.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-BYlIju0b.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-mYVnoYNV.mjs").then((mod) => mod.default),
|
|
15
|
-
delete: () => import("./delete-ZjnV35OJ.mjs").then((mod) => mod.default),
|
|
16
|
-
"delete-table": () => import("./delete-table-agZJpivt.mjs").then((mod) => mod.default),
|
|
17
|
-
run: () => import("./run-B4Wn43zm.mjs").then((mod) => mod.default),
|
|
18
|
-
cancel: () => import("./cancel-Dl_Ho056.mjs").then((mod) => mod.default),
|
|
19
|
-
"get-run": () => import("./get-run-B7sKdaDU.mjs").then((mod) => mod.default),
|
|
20
|
-
runs: () => import("./runs-Bbaszr18.mjs").then((mod) => mod.default)
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
//#endregion
|
|
25
|
-
export { transform_default as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/transform-job/index.ts
|
|
4
|
-
var transform_job_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "transform-job",
|
|
7
|
-
alias: "transform-jobs",
|
|
8
|
-
description: "Manage Metabase transform jobs"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-d58BprgJ.mjs").then((mod) => mod.default),
|
|
12
|
-
get: () => import("./get-Hc93A0Yz.mjs").then((mod) => mod.default),
|
|
13
|
-
create: () => import("./create-CzzrbL0u.mjs").then((mod) => mod.default),
|
|
14
|
-
update: () => import("./update-DSgceARZ.mjs").then((mod) => mod.default),
|
|
15
|
-
delete: () => import("./delete-Dimc-2y8.mjs").then((mod) => mod.default)
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
|
|
19
|
-
//#endregion
|
|
20
|
-
export { transform_job_default as default };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { defineCommand } from "citty";
|
|
2
|
-
|
|
3
|
-
//#region src/commands/workspace/index.ts
|
|
4
|
-
var workspace_default = defineCommand({
|
|
5
|
-
meta: {
|
|
6
|
-
name: "workspace",
|
|
7
|
-
alias: "workspaces",
|
|
8
|
-
description: "Manage Metabase workspaces (workspace-manager)"
|
|
9
|
-
},
|
|
10
|
-
subCommands: {
|
|
11
|
-
list: () => import("./list-zSO0DMw-.mjs").then((mod) => mod.default),
|
|
12
|
-
create: () => import("./create-CHF313Qg.mjs").then((mod) => mod.default),
|
|
13
|
-
database: () => import("./database-CIXwHKjK.mjs").then((mod) => mod.default),
|
|
14
|
-
start: () => import("./start-3PX3ahjT.mjs").then((mod) => mod.default),
|
|
15
|
-
stop: () => import("./stop-CQ0XGrN8.mjs").then((mod) => mod.default),
|
|
16
|
-
delete: () => import("./delete-CM3jnAeQ.mjs").then((mod) => mod.default),
|
|
17
|
-
logs: () => import("./logs-CywPikkL.mjs").then((mod) => mod.default),
|
|
18
|
-
url: () => import("./url-DWaT6WIZ.mjs").then((mod) => mod.default),
|
|
19
|
-
credentials: () => import("./credentials-dzeq7ckm.mjs").then((mod) => mod.default),
|
|
20
|
-
ps: () => import("./ps-DEroLgbI.mjs").then((mod) => mod.default),
|
|
21
|
-
license: () => import("./license-Dxarh-gG.mjs").then((mod) => mod.default)
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
|
|
25
|
-
//#endregion
|
|
26
|
-
export { workspace_default as default };
|
package/skill-data/viz/SKILL.md
DELETED
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: viz
|
|
3
|
-
description: Author Metabase `visualization_settings` and pick the right `display` for cards via the `mb` CLI. Covers the display → settings-namespace map (graph.*, pie.*, funnel.*, scalar.*, table.*, …), the column-name-vs-numeric-field-id rule, the `column_settings` JSON-string-key footgun, worked API-form examples per chart family, and the pull-from-UI escape hatch for complex charts. Load whenever shaping how a card renders by hand — "create a bar chart", "make this a line chart", "format this column as currency", "set the pie dimension and metric", "the card renders as a table instead of a chart", "add conditional formatting", or any `visualization_settings` work.
|
|
4
|
-
allowed-tools: Read, Write, Edit, Bash, AskUserQuestion
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Visualization settings
|
|
8
|
-
|
|
9
|
-
A card has two presentation fields alongside its `dataset_query`:
|
|
10
|
-
|
|
11
|
-
- **`display`** — the chart type (`bar`, `line`, `pie`, `scalar`, `table`, …). One closed set of values; pick from the enum below.
|
|
12
|
-
- **`visualization_settings`** — a free-form map whose keys are **namespaced by `display`** (`graph.*` for bar/line, `pie.*` for pie, …). The server stores almost anything and **silently ignores keys that don't apply** to the chosen `display`.
|
|
13
|
-
|
|
14
|
-
The MBQL pre-flight does **not** validate `visualization_settings` — there is no `--skip-validate` to fail past, because nothing checks it. A `display` typo or a misnamed key is accepted by the API and the card just renders as a default table or drops the setting. So **the feedback loop is read-back, not pre-flight**: after `card create`/`update`, confirm with `mb card get <id> --full --json` (or open the card) that it rendered as intended.
|
|
15
|
-
|
|
16
|
-
The general flag conventions and body-input precedence live in the `core` skill (`mb skills get core`); the `dataset_query` body itself is the `mbql` skill's job (`mb skills get mbql`). This skill is only about how the result is displayed.
|
|
17
|
-
|
|
18
|
-
## `display` decides everything
|
|
19
|
-
|
|
20
|
-
`display` selects which setting namespace is read. Pick `display` first, then only the matching namespace's keys matter.
|
|
21
|
-
|
|
22
|
-
| `display` | Settings namespace(s) | Key columns are named by |
|
|
23
|
-
| ------------------------------------------- | --------------------------------------------------------- | ------------------------ |
|
|
24
|
-
| `bar` `line` `area` `combo` `row` `scatter` | `graph.*`, `series_settings`, `column_settings` | output column **name** |
|
|
25
|
-
| `waterfall` | `graph.*` + `waterfall.*` | output column name |
|
|
26
|
-
| `boxplot` | `graph.*` + `boxplot.*` | output column name |
|
|
27
|
-
| `pie` | `pie.*`, `column_settings` | output column name |
|
|
28
|
-
| `scalar` `number` | `scalar.*` | output column name |
|
|
29
|
-
| `smartscalar` | `scalar.comparisons` | output column name |
|
|
30
|
-
| `funnel` | `funnel.*` | output column name |
|
|
31
|
-
| `gauge` | `gauge.*` | — |
|
|
32
|
-
| `map` | `map.*` | output column name |
|
|
33
|
-
| `pivot` | `pivot_table.*`, `table.*` | output column name |
|
|
34
|
-
| `sankey` | `sankey.*` | output column name |
|
|
35
|
-
| `table` | `table.*`, `column_settings` | output column name |
|
|
36
|
-
| `object` `list` | `column_settings` | output column name |
|
|
37
|
-
| `progress` | `progress.goal`, `progress.color` (sparse — pull from UI) | — |
|
|
38
|
-
| `heading` `text` `link` `iframe` `action` | dashcard-only `virtual_card` (see references) | — |
|
|
39
|
-
|
|
40
|
-
Closed `display` enum (card-level): `table`, `bar`, `line`, `area`, `row`, `pie`, `scalar`, `smartscalar`, `number`, `combo`, `pivot`, `funnel`, `map`, `scatter`, `waterfall`, `progress`, `gauge`, `object`, `list`, `sankey`, `boxplot`. (`heading`/`text`/`link`/`iframe`/`action` are dashcard virtuals, not standalone cards.) An unknown value is accepted by the API but renders nothing useful — typos like `bargraph`/`linechart` are the most common cause of a "why is my chart blank" report.
|
|
41
|
-
|
|
42
|
-
## The rule that trips everyone: settings name **output columns**, by name
|
|
43
|
-
|
|
44
|
-
`graph.dimensions`, `graph.metrics`, `pie.dimension`, `pie.metric`, `scalar.field`, `funnel.metric`, `map.latitude_column`, … all take **output column-name strings** — the names the query _produces_, not field ids. A `count` aggregation outputs the column `count`; a breakout on a field outputs that field's name; a named aggregation outputs its `name`. These strings are **identical in the API form and the portable (git-sync) form** — no numeric-vs-name footgun here.
|
|
45
|
-
|
|
46
|
-
So the names you put in `visualization_settings` come from the query's output, not from `mb field`/`mb table`. If you set `name` on an aggregation (see the `mbql` skill, "Naming aggregation output columns"), use that same string here.
|
|
47
|
-
|
|
48
|
-
## Minimum-viable settings per chart family (API form)
|
|
49
|
-
|
|
50
|
-
Each example is the `visualization_settings` block to pair with the given `display` on a `card create`/`update` body. The `dataset_query` is elided — build it per the `mbql` skill. The output columns referenced (`CATEGORY`, `count`) are whatever the query's breakout/aggregation produce.
|
|
51
|
-
|
|
52
|
-
**Bar / line / area** — one dimension on the x-axis, one or more metrics:
|
|
53
|
-
|
|
54
|
-
```json
|
|
55
|
-
"display": "bar",
|
|
56
|
-
"visualization_settings": {
|
|
57
|
-
"graph.dimensions": ["CATEGORY"],
|
|
58
|
-
"graph.metrics": ["count"]
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
(Switch `display` to `line` or `area` with the same `graph.*` keys. Multiple metrics: `"graph.metrics": ["count", "sum"]`. Stacked: add `"stackable.stack_type": "stacked"`.)
|
|
63
|
-
|
|
64
|
-
**Pie** — one dimension, one metric:
|
|
65
|
-
|
|
66
|
-
```json
|
|
67
|
-
"display": "pie",
|
|
68
|
-
"visualization_settings": { "pie.dimension": "CATEGORY", "pie.metric": "count" }
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
**Scalar** (single big number) — the field to surface:
|
|
72
|
-
|
|
73
|
-
```json
|
|
74
|
-
"display": "scalar",
|
|
75
|
-
"visualization_settings": { "scalar.field": "count" }
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
**Table** — column order/visibility plus per-column formatting:
|
|
79
|
-
|
|
80
|
-
```json
|
|
81
|
-
"display": "table",
|
|
82
|
-
"visualization_settings": {
|
|
83
|
-
"table.columns": [
|
|
84
|
-
{ "name": "CATEGORY", "enabled": true },
|
|
85
|
-
{ "name": "count", "enabled": true }
|
|
86
|
-
],
|
|
87
|
-
"column_settings": {
|
|
88
|
-
"[\"name\",\"count\"]": { "column_title": "Orders" }
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
An **empty** `"visualization_settings": {}` is valid for any `display` — Metabase falls back to sensible defaults (it auto-picks dimensions/metrics for a simple aggregate). Set keys only to override the defaults.
|
|
94
|
-
|
|
95
|
-
## `column_settings`: the JSON-string-key footgun
|
|
96
|
-
|
|
97
|
-
`column_settings` is a map **whose keys are themselves JSON-encoded arrays** — so inside a JSON body the inner quotes must be escaped. The key is a _string_, never an object.
|
|
98
|
-
|
|
99
|
-
- **Prefer the name form:** `["name", "<output column name>"]` → in a JSON body, `"[\"name\",\"count\"]"`. This is the canonical key Metabase writes (`getColumnKey`), and it's **identical in API and portable form**. Use it unless you have a reason not to.
|
|
100
|
-
- **Ref form (legacy order!):** `["ref", ["field", <id>, <opts>]]`. The inner field ref here uses the **legacy MBQL-4 order** `["field", id, options]` (id **second**) — _not_ the MBQL-5 order `["field", {options}, id]` you use in `dataset_query`. In the API form `<id>` is the **numeric** field id; the portable form uses a name path. Because the order differs from MBQL 5, this form is easy to get wrong — reach for the name form instead.
|
|
101
|
-
|
|
102
|
-
```json
|
|
103
|
-
"column_settings": {
|
|
104
|
-
"[\"name\",\"TOTAL\"]": { "number_style": "currency", "currency": "USD", "decimals": 2 },
|
|
105
|
-
"[\"name\",\"CREATED_AT\"]": { "date_style": "MMMM D, YYYY" }
|
|
106
|
-
}
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
The exhaustive per-column key list (number/date/link formatting, `view_as`, click behavior) is in the references file.
|
|
110
|
-
|
|
111
|
-
## Escape hatch: pull a real card instead of authoring from scratch
|
|
112
|
-
|
|
113
|
-
For anything beyond a single dimension + metric — combo charts, conditional formatting, pivot splits, click behavior, series colors — the cheapest **correct** path is to build it once in the Metabase UI and copy the result:
|
|
114
|
-
|
|
115
|
-
```bash
|
|
116
|
-
mb card get <id> --full --json | jq '.visualization_settings'
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
Paste that block into your `card create`/`update` body. The server produced it, so it's guaranteed valid for that `display`. This beats guessing keys from memory, and it's token-cheap (no schema dump).
|
|
120
|
-
|
|
121
|
-
## Full key catalog
|
|
122
|
-
|
|
123
|
-
The body above covers the high-frequency 90%. The complete per-display key tables — every `graph.*`/`pie.*`/`table.*`/… key, series settings, conditional formatting rules, pivot splits, the full `column_settings` formatting vocabulary, virtual-card (heading/text/link/iframe) settings, and click behavior — live in this skill's references file. Load it on demand, not by default:
|
|
124
|
-
|
|
125
|
-
```bash
|
|
126
|
-
mb skills get viz --full # appends references/settings.md to this body
|
|
127
|
-
mb skills path viz # → the skill dir; then Read references/settings.md
|
|
128
|
-
```
|
|
129
|
-
|
|
130
|
-
## Don't
|
|
131
|
-
|
|
132
|
-
- Don't invent `display` values (`bargraph`, `linechart`, `histogram`) — use the closed enum; the API accepts the typo and renders nothing.
|
|
133
|
-
- Don't put numeric field ids in `graph.dimensions`/`pie.metric`/`scalar.field` etc. — they take **output column-name strings**.
|
|
134
|
-
- Don't write a `column_settings` key as an object — it's a JSON **string** (`"[\"name\",\"COL\"]"`), inner quotes escaped.
|
|
135
|
-
- Don't use the MBQL-5 field-ref order inside a `column_settings` `["ref", …]` key — that key uses the **legacy** `["field", id, opts]` order. Prefer the `["name", …]` form and sidestep it.
|
|
136
|
-
- Don't expect a pre-flight to catch viz mistakes — there is none. Verify by reading the card back.
|
|
137
|
-
- Don't hand-author complex charts when you can pull a working `visualization_settings` from a UI-built card.
|
|
@@ -1,312 +0,0 @@
|
|
|
1
|
-
# visualization_settings — full key catalog
|
|
2
|
-
|
|
3
|
-
Exhaustive reference for `visualization_settings`. The SKILL.md body covers the
|
|
4
|
-
common cases; this file is the long tail. Keys are grouped by the `display` they
|
|
5
|
-
apply to (see the display → namespace map in the body).
|
|
6
|
-
|
|
7
|
-
**Form note.** Every key name and value enum below is identical in the API/numeric
|
|
8
|
-
form (`mb card create`) and the portable git-sync YAML form. The only form-specific
|
|
9
|
-
constructs are (1) `column_settings` `["ref", …]` keys, where the inner field id is
|
|
10
|
-
numeric in the API form and a name-path in the portable form, and (2) click-behavior
|
|
11
|
-
dimension targets, same rule. All the column-naming keys (`graph.dimensions`,
|
|
12
|
-
`pie.dimension`, `table.columns[].name`, …) are output column-name strings in both.
|
|
13
|
-
|
|
14
|
-
JSON-body reminder: examples here are shown as YAML/JSON fragments. In a real
|
|
15
|
-
`--body`/`--file` JSON payload, `column_settings` keys are JSON **strings** with
|
|
16
|
-
escaped inner quotes: `"[\"name\",\"TOTAL\"]"`.
|
|
17
|
-
|
|
18
|
-
---
|
|
19
|
-
|
|
20
|
-
## Common
|
|
21
|
-
|
|
22
|
-
| Setting | Type | Description |
|
|
23
|
-
| --------------------- | ------- | ------------------------------------------------------------------- |
|
|
24
|
-
| `column_settings` | map | Per-column formatting, keyed by column-reference string (see below) |
|
|
25
|
-
| `card.title` | string | Override the card's display title on a dashboard |
|
|
26
|
-
| `card.description` | string | Override the description |
|
|
27
|
-
| `dashcard.background` | boolean | Show/hide the dashcard background (dashcards only) |
|
|
28
|
-
|
|
29
|
-
## Graph (`bar`, `line`, `area`, `combo`, `scatter`, `waterfall`, `row`, `boxplot`)
|
|
30
|
-
|
|
31
|
-
| Setting | Type | Values / notes |
|
|
32
|
-
| --------------------------------------- | -------------- | ------------------------------------------------------------------------ |
|
|
33
|
-
| `graph.dimensions` | array | Dimension (x-axis) output column names |
|
|
34
|
-
| `graph.metrics` | array | Metric (y-axis) output column names |
|
|
35
|
-
| `graph.series_order` | array | Explicit series display order |
|
|
36
|
-
| `graph.show_values` | boolean | Show value labels on data points |
|
|
37
|
-
| `graph.label_values_frequency` | string | `"fit"`, `"all"` |
|
|
38
|
-
| `graph.show_stack_values` | string | `"total"`, `"individual"`, `"all"` |
|
|
39
|
-
| `graph.x_axis.title_text` | string | X-axis title |
|
|
40
|
-
| `graph.x_axis.scale` | string | `"ordinal"`, `"histogram"`, `"timeseries"`, `"linear"`, `"pow"`, `"log"` |
|
|
41
|
-
| `graph.x_axis.axis_enabled` | boolean/string | `true`, `false`, `"compact"`, `"rotate-45"`, `"rotate-90"` |
|
|
42
|
-
| `graph.y_axis.title_text` | string | Y-axis title |
|
|
43
|
-
| `graph.y_axis.scale` | string | `"linear"`, `"pow"`, `"log"` |
|
|
44
|
-
| `graph.y_axis.auto_range` | boolean | Auto-scale Y axis |
|
|
45
|
-
| `graph.y_axis.min` / `graph.y_axis.max` | number | Y bounds when `auto_range` is false |
|
|
46
|
-
| `graph.show_goal` | boolean | Show goal line |
|
|
47
|
-
| `graph.goal_value` | number | Goal line value |
|
|
48
|
-
| `graph.goal_label` | string | Goal line label |
|
|
49
|
-
| `graph.show_trendline` | boolean | Show trend line |
|
|
50
|
-
| `graph.max_categories_enabled` | boolean | Limit number of categories |
|
|
51
|
-
| `graph.max_categories` | number | Maximum categories shown |
|
|
52
|
-
| `graph.other_category_aggregation_fn` | string | `"sum"`, `"avg"`, `"min"`, `"max"` |
|
|
53
|
-
| `stackable.stack_type` | string | `null`, `"stacked"`, `"normalized"` |
|
|
54
|
-
|
|
55
|
-
### Series settings
|
|
56
|
-
|
|
57
|
-
Per-series overrides keyed by series name (the metric column name, or the breakout
|
|
58
|
-
value for a split series):
|
|
59
|
-
|
|
60
|
-
```yaml
|
|
61
|
-
series_settings:
|
|
62
|
-
Revenue:
|
|
63
|
-
display: line # override this series' type in a combo chart
|
|
64
|
-
color: "#509EE3"
|
|
65
|
-
"line.style": solid # "solid", "dashed", "dotted"
|
|
66
|
-
"line.size": normal # "S", "M", "L"
|
|
67
|
-
"line.interpolate": linear # "linear", "cardinal", "step-before", "step-after"
|
|
68
|
-
"line.missing": interpolate # "interpolate", "zero", "none"
|
|
69
|
-
"line.marker_enabled": true
|
|
70
|
-
axis: left # "left", "right"
|
|
71
|
-
show_series_values: true
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
### Waterfall extras (`display: waterfall`)
|
|
75
|
-
|
|
76
|
-
| Setting | Type | Description |
|
|
77
|
-
| -------------------------- | ------- | ----------------------- |
|
|
78
|
-
| `waterfall.increase_color` | string | Color for increases |
|
|
79
|
-
| `waterfall.decrease_color` | string | Color for decreases |
|
|
80
|
-
| `waterfall.total_color` | string | Color for the total bar |
|
|
81
|
-
| `waterfall.show_total` | boolean | Show the total bar |
|
|
82
|
-
|
|
83
|
-
### BoxPlot extras (`display: boxplot`)
|
|
84
|
-
|
|
85
|
-
| Setting | Type | Values |
|
|
86
|
-
| ---------------------- | ------- | -------------------------------------- |
|
|
87
|
-
| `boxplot.whisker_type` | string | `"min-max"`, `"tukey"`, `"percentile"` |
|
|
88
|
-
| `boxplot.points_mode` | string | `"none"`, `"outliers"`, `"all"` |
|
|
89
|
-
| `boxplot.show_mean` | boolean | Show mean marker |
|
|
90
|
-
|
|
91
|
-
## Pie (`display: pie`)
|
|
92
|
-
|
|
93
|
-
| Setting | Type | Values |
|
|
94
|
-
| ------------------------ | ------- | ----------------------------------------- |
|
|
95
|
-
| `pie.dimension` | string | Dimension column name |
|
|
96
|
-
| `pie.metric` | string | Metric column name |
|
|
97
|
-
| `pie.show_legend` | boolean | |
|
|
98
|
-
| `pie.show_total` | boolean | Show total in center |
|
|
99
|
-
| `pie.percent_visibility` | string | `"off"`, `"legend"`, `"inside"`, `"both"` |
|
|
100
|
-
| `pie.slice_threshold` | number | Min percentage to show as its own slice |
|
|
101
|
-
| `pie.colors` | object | Color map keyed by dimension value |
|
|
102
|
-
|
|
103
|
-
## Scalar / Number (`display: scalar`, `number`)
|
|
104
|
-
|
|
105
|
-
| Setting | Type | Values |
|
|
106
|
-
| --------------------------------- | ------- | ------------------------------- |
|
|
107
|
-
| `scalar.field` | string | Output column to display |
|
|
108
|
-
| `scalar.switch_positive_negative` | boolean | Invert positive/negative colors |
|
|
109
|
-
| `scalar.compact_primary_number` | string | `"auto"`, `"yes"`, `"no"` |
|
|
110
|
-
|
|
111
|
-
### Smart scalar (`display: smartscalar`)
|
|
112
|
-
|
|
113
|
-
```yaml
|
|
114
|
-
scalar.comparisons:
|
|
115
|
-
- id: comp1
|
|
116
|
-
type: previousPeriod # vs. previous time period
|
|
117
|
-
- id: comp2
|
|
118
|
-
type: previousValue # vs. previous value
|
|
119
|
-
- id: comp3
|
|
120
|
-
type: periodsAgo # vs. N periods ago
|
|
121
|
-
value: 12
|
|
122
|
-
- id: comp4
|
|
123
|
-
type: staticNumber # vs. fixed number
|
|
124
|
-
value: 1000
|
|
125
|
-
label: Target
|
|
126
|
-
```
|
|
127
|
-
|
|
128
|
-
## Funnel (`display: funnel`)
|
|
129
|
-
|
|
130
|
-
| Setting | Type | Values |
|
|
131
|
-
| ------------------ | ------ | --------------------- |
|
|
132
|
-
| `funnel.dimension` | string | Dimension column |
|
|
133
|
-
| `funnel.metric` | string | Metric column |
|
|
134
|
-
| `funnel.type` | string | `"funnel"` or `"bar"` |
|
|
135
|
-
| `funnel.rows` | array | Row order definitions |
|
|
136
|
-
|
|
137
|
-
## Gauge (`display: gauge`)
|
|
138
|
-
|
|
139
|
-
| Setting | Type | Description |
|
|
140
|
-
| ---------------------- | ----- | ------------------------------------------- |
|
|
141
|
-
| `gauge.segments` | array | Segments, each `{ min, max, color, label }` |
|
|
142
|
-
| `gauge.segment_colors` | array | Segment colors |
|
|
143
|
-
|
|
144
|
-
## Map (`display: map`)
|
|
145
|
-
|
|
146
|
-
| Setting | Type | Values |
|
|
147
|
-
| ---------------------------------------------- | ------ | -------------------------------- |
|
|
148
|
-
| `map.type` | string | `"region"`, `"pin"`, `"grid"` |
|
|
149
|
-
| `map.latitude_column` | string | Latitude column name |
|
|
150
|
-
| `map.longitude_column` | string | Longitude column name |
|
|
151
|
-
| `map.metric_column` | string | Metric column for coloring |
|
|
152
|
-
| `map.region` | string | Region map identifier |
|
|
153
|
-
| `map.pin_type` | string | `"tiles"`, `"markers"`, `"heat"` |
|
|
154
|
-
| `map.colors` | array | Color scale |
|
|
155
|
-
| `map.zoom` | number | Initial zoom level |
|
|
156
|
-
| `map.center_latitude` / `map.center_longitude` | number | Map center |
|
|
157
|
-
|
|
158
|
-
## Table (`display: table`)
|
|
159
|
-
|
|
160
|
-
| Setting | Type | Description |
|
|
161
|
-
| ------------------------- | ------- | --------------------------------------------------------- |
|
|
162
|
-
| `table.columns` | array | Column order + visibility; each entry `{ name, enabled }` |
|
|
163
|
-
| `table.column_formatting` | array | Conditional formatting rules (see below) |
|
|
164
|
-
| `table.pivot` | boolean | Enable in-table pivot mode |
|
|
165
|
-
| `table.pivot_column` | string | Column to pivot on |
|
|
166
|
-
| `table.cell_column` | string | Column used for cell values (pivot mode) |
|
|
167
|
-
|
|
168
|
-
### Conditional formatting (`table.column_formatting`)
|
|
169
|
-
|
|
170
|
-
```yaml
|
|
171
|
-
table.column_formatting:
|
|
172
|
-
- columns: [Total]
|
|
173
|
-
type: single # "single" or "range"
|
|
174
|
-
operator: ">" # "=", "!=", "<", ">", "<=", ">=", "is-null", "not-null"
|
|
175
|
-
value: 100
|
|
176
|
-
color: "#84BB4C"
|
|
177
|
-
highlight_row: false
|
|
178
|
-
- columns: [Rating]
|
|
179
|
-
type: range
|
|
180
|
-
colors: ["#ED6E6E", "#F9CF48", "#84BB4C"]
|
|
181
|
-
min_type: custom # "min", "max", "custom"
|
|
182
|
-
min_value: 1
|
|
183
|
-
max_type: custom
|
|
184
|
-
max_value: 5
|
|
185
|
-
```
|
|
186
|
-
|
|
187
|
-
## Pivot table (`display: pivot`)
|
|
188
|
-
|
|
189
|
-
| Setting | Type | Description |
|
|
190
|
-
| -------------------------------- | ------- | --------------------------------------------------------------- |
|
|
191
|
-
| `pivot_table.column_split` | object | `{ rows: [...names], columns: [...names], values: [...names] }` |
|
|
192
|
-
| `pivot_table.collapsed_rows` | object | `{ rows: [...collapsed_keys], value: [] }` |
|
|
193
|
-
| `pivot_table.show_row_totals` | boolean | |
|
|
194
|
-
| `pivot_table.show_column_totals` | boolean | |
|
|
195
|
-
|
|
196
|
-
## Sankey (`display: sankey`)
|
|
197
|
-
|
|
198
|
-
| Setting | Type | Values |
|
|
199
|
-
| ------------------------- | ------- | -------------------------------------------- |
|
|
200
|
-
| `sankey.source` | string | Source column |
|
|
201
|
-
| `sankey.target` | string | Target column |
|
|
202
|
-
| `sankey.value` | string | Value column |
|
|
203
|
-
| `sankey.node_align` | string | `"left"`, `"right"`, `"center"`, `"justify"` |
|
|
204
|
-
| `sankey.show_edge_labels` | boolean | |
|
|
205
|
-
|
|
206
|
-
## Column settings
|
|
207
|
-
|
|
208
|
-
`column_settings` is keyed by a JSON-encoded column reference. Prefer the
|
|
209
|
-
`["name", "<output column name>"]` form — it is the canonical key Metabase writes and
|
|
210
|
-
is identical across forms. The `["ref", ["field", <id>, <opts>]]` form uses the
|
|
211
|
-
**legacy** field-ref order (id second); in the API form `<id>` is the numeric field id.
|
|
212
|
-
|
|
213
|
-
Per-column keys (apply under any column key):
|
|
214
|
-
|
|
215
|
-
| Key | Type | Values |
|
|
216
|
-
| ------------------- | ----------- | ------------------------------------------------------ |
|
|
217
|
-
| `column_title` | string | Override the column header |
|
|
218
|
-
| `number_style` | string | `"decimal"`, `"currency"`, `"percent"`, `"scientific"` |
|
|
219
|
-
| `currency` | string | ISO code, e.g. `"USD"` |
|
|
220
|
-
| `currency_style` | string | `"symbol"`, `"code"`, `"name"` |
|
|
221
|
-
| `number_separators` | string | e.g. `".,"` (decimal + thousands) |
|
|
222
|
-
| `decimals` | number | Fixed decimal places |
|
|
223
|
-
| `scale` | number | Multiply values by this factor |
|
|
224
|
-
| `prefix` / `suffix` | string | Affixes around the value |
|
|
225
|
-
| `date_style` | string | moment.js format, e.g. `"MMMM D, YYYY"` |
|
|
226
|
-
| `date_separator` | string | e.g. `"/"` |
|
|
227
|
-
| `date_abbreviate` | boolean | |
|
|
228
|
-
| `time_enabled` | string/null | `null`, `"minutes"`, `"seconds"`, `"milliseconds"` |
|
|
229
|
-
| `time_style` | string | e.g. `"HH:mm"`, `"h:mm A"` |
|
|
230
|
-
| `view_as` | string | `"link"`, `"image"`, `"email"`, `"auto"` |
|
|
231
|
-
| `link_text` | string | Display text when `view_as: link` |
|
|
232
|
-
| `link_url` | string | URL template; `{{value}}` interpolates the cell value |
|
|
233
|
-
| `click_behavior` | object | Per-column click behavior (see below) |
|
|
234
|
-
|
|
235
|
-
```yaml
|
|
236
|
-
column_settings:
|
|
237
|
-
'["name","TOTAL"]':
|
|
238
|
-
number_style: currency
|
|
239
|
-
currency: USD
|
|
240
|
-
currency_style: symbol
|
|
241
|
-
decimals: 2
|
|
242
|
-
column_title: "Total Revenue"
|
|
243
|
-
'["name","CREATED_AT"]':
|
|
244
|
-
date_style: "MMMM D, YYYY"
|
|
245
|
-
time_enabled: null
|
|
246
|
-
'["name","EMAIL"]':
|
|
247
|
-
view_as: link
|
|
248
|
-
link_text: "Send email"
|
|
249
|
-
link_url: "mailto:{{value}}"
|
|
250
|
-
```
|
|
251
|
-
|
|
252
|
-
## Virtual card settings (dashcards only, `card_id: null`)
|
|
253
|
-
|
|
254
|
-
| `virtual_card.display` | Extra keys |
|
|
255
|
-
| ---------------------- | ----------------------------------------------------------------------------------------------------------------- |
|
|
256
|
-
| `heading` | `text` (the heading string) |
|
|
257
|
-
| `text` | `text` (markdown; `{{param}}` placeholders wired via dashcard `parameter_mappings`, target `[text-tag, name]`) |
|
|
258
|
-
| `link` | `link.url`, or `link.entity` `{ id, model }` where model ∈ `question`/`dashboard`/`collection`/`database`/`table` |
|
|
259
|
-
| `iframe` | `iframe` (the `<iframe …>` HTML string) |
|
|
260
|
-
| `placeholder` | — |
|
|
261
|
-
|
|
262
|
-
```yaml
|
|
263
|
-
visualization_settings:
|
|
264
|
-
virtual_card:
|
|
265
|
-
display: text
|
|
266
|
-
text: "**Bold** and _italic_ markdown content"
|
|
267
|
-
```
|
|
268
|
-
|
|
269
|
-
## Click behavior
|
|
270
|
-
|
|
271
|
-
Stored at `visualization_settings.click_behavior` (whole dashcard) or per column at
|
|
272
|
-
`column_settings[<key>].click_behavior`.
|
|
273
|
-
|
|
274
|
-
| `type` | Description |
|
|
275
|
-
| ------------- | -------------------------------------------- |
|
|
276
|
-
| `actionMenu` | Default drill-through menu (no config) |
|
|
277
|
-
| `crossfilter` | Filter the dashboard using the clicked value |
|
|
278
|
-
| `link` | Navigate to a URL, question, or dashboard |
|
|
279
|
-
|
|
280
|
-
```yaml
|
|
281
|
-
# Link to URL — {{column}} = clicked row value, {{filter:param}} = dashboard parameter
|
|
282
|
-
click_behavior:
|
|
283
|
-
type: link
|
|
284
|
-
linkType: url
|
|
285
|
-
linkTemplate: "https://example.com/orders/{{ORDER_ID}}?status={{filter:status}}"
|
|
286
|
-
linkTextTemplate: "View Order {{ORDER_ID}}"
|
|
287
|
-
|
|
288
|
-
# Link to another dashboard/question — targetId is the entity_id of the target
|
|
289
|
-
click_behavior:
|
|
290
|
-
type: link
|
|
291
|
-
linkType: dashboard # or "question"
|
|
292
|
-
targetId: Q_jD-f-9clKLFZ2TfUG2h
|
|
293
|
-
parameterMapping:
|
|
294
|
-
target-param-uuid:
|
|
295
|
-
id: target-param-uuid
|
|
296
|
-
source: { id: USER_ID, name: User ID, type: column }
|
|
297
|
-
target: { id: target-param-uuid, type: parameter }
|
|
298
|
-
|
|
299
|
-
# Crossfilter — map a clicked column to dashboard parameters
|
|
300
|
-
click_behavior:
|
|
301
|
-
type: crossfilter
|
|
302
|
-
parameterMapping:
|
|
303
|
-
param-uuid:
|
|
304
|
-
id: param-uuid
|
|
305
|
-
source: { id: CATEGORY, name: Category, type: column }
|
|
306
|
-
target: { id: param-uuid, type: parameter }
|
|
307
|
-
```
|
|
308
|
-
|
|
309
|
-
`parameterMapping` entries: `source` is where the value comes from
|
|
310
|
-
(`{ id, name, type }`, type `"column"`/`"parameter"`); `target` is where it goes
|
|
311
|
-
(`{ id, type }`, type `"parameter"`/`"dimension"`/`"variable"`). A `dimension` target
|
|
312
|
-
carries a `dimension` array — the same target shape as a dashboard parameter mapping.
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|