Rulpane Gallery

Gallery / Views / reny-develop/weight-log-ja-view

The screen reny-develop/weight-log-ja-view@1 opens in its sample
reny-develop/weight-log-ja-view@1 in its sample, samples/weight-log-ja.json, as Rulpane opens it

Reads

It does not say: it reads the names its bindings give, so it fits rules that have those names.

Use it

A link or a paneset names it in v. Rules that keep what it reads under other names are matched to it by b:

{ "$schema": "rulpane/paneset/v1", "r": "<rules>", "v": "reny-develop/weight-log-ja-view@1", "b": { … } }

Fits as it is

The rule sets that have every name it reads, which it opens with no b: Rulealize.RuleSet.WeightLog@1.0.0.

Releases

ReleaseRead from
reny-develop/weight-log-ja-view@1 views/weight-log-ja.json @ db1640a Open

The document

As its author committed it.

{
  "$schema": "rulealize/view/v1",
  "ruleSet": "Rulealize.RuleSet.WeightLog@1",
  "title": "体重記録",
  "layout": [
    {
      "c": "text",
      "text": "いまは {summary.latest} kg。目標の {summary.goal} kg まで、あと {summary.left} kg です。",
      "format": {
        "digits": 1
      }
    },
    {
      "c": "columns",
      "widths": [
        2,
        1
      ],
      "blocks": [
        {
          "c": "chart",
          "as": "lines",
          "title": "体重の推移",
          "bind": "days",
          "x": "date",
          "format": {
            "digits": 1
          },
          "lines": [
            {
              "key": "weight",
              "label": "体重"
            },
            {
              "key": "goal",
              "label": "目標",
              "tone": "neutral"
            }
          ]
        },
        {
          "c": "progress",
          "items": [
            {
              "label": "運動した日",
              "bind": "summary.exercised",
              "of": "summary.days"
            }
          ]
        }
      ]
    },
    {
      "c": "columns",
      "widths": [
        2,
        1
      ],
      "blocks": [
        {
          "c": "actions",
          "title": "今日の記録",
          "inputs": [
            "record"
          ],
          "controls": {
            "date": "date",
            "condition": "slider"
          }
        },
        {
          "c": "actions",
          "title": "目標",
          "inputs": [
            "goal"
          ],
          "fill": {
            "goal": "summary.goal"
          }
        }
      ]
    },
    {
      "c": "table",
      "title": "記録",
      "bind": "days",
      "columns": [
        {
          "key": "date",
          "label": "日付"
        },
        {
          "key": "weight",
          "label": "体重",
          "format": {
            "digits": 1,
            "suffix": " kg"
          }
        },
        {
          "key": "condition",
          "label": "体調",
          "tone": {
            "1": "danger",
            "2": "warn",
            "3": "neutral",
            "4": "ok",
            "5": "ok"
          }
        },
        {
          "key": "exercised",
          "label": "運動",
          "tone": {
            "yes": "ok",
            "no": "neutral"
          }
        }
      ],
      "rowActions": [
        {
          "input": "remove",
          "args": {
            "date": "date"
          }
        }
      ]
    }
  ],
  "names": {
    "inputs": {
      "record": "記録する",
      "goal": "変える",
      "remove": "消す"
    },
    "params": {
      "date": "日付",
      "weight": "体重(kg)",
      "condition": "体調(1〜5)",
      "exercised": "運動した",
      "goal": "目標(kg)"
    },
    "codes": {
      "date.form": "日付は 2026-11-03 の形で入れてください。"
    },
    "values": {
      "yes": "した",
      "no": "しなかった"
    }
  }
}

Its sample

The paneset samples/weight-log-ja.json, which it was tried in.

{
  "$schema": "rulpane/paneset/v1",
  "r": "Rulealize.RuleSet.WeightLog@1.0.0",
  "s": {
    "days": [
      {
        "date": "2026-10-19",
        "weight": 68.4,
        "condition": 3,
        "exercised": false
      },
      {
        "date": "2026-10-20",
        "weight": 68.1,
        "condition": 4,
        "exercised": true
      },
      {
        "date": "2026-10-21",
        "weight": 68.3,
        "condition": 2,
        "exercised": false
      },
      {
        "date": "2026-10-22",
        "weight": 67.9,
        "condition": 4,
        "exercised": true
      },
      {
        "date": "2026-10-23",
        "weight": 67.8,
        "condition": 3,
        "exercised": false
      },
      {
        "date": "2026-10-24",
        "weight": 67.4,
        "condition": 5,
        "exercised": true
      },
      {
        "date": "2026-10-25",
        "weight": 67.6,
        "condition": 3,
        "exercised": false
      },
      {
        "date": "2026-10-26",
        "weight": 67.2,
        "condition": 4,
        "exercised": true
      },
      {
        "date": "2026-10-27",
        "weight": 67.0,
        "condition": 4,
        "exercised": true
      },
      {
        "date": "2026-10-28",
        "weight": 67.1,
        "condition": 3,
        "exercised": false
      },
      {
        "date": "2026-10-29",
        "weight": 66.8,
        "condition": 4,
        "exercised": true
      },
      {
        "date": "2026-10-30",
        "weight": 66.6,
        "condition": 5,
        "exercised": true
      }
    ],
    "goal": 65
  }
}
Licence (MIT-0)
MIT No Attribution

Copyright 2026 reny-develop

Permission is hereby granted, free of charge, to any person obtaining a copy of this
software and associated documentation files (the "Software"), to deal in the Software
without restriction, including without limitation the rights to use, copy, modify,
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.