Skip to content

Commit

Permalink
moved panel data to separate messages
Browse files Browse the repository at this point in the history
  • Loading branch information
FePrHPI committed Jun 11, 2024
1 parent cc74393 commit 700b3e9
Show file tree
Hide file tree
Showing 12 changed files with 43 additions and 21 deletions.
4 changes: 2 additions & 2 deletions Squello-Core.package/SPBBoard.class/instance/saveBoard.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
updating
saveBoard

SPBBoardSaver defaultSaver save: self as: self boardProvider repo.
self isLocal
ifTrue: [
SPBLandingPage changeRecentLocalBoards: self boardProvider repo.]
SPBLandingPage changeRecentLocalBoards: self boardProvider repo.
SPBBoardSaver defaultSaver save: self as: self boardProvider repo.]
ifFalse: [
SPBLandingPage changeRecentGitHubBoards: {
#name -> self boardName.
Expand Down
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBBoard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"removeColumn:" : "lo 8/1/2022 14:09",
"rerenderColumns" : "lo 7/31/2022 16:42",
"resizeColumnArea" : "jh 8/3/2022 01:07",
"saveBoard" : "FP 6/10/2024 15:40",
"saveBoard" : "FP 6/11/2024 13:38",
"setUpChangeProvider" : "Haru 5/13/2024 14:46",
"setupColumns" : "jh 8/3/2022 00:48",
"sidebar" : "mcr 8/1/2022 00:44",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,10 @@ buildWith: aBuilder
self usedBuilder: aBuilder.
spec := aBuilder pluggableWindowSpec new
model: self;
label: 'Landing Page';
label: 'Squello Hub';
minimumExtent: 500px @200px;
children:
{self buildMainLayoutPanelSpecWith: aBuilder.
};

yourself.
^ aBuilder build: spec.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
content-panels
contentPanels
"each of the panel object contains a name and a list of symbols to perform the building"

^ {self recentBoardsPanel. self openBoardPanel. self newLocalPanel. self manageLocalBoardsPanel. self loginLogoutPanel}.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
toolbuilder
contentSpecDict

^ {'Recent Boards' -> {
self buildRecentLocalBoardsSpecWith: self usedBuilder.
self buildRecentGitHubBoardsSpecWith: self usedBuilder.}.
} asDictionary.
^ (self contentPanels collect:
[:each| each first -> (each second collect:
[:eachSymbol| self perform: eachSymbol with: self usedBuilder])])
asDictionary.
10 changes: 1 addition & 9 deletions Squello-Core.package/SPBLandingPage.class/instance/list.st
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
toolbuilder
list
"returns #() with strings"


^ #('Recent Boards' 'Open Board' 'New Local Board' 'Manage Local Boards' 'Reset User Account' 'Authentification' )


"^ #( apple tree )"
"^#( 'apple tree' 'peach' )"
"^{ 'apple'. currentProject }"
"^ self projects collect: [:p | p name]"
^ self contentPanels collect: [:each| each first].
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
content-panels
loginLogoutPanel

^ {'Login/Logout'. {}}.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
content-panels
manageLocalBoardsPanel

^ {'Manage Local Boards'. {}}.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
content-panels
newLocalPanel

^ {'New Local Board'. {}}.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
content-panels
openBoardPanel

^ {'Open Board'. {}}.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
content-panels
recentBoardsPanel

^ {'Recent Boards'. {#buildRecentLocalBoardsSpecWith:. #buildRecentGitHubBoardsSpecWith:}}.
12 changes: 9 additions & 3 deletions Squello-Core.package/SPBLandingPage.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@
"buildRecentLocalBoardsSpecWith:" : "FP 6/10/2024 14:20",
"buildResetUserAccountSpecWith:" : "Haru 6/7/2024 12:15",
"buildSidebarSpecWith:" : "FP 6/10/2024 14:36",
"buildWith:" : "FP 6/10/2024 14:22",
"buildWith:" : "FP 6/11/2024 13:43",
"contentPanelChildren" : "FP 6/11/2024 12:13",
"contentSpecDict" : "FP 6/11/2024 12:07",
"contentPanels" : "FP 6/11/2024 13:33",
"contentSpecDict" : "FP 6/11/2024 12:29",
"initialize" : "Haru 6/7/2024 11:58",
"lastSidebarPart" : "Haru 6/7/2024 11:57",
"lastSidebarPart:" : "FP 6/11/2024 12:05",
"list" : "Haru 6/9/2024 14:12",
"list" : "FP 6/11/2024 12:23",
"loginLogoutPanel" : "FP 6/11/2024 13:32",
"manageLocalBoardsPanel" : "FP 6/11/2024 12:25",
"newLocalPanel" : "FP 6/11/2024 13:36",
"open" : "Haru 6/1/2024 12:22",
"openBoardPanel" : "FP 6/11/2024 12:25",
"recentBoardsPanel" : "FP 6/11/2024 12:24",
"usedBuilder" : "Haru 6/1/2024 12:39",
"usedBuilder:" : "Haru 6/1/2024 12:40" } }

0 comments on commit 700b3e9

Please sign in to comment.