new Date(card2.metadata.completedAt) - new Date(card1.metadata.completedAt)}
+ />
+ ),
{info: 'A lane sorted by completed at descending'}
)
diff --git a/stories/data/data-sort.json b/stories/data/data-sort.json
index babe22cfe..dbe0fb850 100644
--- a/stories/data/data-sort.json
+++ b/stories/data/data-sort.json
@@ -47,6 +47,20 @@
}
}
]
+ },
+ {
+ "id": "WIP",
+ "title": "Work In Progress",
+ "label": "10/20",
+ "style": {"width": 280},
+ "cards": [
+ {
+ "id": "Wip1",
+ "title": "Clean House",
+ "label": "30 mins",
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses"
+ }
+ ]
}
]
}
diff --git a/tests/__snapshots__/Storyshots.test.js.snap b/tests/__snapshots__/Storyshots.test.js.snap
index 73f75604b..ff425a160 100644
--- a/tests/__snapshots__/Storyshots.test.js.snap
+++ b/tests/__snapshots__/Storyshots.test.js.snap
@@ -10335,6 +10335,24 @@ exports[`Storyshots Basic Functions Reverse Sorted Lane 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -10545,6 +10563,87 @@ exports[`Storyshots Basic Functions Reverse Sorted Lane 1`] = `
+
+
+
+ Work In Progress
+
+
+
+ 10/20
+
+
+
+
+
+
+
+
+
+ Clean House
+
+
+ 30 mins
+
+
+
+
+
+
+ Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses
+
+
+
+
+
+
@@ -10866,6 +10965,115 @@ exports[`Storyshots Basic Functions Reverse Sorted Lane 1`] = `
}
+ ,
+
+
+ {
+
+
+
+
+
+
+
+ id
+
+
+ :
+
+ 'WIP'
+
+ ,
+
+
+
+
+
+
+
+ title
+
+
+ :
+
+ 'Work In Progress'
+
+ ,
+
+
+
+
+
+
+
+ label
+
+
+ :
+
+ '10/20'
+
+ ,
+
+
+
+
+
+
+ …
+
+
+
+
+
+ }
+
+
]
}
@@ -11189,6 +11397,24 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -11237,7 +11463,7 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
>
@@ -11248,12 +11474,12 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
className="c9"
draggable={true}
>
- Pay Rent
+ Buy milk
- 2017-09-01
+ 2017-12-01
- Transfer to bank account
+ 2 Gallons of milk at the Deli store
@@ -11278,7 +11504,7 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
>
@@ -11289,12 +11515,12 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
className="c9"
draggable={true}
>
- Write Blog
+ Dispose Garbage
- 2017-10-01
+ 2017-11-01
- Can AI make memes?
+ Sort out recyclable and waste as needed
@@ -11319,7 +11545,7 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
>
@@ -11330,12 +11556,12 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
className="c9"
draggable={true}
>
- Dispose Garbage
+ Pay Rent
- 2017-11-01
+ 2017-09-01
- Sort out recyclable and waste as needed
+ Transfer to bank account
@@ -11360,7 +11586,7 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
>
@@ -11371,12 +11597,12 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
className="c9"
draggable={true}
>
- Buy milk
+ Write Blog
- 2017-12-01
+ 2017-10-01
- 2 Gallons of milk at the Deli store
+ Can AI make memes?
+
+
+
+
+
+
+
+
+
+ Work In Progress
+
+
+
+ 10/20
+
+
+
+
+
+
+
+
+
+ Clean House
+
+
+ 30 mins
+
+
+
+
+
+
+ Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses
@@ -11720,6 +12027,115 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
}
+ ,
+
+
+ {
+
+
+
+
+
+
+
+ id
+
+
+ :
+
+ 'WIP'
+
+ ,
+
+
+
+
+
+
+
+ title
+
+
+ :
+
+ 'Work In Progress'
+
+ ,
+
+
+
+
+
+
+
+ label
+
+
+ :
+
+ '10/20'
+
+ ,
+
+
+
+
+
+
+ …
+
+
+
+
+
+ }
+
+
]
}
@@ -11748,7 +12164,7 @@ exports[`Storyshots Basic Functions Sorted Lane 1`] = `
}
}
>
- laneSortFunction
+ compare
}
@@ -21973,6 +22389,24 @@ exports[`Storyshots Custom Components NewLaneForm 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -22236,43 +22670,177 @@ exports[`Storyshots Custom Components NewLaneForm 1`] = `
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+ + Add another lane
+
+
+
+
+
+
+ Show Info
+ ,
+
+
+ {
+
+
+
+
+
+
+
+ id
+
+
+ :
+
+ 'WIP'
+
+ ,
+
+
+
+
+
+
+
+ title
+
+
+ :
+
+ 'Work In Progress'
+
+ ,
+
+
+
+
+
+
+
+ label
+
+
+ :
+
+ '10/20'
+
+ ,
+
+
+
+
+
+
+ …
+
+
+
+
+
+ }
+
+
]
}
@@ -23115,6 +23792,24 @@ exports[`Storyshots Custom Components NewLaneSection 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -23333,7 +24028,141 @@ exports[`Storyshots Custom Components NewLaneSection 1`] = `
>
+
+
+ Pay Rent
+
+
+ 2017-09-01
+
+
+
+ ✖
+
+
+
+
+ Transfer to bank account
+
+
+
+
+
+ Click to add card
+
+
+
+
+
+
+ Work In Progress
+
+
+
+ 10/20
+
+
+
+
+
+ ⋮
+
+
+
+
+
+ Lane actions
+
+
+
+ ✖
+
+
+
+
+
+
+
+
+
+
+
@@ -23344,12 +24173,12 @@ exports[`Storyshots Custom Components NewLaneSection 1`] = `
className="c19"
draggable={true}
>
- Pay Rent
+ Clean House
- 2017-09-01
+ 30 mins
- Transfer to bank account
+ Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses
@@ -23763,6 +24592,115 @@ exports[`Storyshots Custom Components NewLaneSection 1`] = `
}
+ ,
+
+
+ {
+
+
+
+
+
+
+
+ id
+
+
+ :
+
+ 'WIP'
+
+ ,
+
+
+
+
+
+
+
+ title
+
+
+ :
+
+ 'Work In Progress'
+
+ ,
+
+
+
+
+
+
+
+ label
+
+
+ :
+
+ '10/20'
+
+ ,
+
+
+
+
+
+
+ …
+
+
+
+
+
+ }
+
+
]
}
@@ -32531,6 +33469,24 @@ exports[`Storyshots Editable Board Add New Lane 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -32704,52 +33660,186 @@ exports[`Storyshots Editable Board Add New Lane 1`] = `
+
+
+
+ Write Blog
+
+
+ 2017-10-01
+
+
+
+ ✖
+
+
+
+
+ Can AI make memes?
+
+
+
+
+
+
+
+ Pay Rent
+
+
+ 2017-09-01
+
+
+
+ ✖
+
+
+
+
+ Transfer to bank account
+
+
+
+
+
+ Click to add card
+
+
+
+
+
+
+ Work In Progress
+
+
+
+ 10/20
+
+
+
+
+
+ ⋮
+
+
+
-
-
-
- Write Blog
-
-
- 2017-10-01
-
-
+
+
- Can AI make memes?
+ Delete lane
-
+
+
+
+
+
@@ -32760,12 +33850,12 @@ exports[`Storyshots Editable Board Add New Lane 1`] = `
className="c19"
draggable={true}
>
- Pay Rent
+ Clean House
- 2017-09-01
+ 30 mins
- Transfer to bank account
+ Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses
@@ -33130,6 +34220,115 @@ exports[`Storyshots Editable Board Add New Lane 1`] = `
}
+ ,
+
+
+ {
+
+
+
+
+
+
+
+ id
+
+
+ :
+
+ 'WIP'
+
+ ,
+
+
+
+
+
+
+
+ title
+
+
+ :
+
+ 'Work In Progress'
+
+ ,
+
+
+
+
+
+
+
+ label
+
+
+ :
+
+ '10/20'
+
+ ,
+
+
+
+
+
+
+ …
+
+
+
+
+
+ }
+
+
]
}
@@ -37577,6 +38776,24 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -37686,7 +38903,48 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
>
+
+
+ Buy milk
+
+
+ 2017-12-01
+
+
+
+ ✖
+
+
+
+
+ 2 Gallons of milk at the Deli store
+
+
+
+
+
@@ -37697,12 +38955,12 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
className="c20"
draggable={true}
>
- Buy milk
+ Dispose Garbage
- 2017-12-01
+ 2017-11-01
- 2 Gallons of milk at the Deli store
+ Sort out recyclable and waste as needed
@@ -37727,7 +38985,7 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
>
@@ -37738,12 +38996,12 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
className="c20"
draggable={true}
>
- Dispose Garbage
+ Write Blog
- 2017-11-01
+ 2017-10-01
- Sort out recyclable and waste as needed
+ Can AI make memes?
@@ -37768,7 +39026,7 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
>
@@ -37779,12 +39037,12 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
className="c20"
draggable={true}
>
- Write Blog
+ Pay Rent
- 2017-10-01
+ 2017-09-01
- Can AI make memes?
+ Transfer to bank account
+
+
+ Click to add card
+
+
+
+
+
+
+
+
+
+
+ 10/20
+
+
+
+
+
+ ⋮
+
+
+
+
+
+ Lane actions
+
+
+
+ ✖
+
+
+
+
+
+
+
+
+
@@ -37820,12 +39185,12 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
className="c20"
draggable={true}
>
- Pay Rent
+ Clean House
- 2017-09-01
+ 30 mins
- Transfer to bank account
+ Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses
@@ -38068,20 +39433,129 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
Object {
"color": "#666",
}
- }
- >
- lanes
+ }
+ >
+ lanes
+
+
+ :
+
+ [
+
+
+ {
+
+
+
+
+
+
+
+ id
+
+
+ :
+
+ 'SORTED_LANE'
+
+ ,
+
+
+
+
+
+
+
+ title
+
+
+ :
+
+ 'Sorted Lane'
+
+ ,
+
+
+
+
+
+
+
+ label
+
+
+ :
+
+ '20/70'
+
+ ,
+
+
+
+
+
+
+ …
+
+
+
+
+
+ }
+
-
- :
-
- [
+ ,
- 'SORTED_LANE'
+ 'WIP'
,
@@ -38144,7 +39618,7 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
}
}
>
- 'Sorted Lane'
+ 'Work In Progress'
,
@@ -38172,7 +39646,7 @@ exports[`Storyshots Editable Board Inline Edit Lane Title 1`] = `
}
}
>
- '20/70'
+ '10/20'
,
@@ -38804,6 +40278,24 @@ exports[`Storyshots I18n Custom texts 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -39071,6 +40563,144 @@ exports[`Storyshots I18n Custom texts 1`] = `
+
+
+
+
+ Work In Progress
+
+
+
+ 10/20
+
+
+
+
+
+ ⋮
+
+
+
+
+
+ Lane actions
+
+
+
+ ✖
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Clean House
+
+
+ 30 mins
+
+
+
+ ✖
+
+
+
+
+ Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses
+
+
+
+
+
+ Click to add card
+
+
+
+
@@ -39285,20 +40915,129 @@ exports[`Storyshots I18n Custom texts 1`] = `
Object {
"color": "#666",
}
- }
- >
- lanes
+ }
+ >
+ lanes
+
+
+ :
+
+ [
+
+
+ {
+
+
+
+
+
+
+
+ id
+
+
+ :
+
+ 'SORTED_LANE'
+
+ ,
+
+
+
+
+
+
+
+ title
+
+
+ :
+
+ 'Sorted Lane'
+
+ ,
+
+
+
+
+
+
+
+ label
+
+
+ :
+
+ '20/70'
+
+ ,
+
+
+
+
+
+
+ …
+
+
+
+
+
+ }
+
-
- :
-
- [
+ ,
- 'SORTED_LANE'
+ 'WIP'
,
@@ -39361,7 +41100,7 @@ exports[`Storyshots I18n Custom texts 1`] = `
}
}
>
- 'Sorted Lane'
+ 'Work In Progress'
,
@@ -39389,7 +41128,7 @@ exports[`Storyshots I18n Custom texts 1`] = `
}
}
>
- '20/70'
+ '10/20'
,
@@ -39992,6 +41731,24 @@ exports[`Storyshots I18n Flat translation table 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -40259,6 +42016,144 @@ exports[`Storyshots I18n Flat translation table 1`] = `
+
+
+
+
+ Work In Progress
+
+
+
+ 10/20
+
+
+
+
+
+ ⋮
+
+
+
+
+
+ Listenaktionen
+
+
+
+ ✖
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Clean House
+
+
+ 30 mins
+
+
+
+ ✖
+
+
+
+
+ Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses
+
+
+
+
+
+ Klicken zum Erstellen einer Karte
+
+
+
+
@@ -40473,20 +42368,129 @@ exports[`Storyshots I18n Flat translation table 1`] = `
Object {
"color": "#666",
}
- }
- >
- lanes
+ }
+ >
+ lanes
+
+
+ :
+
+ [
+
+
+ {
+
+
+
+
+
+
+
+ id
+
+
+ :
+
+ 'SORTED_LANE'
+
+ ,
+
+
+
+
+
+
+
+ title
+
+
+ :
+
+ 'Sorted Lane'
+
+ ,
+
+
+
+
+
+
+
+ label
+
+
+ :
+
+ '20/70'
+
+ ,
+
+
+
+
+
+
+ …
+
+
+
+
+
+ }
+
-
- :
-
- [
+ ,
- 'SORTED_LANE'
+ 'WIP'
,
@@ -40549,7 +42553,7 @@ exports[`Storyshots I18n Flat translation table 1`] = `
}
}
>
- 'Sorted Lane'
+ 'Work In Progress'
,
@@ -40577,7 +42581,7 @@ exports[`Storyshots I18n Flat translation table 1`] = `
}
}
>
- '20/70'
+ '10/20'
,
@@ -41193,6 +43197,24 @@ exports[`Storyshots I18n Using i18next 1`] = `
"label": "20/70",
"title": "Sorted Lane",
},
+ Object {
+ "cards": Array [
+ Object {
+ "description": "Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses",
+ "id": "Wip1",
+ "label": "30 mins",
+ "laneId": "WIP",
+ "title": "Clean House",
+ },
+ ],
+ "currentPage": 1,
+ "id": "WIP",
+ "label": "10/20",
+ "style": Object {
+ "width": 280,
+ },
+ "title": "Work In Progress",
+ },
],
}
}
@@ -41460,6 +43482,144 @@ exports[`Storyshots I18n Using i18next 1`] = `
+
+
+
+
+ Work In Progress
+
+
+
+ 10/20
+
+
+
+
+
+ ⋮
+
+
+
+
+
+ Lane actions
+
+
+
+ ✖
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Clean House
+
+
+ 30 mins
+
+
+
+ ✖
+
+
+
+
+ Soap wash and polish floor. Polish windows and doors. Scrap all broken glasses
+
+
+
+
+
+ Click to add card
+
+
+
+