110 lines · 5.5 KB · JSONRaw
{"format_version":1,"id":"storage","list_route":"/storage","setup":true,"name":"Storage","plural":"Storage","picture":{"photo":"photo:7990a61c874f6926b1f4d18482904fdb77c4038e21add5607673604cf58e9750","object":"tool-storage"},"builtin":true,"tool":{"name":"Storage","key":"storage","icon":"hard-drive","card_stock":"grey","route":"/storage","purpose":"What this device keeps and what you can free."},"engine":"storage","screen_family":"storage","columns":[{"key":"name","name":"Tool","type":"text","required":true,"readonly":true},{"key":"root","name":"Root record","type":"text","readonly":true},{"key":"device_name","name":"Device","type":"text","readonly":true,"fact":true,"reading":"{value}"},{"key":"device_id","name":"Device key","type":"text","readonly":true},{"key":"tool","name":"Tool key","type":"text","readonly":true},{"key":"keep_rule","name":"Keep","type":"choice","choices":["all","recent_90_days","only_opened"],"labels":{"all":"All","recent_90_days":"Recent 90 days","only_opened":"Only what I open"},"readonly":true},{"key":"keeps_answered_by","name":"Files owner","type":"text","readonly":true,"fact":false},{"key":"keep_bytes","name":"Files","type":"choice","required":true,"default":"everything","choices":["everything","rows_only"],"labels":{"everything":"Everything","rows_only":"Rows only"},"shown_when":{"column":"keeps_answered_by","values":["mac"]},"hints":{"everything":"Keep files and rows on this Mac.","rows_only":"No files are kept on this Mac; rows only."},"toggle_on":["everything"]},{"key":"photo_keep_rule","name":"Photos","type":"choice","required":true,"default":"all","choices":["all","recent_90_days","only_opened"],"shown_when":{"column":"root","values":["machine"]},"labels":{"all":"All","recent_90_days":"Recent 90 days","only_opened":"Only opened"}},{"key":"video_keep_rule","name":"Videos","type":"choice","required":true,"default":"all","choices":["all","recent_90_days","only_opened"],"shown_when":{"column":"root","values":["machine"]},"labels":{"all":"All","recent_90_days":"Recent 90 days","only_opened":"Only opened"}},{"key":"document_keep_rule","name":"Documents","type":"choice","required":true,"default":"all","choices":["all","recent_90_days","only_opened"],"shown_when":{"column":"root","values":["machine"]},"labels":{"all":"All","recent_90_days":"Recent 90 days","only_opened":"Only opened"}},{"key":"thread_keep_rule","name":"Messages","type":"choice","required":true,"default":"all","choices":["all","recent_90_days","only_opened"],"shown_when":{"column":"root","values":["machine"]},"labels":{"all":"All","recent_90_days":"Recent 90 days","only_opened":"Only opened"}},{"key":"held_bytes","name":"On this device","type":"bytes","readonly":true},{"key":"freeable_bytes","name":"Can free","type":"bytes","readonly":true},{ "key": "held_count", "name": "Here", "type": "number", "readonly": true, "units": { "one": "item", "other": "items", "zero": "0 items" }},{ "key": "total_count", "name": "In this database", "type": "number", "readonly": true, "units": { "one": "item", "other": "items", "zero": "0 items" }},{ "key": "measured_at", "name": "Last measured", "type": "date", "readonly": true, "fact": true, "reading": "{value}", "format": "calendar-datetime"},{"key":"what","name":"About","type":"text","readonly":true},{"key":"is_this_device","name":"This device","type":"bool","readonly":true}],"title":"name","date":null,"project":null,"order":null,"slip":{"title":"name","subtitle":"what","trailing":null,"photo":null,"toggle":null},"tile":{"face":"slip-list"},"empty":{"title":"Nothing on this device yet"},"page":[{"heading":null,"columns":["name","device_name","keep_rule","held_bytes","freeable_bytes","held_count","total_count","measured_at","keep_bytes","photo_keep_rule","video_keep_rule","document_keep_rule","thread_keep_rule"]},{"heading":null,"when":{"column":"measured_at","present":false},"note":"Not measured by this device yet."}],"commands":[{"id":"measure_now","label":"Measure now","kind":"update","method":"storage.measure","when":{"is_this_device":true},"receipt":"Measuring","object":"gauge","bindings":{"device":"device_id"}}],"instructions":"Storage keeps legacy per-tool rows until its generic root-record route replaces them.","add":false,"delete":false,"parts":{ "shape": "sheet", "head": { "facts": [ "device_name", "measured_at" ] }, "links": [], "lists": [], "acts": { "main": "measure_now", "more": [] }, "cards": [ { "column": "held_bytes", "object": "figure" }, { "column": "freeable_bytes", "object": "figure" }, { "column": "held_count" }, { "column": "total_count" }, { "column": "keep_rule" }, { "column": "keep_bytes", "object": "ring", "when": { "column": "keeps_answered_by", "values": [ "mac" ] } }, { "column": "photo_keep_rule", "when": { "column": "root", "values": [ "machine" ] } }, { "column": "video_keep_rule", "when": { "column": "root", "values": [ "machine" ] } }, { "column": "document_keep_rule", "when": { "column": "root", "values": [ "machine" ] } }, { "column": "thread_keep_rule", "when": { "column": "root", "values": [ "machine" ] }, "stock": "cream" } ], "strip": []},"tables":[]}