@skillcdn/console 0.1.23 → 0.3.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.
Files changed (97) hide show
  1. package/README.md +6 -5
  2. package/dist/api.d.ts +1 -1
  3. package/dist/api.d.ts.map +1 -1
  4. package/dist/api.js +1 -1
  5. package/dist/api.js.map +1 -1
  6. package/dist/cli/cli.d.ts.map +1 -1
  7. package/dist/cli/cli.js +80 -54
  8. package/dist/cli/cli.js.map +1 -1
  9. package/dist/cli/format.d.ts +4 -28
  10. package/dist/cli/format.d.ts.map +1 -1
  11. package/dist/cli/format.js +7 -260
  12. package/dist/cli/format.js.map +1 -1
  13. package/dist/cli/help.d.ts +6 -1
  14. package/dist/cli/help.d.ts.map +1 -1
  15. package/dist/cli/help.js +47 -24
  16. package/dist/cli/help.js.map +1 -1
  17. package/dist/cli/pack.d.ts +46 -0
  18. package/dist/cli/pack.d.ts.map +1 -0
  19. package/dist/cli/pack.js +250 -0
  20. package/dist/cli/pack.js.map +1 -0
  21. package/dist/compat.d.ts +1 -1
  22. package/dist/compat.js +1 -1
  23. package/dist/components/decision-list.d.ts +13 -1
  24. package/dist/components/decision-list.d.ts.map +1 -1
  25. package/dist/components/decision-list.js +74 -29
  26. package/dist/components/decision-list.js.map +1 -1
  27. package/dist/components/paged.d.ts +24 -0
  28. package/dist/components/paged.d.ts.map +1 -1
  29. package/dist/components/paged.js +40 -4
  30. package/dist/components/paged.js.map +1 -1
  31. package/dist/components/skills.d.ts.map +1 -1
  32. package/dist/components/skills.js +8 -4
  33. package/dist/components/skills.js.map +1 -1
  34. package/dist/components/ui.d.ts +2 -0
  35. package/dist/components/ui.d.ts.map +1 -1
  36. package/dist/components/ui.js +7 -2
  37. package/dist/components/ui.js.map +1 -1
  38. package/dist/components/work.d.ts +2 -0
  39. package/dist/components/work.d.ts.map +1 -1
  40. package/dist/components/work.js +3 -2
  41. package/dist/components/work.js.map +1 -1
  42. package/dist/console.css +112 -5
  43. package/dist/console.d.ts.map +1 -1
  44. package/dist/console.js +5 -3
  45. package/dist/console.js.map +1 -1
  46. package/dist/data.d.ts.map +1 -1
  47. package/dist/data.js +27 -2
  48. package/dist/data.js.map +1 -1
  49. package/dist/i18n/en.d.ts +13 -0
  50. package/dist/i18n/en.d.ts.map +1 -1
  51. package/dist/i18n/en.js +15 -0
  52. package/dist/i18n/en.js.map +1 -1
  53. package/dist/i18n/ko.d.ts.map +1 -1
  54. package/dist/i18n/ko.js +15 -0
  55. package/dist/i18n/ko.js.map +1 -1
  56. package/dist/index.d.ts +2 -2
  57. package/dist/index.d.ts.map +1 -1
  58. package/dist/index.js +2 -2
  59. package/dist/index.js.map +1 -1
  60. package/dist/router.d.ts +6 -1
  61. package/dist/router.d.ts.map +1 -1
  62. package/dist/router.js +13 -7
  63. package/dist/router.js.map +1 -1
  64. package/dist/rules.js +3 -3
  65. package/dist/rules.js.map +1 -1
  66. package/dist/schemas.d.ts +557 -162
  67. package/dist/schemas.d.ts.map +1 -1
  68. package/dist/schemas.js +72 -158
  69. package/dist/schemas.js.map +1 -1
  70. package/docs/specs/cli.md +12 -12
  71. package/docs/specs/rest.md +7 -15
  72. package/package.json +2 -1
  73. package/skills/deploying-a-console/SKILL.md +2 -2
  74. package/skills/working-the-board/SKILL.md +9 -14
  75. package/skills/working-the-board/references/setting-up.md +3 -0
  76. package/skills/working-the-board/references/terms.md +9 -0
  77. package/skills/working-the-board/references/the-sentence.md +5 -0
  78. package/src/api.ts +2 -7
  79. package/src/cli/cli.ts +113 -62
  80. package/src/cli/format.ts +10 -324
  81. package/src/cli/help.ts +53 -27
  82. package/src/cli/pack.ts +356 -0
  83. package/src/compat.ts +1 -1
  84. package/src/components/decision-list.tsx +227 -94
  85. package/src/components/paged.tsx +72 -3
  86. package/src/components/skills.tsx +51 -33
  87. package/src/components/ui.tsx +16 -3
  88. package/src/components/work.tsx +9 -5
  89. package/src/console.tsx +8 -2
  90. package/src/data.ts +32 -2
  91. package/src/i18n/en.ts +18 -0
  92. package/src/i18n/ko.ts +17 -0
  93. package/src/index.ts +9 -1
  94. package/src/router.ts +20 -9
  95. package/src/rules.ts +3 -3
  96. package/src/schemas.ts +87 -184
  97. package/src/styles/console.css +112 -5
@@ -875,7 +875,8 @@ table {
875
875
  color var(--sc-transition);
876
876
  }
877
877
 
