@skillcdn/console 0.1.20 → 0.1.22
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 +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +1 -1
- package/dist/api.js.map +1 -1
- package/dist/cli/cli.d.ts.map +1 -1
- package/dist/cli/cli.js +67 -6
- package/dist/cli/cli.js.map +1 -1
- package/dist/cli/format.d.ts +15 -4
- package/dist/cli/format.d.ts.map +1 -1
- package/dist/cli/format.js +133 -7
- package/dist/cli/format.js.map +1 -1
- package/dist/cli/help.d.ts +8 -4
- package/dist/cli/help.d.ts.map +1 -1
- package/dist/cli/help.js +67 -19
- package/dist/cli/help.js.map +1 -1
- package/dist/client.d.ts +13 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +12 -1
- package/dist/client.js.map +1 -1
- package/dist/components/board.d.ts +4 -4
- package/dist/components/board.d.ts.map +1 -1
- package/dist/components/board.js +48 -19
- package/dist/components/board.js.map +1 -1
- package/dist/components/task-view.d.ts.map +1 -1
- package/dist/components/task-view.js +2 -4
- package/dist/components/task-view.js.map +1 -1
- package/dist/console.css +59 -17
- package/dist/console.d.ts.map +1 -1
- package/dist/console.js +1 -1
- package/dist/console.js.map +1 -1
- package/dist/i18n/en.js +1 -1
- package/dist/i18n/en.js.map +1 -1
- package/dist/i18n/ko.js +1 -1
- package/dist/i18n/ko.js.map +1 -1
- package/dist/rules.d.ts.map +1 -1
- package/dist/rules.js +3 -2
- package/dist/rules.js.map +1 -1
- package/dist/schemas.d.ts +145 -0
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +89 -0
- package/dist/schemas.js.map +1 -1
- package/docs/specs/cli.md +5 -5
- package/docs/specs/rest.md +8 -3
- package/package.json +1 -1
- package/skills/working-the-board/SKILL.md +4 -4
- package/src/api.ts +8 -0
- package/src/cli/cli.ts +77 -9
- package/src/cli/format.ts +156 -7
- package/src/cli/help.ts +93 -25
- package/src/client.ts +48 -0
- package/src/components/board.tsx +86 -33
- package/src/components/task-view.tsx +10 -12
- package/src/console.tsx +8 -2
- package/src/i18n/en.ts +1 -1
- package/src/i18n/ko.ts +1 -1
- package/src/rules.ts +3 -2
- package/src/schemas.ts +110 -0
- package/src/styles/console.css +59 -17
package/src/styles/console.css
CHANGED
|
@@ -718,6 +718,34 @@ table {
|
|
|
718
718
|
gap: var(--sc-space-2);
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
+
/* A page's name with a word about it beside: on one line where the window is wide, so that the
|
|
722
|
+
head stays low over the board; under the name where it is not. */
|
|
723
|
+
.sc-page-heading {
|
|
724
|
+
display: flex;
|
|
725
|
+
flex: 1 1 auto;
|
|
726
|
+
flex-wrap: wrap;
|
|
727
|
+
align-items: baseline;
|
|
728
|
+
min-width: 0;
|
|
729
|
+
column-gap: var(--sc-space-4);
|
|
730
|
+
row-gap: var(--sc-space-1);
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
.sc-page-lead {
|
|
734
|
+
flex: 1 1 16rem;
|
|
735
|
+
min-width: 0;
|
|
736
|
+
margin: 0;
|
|
737
|
+
color: var(--sc-color-text-muted);
|
|
738
|
+
font-size: var(--sc-text-sm);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
@media (min-width: 60rem) {
|
|
742
|
+
.sc-page-lead {
|
|
743
|
+
overflow: hidden;
|
|
744
|
+
text-overflow: ellipsis;
|
|
745
|
+
white-space: nowrap;
|
|
746
|
+
}
|
|
747
|
+
}
|
|
748
|
+
|
|
721
749
|
.sc-lead {
|
|
722
750
|
max-width: var(--sc-width-prose);
|
|
723
751
|
margin-bottom: var(--sc-space-5);
|
|
@@ -786,6 +814,12 @@ table {
|
|
|
786
814
|
pointer-events: none;
|
|
787
815
|
}
|
|
788
816
|
|
|
817
|
+
/* A column's frame stands in front of what scrolls within it: a card scrolling out goes under
|
|
818
|
+
the lit edge, never over it. The other panes do not scroll, and keep the rim under the content. */
|
|
819
|
+
.sc-column::before {
|
|
820
|
+
z-index: 1;
|
|
821
|
+
}
|
|
822
|
+
|
|
789
823
|
.sc-panel {
|
|
790
824
|
margin-bottom: var(--sc-space-5);
|
|
791
825
|
padding: var(--sc-space-5);
|
|
@@ -3768,16 +3802,16 @@ table {
|
|
|
3768
3802
|
}
|
|
3769
3803
|
}
|
|
3770
3804
|
|
|
3771
|
-
/* A card is dragged to another column from anywhere on it but its
|
|
3772
|
-
mouse at once, under a finger once it has rested a moment, so that a finger that moves
|
|
3773
|
-
The
|
|
3774
|
-
|
|
3805
|
+
/* A card is dragged to another column from anywhere on it but its menu, its title included: with
|
|
3806
|
+
a mouse at once, under a finger once it has rested a moment, so that a finger that moves
|
|
3807
|
+
scrolls. The column under the dragged card says it would take it, and the card itself, whole,
|
|
3808
|
+
follows the pointer while a faded one keeps its place. */
|
|
3775
3809
|
.sc-card {
|
|
3776
3810
|
position: relative;
|
|
3777
3811
|
}
|
|
3778
3812
|
|
|
3779
3813
|
.sc-card-movable {
|
|
3780
|
-
cursor:
|
|
3814
|
+
cursor: grab;
|
|
3781
3815
|
}
|
|
3782
3816
|
|
|
3783
3817
|
/* A finger resting on a card is neither selecting its words nor asking for the page's menu. */
|
|
@@ -3789,13 +3823,13 @@ table {
|
|
|
3789
3823
|
}
|
|
3790
3824
|
|
|
3791
3825
|
.sc-card-dragging {
|
|
3792
|
-
opacity: 0.
|
|
3826
|
+
opacity: 0.4;
|
|
3793
3827
|
}
|
|
3794
3828
|
|
|
3795
3829
|
.sc-board-dragging,
|
|
3796
3830
|
.sc-board-dragging .sc-card,
|
|
3797
3831
|
.sc-board-dragging .sc-card * {
|
|
3798
|
-
cursor:
|
|
3832
|
+
cursor: grabbing;
|
|
3799
3833
|
user-select: none;
|
|
3800
3834
|
}
|
|
3801
3835
|
|
|
@@ -3828,6 +3862,9 @@ table {
|
|
|
3828
3862
|
height: 1rem;
|
|
3829
3863
|
}
|
|
3830
3864
|
|
|
3865
|
+
/* Shown on the card under the pointer or with the focus, while the menu is open, and on the card
|
|
3866
|
+
in hand, which is the card as it was hovered: its menu's dots, and the room they take. */
|
|
3867
|
+
.sc-drag-ghost .sc-card-menu-button,
|
|
3831
3868
|
.sc-card:hover .sc-card-menu-button,
|
|
3832
3869
|
.sc-card:focus-within .sc-card-menu-button,
|
|
3833
3870
|
.sc-card-menu-button[aria-expanded="true"] {
|
|
@@ -3860,12 +3897,18 @@ table {
|
|
|
3860
3897
|
z-index: 60;
|
|
3861
3898
|
display: flex;
|
|
3862
3899
|
flex-direction: column;
|
|
3863
|
-
min-width:
|
|
3900
|
+
min-width: 8rem;
|
|
3864
3901
|
padding: var(--sc-space-1);
|
|
3865
3902
|
border: var(--sc-border);
|
|
3866
|
-
border-radius: var(--sc-radius-
|
|
3903
|
+
border-radius: var(--sc-radius-md);
|
|
3867
3904
|
background: var(--sc-color-bg-inset);
|
|
3868
3905
|
box-shadow: var(--sc-shadow-stage);
|
|
3906
|
+
font-size: var(--sc-text-sm);
|
|
3907
|
+
}
|
|
3908
|
+
|
|
3909
|
+
.sc-card-menu .sc-menu-link {
|
|
3910
|
+
padding: calc(var(--sc-space-1) + 1px) var(--sc-space-2);
|
|
3911
|
+
border-radius: var(--sc-radius-sm);
|
|
3869
3912
|
}
|
|
3870
3913
|
|
|
3871
3914
|
.sc-column-over {
|
|
@@ -3878,17 +3921,16 @@ table {
|
|
|
3878
3921
|
top: 0;
|
|
3879
3922
|
left: 0;
|
|
3880
3923
|
z-index: 50;
|
|
3881
|
-
max-width: 18rem;
|
|
3882
|
-
padding: var(--sc-space-2) var(--sc-space-3);
|
|
3883
|
-
border: 1px solid var(--sc-color-accent);
|
|
3884
|
-
border-radius: var(--sc-radius-lg);
|
|
3885
|
-
background: var(--sc-color-bg-raised);
|
|
3886
|
-
box-shadow: var(--sc-glow);
|
|
3887
|
-
color: var(--sc-color-text);
|
|
3888
|
-
font-size: var(--sc-text-sm);
|
|
3889
3924
|
pointer-events: none;
|
|
3890
3925
|
}
|
|
3891
3926
|
|
|
3927
|
+
.sc-drag-ghost .sc-card {
|
|
3928
|
+
border-color: var(--sc-color-accent);
|
|
3929
|
+
background: var(--sc-color-bg-raised);
|
|
3930
|
+
box-shadow: var(--sc-shadow-stage);
|
|
3931
|
+
transform: scale(1.02);
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3892
3934
|
/* A goal's page reads as the board does: the facts in a row at its head, then a switch between
|
|
3893
3935
|
the views of its tasks, then the view, which takes the rest of the height as the board does. */
|
|
3894
3936
|
.sc-goal-page {
|