From e6765bc4422f706d8dc1cf60775f76d3eab17d0c Mon Sep 17 00:00:00 2001 From: Matthias Cram Date: Mon, 1 Aug 2022 02:02:08 +0200 Subject: [PATCH] extract class: sidebar --- .../SPBBoard.class/instance/addColumn.st | 2 +- .../SPBBoard.class/instance/buildAndOpen.st | 2 +- .../buildSidebarAssigneeListSpecWith..st | 2 +- .../buildSidebarAssigneePanelSpecWith..st | 2 +- .../buildSidebarDescriptionSpecWith..st | 2 +- .../buildSidebarLabelListSpecWith..st | 2 +- .../buildSidebarLabelPanelSpecWith..st | 2 +- ...ldSidebarPotentialAssigneeListSpecWith..st | 2 +- ...buildSidebarPotentialLabelListSpecWith..st | 2 +- .../instance/buildSidebarSpecWith..st | 2 +- ...tdh..st => buildSidebarSpecWith.width..st} | 2 +- .../instance/buildSidebarTitleSpecWith..st | 2 +- .../SPBBoard.class/instance/buildWith..st | 2 +- .../instance/changeActiveCardTo..st | 2 +- .../SPBBoard.class/instance/createSidebar.st | 7 ++ .../instance/dragFromAssignees..st | 5 -- .../instance/dragFromLabels..st | 5 -- .../instance/dragFromPotentialAssignees..st | 5 -- .../instance/dragFromPotentialLabels..st | 4 - .../instance/rerenderColumns.st | 2 +- .../SPBBoard.class/instance/setupColumns.st | 12 +++ .../SPBBoard.class/instance/showColumns.st | 2 +- .../SPBBoard.class/instance/sidebar..st | 4 + .../SPBBoard.class/instance/sidebar.st | 4 + .../SPBBoard.class/instance/update.with..st | 2 +- .../SPBBoard.class/instance/updateColumns.st | 15 ++-- .../instance/updateColumnsAndSidebar.st | 2 +- .../instance/updateColumnsWithCards.st | 7 -- .../SPBBoard.class/methodProperties.json | 77 +++++-------------- .../SPBBoard.class/properties.json | 11 +-- .../instance/changeIndexOfColumn..st | 2 +- .../SPBColumn.class/instance/update.with..st | 2 +- .../SPBColumn.class/methodProperties.json | 4 +- .../README.md | 1 + .../properties.json | 2 +- .../SPBSidebar.class/README.md | 0 .../instance/activeCard..st | 0 .../instance/activeCard.st | 0 .../instance/activeCardAssigneeList.st | 2 +- .../instance/activeCardAssigneeListHeader.st | 2 +- .../instance/activeCardDescription.st | 2 +- .../instance/activeCardLabelList.st | 2 +- .../instance/activeCardLabelListHeader.st | 2 +- .../instance/activeCardTitle.st | 2 +- .../instance/assigneeSelected..st | 0 .../instance/assigneeSelected.st | 0 .../SPBSidebar.class/instance/board..st | 4 + .../SPBSidebar.class/instance/board.st | 4 + .../instance/boardProvider..st | 4 + .../instance/boardProvider.st | 4 + .../instance/dragFromAssignees..st | 4 + .../instance/dragFromLabels..st | 4 + .../instance/dragFromPotentialAssignees..st | 4 + .../instance/dragFromPotentialLabels..st | 4 + .../instance/dropOnAssignees.at..st | 2 +- .../instance/dropOnLabels.at..st | 2 +- .../instance/dropOnPotentialAssignees.at..st | 2 +- .../instance/dropOnPotentialLabels.at..st | 2 +- .../instance/labelIcon..st | 2 +- .../instance/labelSelected..st | 0 .../instance/labelSelected.st | 0 .../instance/potentialAssigneeSelected..st | 0 .../instance/potentialAssigneeSelected.st | 0 .../instance/potentialAssignees..st | 0 .../instance/potentialAssignees.st | 0 .../instance/potentialAssigneesList.st | 5 +- .../instance/potentialAssigneesListHeader.st | 2 +- .../instance/potentialLabelIcon..st | 2 +- .../instance/potentialLabelSelected..st | 0 .../instance/potentialLabelSelected.st | 0 .../instance/potentialLabels..st | 0 .../instance/potentialLabels.st | 0 .../instance/potentialLabelsList.st | 2 +- .../instance/potentialLabelsListHeader.st | 2 +- .../instance/updateActiveCardDescription..st | 4 +- .../instance/updateActiveCardTitle..st | 4 +- .../instance/wantsAssigneeDrop..st | 0 .../instance/wantsLabelDrop..st | 0 .../SPBSidebar.class/methodProperties.json | 46 +++++++++++ .../SPBSidebar.class/properties.json | 22 ++++++ .../SPBBoardTests.class/instance/setUp.st | 1 + .../instance/testActiveCard.st | 9 --- .../instance/testActiveCardAssigneeList.st | 13 ---- .../instance/testActiveCardDescription.st | 12 --- .../instance/testActiveCardLabelList.st | 13 ---- .../instance/testActiveCardTitle.st | 12 --- .../instance/testAssigneeSelected.st | 14 ---- .../testBuildSidebarAssigneeListSpecWith.st | 1 - .../testBuildSidebarAssigneePanelSpecWith.st | 1 - .../testBuildSidebarDescriptionSpecWith.st | 1 - .../testBuildSidebarLabelListSpecWith.st | 1 - .../testBuildSidebarLabelPanelSpecWith.st | 1 - ...ildSidebarPotentialAssigneeListSpecWith.st | 1 - ...tBuildSidebarPotentialLabelListSpecWith.st | 1 - .../instance/testBuildSidebarSpecWith.st | 1 - .../instance/testBuildSidebarTitleSpecWith.st | 1 - .../instance/testBuildWith.st | 1 + .../instance/testChangeActiveCardTo.st | 3 +- .../instance/testLabelIcon.st | 4 - .../instance/testLabelSelected.st | 9 --- .../instance/testPotentialAssigneeSelected.st | 14 ---- .../instance/testPotentialAssignees.st | 13 ---- .../instance/testPotentialLabelIcon.st | 4 - .../instance/testPotentialLabelSelected.st | 9 --- .../instance/testUpdateLanes.st | 2 +- .../instance/testUpdateLanesWithCards.st | 2 +- .../instance/testWantsAssigneeDrop.st | 5 -- .../instance/testWantsLabelDrop.st | 5 -- .../SPBBoardTests.class/methodProperties.json | 54 ++++--------- .../instance/testBecomeActiveCard.st | 15 ++-- .../SPBCardTests.class/methodProperties.json | 2 +- .../SPBSidebarTests.class/README.md | 0 .../SPBSidebarTests.class/instance/setUp.st | 6 ++ .../instance/tearDown.st | 4 + .../instance/testActiveCard.st | 8 ++ .../instance/testActiveCardAssigneeList.st | 13 ++++ .../instance/testActiveCardDescription.st | 12 +++ .../instance/testActiveCardLabelList.st | 13 ++++ .../instance/testActiveCardTitle.st | 12 +++ .../instance/testAssigneeSelected.st | 14 ++++ .../instance/testDragFromAssignees.st | 5 +- .../instance/testDragFromLabels.st | 5 +- .../testDragFromPotentialAssignees.st | 7 +- .../instance/testDragFromPotentialLabels.st | 6 +- .../instance/testDropOnAssignees.st | 8 +- .../instance/testDropOnLabels.st | 8 +- .../instance/testDropOnPotentialAssignees.st | 8 +- .../instance/testDropOnPotentialLabels.st | 8 +- .../instance/testLabelIcon.st | 4 + .../instance/testLabelSelected.st | 9 +++ .../instance/testPotentialAssigneeSelected.st | 14 ++++ .../instance/testPotentialAssignees.st | 13 ++++ .../instance/testPotentialLabelIcon.st | 4 + .../instance/testPotentialLabelSelected.st | 9 +++ .../testUpdateActiveCardDescription.st | 9 +-- .../instance/testUpdateActiveCardTitle.st | 9 +-- .../instance/testWantsAssigneeDrop.st | 5 ++ .../instance/testWantsLabelDrop.st | 5 ++ .../methodProperties.json | 30 ++++++++ .../SPBSidebarTests.class/properties.json | 14 ++++ 140 files changed, 453 insertions(+), 380 deletions(-) rename Squello-Core.package/SPBBoard.class/instance/{buildSidebarSpecWith.witdh..st => buildSidebarSpecWith.width..st} (89%) create mode 100644 Squello-Core.package/SPBBoard.class/instance/createSidebar.st delete mode 100644 Squello-Core.package/SPBBoard.class/instance/dragFromAssignees..st delete mode 100644 Squello-Core.package/SPBBoard.class/instance/dragFromLabels..st delete mode 100644 Squello-Core.package/SPBBoard.class/instance/dragFromPotentialAssignees..st delete mode 100644 Squello-Core.package/SPBBoard.class/instance/dragFromPotentialLabels..st create mode 100644 Squello-Core.package/SPBBoard.class/instance/setupColumns.st create mode 100644 Squello-Core.package/SPBBoard.class/instance/sidebar..st create mode 100644 Squello-Core.package/SPBBoard.class/instance/sidebar.st delete mode 100644 Squello-Core.package/SPBBoard.class/instance/updateColumnsWithCards.st create mode 100644 Squello-Core.package/SPBSidebar.class/README.md rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/activeCard..st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/activeCard.st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/activeCardAssigneeList.st (85%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/activeCardAssigneeListHeader.st (77%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/activeCardDescription.st (78%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/activeCardLabelList.st (84%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/activeCardLabelListHeader.st (77%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/activeCardTitle.st (73%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/assigneeSelected..st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/assigneeSelected.st (100%) create mode 100644 Squello-Core.package/SPBSidebar.class/instance/board..st create mode 100644 Squello-Core.package/SPBSidebar.class/instance/board.st create mode 100644 Squello-Core.package/SPBSidebar.class/instance/boardProvider..st create mode 100644 Squello-Core.package/SPBSidebar.class/instance/boardProvider.st create mode 100644 Squello-Core.package/SPBSidebar.class/instance/dragFromAssignees..st create mode 100644 Squello-Core.package/SPBSidebar.class/instance/dragFromLabels..st create mode 100644 Squello-Core.package/SPBSidebar.class/instance/dragFromPotentialAssignees..st create mode 100644 Squello-Core.package/SPBSidebar.class/instance/dragFromPotentialLabels..st rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/dropOnAssignees.at..st (84%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/dropOnLabels.at..st (85%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/dropOnPotentialAssignees.at..st (82%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/dropOnPotentialLabels.at..st (82%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/labelIcon..st (93%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/labelSelected..st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/labelSelected.st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialAssigneeSelected..st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialAssigneeSelected.st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialAssignees..st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialAssignees.st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialAssigneesList.st (90%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialAssigneesListHeader.st (78%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialLabelIcon..st (92%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialLabelSelected..st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialLabelSelected.st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialLabels..st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialLabels.st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialLabelsList.st (96%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/potentialLabelsListHeader.st (79%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/updateActiveCardDescription..st (56%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/updateActiveCardTitle..st (54%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/wantsAssigneeDrop..st (100%) rename Squello-Core.package/{SPBBoard.class => SPBSidebar.class}/instance/wantsLabelDrop..st (100%) create mode 100644 Squello-Core.package/SPBSidebar.class/methodProperties.json create mode 100644 Squello-Core.package/SPBSidebar.class/properties.json delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testActiveCard.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardAssigneeList.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardDescription.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardLabelList.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardTitle.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testAssigneeSelected.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testLabelIcon.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testLabelSelected.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testPotentialAssigneeSelected.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testPotentialAssignees.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testPotentialLabelIcon.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testPotentialLabelSelected.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testWantsAssigneeDrop.st delete mode 100644 Squello-Tests.package/SPBBoardTests.class/instance/testWantsLabelDrop.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/README.md create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/setUp.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/tearDown.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCard.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardAssigneeList.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardDescription.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardLabelList.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardTitle.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testAssigneeSelected.st rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testDragFromAssignees.st (75%) rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testDragFromLabels.st (74%) rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testDragFromPotentialAssignees.st (60%) rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testDragFromPotentialLabels.st (59%) rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testDropOnAssignees.st (69%) rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testDropOnLabels.st (71%) rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testDropOnPotentialAssignees.st (69%) rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testDropOnPotentialLabels.st (70%) create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testLabelIcon.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testLabelSelected.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialAssigneeSelected.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialAssignees.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialLabelIcon.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialLabelSelected.st rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testUpdateActiveCardDescription.st (69%) rename Squello-Tests.package/{SPBBoardTests.class => SPBSidebarTests.class}/instance/testUpdateActiveCardTitle.st (63%) create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testWantsAssigneeDrop.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/instance/testWantsLabelDrop.st create mode 100644 Squello-Tests.package/SPBSidebarTests.class/methodProperties.json create mode 100644 Squello-Tests.package/SPBSidebarTests.class/properties.json diff --git a/Squello-Core.package/SPBBoard.class/instance/addColumn.st b/Squello-Core.package/SPBBoard.class/instance/addColumn.st index 62208bac..02e5a2c2 100644 --- a/Squello-Core.package/SPBBoard.class/instance/addColumn.st +++ b/Squello-Core.package/SPBBoard.class/instance/addColumn.st @@ -14,4 +14,4 @@ addColumn boardProvider: self boardProvider; changeProvider: self changeProvider. self columns add: column. - self updateColumnsWithCards. \ No newline at end of file + self updateColumns. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/buildAndOpen.st b/Squello-Core.package/SPBBoard.class/instance/buildAndOpen.st index ba2b0a1a..cd6d12cc 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildAndOpen.st +++ b/Squello-Core.package/SPBBoard.class/instance/buildAndOpen.st @@ -3,7 +3,7 @@ buildAndOpen | window | self createColumns. - + self createSidebar. window := self buildWith: SPBMorphicToolBuilder new. window openInWorld. ^ window. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarAssigneeListSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarAssigneeListSpecWith..st index d5397f08..2f5a00d6 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarAssigneeListSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarAssigneeListSpecWith..st @@ -2,7 +2,7 @@ toolbuilder buildSidebarAssigneeListSpecWith: aBuilder ^ aBuilder pluggableListSpec new - model: self; + model: self sidebar; name: #sidebarAssigneeList; frame: (0@0 corner: 0.5@1); list: #activeCardAssigneeList; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarAssigneePanelSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarAssigneePanelSpecWith..st index c79c7944..e2a06cf0 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarAssigneePanelSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarAssigneePanelSpecWith..st @@ -2,7 +2,7 @@ toolbuilder buildSidebarAssigneePanelSpecWith: aBuilder ^ aBuilder pluggablePanelSpec new - model: self; + model: self sidebar; name: #sidebarAssigneeList; frame: (0@0.1 corner: 1@0.25); minimumHeight: 20; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarDescriptionSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarDescriptionSpecWith..st index 9703150b..45df066d 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarDescriptionSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarDescriptionSpecWith..st @@ -2,7 +2,7 @@ toolbuilder buildSidebarDescriptionSpecWith: aBuilder ^ aBuilder pluggableTextSpec new - model: self; + model: self sidebar; name: #sidebarDescription; setText: #updateActiveCardDescription:; getText: #activeCardDescription; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarLabelListSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarLabelListSpecWith..st index dc8a5edd..5a1dbcf7 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarLabelListSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarLabelListSpecWith..st @@ -2,7 +2,7 @@ toolbuilder buildSidebarLabelListSpecWith: aBuilder ^ aBuilder pluggableListSpec new - model: self; + model: self sidebar; name: #sidebarLabelList; frame: (0@0 corner: 0.5@1); list: #activeCardLabelList; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarLabelPanelSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarLabelPanelSpecWith..st index f0d38416..66147b58 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarLabelPanelSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarLabelPanelSpecWith..st @@ -2,7 +2,7 @@ toolbuilder buildSidebarLabelPanelSpecWith: aBuilder ^ aBuilder pluggablePanelSpec new - model: self; + model: self sidebar; name: #sidebarLabelList; frame: (0@0.25 corner: 1@0.4); minimumHeight: 20; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarPotentialAssigneeListSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarPotentialAssigneeListSpecWith..st index d2718175..e04f1e59 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarPotentialAssigneeListSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarPotentialAssigneeListSpecWith..st @@ -2,7 +2,7 @@ toolbuilder buildSidebarPotentialAssigneeListSpecWith: aBuilder ^ aBuilder pluggableListSpec new - model: self; + model: self sidebar; name: #sidebarPotentialAssigneeList; frame: (0.5@0 corner: 1@1); list: #potentialAssigneesList; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarPotentialLabelListSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarPotentialLabelListSpecWith..st index b4c2ad65..9221d531 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarPotentialLabelListSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarPotentialLabelListSpecWith..st @@ -2,7 +2,7 @@ toolbuilder buildSidebarPotentialLabelListSpecWith: aBuilder ^ aBuilder pluggableListSpec new - model: self; + model: self sidebar; name: #sidebarPotentialLabelList; frame: (0.5@0 corner: 1@1); list: #potentialLabelsList; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith..st index 5e0dd916..5edc88f6 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith..st @@ -1,5 +1,5 @@ toolbuilder buildSidebarSpecWith: aBuilder - ^ self buildSidebarSpecWith: aBuilder witdh: 0.75. + ^ self buildSidebarSpecWith: aBuilder width: 0.75. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith.witdh..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith.width..st similarity index 89% rename from Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith.witdh..st rename to Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith.width..st index 4d3fa560..291db922 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith.witdh..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarSpecWith.width..st @@ -1,5 +1,5 @@ toolbuilder -buildSidebarSpecWith: aBuilder witdh: aNumber +buildSidebarSpecWith: aBuilder width: aNumber ^ aBuilder pluggablePanelSpec new name: #sidebar; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildSidebarTitleSpecWith..st b/Squello-Core.package/SPBBoard.class/instance/buildSidebarTitleSpecWith..st index 2d8c6045..5fcf0ea0 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildSidebarTitleSpecWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildSidebarTitleSpecWith..st @@ -2,7 +2,7 @@ toolbuilder buildSidebarTitleSpecWith: aBuilder ^ aBuilder pluggableTextSpec new - model: self; + model: self sidebar; name: #sidebarTitle; setText: #updateActiveCardTitle:; getText: #activeCardTitle; diff --git a/Squello-Core.package/SPBBoard.class/instance/buildWith..st b/Squello-Core.package/SPBBoard.class/instance/buildWith..st index 461dc93d..0d427a71 100644 --- a/Squello-Core.package/SPBBoard.class/instance/buildWith..st +++ b/Squello-Core.package/SPBBoard.class/instance/buildWith..st @@ -13,6 +13,6 @@ buildWith: aBuilder self window: (aBuilder build: spec). - self updateColumns. + self setupColumns. ^ self window. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/changeActiveCardTo..st b/Squello-Core.package/SPBBoard.class/instance/changeActiveCardTo..st index 1b0200c6..963d107b 100644 --- a/Squello-Core.package/SPBBoard.class/instance/changeActiveCardTo..st +++ b/Squello-Core.package/SPBBoard.class/instance/changeActiveCardTo..st @@ -1,7 +1,7 @@ update sidebar changeActiveCardTo: anSPBCard - self activeCard: anSPBCard. + self sidebar activeCard: anSPBCard. (self usedBuilder widgetAt: #sidebarTitle) setText: anSPBCard title asText. (self usedBuilder widgetAt: #sidebarDescription) setText: anSPBCard description asText. (self usedBuilder widgetAt: #sidebarAssigneeList) updateList. diff --git a/Squello-Core.package/SPBBoard.class/instance/createSidebar.st b/Squello-Core.package/SPBBoard.class/instance/createSidebar.st new file mode 100644 index 00000000..0caa53d8 --- /dev/null +++ b/Squello-Core.package/SPBBoard.class/instance/createSidebar.st @@ -0,0 +1,7 @@ +toolbuilder +createSidebar + + self sidebar: + (SPBSidebar new + board: self; + boardProvider: self boardProvider). \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/dragFromAssignees..st b/Squello-Core.package/SPBBoard.class/instance/dragFromAssignees..st deleted file mode 100644 index e1b18e59..00000000 --- a/Squello-Core.package/SPBBoard.class/instance/dragFromAssignees..st +++ /dev/null @@ -1,5 +0,0 @@ -drag and drop -dragFromAssignees: index - - ^ self activeCard assignees at: index - 1. - \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/dragFromLabels..st b/Squello-Core.package/SPBBoard.class/instance/dragFromLabels..st deleted file mode 100644 index 3fe34657..00000000 --- a/Squello-Core.package/SPBBoard.class/instance/dragFromLabels..st +++ /dev/null @@ -1,5 +0,0 @@ -drag and drop -dragFromLabels: index - - ^ self activeCard labels at: index - 1. - \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/dragFromPotentialAssignees..st b/Squello-Core.package/SPBBoard.class/instance/dragFromPotentialAssignees..st deleted file mode 100644 index 9b54348f..00000000 --- a/Squello-Core.package/SPBBoard.class/instance/dragFromPotentialAssignees..st +++ /dev/null @@ -1,5 +0,0 @@ -drag and drop -dragFromPotentialAssignees: index - - ^ self potentialAssigneesList at: index. - \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/dragFromPotentialLabels..st b/Squello-Core.package/SPBBoard.class/instance/dragFromPotentialLabels..st deleted file mode 100644 index a1e95ca3..00000000 --- a/Squello-Core.package/SPBBoard.class/instance/dragFromPotentialLabels..st +++ /dev/null @@ -1,4 +0,0 @@ -drag and drop -dragFromPotentialLabels: index - - ^ self potentialLabelsList at: index. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/rerenderColumns.st b/Squello-Core.package/SPBBoard.class/instance/rerenderColumns.st index b70a699d..0728d16f 100644 --- a/Squello-Core.package/SPBBoard.class/instance/rerenderColumns.st +++ b/Squello-Core.package/SPBBoard.class/instance/rerenderColumns.st @@ -1,4 +1,4 @@ -drag and drop +update window rerenderColumns self columns diff --git a/Squello-Core.package/SPBBoard.class/instance/setupColumns.st b/Squello-Core.package/SPBBoard.class/instance/setupColumns.st new file mode 100644 index 00000000..a6deb7f5 --- /dev/null +++ b/Squello-Core.package/SPBBoard.class/instance/setupColumns.st @@ -0,0 +1,12 @@ +update window +setupColumns + + self columns + do: [:column | column pasteup: (self usedBuilder widgetAt: column id). + column + initializeIndicator; + fetchCards; + buildCards; + board: self; + resizeToFitCards; + initializeBottomDetection]. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/showColumns.st b/Squello-Core.package/SPBBoard.class/instance/showColumns.st index 6f61e73e..21b1da55 100644 --- a/Squello-Core.package/SPBBoard.class/instance/showColumns.st +++ b/Squello-Core.package/SPBBoard.class/instance/showColumns.st @@ -1,4 +1,4 @@ -drag and drop +update window showColumns self columns diff --git a/Squello-Core.package/SPBBoard.class/instance/sidebar..st b/Squello-Core.package/SPBBoard.class/instance/sidebar..st new file mode 100644 index 00000000..22b7692f --- /dev/null +++ b/Squello-Core.package/SPBBoard.class/instance/sidebar..st @@ -0,0 +1,4 @@ +accessing +sidebar: anSPBSidebar + + sidebar := anSPBSidebar. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/sidebar.st b/Squello-Core.package/SPBBoard.class/instance/sidebar.st new file mode 100644 index 00000000..2db38ed5 --- /dev/null +++ b/Squello-Core.package/SPBBoard.class/instance/sidebar.st @@ -0,0 +1,4 @@ +accessing +sidebar + + ^ sidebar. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/update.with..st b/Squello-Core.package/SPBBoard.class/instance/update.with..st index a45e6555..b9c1edb8 100644 --- a/Squello-Core.package/SPBBoard.class/instance/update.with..st +++ b/Squello-Core.package/SPBBoard.class/instance/update.with..st @@ -12,4 +12,4 @@ update: aSymbol with: aDictionary boardProvider: self boardProvider; changeProvider: self changeProvider. self columns add: column. - self updateColumnsWithCards]. \ No newline at end of file + self updateColumns]. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/updateColumns.st b/Squello-Core.package/SPBBoard.class/instance/updateColumns.st index d8eb847c..8d560f9b 100644 --- a/Squello-Core.package/SPBBoard.class/instance/updateColumns.st +++ b/Squello-Core.package/SPBBoard.class/instance/updateColumns.st @@ -1,12 +1,7 @@ -accessing +update window updateColumns - self columns - do: [:column | column pasteup: (self usedBuilder widgetAt: column id). - column - initializeIndicator; - fetchCards; - buildCards; - board: self; - resizeToFitCards; - initializeBottomDetection]. \ No newline at end of file + self + changed: #buildColumnAreaChildren; + rerenderColumns; + resizeColumnArea. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/updateColumnsAndSidebar.st b/Squello-Core.package/SPBBoard.class/instance/updateColumnsAndSidebar.st index e651dbf4..b634f763 100644 --- a/Squello-Core.package/SPBBoard.class/instance/updateColumnsAndSidebar.st +++ b/Squello-Core.package/SPBBoard.class/instance/updateColumnsAndSidebar.st @@ -11,7 +11,7 @@ updateColumnsAndSidebar oldSidebar := self usedBuilder widgetAt: #sidebar. oldSidebar abandon. - newSidebar := (self usedBuilder build: (self buildSidebarSpecWith: self usedBuilder witdh: currentWidth)). + newSidebar := (self usedBuilder build: (self buildSidebarSpecWith: self usedBuilder width: currentWidth)). self usedBuilder add: newColumnArea to: self window. self usedBuilder add: newSidebar to: self window. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/updateColumnsWithCards.st b/Squello-Core.package/SPBBoard.class/instance/updateColumnsWithCards.st deleted file mode 100644 index 584b7d1b..00000000 --- a/Squello-Core.package/SPBBoard.class/instance/updateColumnsWithCards.st +++ /dev/null @@ -1,7 +0,0 @@ -accessing -updateColumnsWithCards - - self - changed: #buildColumnAreaChildren; - rerenderColumns; - resizeColumnArea. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/methodProperties.json b/Squello-Core.package/SPBBoard.class/methodProperties.json index 0cb56c5c..b9120f11 100644 --- a/Squello-Core.package/SPBBoard.class/methodProperties.json +++ b/Squello-Core.package/SPBBoard.class/methodProperties.json @@ -6,22 +6,12 @@ "open" : "NTK 6/1/2022 16:41", "registerInAppsMenu" : "lo 6/4/2022 23:19" }, "instance" : { - "activeCard" : "lo 7/31/2022 16:08", - "activeCard:" : "lo 7/31/2022 16:07", - "activeCardAssigneeList" : "lo 7/31/2022 17:13", - "activeCardAssigneeListHeader" : "lo 7/31/2022 17:18", - "activeCardDescription" : "lo 7/31/2022 16:08", - "activeCardLabelList" : "lo 7/31/2022 17:13", - "activeCardLabelListHeader" : "lo 7/31/2022 17:18", - "activeCardTitle" : "lo 7/31/2022 16:09", - "addColumn" : "jh 7/31/2022 13:51", - "assigneeSelected" : "mcr 5/27/2022 19:11", - "assigneeSelected:" : "lo 7/31/2022 16:32", + "addColumn" : "mcr 8/1/2022 01:27", "boardProvider" : "jh 7/29/2022 11:34", "boardProvider:" : "lo 7/31/2022 16:32", "buildAddColumnButtonPanelSpecWith:" : "tk 7/30/2022 21:38", "buildAddColumnButtonSpecWith:" : "tk 7/30/2022 21:38", - "buildAndOpen" : "tk 7/30/2022 21:48", + "buildAndOpen" : "mcr 8/1/2022 00:47", "buildColumnAreaChildren" : "tk 7/30/2022 21:48", "buildColumnAreaSpecWith:" : "tk 7/30/2022 21:40", "buildColumnAreaSpecWith:width:" : "tk 7/30/2022 21:40", @@ -32,63 +22,38 @@ "buildColumnHeaderTitleSpecWith:and:" : "tk 7/30/2022 21:47", "buildColumnSpecWith:and:" : "tk 7/30/2022 21:48", "buildColumnsSpecWith:" : "tk 7/30/2022 21:48", - "buildSidebarAssigneeListSpecWith:" : "LW 7/14/2022 11:39", - "buildSidebarAssigneePanelSpecWith:" : "LW 7/30/2022 15:57", - "buildSidebarDescriptionSpecWith:" : "LW 7/14/2022 11:40", - "buildSidebarLabelListSpecWith:" : "LW 7/14/2022 11:40", - "buildSidebarLabelPanelSpecWith:" : "LW 7/30/2022 15:57", - "buildSidebarPotentialAssigneeListSpecWith:" : "LW 7/14/2022 11:40", - "buildSidebarPotentialLabelListSpecWith:" : "LW 7/14/2022 11:40", - "buildSidebarSpecWith:" : "tk 7/14/2022 16:01", - "buildSidebarSpecWith:witdh:" : "LW 7/30/2022 15:57", - "buildSidebarTitleSpecWith:" : "LW 7/14/2022 11:41", - "buildWith:" : "tk 7/30/2022 21:50", - "changeActiveCardTo:" : "jh 7/29/2022 12:50", + "buildSidebarAssigneeListSpecWith:" : "mcr 8/1/2022 00:49", + "buildSidebarAssigneePanelSpecWith:" : "mcr 8/1/2022 00:49", + "buildSidebarDescriptionSpecWith:" : "mcr 8/1/2022 00:49", + "buildSidebarLabelListSpecWith:" : "mcr 8/1/2022 00:48", + "buildSidebarLabelPanelSpecWith:" : "mcr 8/1/2022 00:48", + "buildSidebarPotentialAssigneeListSpecWith:" : "mcr 8/1/2022 00:48", + "buildSidebarPotentialLabelListSpecWith:" : "mcr 8/1/2022 00:48", + "buildSidebarSpecWith:" : "mcr 8/1/2022 00:48", + "buildSidebarSpecWith:width:" : "mcr 8/1/2022 00:48", + "buildSidebarTitleSpecWith:" : "mcr 8/1/2022 00:47", + "buildWith:" : "mcr 8/1/2022 01:26", + "changeActiveCardTo:" : "mcr 8/1/2022 00:54", "changeProvider" : "lo 7/8/2022 14:00", "changeProvider:" : "lo 7/8/2022 15:29", "columns" : "tk 7/30/2022 21:38", "columns:" : "tk 7/30/2022 21:38", "createColumns" : "tk 7/30/2022 22:06", - "dragFromAssignees:" : "mcr 5/27/2022 19:26", - "dragFromLabels:" : "lo 6/5/2022 14:46", - "dragFromPotentialAssignees:" : "mcr 5/27/2022 19:37", - "dragFromPotentialLabels:" : "lo 6/5/2022 15:11", - "dropOnAssignees:at:" : "lo 7/31/2022 16:23", - "dropOnLabels:at:" : "lo 7/31/2022 16:37", - "dropOnPotentialAssignees:at:" : "lo 7/31/2022 16:41", - "dropOnPotentialLabels:at:" : "lo 7/31/2022 16:42", + "createSidebar" : "mcr 8/1/2022 01:20", "errorCannotAddColumn:" : "jh 7/31/2022 14:28", "errorInvalidUrl" : "jh 7/31/2022 14:28", "initialize" : "jh 7/29/2022 11:36", - "labelIcon:" : "NTK 7/30/2022 13:45", - "labelSelected" : "lo 6/5/2022 14:56", - "labelSelected:" : "lo 7/31/2022 16:33", "loadProject:" : "jh 7/31/2022 14:15", - "potentialAssigneeSelected" : "mcr 5/27/2022 19:11", - "potentialAssigneeSelected:" : "lo 7/31/2022 16:33", - "potentialAssignees" : "jh 7/29/2022 11:36", - "potentialAssignees:" : "mcr 5/27/2022 15:29", - "potentialAssigneesList" : "lo 7/31/2022 17:00", - "potentialAssigneesListHeader" : "lo 7/31/2022 17:18", - "potentialLabelIcon:" : "LW 7/14/2022 10:54", - "potentialLabelSelected" : "mcr 7/3/2022 17:54", - "potentialLabelSelected:" : "lo 7/31/2022 16:34", - "potentialLabels" : "jh 7/29/2022 11:36", - "potentialLabels:" : "tk 7/30/2022 23:02", - "potentialLabelsList" : "lo 7/31/2022 16:58", - "potentialLabelsListHeader" : "lo 7/31/2022 17:17", "rerenderColumns" : "lo 7/31/2022 16:42", "resizeColumnArea" : "tk 7/30/2022 22:09", + "setupColumns" : "mcr 8/1/2022 01:26", "showColumns" : "lo 7/31/2022 16:42", - "update:with:" : "tk 7/30/2022 22:09", - "updateActiveCardDescription:" : "lo 7/31/2022 16:52", - "updateActiveCardTitle:" : "lo 7/31/2022 16:52", - "updateColumns" : "lo 7/31/2022 16:35", - "updateColumnsAndSidebar" : "tk 7/30/2022 21:51", - "updateColumnsWithCards" : "lo 7/31/2022 16:35", + "sidebar" : "mcr 8/1/2022 00:44", + "sidebar:" : "mcr 8/1/2022 00:44", + "update:with:" : "mcr 8/1/2022 01:27", + "updateColumns" : "mcr 8/1/2022 01:27", + "updateColumnsAndSidebar" : "mcr 8/1/2022 00:48", "usedBuilder" : "lo 5/26/2022 15:02", "usedBuilder:" : "lo 5/26/2022 15:02", - "wantsAssigneeDrop:" : "mcr 5/27/2022 18:02", - "wantsLabelDrop:" : "tk 7/30/2022 22:37", "window" : "lo 7/3/2022 14:09", "window:" : "lo 7/31/2022 16:36" } } diff --git a/Squello-Core.package/SPBBoard.class/properties.json b/Squello-Core.package/SPBBoard.class/properties.json index ac0c5e58..abdfe73b 100644 --- a/Squello-Core.package/SPBBoard.class/properties.json +++ b/Squello-Core.package/SPBBoard.class/properties.json @@ -6,20 +6,13 @@ "LastProject" ], "commentStamp" : "LW 6/20/2022 09:44", "instvars" : [ + "boardProvider", "changeProvider", - "activeCard", "usedBuilder", "columns", - "boardProvider", - "potentialAssignees", - "potentialLabels", - "assigneeSelected", - "labelSelected", - "potentialAssigneeSelected", - "potentialLabelSelected", "projects", "window", - "constructor" ], + "sidebar" ], "name" : "SPBBoard", "pools" : [ ], diff --git a/Squello-Core.package/SPBColumn.class/instance/changeIndexOfColumn..st b/Squello-Core.package/SPBColumn.class/instance/changeIndexOfColumn..st index 0be3e4fd..b419f246 100644 --- a/Squello-Core.package/SPBColumn.class/instance/changeIndexOfColumn..st +++ b/Squello-Core.package/SPBColumn.class/instance/changeIndexOfColumn..st @@ -14,4 +14,4 @@ changeIndexOfColumn: aNumber ifFalse: [columns removeAt: index; add: self beforeIndex: aNumber]. - self board updateColumnsWithCards. \ No newline at end of file + self board updateColumns. \ No newline at end of file diff --git a/Squello-Core.package/SPBColumn.class/instance/update.with..st b/Squello-Core.package/SPBColumn.class/instance/update.with..st index f5f54db8..8076ba55 100644 --- a/Squello-Core.package/SPBColumn.class/instance/update.with..st +++ b/Squello-Core.package/SPBColumn.class/instance/update.with..st @@ -17,7 +17,7 @@ update: aSymbol with: aDictionary ((aDictionary at: 'action') = #delete) ifTrue: [self board columns remove: self. - self board updateColumnsWithCards]. + self board updateColumns]. ((aDictionary at: 'action') = #edit) ifTrue: [self title: (aDictionary at: 'title')]. diff --git a/Squello-Core.package/SPBColumn.class/methodProperties.json b/Squello-Core.package/SPBColumn.class/methodProperties.json index 20f41e01..0cecd6ca 100644 --- a/Squello-Core.package/SPBColumn.class/methodProperties.json +++ b/Squello-Core.package/SPBColumn.class/methodProperties.json @@ -29,7 +29,7 @@ "cards:" : "lo 5/26/2022 22:44", "changeActiveCardTo:" : "NTK 7/30/2022 11:15", "changeColumnRemoteFor:" : "tk 7/30/2022 21:57", - "changeIndexOfColumn:" : "NTK 7/31/2022 12:31", + "changeIndexOfColumn:" : "mcr 8/1/2022 01:27", "changeProvider" : "lo 7/8/2022 14:29", "changeProvider:" : "jh 7/31/2022 13:11", "changeRemoteIndexOfColumn:" : "tk 7/30/2022 22:01", @@ -64,5 +64,5 @@ "resizeToFitCards" : "LW 7/14/2022 12:23", "title" : "mcr 5/20/2022 14:00", "title:" : "mcr 5/22/2022 00:09", - "update:with:" : "NTK 7/31/2022 11:45", + "update:with:" : "mcr 8/1/2022 01:27", "updateTitle:" : "jh 7/29/2022 11:39" } } diff --git a/Squello-Core.package/SPBPluggableResizeScrollPane.class/README.md b/Squello-Core.package/SPBPluggableResizeScrollPane.class/README.md index e69de29b..0736bc6d 100644 --- a/Squello-Core.package/SPBPluggableResizeScrollPane.class/README.md +++ b/Squello-Core.package/SPBPluggableResizeScrollPane.class/README.md @@ -0,0 +1 @@ +ScrollPane that resizes it's submorphs (columns) everytime it's own extent changes. Used to contain other ScrollPanes. \ No newline at end of file diff --git a/Squello-Core.package/SPBPluggableResizeScrollPane.class/properties.json b/Squello-Core.package/SPBPluggableResizeScrollPane.class/properties.json index 4948913d..75f7ea57 100644 --- a/Squello-Core.package/SPBPluggableResizeScrollPane.class/properties.json +++ b/Squello-Core.package/SPBPluggableResizeScrollPane.class/properties.json @@ -4,7 +4,7 @@ ], "classvars" : [ ], - "commentStamp" : "", + "commentStamp" : "mcr 8/1/2022 00:36", "instvars" : [ ], "name" : "SPBPluggableResizeScrollPane", diff --git a/Squello-Core.package/SPBSidebar.class/README.md b/Squello-Core.package/SPBSidebar.class/README.md new file mode 100644 index 00000000..e69de29b diff --git a/Squello-Core.package/SPBBoard.class/instance/activeCard..st b/Squello-Core.package/SPBSidebar.class/instance/activeCard..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/activeCard..st rename to Squello-Core.package/SPBSidebar.class/instance/activeCard..st diff --git a/Squello-Core.package/SPBBoard.class/instance/activeCard.st b/Squello-Core.package/SPBSidebar.class/instance/activeCard.st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/activeCard.st rename to Squello-Core.package/SPBSidebar.class/instance/activeCard.st diff --git a/Squello-Core.package/SPBBoard.class/instance/activeCardAssigneeList.st b/Squello-Core.package/SPBSidebar.class/instance/activeCardAssigneeList.st similarity index 85% rename from Squello-Core.package/SPBBoard.class/instance/activeCardAssigneeList.st rename to Squello-Core.package/SPBSidebar.class/instance/activeCardAssigneeList.st index ecec5c23..c55f4aca 100644 --- a/Squello-Core.package/SPBBoard.class/instance/activeCardAssigneeList.st +++ b/Squello-Core.package/SPBSidebar.class/instance/activeCardAssigneeList.st @@ -1,4 +1,4 @@ -update sidebar +lists activeCardAssigneeList ^ self activeCardAssigneeListHeader , self activeCard assignees. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/activeCardAssigneeListHeader.st b/Squello-Core.package/SPBSidebar.class/instance/activeCardAssigneeListHeader.st similarity index 77% rename from Squello-Core.package/SPBBoard.class/instance/activeCardAssigneeListHeader.st rename to Squello-Core.package/SPBSidebar.class/instance/activeCardAssigneeListHeader.st index 418a4e26..614fbc03 100644 --- a/Squello-Core.package/SPBBoard.class/instance/activeCardAssigneeListHeader.st +++ b/Squello-Core.package/SPBSidebar.class/instance/activeCardAssigneeListHeader.st @@ -1,4 +1,4 @@ -update sidebar +lists activeCardAssigneeListHeader ^ #('---assigned---'). \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/activeCardDescription.st b/Squello-Core.package/SPBSidebar.class/instance/activeCardDescription.st similarity index 78% rename from Squello-Core.package/SPBBoard.class/instance/activeCardDescription.st rename to Squello-Core.package/SPBSidebar.class/instance/activeCardDescription.st index 3f20b4f2..bda83fa3 100644 --- a/Squello-Core.package/SPBBoard.class/instance/activeCardDescription.st +++ b/Squello-Core.package/SPBSidebar.class/instance/activeCardDescription.st @@ -1,4 +1,4 @@ -update sidebar +text fields activeCardDescription ^ self activeCard description. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/activeCardLabelList.st b/Squello-Core.package/SPBSidebar.class/instance/activeCardLabelList.st similarity index 84% rename from Squello-Core.package/SPBBoard.class/instance/activeCardLabelList.st rename to Squello-Core.package/SPBSidebar.class/instance/activeCardLabelList.st index 5bd0f15f..512197e0 100644 --- a/Squello-Core.package/SPBBoard.class/instance/activeCardLabelList.st +++ b/Squello-Core.package/SPBSidebar.class/instance/activeCardLabelList.st @@ -1,4 +1,4 @@ -update sidebar +lists activeCardLabelList ^ self activeCardLabelListHeader, self activeCard labels. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/activeCardLabelListHeader.st b/Squello-Core.package/SPBSidebar.class/instance/activeCardLabelListHeader.st similarity index 77% rename from Squello-Core.package/SPBBoard.class/instance/activeCardLabelListHeader.st rename to Squello-Core.package/SPBSidebar.class/instance/activeCardLabelListHeader.st index 20bd2659..5fde1cd7 100644 --- a/Squello-Core.package/SPBBoard.class/instance/activeCardLabelListHeader.st +++ b/Squello-Core.package/SPBSidebar.class/instance/activeCardLabelListHeader.st @@ -1,4 +1,4 @@ -update sidebar +lists activeCardLabelListHeader ^ #('---used labels---'). \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/activeCardTitle.st b/Squello-Core.package/SPBSidebar.class/instance/activeCardTitle.st similarity index 73% rename from Squello-Core.package/SPBBoard.class/instance/activeCardTitle.st rename to Squello-Core.package/SPBSidebar.class/instance/activeCardTitle.st index 25a36e7c..164aebe9 100644 --- a/Squello-Core.package/SPBBoard.class/instance/activeCardTitle.st +++ b/Squello-Core.package/SPBSidebar.class/instance/activeCardTitle.st @@ -1,4 +1,4 @@ -update sidebar +text fields activeCardTitle ^ self activeCard title. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/assigneeSelected..st b/Squello-Core.package/SPBSidebar.class/instance/assigneeSelected..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/assigneeSelected..st rename to Squello-Core.package/SPBSidebar.class/instance/assigneeSelected..st diff --git a/Squello-Core.package/SPBBoard.class/instance/assigneeSelected.st b/Squello-Core.package/SPBSidebar.class/instance/assigneeSelected.st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/assigneeSelected.st rename to Squello-Core.package/SPBSidebar.class/instance/assigneeSelected.st diff --git a/Squello-Core.package/SPBSidebar.class/instance/board..st b/Squello-Core.package/SPBSidebar.class/instance/board..st new file mode 100644 index 00000000..ec62df48 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/instance/board..st @@ -0,0 +1,4 @@ +accessing +board: anSPBBoard + + board := anSPBBoard. \ No newline at end of file diff --git a/Squello-Core.package/SPBSidebar.class/instance/board.st b/Squello-Core.package/SPBSidebar.class/instance/board.st new file mode 100644 index 00000000..8b64b2de --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/instance/board.st @@ -0,0 +1,4 @@ +accessing +board + + ^ board. \ No newline at end of file diff --git a/Squello-Core.package/SPBSidebar.class/instance/boardProvider..st b/Squello-Core.package/SPBSidebar.class/instance/boardProvider..st new file mode 100644 index 00000000..9b8e8703 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/instance/boardProvider..st @@ -0,0 +1,4 @@ +accessing +boardProvider: anSPBGithubBoardProvider + + boardProvider := anSPBGithubBoardProvider. \ No newline at end of file diff --git a/Squello-Core.package/SPBSidebar.class/instance/boardProvider.st b/Squello-Core.package/SPBSidebar.class/instance/boardProvider.st new file mode 100644 index 00000000..88fd99a6 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/instance/boardProvider.st @@ -0,0 +1,4 @@ +accessing +boardProvider + + ^ boardProvider. \ No newline at end of file diff --git a/Squello-Core.package/SPBSidebar.class/instance/dragFromAssignees..st b/Squello-Core.package/SPBSidebar.class/instance/dragFromAssignees..st new file mode 100644 index 00000000..feec7ff0 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/instance/dragFromAssignees..st @@ -0,0 +1,4 @@ +drag and drop +dragFromAssignees: aNumber + + ^ self activeCard assignees at: aNumber - 1. \ No newline at end of file diff --git a/Squello-Core.package/SPBSidebar.class/instance/dragFromLabels..st b/Squello-Core.package/SPBSidebar.class/instance/dragFromLabels..st new file mode 100644 index 00000000..aef7bcd8 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/instance/dragFromLabels..st @@ -0,0 +1,4 @@ +drag and drop +dragFromLabels: aNumber + + ^ self activeCard labels at: aNumber - 1. \ No newline at end of file diff --git a/Squello-Core.package/SPBSidebar.class/instance/dragFromPotentialAssignees..st b/Squello-Core.package/SPBSidebar.class/instance/dragFromPotentialAssignees..st new file mode 100644 index 00000000..379f39e6 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/instance/dragFromPotentialAssignees..st @@ -0,0 +1,4 @@ +drag and drop +dragFromPotentialAssignees: aNumber + + ^ self potentialAssigneesList at: aNumber. \ No newline at end of file diff --git a/Squello-Core.package/SPBSidebar.class/instance/dragFromPotentialLabels..st b/Squello-Core.package/SPBSidebar.class/instance/dragFromPotentialLabels..st new file mode 100644 index 00000000..26b41ab1 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/instance/dragFromPotentialLabels..st @@ -0,0 +1,4 @@ +drag and drop +dragFromPotentialLabels: aNumber + + ^ self potentialLabelsList at: aNumber. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/dropOnAssignees.at..st b/Squello-Core.package/SPBSidebar.class/instance/dropOnAssignees.at..st similarity index 84% rename from Squello-Core.package/SPBBoard.class/instance/dropOnAssignees.at..st rename to Squello-Core.package/SPBSidebar.class/instance/dropOnAssignees.at..st index 67b97b0a..eaee695b 100644 --- a/Squello-Core.package/SPBBoard.class/instance/dropOnAssignees.at..st +++ b/Squello-Core.package/SPBSidebar.class/instance/dropOnAssignees.at..st @@ -1,5 +1,5 @@ drag and drop -dropOnAssignees: anSPBAssignee at: index +dropOnAssignees: anSPBAssignee at: aNumber (anSPBAssignee isKindOf: SPBAssignee) ifFalse: [^ self inform: 'Can only drop assignees']. diff --git a/Squello-Core.package/SPBBoard.class/instance/dropOnLabels.at..st b/Squello-Core.package/SPBSidebar.class/instance/dropOnLabels.at..st similarity index 85% rename from Squello-Core.package/SPBBoard.class/instance/dropOnLabels.at..st rename to Squello-Core.package/SPBSidebar.class/instance/dropOnLabels.at..st index 1823dd09..86e7e102 100644 --- a/Squello-Core.package/SPBBoard.class/instance/dropOnLabels.at..st +++ b/Squello-Core.package/SPBSidebar.class/instance/dropOnLabels.at..st @@ -1,5 +1,5 @@ drag and drop -dropOnLabels: anSPBLabel at: index +dropOnLabels: anSPBLabel at: aNumber (anSPBLabel isKindOf: SPBLabel) ifFalse: [^ self inform: 'Can only drop labels']. diff --git a/Squello-Core.package/SPBBoard.class/instance/dropOnPotentialAssignees.at..st b/Squello-Core.package/SPBSidebar.class/instance/dropOnPotentialAssignees.at..st similarity index 82% rename from Squello-Core.package/SPBBoard.class/instance/dropOnPotentialAssignees.at..st rename to Squello-Core.package/SPBSidebar.class/instance/dropOnPotentialAssignees.at..st index 6dca4ff7..190d139c 100644 --- a/Squello-Core.package/SPBBoard.class/instance/dropOnPotentialAssignees.at..st +++ b/Squello-Core.package/SPBSidebar.class/instance/dropOnPotentialAssignees.at..st @@ -1,5 +1,5 @@ drag and drop -dropOnPotentialAssignees: anSPBAssignee at: index +dropOnPotentialAssignees: anSPBAssignee at: aNumber (anSPBAssignee isKindOf: SPBAssignee) ifFalse: [^ self inform: 'Can only drop assignees']. diff --git a/Squello-Core.package/SPBBoard.class/instance/dropOnPotentialLabels.at..st b/Squello-Core.package/SPBSidebar.class/instance/dropOnPotentialLabels.at..st similarity index 82% rename from Squello-Core.package/SPBBoard.class/instance/dropOnPotentialLabels.at..st rename to Squello-Core.package/SPBSidebar.class/instance/dropOnPotentialLabels.at..st index 4840dfb0..76e8bbb8 100644 --- a/Squello-Core.package/SPBBoard.class/instance/dropOnPotentialLabels.at..st +++ b/Squello-Core.package/SPBSidebar.class/instance/dropOnPotentialLabels.at..st @@ -1,5 +1,5 @@ drag and drop -dropOnPotentialLabels: anSPBLabel at: index +dropOnPotentialLabels: anSPBLabel at: aNumber (anSPBLabel isKindOf: SPBLabel) ifFalse: [^ self inform: 'Can only drop labels']. diff --git a/Squello-Core.package/SPBBoard.class/instance/labelIcon..st b/Squello-Core.package/SPBSidebar.class/instance/labelIcon..st similarity index 93% rename from Squello-Core.package/SPBBoard.class/instance/labelIcon..st rename to Squello-Core.package/SPBSidebar.class/instance/labelIcon..st index e34ea33d..8fbfc86c 100644 --- a/Squello-Core.package/SPBBoard.class/instance/labelIcon..st +++ b/Squello-Core.package/SPBSidebar.class/instance/labelIcon..st @@ -1,4 +1,4 @@ -accessing +lists labelIcon: aNumber | labels | diff --git a/Squello-Core.package/SPBBoard.class/instance/labelSelected..st b/Squello-Core.package/SPBSidebar.class/instance/labelSelected..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/labelSelected..st rename to Squello-Core.package/SPBSidebar.class/instance/labelSelected..st diff --git a/Squello-Core.package/SPBBoard.class/instance/labelSelected.st b/Squello-Core.package/SPBSidebar.class/instance/labelSelected.st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/labelSelected.st rename to Squello-Core.package/SPBSidebar.class/instance/labelSelected.st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialAssigneeSelected..st b/Squello-Core.package/SPBSidebar.class/instance/potentialAssigneeSelected..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/potentialAssigneeSelected..st rename to Squello-Core.package/SPBSidebar.class/instance/potentialAssigneeSelected..st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialAssigneeSelected.st b/Squello-Core.package/SPBSidebar.class/instance/potentialAssigneeSelected.st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/potentialAssigneeSelected.st rename to Squello-Core.package/SPBSidebar.class/instance/potentialAssigneeSelected.st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialAssignees..st b/Squello-Core.package/SPBSidebar.class/instance/potentialAssignees..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/potentialAssignees..st rename to Squello-Core.package/SPBSidebar.class/instance/potentialAssignees..st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialAssignees.st b/Squello-Core.package/SPBSidebar.class/instance/potentialAssignees.st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/potentialAssignees.st rename to Squello-Core.package/SPBSidebar.class/instance/potentialAssignees.st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialAssigneesList.st b/Squello-Core.package/SPBSidebar.class/instance/potentialAssigneesList.st similarity index 90% rename from Squello-Core.package/SPBBoard.class/instance/potentialAssigneesList.st rename to Squello-Core.package/SPBSidebar.class/instance/potentialAssigneesList.st index 69dcf1ce..96e2c4c0 100644 --- a/Squello-Core.package/SPBBoard.class/instance/potentialAssigneesList.st +++ b/Squello-Core.package/SPBSidebar.class/instance/potentialAssigneesList.st @@ -1,4 +1,4 @@ -update sidebar +lists potentialAssigneesList | potentialAssignees assignees | @@ -9,5 +9,4 @@ potentialAssigneesList potentialAssignees ifNil: [^ self potentialAssigneesListHeader]. ^ self potentialAssigneesListHeader, - potentialAssignees select: [:each | (assignees anySatisfy: [:elem | elem = each]) not]. - \ No newline at end of file + potentialAssignees select: [:each | (assignees anySatisfy: [:elem | elem = each]) not]. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialAssigneesListHeader.st b/Squello-Core.package/SPBSidebar.class/instance/potentialAssigneesListHeader.st similarity index 78% rename from Squello-Core.package/SPBBoard.class/instance/potentialAssigneesListHeader.st rename to Squello-Core.package/SPBSidebar.class/instance/potentialAssigneesListHeader.st index c692cc1b..8af5f30c 100644 --- a/Squello-Core.package/SPBBoard.class/instance/potentialAssigneesListHeader.st +++ b/Squello-Core.package/SPBSidebar.class/instance/potentialAssigneesListHeader.st @@ -1,4 +1,4 @@ -update sidebar +lists potentialAssigneesListHeader ^ #('---unassigned---'). \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialLabelIcon..st b/Squello-Core.package/SPBSidebar.class/instance/potentialLabelIcon..st similarity index 92% rename from Squello-Core.package/SPBBoard.class/instance/potentialLabelIcon..st rename to Squello-Core.package/SPBSidebar.class/instance/potentialLabelIcon..st index 327f0f98..81def06c 100644 --- a/Squello-Core.package/SPBBoard.class/instance/potentialLabelIcon..st +++ b/Squello-Core.package/SPBSidebar.class/instance/potentialLabelIcon..st @@ -1,4 +1,4 @@ -accessing +lists potentialLabelIcon: aNumber aNumber = 1 diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialLabelSelected..st b/Squello-Core.package/SPBSidebar.class/instance/potentialLabelSelected..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/potentialLabelSelected..st rename to Squello-Core.package/SPBSidebar.class/instance/potentialLabelSelected..st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialLabelSelected.st b/Squello-Core.package/SPBSidebar.class/instance/potentialLabelSelected.st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/potentialLabelSelected.st rename to Squello-Core.package/SPBSidebar.class/instance/potentialLabelSelected.st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialLabels..st b/Squello-Core.package/SPBSidebar.class/instance/potentialLabels..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/potentialLabels..st rename to Squello-Core.package/SPBSidebar.class/instance/potentialLabels..st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialLabels.st b/Squello-Core.package/SPBSidebar.class/instance/potentialLabels.st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/potentialLabels.st rename to Squello-Core.package/SPBSidebar.class/instance/potentialLabels.st diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialLabelsList.st b/Squello-Core.package/SPBSidebar.class/instance/potentialLabelsList.st similarity index 96% rename from Squello-Core.package/SPBBoard.class/instance/potentialLabelsList.st rename to Squello-Core.package/SPBSidebar.class/instance/potentialLabelsList.st index 5c428c1d..22a94670 100644 --- a/Squello-Core.package/SPBBoard.class/instance/potentialLabelsList.st +++ b/Squello-Core.package/SPBSidebar.class/instance/potentialLabelsList.st @@ -1,4 +1,4 @@ -update sidebar +lists potentialLabelsList | potentialLabels labels | diff --git a/Squello-Core.package/SPBBoard.class/instance/potentialLabelsListHeader.st b/Squello-Core.package/SPBSidebar.class/instance/potentialLabelsListHeader.st similarity index 79% rename from Squello-Core.package/SPBBoard.class/instance/potentialLabelsListHeader.st rename to Squello-Core.package/SPBSidebar.class/instance/potentialLabelsListHeader.st index e2acaf65..3ebf180d 100644 --- a/Squello-Core.package/SPBBoard.class/instance/potentialLabelsListHeader.st +++ b/Squello-Core.package/SPBSidebar.class/instance/potentialLabelsListHeader.st @@ -1,4 +1,4 @@ -update sidebar +lists potentialLabelsListHeader ^ #('---not used labels---'). \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/updateActiveCardDescription..st b/Squello-Core.package/SPBSidebar.class/instance/updateActiveCardDescription..st similarity index 56% rename from Squello-Core.package/SPBBoard.class/instance/updateActiveCardDescription..st rename to Squello-Core.package/SPBSidebar.class/instance/updateActiveCardDescription..st index 5f43ac2d..d1f940ec 100644 --- a/Squello-Core.package/SPBBoard.class/instance/updateActiveCardDescription..st +++ b/Squello-Core.package/SPBSidebar.class/instance/updateActiveCardDescription..st @@ -1,6 +1,6 @@ -update sidebar +text fields updateActiveCardDescription: aText - (self usedBuilder widgetAt: #sidebarDescription) hasUnacceptedEdits: false. + (self board usedBuilder widgetAt: #sidebarDescription) hasUnacceptedEdits: false. self activeCard updateDescription: aText string. self changed: #activeCardDescription. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/updateActiveCardTitle..st b/Squello-Core.package/SPBSidebar.class/instance/updateActiveCardTitle..st similarity index 54% rename from Squello-Core.package/SPBBoard.class/instance/updateActiveCardTitle..st rename to Squello-Core.package/SPBSidebar.class/instance/updateActiveCardTitle..st index f2610646..854c378d 100644 --- a/Squello-Core.package/SPBBoard.class/instance/updateActiveCardTitle..st +++ b/Squello-Core.package/SPBSidebar.class/instance/updateActiveCardTitle..st @@ -1,6 +1,6 @@ -update sidebar +text fields updateActiveCardTitle: aText - (self usedBuilder widgetAt: #sidebarTitle) hasUnacceptedEdits: false. + (self board usedBuilder widgetAt: #sidebarTitle) hasUnacceptedEdits: false. self activeCard updateTitle: aText string. self changed: #activeCardTitle. \ No newline at end of file diff --git a/Squello-Core.package/SPBBoard.class/instance/wantsAssigneeDrop..st b/Squello-Core.package/SPBSidebar.class/instance/wantsAssigneeDrop..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/wantsAssigneeDrop..st rename to Squello-Core.package/SPBSidebar.class/instance/wantsAssigneeDrop..st diff --git a/Squello-Core.package/SPBBoard.class/instance/wantsLabelDrop..st b/Squello-Core.package/SPBSidebar.class/instance/wantsLabelDrop..st similarity index 100% rename from Squello-Core.package/SPBBoard.class/instance/wantsLabelDrop..st rename to Squello-Core.package/SPBSidebar.class/instance/wantsLabelDrop..st diff --git a/Squello-Core.package/SPBSidebar.class/methodProperties.json b/Squello-Core.package/SPBSidebar.class/methodProperties.json new file mode 100644 index 00000000..31e280b2 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/methodProperties.json @@ -0,0 +1,46 @@ +{ + "class" : { + }, + "instance" : { + "activeCard" : "mcr 8/1/2022 01:18", + "activeCard:" : "mcr 8/1/2022 01:18", + "activeCardAssigneeList" : "mcr 8/1/2022 00:50", + "activeCardAssigneeListHeader" : "mcr 8/1/2022 00:51", + "activeCardDescription" : "mcr 8/1/2022 00:52", + "activeCardLabelList" : "mcr 8/1/2022 00:53", + "activeCardLabelListHeader" : "mcr 8/1/2022 00:53", + "activeCardTitle" : "mcr 8/1/2022 00:53", + "assigneeSelected" : "mcr 8/1/2022 01:13", + "assigneeSelected:" : "mcr 8/1/2022 01:13", + "board" : "mcr 8/1/2022 01:11", + "board:" : "mcr 8/1/2022 01:11", + "boardProvider" : "mcr 8/1/2022 01:20", + "boardProvider:" : "mcr 8/1/2022 01:20", + "dragFromAssignees:" : "mcr 8/1/2022 01:05", + "dragFromLabels:" : "mcr 8/1/2022 01:05", + "dragFromPotentialAssignees:" : "mcr 8/1/2022 01:05", + "dragFromPotentialLabels:" : "mcr 8/1/2022 01:07", + "dropOnAssignees:at:" : "mcr 8/1/2022 01:07", + "dropOnLabels:at:" : "mcr 8/1/2022 01:07", + "dropOnPotentialAssignees:at:" : "mcr 8/1/2022 01:07", + "dropOnPotentialLabels:at:" : "mcr 8/1/2022 01:07", + "labelIcon:" : "mcr 8/1/2022 01:15", + "labelSelected" : "mcr 8/1/2022 01:14", + "labelSelected:" : "mcr 8/1/2022 01:14", + "potentialAssigneeSelected" : "mcr 8/1/2022 01:13", + "potentialAssigneeSelected:" : "mcr 8/1/2022 01:14", + "potentialAssignees" : "mcr 8/1/2022 01:16", + "potentialAssignees:" : "mcr 8/1/2022 01:16", + "potentialAssigneesList" : "mcr 8/1/2022 00:54", + "potentialAssigneesListHeader" : "mcr 8/1/2022 00:54", + "potentialLabelIcon:" : "mcr 8/1/2022 01:15", + "potentialLabelSelected" : "mcr 8/1/2022 01:14", + "potentialLabelSelected:" : "mcr 8/1/2022 01:14", + "potentialLabels" : "mcr 8/1/2022 01:16", + "potentialLabels:" : "mcr 8/1/2022 01:17", + "potentialLabelsList" : "mcr 8/1/2022 00:55", + "potentialLabelsListHeader" : "mcr 8/1/2022 00:55", + "updateActiveCardDescription:" : "mcr 8/1/2022 01:12", + "updateActiveCardTitle:" : "mcr 8/1/2022 01:12", + "wantsAssigneeDrop:" : "mcr 8/1/2022 01:07", + "wantsLabelDrop:" : "mcr 8/1/2022 01:07" } } diff --git a/Squello-Core.package/SPBSidebar.class/properties.json b/Squello-Core.package/SPBSidebar.class/properties.json new file mode 100644 index 00000000..00a346c2 --- /dev/null +++ b/Squello-Core.package/SPBSidebar.class/properties.json @@ -0,0 +1,22 @@ +{ + "category" : "Squello-Core", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + "board", + "boardProvider", + "activeCard", + "potentialAssignees", + "potentialLabels", + "assigneeSelected", + "labelSelected", + "potentialAssigneeSelected", + "potentialLabelSelected" ], + "name" : "SPBSidebar", + "pools" : [ + ], + "super" : "Model", + "type" : "normal" } diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/setUp.st b/Squello-Tests.package/SPBBoardTests.class/instance/setUp.st index 51c16bdf..377c96cf 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/setUp.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/setUp.st @@ -6,3 +6,4 @@ setUp board boardProvider: SPBMockGithubBoardProvider new. board changeProvider: SPBGithubChangeProvider new. board usedBuilder: SPBMorphicToolBuilder new. + board sidebar: (SPBSidebar new boardProvider: board boardProvider). diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCard.st b/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCard.st deleted file mode 100644 index 4f634494..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCard.st +++ /dev/null @@ -1,9 +0,0 @@ -as yet unclassified -testActiveCard - - | card | - - card := SPBCard new. - board activeCard: card. - - self assert: card equals: board activeCard. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardAssigneeList.st b/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardAssigneeList.st deleted file mode 100644 index 6449f2a3..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardAssigneeList.st +++ /dev/null @@ -1,13 +0,0 @@ -as yet unclassified -testActiveCardAssigneeList - - | assignee | - self assert: board activeCardAssigneeListHeader equals: board activeCardAssigneeList. - - board activeCard: SPBCard new. - self assert: board activeCardAssigneeListHeader equals: board activeCardAssigneeList. - - assignee := SPBAssignee new. - - board activeCard assignees: { assignee }. - self assert: board activeCardAssigneeListHeader , {assignee} equals: board activeCardAssigneeList. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardDescription.st b/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardDescription.st deleted file mode 100644 index e6bf1aeb..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardDescription.st +++ /dev/null @@ -1,12 +0,0 @@ -as yet unclassified -testActiveCardDescription - - | description | - self assert: '' equals: board activeCardDescription. - - board activeCard: SPBCard new. - self assert: '' equals: board activeCardDescription. - - description := 'hello squeak'. - board activeCard description: description. - self assert: description equals: board activeCardDescription. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardLabelList.st b/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardLabelList.st deleted file mode 100644 index 814682f2..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardLabelList.st +++ /dev/null @@ -1,13 +0,0 @@ -as yet unclassified -testActiveCardLabelList - - | label | - self assert: board activeCardLabelListHeader equals: board activeCardLabelList. - - board activeCard: SPBCard new. - self assert: board activeCardLabelListHeader equals: board activeCardLabelList. - - label := SPBLabel new. - - board activeCard labels: {label}. - self assert: board activeCardLabelListHeader , {label} equals: board activeCardLabelList. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardTitle.st b/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardTitle.st deleted file mode 100644 index 91c43a8a..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testActiveCardTitle.st +++ /dev/null @@ -1,12 +0,0 @@ -as yet unclassified -testActiveCardTitle - - | title | - self assert: '' equals: board activeCardTitle. - - board activeCard: SPBCard new. - self assert: '' equals: board activeCardTitle. - - title := 'Hi squeak'. - board activeCard title: title. - self assert: title equals: board activeCardTitle. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testAssigneeSelected.st b/Squello-Tests.package/SPBBoardTests.class/instance/testAssigneeSelected.st deleted file mode 100644 index 9c8b44ec..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testAssigneeSelected.st +++ /dev/null @@ -1,14 +0,0 @@ -as yet unclassified -testAssigneeSelected - - | assignee anotherObject | - - assignee := SPBAssignee new. - board assigneeSelected: assignee. - - self assert: assignee equals: board assigneeSelected. - - anotherObject := Object new. - board assigneeSelected: anotherObject. - - self assert: assignee equals: board assigneeSelected. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarAssigneeListSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarAssigneeListSpecWith.st index a6c61369..8dd5559e 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarAssigneeListSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarAssigneeListSpecWith.st @@ -5,7 +5,6 @@ testBuildSidebarAssigneeListSpecWith spec := board buildSidebarAssigneeListSpecWith: board usedBuilder. self assert: true equals: (spec isKindOf: PluggableListSpec). - self assert: board equals: spec model. self assert: #sidebarAssigneeList equals: spec name. self assert: #activeCardAssigneeList equals: spec list. self assert: #assigneeSelected equals: spec getSelected. diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarAssigneePanelSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarAssigneePanelSpecWith.st index d30d620b..fa0a0ce4 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarAssigneePanelSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarAssigneePanelSpecWith.st @@ -7,7 +7,6 @@ testBuildSidebarAssigneePanelSpecWith child2 := spec children at: 2. self assert: true equals: (spec isKindOf: PluggablePanelSpec). - self assert: board equals: spec model. self assert: #sidebarAssigneeList equals: spec name. self assert: true equals: (child1 isKindOf: PluggableListSpec). self assert: true equals: (child2 isKindOf: PluggableListSpec). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarDescriptionSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarDescriptionSpecWith.st index 051e74b1..3f8a6f7c 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarDescriptionSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarDescriptionSpecWith.st @@ -5,7 +5,6 @@ testBuildSidebarDescriptionSpecWith spec := board buildSidebarDescriptionSpecWith: board usedBuilder. self assert: true equals: (spec isKindOf: PluggableTextSpec). - self assert: board equals: spec model. self assert: #sidebarDescription equals: spec name. self assert: #updateActiveCardDescription: equals: spec setText. self assert: #activeCardDescription equals: spec getText. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarLabelListSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarLabelListSpecWith.st index 70342f3a..f528f7ad 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarLabelListSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarLabelListSpecWith.st @@ -5,7 +5,6 @@ testBuildSidebarLabelListSpecWith spec := board buildSidebarLabelListSpecWith: board usedBuilder. self assert: true equals: (spec isKindOf: PluggableListSpec). - self assert: board equals: spec model. self assert: #sidebarLabelList equals: spec name. self assert: #activeCardLabelList equals: spec list. self assert: #labelSelected equals: spec getSelected. diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarLabelPanelSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarLabelPanelSpecWith.st index f94af5e4..a7c55056 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarLabelPanelSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarLabelPanelSpecWith.st @@ -7,7 +7,6 @@ testBuildSidebarLabelPanelSpecWith child2 := spec children at: 2. self assert: true equals: (spec isKindOf: PluggablePanelSpec). - self assert: board equals: spec model. self assert: #sidebarLabelList equals: spec name. self assert: true equals: (child1 isKindOf: PluggableListSpec). self assert: true equals: (child1 isKindOf: PluggableListSpec). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarPotentialAssigneeListSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarPotentialAssigneeListSpecWith.st index 8731edf4..5cf68b0c 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarPotentialAssigneeListSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarPotentialAssigneeListSpecWith.st @@ -5,7 +5,6 @@ testBuildSidebarPotentialAssigneeListSpecWith spec := board buildSidebarPotentialAssigneeListSpecWith: board usedBuilder. self assert: true equals: (spec isKindOf: PluggableListSpec). - self assert: board equals: spec model. self assert: #sidebarPotentialAssigneeList equals: spec name. self assert: #potentialAssigneesList equals: spec list. self assert: #potentialAssigneeSelected equals: spec getSelected. diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarPotentialLabelListSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarPotentialLabelListSpecWith.st index 1d69fff9..92e42809 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarPotentialLabelListSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarPotentialLabelListSpecWith.st @@ -5,7 +5,6 @@ testBuildSidebarPotentialLabelListSpecWith spec := board buildSidebarPotentialLabelListSpecWith: board usedBuilder. self assert: true equals: (spec isKindOf: PluggableListSpec). - self assert: board equals: spec model. self assert: #sidebarPotentialLabelList equals: spec name. self assert: #potentialLabelsList equals: spec list. self assert: #potentialLabelSelected equals: spec getSelected. diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarSpecWith.st index 27f578d7..3e3dab9e 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarSpecWith.st @@ -5,7 +5,6 @@ testBuildSidebarSpecWith spec := board buildSidebarTitleSpecWith: board usedBuilder. self assert: true equals: (spec isKindOf: PluggableTextSpec). - self assert: board equals: spec model. self assert: #sidebarTitle equals: spec name. self assert: #updateActiveCardTitle: equals: spec setText. self assert: #activeCardTitle equals: spec getText. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarTitleSpecWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarTitleSpecWith.st index 5362fb3d..9de82e45 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarTitleSpecWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildSidebarTitleSpecWith.st @@ -5,7 +5,6 @@ testBuildSidebarTitleSpecWith spec := board buildSidebarTitleSpecWith: board usedBuilder. self assert: true equals: (spec isKindOf: PluggableTextSpec). - self assert: board equals: spec model. self assert: #sidebarTitle equals: spec name. self assert: #updateActiveCardTitle: equals: spec setText. self assert: #activeCardTitle equals: spec getText. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildWith.st b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildWith.st index 93f7ad1d..bf565815 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testBuildWith.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testBuildWith.st @@ -8,6 +8,7 @@ testBuildWith changeProvider: board changeProvider; id: 1337. board columns: {column1}. + window := board buildWith: builder. self assert: true equals: (window isKindOf: PluggableSystemWindow). diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testChangeActiveCardTo.st b/Squello-Tests.package/SPBBoardTests.class/instance/testChangeActiveCardTo.st index 27db703b..62334000 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testChangeActiveCardTo.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testChangeActiveCardTo.st @@ -13,9 +13,8 @@ testChangeActiveCardTo usedBuilder register: PluggableListMorphPlus new id: #sidebarLabelList. usedBuilder register: PluggableListMorphPlus new id: #sidebarPotentialLabelList. board usedBuilder: usedBuilder. - board activeCard: nil. board changeActiveCardTo: card. - self assert: card equals: board activeCard. + self assert: card equals: board sidebar activeCard. self assert: 'tolleKarte' equals: ((usedBuilder widgetAt: #sidebarTitle) textMorph text string). self assert: 'desc' equals: ((usedBuilder widgetAt: #sidebarDescription) textMorph text string). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testLabelIcon.st b/Squello-Tests.package/SPBBoardTests.class/instance/testLabelIcon.st deleted file mode 100644 index 6e1dddce..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testLabelIcon.st +++ /dev/null @@ -1,4 +0,0 @@ -as yet unclassified -testLabelIcon - - self deny: nil = (board labelIcon: 1). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testLabelSelected.st b/Squello-Tests.package/SPBBoardTests.class/instance/testLabelSelected.st deleted file mode 100644 index d24ad84d..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testLabelSelected.st +++ /dev/null @@ -1,9 +0,0 @@ -as yet unclassified -testLabelSelected - - | label | - label := SPBLabel new. - board labelSelected: label. - self assert: label equals: board labelSelected. - board labelSelected: Morph new. - self assert: label equals: board labelSelected. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialAssigneeSelected.st b/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialAssigneeSelected.st deleted file mode 100644 index 19a272e4..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialAssigneeSelected.st +++ /dev/null @@ -1,14 +0,0 @@ -as yet unclassified -testPotentialAssigneeSelected - - | assignee anotherObject | - - assignee := SPBAssignee new. - board potentialAssigneeSelected: assignee. - - self assert: assignee equals: board potentialAssigneeSelected. - - anotherObject := Object new. - board potentialAssigneeSelected: anotherObject. - - self assert: assignee equals: board potentialAssigneeSelected. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialAssignees.st b/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialAssignees.st deleted file mode 100644 index 0014a7fb..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialAssignees.st +++ /dev/null @@ -1,13 +0,0 @@ -as yet unclassified -testPotentialAssignees - - | assignees | - - self assert: 2 equals: board potentialAssignees size. - self assert: 'user1' equals: ((board potentialAssignees at: 1) asString). - self assert: 'user2' equals: ((board potentialAssignees at: 2) asString). - - assignees := OrderedCollection newFrom: {SPBAssignee new}. - board potentialAssignees: assignees. - - self assert: assignees equals: board potentialAssignees. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialLabelIcon.st b/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialLabelIcon.st deleted file mode 100644 index 7922c80d..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialLabelIcon.st +++ /dev/null @@ -1,4 +0,0 @@ -as yet unclassified -testPotentialLabelIcon - - self deny: nil = (board potentialLabelIcon: 1). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialLabelSelected.st b/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialLabelSelected.st deleted file mode 100644 index 9d8546b2..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testPotentialLabelSelected.st +++ /dev/null @@ -1,9 +0,0 @@ -as yet unclassified -testPotentialLabelSelected - - | label | - label := SPBLabel new. - board potentialLabelSelected: label. - self assert: label equals: board potentialLabelSelected. - board potentialLabelSelected: Morph new. - self assert: label equals: board potentialLabelSelected. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanes.st b/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanes.st index b790204f..5a69e67e 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanes.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanes.st @@ -10,7 +10,7 @@ testUpdateLanes board usedBuilder: builder. board columns: { column } asOrderedCollection. - board updateColumns. + board setupColumns. self assert: { 1234 } asOrderedCollection equals: builder callOrder. self assert: pasteup equals: column pasteup. diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanesWithCards.st b/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanesWithCards.st index 582ae117..d3703cce 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanesWithCards.st +++ b/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateLanesWithCards.st @@ -21,6 +21,6 @@ testUpdateLanesWithCards board columns: columns. board addDependent: self. - board updateColumnsWithCards. + board updateColumns. self assert: { #buildColumnAreaChildren } asOrderedCollection equals: self calledSymbols. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testWantsAssigneeDrop.st b/Squello-Tests.package/SPBBoardTests.class/instance/testWantsAssigneeDrop.st deleted file mode 100644 index b5029ee3..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testWantsAssigneeDrop.st +++ /dev/null @@ -1,5 +0,0 @@ -as yet unclassified -testWantsAssigneeDrop - - self assert: true equals: (board wantsAssigneeDrop: SPBAssignee new). - self assert: false equals: (board wantsAssigneeDrop: Morph new) \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testWantsLabelDrop.st b/Squello-Tests.package/SPBBoardTests.class/instance/testWantsLabelDrop.st deleted file mode 100644 index 0a35b558..00000000 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testWantsLabelDrop.st +++ /dev/null @@ -1,5 +0,0 @@ -as yet unclassified -testWantsLabelDrop - - self assert: true equals: (board wantsLabelDrop: SPBLabel new). - self assert: false equals: (board wantsLabelDrop: Morph new) \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/methodProperties.json b/Squello-Tests.package/SPBBoardTests.class/methodProperties.json index 54ece111..440a0e75 100644 --- a/Squello-Tests.package/SPBBoardTests.class/methodProperties.json +++ b/Squello-Tests.package/SPBBoardTests.class/methodProperties.json @@ -5,14 +5,8 @@ "calledSymbols" : "lo 6/18/2022 12:12", "calledSymbols:" : "lo 6/18/2022 12:07", "isColumn:" : "tk 7/30/2022 23:09", - "setUp" : "jh 7/29/2022 12:44", + "setUp" : "mcr 8/1/2022 01:57", "tearDown" : "NTK 5/30/2022 15:16", - "testActiveCard" : "jh 6/3/2022 20:08", - "testActiveCardAssigneeList" : "lo 7/31/2022 17:26", - "testActiveCardDescription" : "lo 6/18/2022 10:38", - "testActiveCardLabelList" : "lo 7/31/2022 17:21", - "testActiveCardTitle" : "lo 6/18/2022 10:41", - "testAssigneeSelected" : "jh 6/3/2022 20:11", "testBuildAddLaneButtonPanelSpecWith" : "tk 7/30/2022 21:37", "testBuildAddLaneButtonSpecWith" : "tk 7/30/2022 21:38", "testBuildLaneAreaSpecWith" : "tk 7/30/2022 21:39", @@ -22,44 +16,26 @@ "testBuildLaneHeaderTitleSpecWith" : "tk 7/30/2022 23:20", "testBuildLaneSpecWithAnd" : "tk 7/30/2022 23:13", "testBuildLanesSpecWith" : "tk 7/30/2022 23:19", - "testBuildSidebarAssigneeListSpecWith" : "mcr 6/18/2022 13:24", - "testBuildSidebarAssigneePanelSpecWith" : "mcr 6/18/2022 13:29", - "testBuildSidebarDescriptionSpecWith" : "mcr 6/18/2022 13:31", - "testBuildSidebarLabelListSpecWith" : "mcr 6/18/2022 13:15", - "testBuildSidebarLabelPanelSpecWith" : "mcr 6/18/2022 13:21", - "testBuildSidebarPotentialAssigneeListSpecWith" : "mcr 6/18/2022 13:13", - "testBuildSidebarPotentialLabelListSpecWith" : "mcr 6/18/2022 13:11", - "testBuildSidebarSpecWith" : "mcr 6/18/2022 13:04", - "testBuildSidebarTitleSpecWith" : "mcr 6/18/2022 13:04", + "testBuildSidebarAssigneeListSpecWith" : "mcr 8/1/2022 01:54", + "testBuildSidebarAssigneePanelSpecWith" : "mcr 8/1/2022 01:54", + "testBuildSidebarDescriptionSpecWith" : "mcr 8/1/2022 01:54", + "testBuildSidebarLabelListSpecWith" : "mcr 8/1/2022 01:54", + "testBuildSidebarLabelPanelSpecWith" : "mcr 8/1/2022 01:54", + "testBuildSidebarPotentialAssigneeListSpecWith" : "mcr 8/1/2022 01:54", + "testBuildSidebarPotentialLabelListSpecWith" : "mcr 8/1/2022 01:54", + "testBuildSidebarSpecWith" : "mcr 8/1/2022 01:53", + "testBuildSidebarTitleSpecWith" : "mcr 8/1/2022 01:53", "testBuildSidebarWith" : "mcr 6/18/2022 13:34", - "testBuildWith" : "tk 7/30/2022 23:19", - "testChangeActiveCardTo" : "mcr 7/3/2022 22:54", + "testBuildWith" : "mcr 8/1/2022 01:57", + "testChangeActiveCardTo" : "mcr 8/1/2022 01:58", "testCreateLanes" : "tk 7/30/2022 21:48", - "testDragFromAssignees" : "mcr 7/3/2022 17:13", - "testDragFromLabels" : "mcr 7/3/2022 17:14", - "testDragFromPotentialAssignees" : "mcr 7/3/2022 17:14", - "testDragFromPotentialLabels" : "mcr 7/3/2022 17:14", - "testDropOnAssignees" : "lo 7/31/2022 17:52", - "testDropOnLabels" : "lo 7/31/2022 17:53", - "testDropOnPotentialAssignees" : "lo 7/31/2022 17:56", - "testDropOnPotentialLabels" : "lo 7/31/2022 17:54", - "testLabelIcon" : "mcr 7/3/2022 18:02", - "testLabelSelected" : "mcr 7/3/2022 17:58", "testLastProject" : "jh 6/21/2022 11:12", - "testPotentialAssigneeSelected" : "jh 6/3/2022 20:14", - "testPotentialAssignees" : "jh 6/3/2022 20:30", - "testPotentialLabelIcon" : "mcr 7/3/2022 18:02", - "testPotentialLabelSelected" : "mcr 7/3/2022 17:58", "testProvider" : "jh 7/29/2022 11:38", - "testShowLanes" : "tk 7/30/2022 23:18", + "testShowLanes" : "mcr 8/1/2022 01:28", "testShowLanesButDontRebuildCards" : "tk 7/30/2022 23:17", - "testUpdateActiveCardDescription" : "jh 7/29/2022 12:45", - "testUpdateActiveCardTitle" : "lo 7/31/2022 17:50", - "testUpdateLanes" : "tk 7/30/2022 23:16", + "testUpdateLanes" : "mcr 8/1/2022 01:26", "testUpdateLanesAndSidebar" : "tk 7/30/2022 23:16", - "testUpdateLanesWithCards" : "tk 7/30/2022 23:15", + "testUpdateLanesWithCards" : "mcr 8/1/2022 01:27", "testUsedBuilder" : "jh 6/3/2022 20:32", - "testWantsAssigneeDrop" : "mcr 7/3/2022 17:53", - "testWantsLabelDrop" : "mcr 7/3/2022 17:53", "testWindow" : "jh 6/3/2022 20:33", "update:" : "lo 6/18/2022 12:16" } } diff --git a/Squello-Tests.package/SPBCardTests.class/instance/testBecomeActiveCard.st b/Squello-Tests.package/SPBCardTests.class/instance/testBecomeActiveCard.st index e2368740..07256fed 100644 --- a/Squello-Tests.package/SPBCardTests.class/instance/testBecomeActiveCard.st +++ b/Squello-Tests.package/SPBCardTests.class/instance/testBecomeActiveCard.st @@ -1,7 +1,7 @@ tests testBecomeActiveCard - | board usedBuilder column | + | board usedBuilder column sidebar | usedBuilder := SPBMorphicToolBuilder new. usedBuilder register: PluggableTextMorph new id: #sidebarTitle. usedBuilder register: PluggableTextMorph new id: #sidebarDescription. @@ -9,11 +9,14 @@ testBecomeActiveCard usedBuilder register: PluggableListMorphPlus new id: #sidebarPotentialAssigneeList. usedBuilder register: PluggableListMorphPlus new id: #sidebarLabelList. usedBuilder register: PluggableListMorphPlus new id: #sidebarPotentialLabelList. - board := SPBBoard new activeCard: nil. - board usedBuilder: usedBuilder. + sidebar := SPBSidebar new activeCard: nil. + board := SPBBoard new + usedBuilder: usedBuilder; + sidebar: sidebar. column := SPBColumn new board: board. - card column: column. - card title: 'title'. + card + column: column; + title: 'title'. card becomeActiveCard. - self assert: card equals: card column board activeCard. \ No newline at end of file + self assert: card equals: sidebar activeCard. \ No newline at end of file diff --git a/Squello-Tests.package/SPBCardTests.class/methodProperties.json b/Squello-Tests.package/SPBCardTests.class/methodProperties.json index 902a66e3..6938f7ce 100644 --- a/Squello-Tests.package/SPBCardTests.class/methodProperties.json +++ b/Squello-Tests.package/SPBCardTests.class/methodProperties.json @@ -4,7 +4,7 @@ "instance" : { "setUp" : "lo 7/31/2022 17:47", "tearDown" : "lo 5/22/2022 15:36", - "testBecomeActiveCard" : "tk 7/30/2022 23:24", + "testBecomeActiveCard" : "mcr 8/1/2022 01:35", "testCurrentLane" : "tk 7/30/2022 23:24", "testDescription" : "lo 5/22/2022 16:34", "testDontUpdateDescription" : "lo 5/22/2022 16:35", diff --git a/Squello-Tests.package/SPBSidebarTests.class/README.md b/Squello-Tests.package/SPBSidebarTests.class/README.md new file mode 100644 index 00000000..e69de29b diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/setUp.st b/Squello-Tests.package/SPBSidebarTests.class/instance/setUp.st new file mode 100644 index 00000000..13347ae3 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/setUp.st @@ -0,0 +1,6 @@ +as yet unclassified +setUp + + sidebar := SPBSidebar new + board: SPBBoard new; + boardProvider: SPBMockGithubBoardProvider new. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/tearDown.st b/Squello-Tests.package/SPBSidebarTests.class/instance/tearDown.st new file mode 100644 index 00000000..000d20e7 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/tearDown.st @@ -0,0 +1,4 @@ +as yet unclassified +tearDown + + sidebar := nil. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCard.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCard.st new file mode 100644 index 00000000..b562e927 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCard.st @@ -0,0 +1,8 @@ +as yet unclassified +testActiveCard + + | card | + card := SPBCard new. + sidebar activeCard: card. + + self assert: card equals: sidebar activeCard. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardAssigneeList.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardAssigneeList.st new file mode 100644 index 00000000..30ff57d8 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardAssigneeList.st @@ -0,0 +1,13 @@ +as yet unclassified +testActiveCardAssigneeList + + | assignee | + self assert: sidebar activeCardAssigneeListHeader equals: sidebar activeCardAssigneeList. + + sidebar activeCard: SPBCard new. + self assert: sidebar activeCardAssigneeListHeader equals: sidebar activeCardAssigneeList. + + assignee := SPBAssignee new. + + sidebar activeCard assignees: { assignee }. + self assert: sidebar activeCardAssigneeListHeader , {assignee} equals: sidebar activeCardAssigneeList. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardDescription.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardDescription.st new file mode 100644 index 00000000..54da9325 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardDescription.st @@ -0,0 +1,12 @@ +as yet unclassified +testActiveCardDescription + + | description | + self assert: '' equals: sidebar activeCardDescription. + + sidebar activeCard: SPBCard new. + self assert: '' equals: sidebar activeCardDescription. + + description := 'hello squeak'. + sidebar activeCard description: description. + self assert: description equals: sidebar activeCardDescription. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardLabelList.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardLabelList.st new file mode 100644 index 00000000..37093c57 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardLabelList.st @@ -0,0 +1,13 @@ +as yet unclassified +testActiveCardLabelList + + | label | + self assert: sidebar activeCardLabelListHeader equals: sidebar activeCardLabelList. + + sidebar activeCard: SPBCard new. + self assert: sidebar activeCardLabelListHeader equals: sidebar activeCardLabelList. + + label := SPBLabel new. + + sidebar activeCard labels: {label}. + self assert: sidebar activeCardLabelListHeader , {label} equals: sidebar activeCardLabelList. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardTitle.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardTitle.st new file mode 100644 index 00000000..6cc4bb7b --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testActiveCardTitle.st @@ -0,0 +1,12 @@ +as yet unclassified +testActiveCardTitle + + | title | + self assert: '' equals: sidebar activeCardTitle. + + sidebar activeCard: SPBCard new. + self assert: '' equals: sidebar activeCardTitle. + + title := 'Hi squeak'. + sidebar activeCard title: title. + self assert: title equals: sidebar activeCardTitle. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testAssigneeSelected.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testAssigneeSelected.st new file mode 100644 index 00000000..244486f5 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testAssigneeSelected.st @@ -0,0 +1,14 @@ +as yet unclassified +testAssigneeSelected + + | assignee anotherObject | + + assignee := SPBAssignee new. + sidebar assigneeSelected: assignee. + + self assert: assignee equals: sidebar assigneeSelected. + + anotherObject := Object new. + sidebar assigneeSelected: anotherObject. + + self assert: assignee equals: sidebar assigneeSelected. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testDragFromAssignees.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromAssignees.st similarity index 75% rename from Squello-Tests.package/SPBBoardTests.class/instance/testDragFromAssignees.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromAssignees.st index 735317f8..d09cc6ad 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testDragFromAssignees.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromAssignees.st @@ -6,7 +6,6 @@ testDragFromAssignees assignee1 := SPBAssignee new username: 'uncoolerUser'. assignee2 := SPBAssignee new username: 'coolerUser'. activeCard assignees: (OrderedCollection newFrom: {assignee1 . assignee2}). - board activeCard: activeCard. + sidebar activeCard: activeCard. - self assert: assignee2 equals: (board dragFromAssignees: 2). - \ No newline at end of file + self assert: assignee2 equals: (sidebar dragFromAssignees: 2). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testDragFromLabels.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromLabels.st similarity index 74% rename from Squello-Tests.package/SPBBoardTests.class/instance/testDragFromLabels.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromLabels.st index b3d2602c..8fa05770 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testDragFromLabels.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromLabels.st @@ -6,7 +6,6 @@ testDragFromLabels label1 := SPBLabel new title: 'uncoolesLabel'. label2 := SPBLabel new title: 'coolesLabel'. activeCard labels: (OrderedCollection newFrom: {label1 . label2}). - board activeCard: activeCard. + sidebar activeCard: activeCard. - self assert: label2 equals: (board dragFromLabels: 2). - \ No newline at end of file + self assert: label2 equals: (sidebar dragFromLabels: 2). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testDragFromPotentialAssignees.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromPotentialAssignees.st similarity index 60% rename from Squello-Tests.package/SPBBoardTests.class/instance/testDragFromPotentialAssignees.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromPotentialAssignees.st index 1c12cd03..eb6f6b8f 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testDragFromPotentialAssignees.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromPotentialAssignees.st @@ -6,8 +6,7 @@ testDragFromPotentialAssignees activeCard assignees: (OrderedCollection newFrom: {}). assignee1 := SPBAssignee new username: 'uncoolerUser'. assignee2 := SPBAssignee new username: 'coolerUser'. - board potentialAssignees: (OrderedCollection newFrom: {assignee1 . assignee2}). - board activeCard: activeCard. + sidebar potentialAssignees: (OrderedCollection newFrom: {assignee1 . assignee2}). + sidebar activeCard: activeCard. - self assert: assignee2 equals: (board dragFromPotentialAssignees: 2). - \ No newline at end of file + self assert: assignee2 equals: (sidebar dragFromPotentialAssignees: 2). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testDragFromPotentialLabels.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromPotentialLabels.st similarity index 59% rename from Squello-Tests.package/SPBBoardTests.class/instance/testDragFromPotentialLabels.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromPotentialLabels.st index 622e51ff..98cd1ec2 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testDragFromPotentialLabels.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testDragFromPotentialLabels.st @@ -6,7 +6,7 @@ testDragFromPotentialLabels activeCard labels: (OrderedCollection newFrom: {}). label1 := SPBLabel new title: 'uncoolesLabel'. label2 := SPBLabel new title: 'coolesLabel'. - board potentialLabels: (OrderedCollection newFrom: {label1 . label2}). - board activeCard: activeCard. + sidebar potentialLabels: (OrderedCollection newFrom: {label1 . label2}). + sidebar activeCard: activeCard. - self assert: label2 equals: (board dragFromPotentialLabels: 2). \ No newline at end of file + self assert: label2 equals: (sidebar dragFromPotentialLabels: 2). \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testDropOnAssignees.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnAssignees.st similarity index 69% rename from Squello-Tests.package/SPBBoardTests.class/instance/testDropOnAssignees.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnAssignees.st index bc1306fe..39aef700 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testDropOnAssignees.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnAssignees.st @@ -8,10 +8,10 @@ testDropOnAssignees assignee2 := SPBAssignee new username: 'coolerUser'; id: 2. activeCard assignees: (OrderedCollection newFrom: {assignee1}). activeCard boardProvider: boardProvider. - board activeCard: activeCard. + sidebar activeCard: activeCard. - board dropOnAssignees: assignee2 at: 3. - self assert: (board activeCard assignees contains: [:each | each = assignee2]). - self assert: 2 equals: board activeCard assignees size. + sidebar dropOnAssignees: assignee2 at: 3. + self assert: (sidebar activeCard assignees contains: [:each | each = assignee2]). + self assert: 2 equals: sidebar activeCard assignees size. self assert: activeCard equals: boardProvider card. self assert: assignee2 equals: boardProvider assignee. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testDropOnLabels.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnLabels.st similarity index 71% rename from Squello-Tests.package/SPBBoardTests.class/instance/testDropOnLabels.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnLabels.st index ad4fb389..4f1082a1 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testDropOnLabels.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnLabels.st @@ -8,10 +8,10 @@ testDropOnLabels label2 := SPBLabel new title: 'coolesLabel'; id: 2; color: Color green. activeCard labels: (OrderedCollection newFrom: {label1}). activeCard boardProvider: boardProvider. - board activeCard: activeCard. + sidebar activeCard: activeCard. - board dropOnLabels: label2 at: 3. - self assert: (board activeCard labels contains: [:each | each = label2]). - self assert: 2 equals: board activeCard labels size. + sidebar dropOnLabels: label2 at: 3. + self assert: (sidebar activeCard labels contains: [:each | each = label2]). + self assert: 2 equals: sidebar activeCard labels size. self assert: activeCard equals: boardProvider card. self assert: label2 equals: boardProvider label. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testDropOnPotentialAssignees.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnPotentialAssignees.st similarity index 69% rename from Squello-Tests.package/SPBBoardTests.class/instance/testDropOnPotentialAssignees.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnPotentialAssignees.st index ab85fca9..382f9972 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testDropOnPotentialAssignees.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnPotentialAssignees.st @@ -8,10 +8,10 @@ testDropOnPotentialAssignees assignee2 := SPBAssignee new username: 'coolerUser'; id: 2. activeCard assignees: (OrderedCollection newFrom: {assignee1 . assignee2}). activeCard boardProvider: boardProvider. - board activeCard: activeCard. + sidebar activeCard: activeCard. - board dropOnPotentialAssignees: assignee1 at: 3. - self assert: (board activeCard assignees contains: [:each | each = assignee1]) not. - self assert: 1 equals: board activeCard assignees size. + sidebar dropOnPotentialAssignees: assignee1 at: 3. + self assert: (sidebar activeCard assignees contains: [:each | each = assignee1]) not. + self assert: 1 equals: sidebar activeCard assignees size. self assert: activeCard equals: boardProvider card. self assert: assignee1 equals: boardProvider assignee. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testDropOnPotentialLabels.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnPotentialLabels.st similarity index 70% rename from Squello-Tests.package/SPBBoardTests.class/instance/testDropOnPotentialLabels.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnPotentialLabels.st index 2a880e49..aebfa3c6 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testDropOnPotentialLabels.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testDropOnPotentialLabels.st @@ -8,10 +8,10 @@ testDropOnPotentialLabels label2 := SPBLabel new title: 'coolesLabel'; id: 2; color: Color green. activeCard labels: (OrderedCollection newFrom: {label1 . label2}). activeCard boardProvider: boardProvider. - board activeCard: activeCard. + sidebar activeCard: activeCard. - board dropOnPotentialLabels: label1 at: 3. - self assert: (board activeCard labels contains: [:each | each = label1]) not. - self assert: 1 equals: board activeCard labels size. + sidebar dropOnPotentialLabels: label1 at: 3. + self assert: (sidebar activeCard labels contains: [:each | each = label1]) not. + self assert: 1 equals: sidebar activeCard labels size. self assert: activeCard equals: boardProvider card. self assert: label1 equals: boardProvider label. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testLabelIcon.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testLabelIcon.st new file mode 100644 index 00000000..7808319d --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testLabelIcon.st @@ -0,0 +1,4 @@ +as yet unclassified +testLabelIcon + + self deny: nil = (sidebar labelIcon: 1). \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testLabelSelected.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testLabelSelected.st new file mode 100644 index 00000000..64accc4a --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testLabelSelected.st @@ -0,0 +1,9 @@ +as yet unclassified +testLabelSelected + + | label | + label := SPBLabel new. + sidebar labelSelected: label. + self assert: label equals: sidebar labelSelected. + sidebar labelSelected: Morph new. + self assert: label equals: sidebar labelSelected. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialAssigneeSelected.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialAssigneeSelected.st new file mode 100644 index 00000000..ece6e394 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialAssigneeSelected.st @@ -0,0 +1,14 @@ +as yet unclassified +testPotentialAssigneeSelected + + | assignee anotherObject | + + assignee := SPBAssignee new. + sidebar potentialAssigneeSelected: assignee. + + self assert: assignee equals: sidebar potentialAssigneeSelected. + + anotherObject := Object new. + sidebar potentialAssigneeSelected: anotherObject. + + self assert: assignee equals: sidebar potentialAssigneeSelected. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialAssignees.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialAssignees.st new file mode 100644 index 00000000..7373535b --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialAssignees.st @@ -0,0 +1,13 @@ +as yet unclassified +testPotentialAssignees + + | assignees | + + self assert: 2 equals: sidebar potentialAssignees size. + self assert: 'user1' equals: ((sidebar potentialAssignees at: 1) asString). + self assert: 'user2' equals: ((sidebar potentialAssignees at: 2) asString). + + assignees := OrderedCollection newFrom: {SPBAssignee new}. + sidebar potentialAssignees: assignees. + + self assert: assignees equals: sidebar potentialAssignees. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialLabelIcon.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialLabelIcon.st new file mode 100644 index 00000000..dcc2005a --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialLabelIcon.st @@ -0,0 +1,4 @@ +as yet unclassified +testPotentialLabelIcon + + self deny: nil = (sidebar potentialLabelIcon: 1). \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialLabelSelected.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialLabelSelected.st new file mode 100644 index 00000000..eda49cdc --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testPotentialLabelSelected.st @@ -0,0 +1,9 @@ +as yet unclassified +testPotentialLabelSelected + + | label | + label := SPBLabel new. + sidebar potentialLabelSelected: label. + self assert: label equals: sidebar potentialLabelSelected. + sidebar potentialLabelSelected: Morph new. + self assert: label equals: sidebar potentialLabelSelected. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateActiveCardDescription.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testUpdateActiveCardDescription.st similarity index 69% rename from Squello-Tests.package/SPBBoardTests.class/instance/testUpdateActiveCardDescription.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testUpdateActiveCardDescription.st index e0e3d1bc..9b34b4e9 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateActiveCardDescription.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testUpdateActiveCardDescription.st @@ -5,9 +5,8 @@ testUpdateActiveCardDescription usedBuilder := SPBMorphicToolBuilder new. usedBuilder register: PluggableTextMorph new id: #sidebarDescription. card := SPBCard new boardProvider: SPBMockGithubBoardProvider new. - board usedBuilder: usedBuilder. - board activeCard: card. + sidebar board usedBuilder: usedBuilder. + sidebar activeCard: card. - board updateActiveCardDescription: 'neue tolle description' asText. - self assert: 'neue tolle description' equals: card description. - \ No newline at end of file + sidebar updateActiveCardDescription: 'neue tolle description' asText. + self assert: 'neue tolle description' equals: card description. \ No newline at end of file diff --git a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateActiveCardTitle.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testUpdateActiveCardTitle.st similarity index 63% rename from Squello-Tests.package/SPBBoardTests.class/instance/testUpdateActiveCardTitle.st rename to Squello-Tests.package/SPBSidebarTests.class/instance/testUpdateActiveCardTitle.st index c5feffb9..e2c992fc 100644 --- a/Squello-Tests.package/SPBBoardTests.class/instance/testUpdateActiveCardTitle.st +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testUpdateActiveCardTitle.st @@ -8,9 +8,8 @@ testUpdateActiveCardTitle boardProvider: SPBMockGithubBoardProvider new; labels: (OrderedCollection newFrom: {}); column: SPBColumn new. - board usedBuilder: usedBuilder. - board activeCard: card. + sidebar board usedBuilder: usedBuilder. + sidebar activeCard: card. - board updateActiveCardTitle: 'neuer toller Titel' asText. - self assert: 'neuer toller Titel' equals: card title. - \ No newline at end of file + sidebar updateActiveCardTitle: 'neuer toller Titel' asText. + self assert: 'neuer toller Titel' equals: card title. \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testWantsAssigneeDrop.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testWantsAssigneeDrop.st new file mode 100644 index 00000000..b03d6705 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testWantsAssigneeDrop.st @@ -0,0 +1,5 @@ +as yet unclassified +testWantsAssigneeDrop + + self assert: true equals: (sidebar wantsAssigneeDrop: SPBAssignee new). + self assert: false equals: (sidebar wantsAssigneeDrop: Morph new). \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/instance/testWantsLabelDrop.st b/Squello-Tests.package/SPBSidebarTests.class/instance/testWantsLabelDrop.st new file mode 100644 index 00000000..4cba1dbc --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/instance/testWantsLabelDrop.st @@ -0,0 +1,5 @@ +as yet unclassified +testWantsLabelDrop + + self assert: true equals: (sidebar wantsLabelDrop: SPBLabel new). + self assert: false equals: (sidebar wantsLabelDrop: Morph new). \ No newline at end of file diff --git a/Squello-Tests.package/SPBSidebarTests.class/methodProperties.json b/Squello-Tests.package/SPBSidebarTests.class/methodProperties.json new file mode 100644 index 00000000..394de537 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/methodProperties.json @@ -0,0 +1,30 @@ +{ + "class" : { + }, + "instance" : { + "setUp" : "mcr 8/1/2022 01:53", + "tearDown" : "mcr 8/1/2022 01:37", + "testActiveCard" : "mcr 8/1/2022 01:38", + "testActiveCardAssigneeList" : "mcr 8/1/2022 01:38", + "testActiveCardDescription" : "mcr 8/1/2022 01:39", + "testActiveCardLabelList" : "mcr 8/1/2022 01:39", + "testActiveCardTitle" : "mcr 8/1/2022 01:40", + "testAssigneeSelected" : "mcr 8/1/2022 01:40", + "testDragFromAssignees" : "mcr 8/1/2022 01:50", + "testDragFromLabels" : "mcr 8/1/2022 01:50", + "testDragFromPotentialAssignees" : "mcr 8/1/2022 01:49", + "testDragFromPotentialLabels" : "mcr 8/1/2022 01:49", + "testDropOnAssignees" : "mcr 8/1/2022 01:49", + "testDropOnLabels" : "mcr 8/1/2022 01:49", + "testDropOnPotentialAssignees" : "mcr 8/1/2022 01:48", + "testDropOnPotentialLabels" : "mcr 8/1/2022 01:47", + "testLabelIcon" : "mcr 8/1/2022 01:47", + "testLabelSelected" : "mcr 8/1/2022 01:46", + "testPotentialAssigneeSelected" : "mcr 8/1/2022 01:46", + "testPotentialAssignees" : "mcr 8/1/2022 01:45", + "testPotentialLabelIcon" : "mcr 8/1/2022 01:45", + "testPotentialLabelSelected" : "mcr 8/1/2022 01:45", + "testUpdateActiveCardDescription" : "mcr 8/1/2022 01:44", + "testUpdateActiveCardTitle" : "mcr 8/1/2022 02:01", + "testWantsAssigneeDrop" : "mcr 8/1/2022 01:42", + "testWantsLabelDrop" : "mcr 8/1/2022 01:43" } } diff --git a/Squello-Tests.package/SPBSidebarTests.class/properties.json b/Squello-Tests.package/SPBSidebarTests.class/properties.json new file mode 100644 index 00000000..667e0499 --- /dev/null +++ b/Squello-Tests.package/SPBSidebarTests.class/properties.json @@ -0,0 +1,14 @@ +{ + "category" : "Squello-Tests", + "classinstvars" : [ + ], + "classvars" : [ + ], + "commentStamp" : "", + "instvars" : [ + "sidebar" ], + "name" : "SPBSidebarTests", + "pools" : [ + ], + "super" : "TestCase", + "type" : "normal" }