878
- .sc-button:disabled {
878
+ .sc-button:disabled,
879
+ .sc-button[aria-disabled="true"] {
879
880
  opacity: 0.55;
880
881
  cursor: not-allowed;
881
882
  }
@@ -1573,6 +1574,10 @@ table {
1573
1574
  }
1574
1575
 
1575
1576
  .sc-answer-option {
1577
+ display: flex;
1578
+ flex-wrap: wrap;
1579
+ align-items: center;
1580
+ gap: var(--sc-space-2);
1576
1581
  font-weight: var(--sc-weight-bold);
1577
1582
  }
1578
1583
 
@@ -1619,6 +1624,17 @@ table {
1619
1624
  accent-color: var(--sc-color-accent);
1620
1625
  }
1621
1626
 
1627
+ /* The last choice is the person's own words: the radio, its label, and the line they write on. */
1628
+ .sc-option-own {
1629
+ flex-wrap: wrap;
1630
+ }
1631
+
1632
+ .sc-option-own .sc-input {
1633
+ flex: 1 1 12rem;
1634
+ min-width: 0;
1635
+ min-height: 2rem;
1636
+ }
1637
+
1622
1638
  /* The feed: a line per event, newest first. */
1623
1639
 
1624
1640
  .sc-feed {
@@ -3020,7 +3036,7 @@ table {
3020
3036
  }
3021
3037
  }
3022
3038
 
3023
- /* The record of the decisions: a row each. */
3039
+ /* The decisions waiting on a person's plate: a row each. */
3024
3040
  .sc-decision-log {
3025
3041
  display: grid;
3026
3042
  gap: var(--sc-space-2);
@@ -3060,18 +3076,109 @@ table {
3060
3076
  color: var(--sc-color-accent);
3061
3077
  }
3062
3078
 
3063
- .sc-decision-row-answer {
3064
- color: var(--sc-color-success);
3079
+ .sc-decision-row-meta {
3080
+ display: flex;
3081
+ flex-wrap: wrap;
3082
+ align-items: center;
3083
+ gap: var(--sc-space-2);
3084
+ color: var(--sc-color-text-muted);
3085
+ }
3086
+
3087
+ /* The record of the decisions: a row each, what was asked on the left and what was answered on
3088
+ the right, each with who and when under it; one column where the window is narrow. */
3089
+ .sc-decision-record {
3090
+ display: grid;
3091
+ gap: var(--sc-space-2);
3092
+ margin: 0;
3093
+ padding: 0;
3094
+ list-style: none;
3095
+ }
3096
+
3097
+ .sc-decision-record-row {
3098
+ display: grid;
3099
+ grid-template-columns: minmax(0, 1fr);
3100
+ gap: var(--sc-space-3) var(--sc-space-6);
3101
+ padding: var(--sc-space-3) var(--sc-space-4);
3102
+ border: var(--sc-border);
3103
+ border-radius: var(--sc-radius-md);
3104
+ background: var(--sc-color-sheet);
3105
+ font-size: var(--sc-text-sm);
3106
+ }
3107
+
3108
+ @media (min-width: 40rem) {
3109
+ .sc-decision-record-row {
3110
+ grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
3111
+ }
3112
+ }
3113
+
3114
+ .sc-decision-record-asked,
3115
+ .sc-decision-record-answer {
3116
+ display: grid;
3117
+ align-content: start;
3118
+ gap: var(--sc-space-1);
3119
+ min-width: 0;
3120
+ }
3121
+
3122
+ .sc-decision-record-question {
3065
3123
  font-weight: var(--sc-weight-medium);
3066
3124
  overflow-wrap: anywhere;
3067
3125
  }
3068
3126
 
3069
- .sc-decision-row-meta {
3127
+ .sc-decision-record-question a {
3128
+ color: var(--sc-color-text);
3129
+ text-decoration: none;
3130
+ }
3131
+
3132
+ .sc-decision-record-question a:hover {
3133
+ color: var(--sc-color-accent);
3134
+ }
3135
+
3136
+ .sc-decision-record-question .sc-card-number {
3137
+ margin-left: var(--sc-space-2);
3138
+ }
3139
+
3140
+ .sc-decision-record-chosen {
3070
3141
  display: flex;
3071
3142
  flex-wrap: wrap;
3072
3143
  align-items: center;
3073
3144
  gap: var(--sc-space-2);
3145
+ color: var(--sc-color-success);
3146
+ font-weight: var(--sc-weight-medium);
3147
+ overflow-wrap: anywhere;
3148
+ }
3149
+
3150
+ /* The word given with the answer: a few lines of it here, the whole on the decision's page. */
3151
+ .sc-decision-record-note {
3152
+ display: -webkit-box;
3153
+ -webkit-box-orient: vertical;
3154
+ -webkit-line-clamp: 3;
3155
+ overflow: hidden;
3074
3156
  color: var(--sc-color-text-muted);
3157
+ overflow-wrap: anywhere;
3158
+ }
3159
+
3160
+ .sc-decision-record-meta {
3161
+ display: flex;
3162
+ flex-wrap: wrap;
3163
+ align-items: center;
3164
+ gap: var(--sc-space-1) var(--sc-space-2);
3165
+ color: var(--sc-color-text-muted);
3166
+ font-size: var(--sc-text-xs);
3167
+ }
3168
+
3169
+ /* The way between the pages of the record: the step before, what is shown of how many, the step after. */
3170
+ .sc-pager {
3171
+ display: flex;
3172
+ flex-wrap: wrap;
3173
+ align-items: center;
3174
+ justify-content: space-between;
3175
+ gap: var(--sc-space-3);
3176
+ margin-top: var(--sc-space-3);
3177
+ }
3178
+
3179
+ .sc-pager-range {
3180
+ color: var(--sc-color-text-muted);
3181
+ font-size: var(--sc-text-sm);
3075
3182
  }
3076
3183
 
3077
3184
  /* Who has what: a small table, the late numbers in the danger colour. */