Skip to content

Commit

Permalink
LP recent board in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
Haruko Schmidt committed Jun 10, 2024
1 parent 855f468 commit 5737031
Show file tree
Hide file tree
Showing 19 changed files with 106 additions and 52 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
accessing
RecentGitHubBoards: anArray
"an array of dictionarys, every dictionary has name, url, reponame of the githubboard that it repesents"

^ RecentGitHubBoards := anArray.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
RecentGitHubBoards

RecentGitHubBoards ifNil: [RecentGitHubBoards := Array new.].
^ RecentGitHubBoards
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
accessing
RecentLocalBoards: anOrderedCollection

^ RecentLocalBoards := anOrderedCollection.


Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
RecentLocalBoards

RecentLocalBoards ifNil: [RecentLocalBoards := OrderedCollection new. RecentLocalBoards addFirst: 'test'].
^ RecentLocalBoards

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@ buildRecentBoardsSpecWith: aBuilder

| spec |
self usedBuilder: aBuilder.
spec := aBuilder pluggableWindowSpec new
spec := aBuilder pluggablePanelSpec new
model: self;
label: 'Recent Boards';
layout: #vertical:;
"label: 'Recent Boards';"
layout: #vertical;
frame: (0@0.2 corner: 1@1);
children:
{self buildRecentLocalBoardsSpecWith: aBuilder.
self buildRecentGitHubBoardsSpecWith: aBuilder
};

yourself.
^ aBuilder build: spec.
^ aBuilder build: spec.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
currently not in use
buildRecentGitHubBoardsButtonSpecWith: aBuilder withBoardInfo: aDictionary

Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ buildRecentGitHubBoardsSpecWith: aBuilder

| spec |
self usedBuilder: aBuilder.
spec := aBuilder pluggableWindowSpec new
spec := aBuilder pluggablePanelSpec new
model: self;
label: 'Recent Local Boards';
layout: #horizontal:;
"label: 'Recent Local Boards';"

"frame: ([email protected] corner: 1@1);"
children:
{self RecentGitHubBoards: [:each | self buildRecentGitHubBoardsButtonSpecWith: aBuilder]
};
{"self class RecentGitHubBoards: [:recentGitHubBoard | self buildRecentGitHubBoardsButtonSpecWith: aBuilder withBoardInfo: recentGitHubBoard]
"};
layout: #horizontal;
yourself.
^ aBuilder build: spec.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
toolbuilder
buildRecentLocalBoardsButtonSpecWith: aBuilder withName: aName


^ aBuilder pluggableButtonSpec new
model: self;
label: aName;
yourself.

Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
toolbuilder
buildRecentLocalBoardsChildren

|children|
children := ( self class RecentLocalBoards: [:NameOfRecentLocalBoard | self buildRecentLocalBoardsButtonSpecWith: self usedBuilder withName: NameOfRecentLocalBoard] )asOrderedCollection

"pluggableButtonSpec new
model: self;
label:
yourself."

Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
toolbuilder
buildRecentLocalBoardsSpecWith: aBuilder

| spec |
self usedBuilder: aBuilder.
spec := aBuilder pluggableWindowSpec new
model: self;
label: 'Recent Local Boards';
layout: #horizontal:;
"frame: ([email protected] corner: 1@1);"
children:
{self RecentLocalBoards: [:each | self buildRecentLocalBoardsButtonSpecWith: aBuilder]
};
yourself.
^ aBuilder build: spec.
^ aBuilder pluggableScrollPaneSpec new
frame: (0@0 corner: 0.2@1);
name: #RecentLocalBoards;
model: self;
"scrollBarThickness: 20;"
vScrollBarPolicy: #never;
children: #buildRecentLocalBoardsChildren;
layout: #horizontal;
yourself.

Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ buildWith: aBuilder
model: self;
label: 'Landing Page';
minimumExtent: 500px @200px;
"layout: #horizontal:;"
children:
{self buildSidebarSpecWith: aBuilder.
self buildRecentBoardsSpecWith: aBuilder
"self buildRecentBoardsSpecWith: aBuilder."

};

yourself.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
currently not in use
forlaterbuildRecentLocalBoardsSpecWith: aBuilder

^ aBuilder pluggablePanelSpec new
model: self;
"label: 'Recent Local Boards';"

"frame: ([email protected] corner: 1@1);"
children:
{"self class RecentLocalBoards: [:NameOfRecentLocalBoard | self buildRecentLocalBoardsButtonSpecWith: aBuilder withName: NameOfRecentLocalBoard]
"
self buildRecentLocalBoardsButtonSpecWith: aBuilder withName: 'hi'.
self buildRecentLocalBoardsButtonSpecWith: aBuilder withName: 'test'

};
layout: #horizontal;
yourself.


2 changes: 1 addition & 1 deletion Squello-Core.package/SPBLandingPage.class/instance/list.st
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ list
"returns #() with strings"


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


"^ #( apple tree )"
Expand Down
22 changes: 13 additions & 9 deletions Squello-Core.package/SPBLandingPage.class/methodProperties.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
{
"class" : {
"RecentGitHubBoards" : "Haru 6/9/2024 13:47",
"RecentGitHubBoards:" : "Haru 6/9/2024 14:11",
"RecentLocalBoards" : "Haru 6/9/2024 20:21",
"RecentLocalBoards:" : "Haru 6/9/2024 13:42",
"numberOfRecentGitHubBoards" : "Haru 6/8/2024 12:38",
"numberOfRecentLocalBoards" : "Haru 6/8/2024 12:37",
"open" : "Haru 6/1/2024 12:28" },
"instance" : {
"RecentLocalBoards" : "Haru 6/8/2024 12:56",
"RecentLocalBoards:" : "Haru 6/8/2024 12:56",
"buildAthentificationSpecWith:" : "Haru 6/7/2024 12:15",
"buildManageLocalBoardsSpecWith:" : "Haru 6/7/2024 12:15",
"buildNewLocalBoardSpecWith:" : "Haru 6/7/2024 12:14",
"buildOpenBoardSpecWith:" : "Haru 6/7/2024 12:14",
"buildRecentBoardsSpecWith:" : "Haru 6/8/2024 13:39",
"buildRecentGitHubBoardsButtonSpecWith:" : "Haru 6/8/2024 13:42",
"buildRecentGitHubBoardsSpecWith:" : "Haru 6/8/2024 13:42",
"buildRecentLocalBoardsButtonSpecWith:" : "Haru 6/7/2024 15:50",
"buildRecentLocalBoardsSpecWith:" : "Haru 6/8/2024 12:53",
"buildRecentBoardsSpecWith:" : "Haru 6/9/2024 19:55",
"buildRecentGitHubBoardsButtonSpecWith:withBoardInfo:" : "Haru 6/9/2024 13:57",
"buildRecentGitHubBoardsSpecWith:" : "Haru 6/9/2024 19:55",
"buildRecentLocalBoardsButtonSpecWith:withName:" : "Haru 6/9/2024 20:21",
"buildRecentLocalBoardsChildren" : "Haru 6/9/2024 20:18",
"buildRecentLocalBoardsSpecWith:" : "Haru 6/9/2024 20:28",
"buildResetUserAccountSpecWith:" : "Haru 6/7/2024 12:15",
"buildSidebarSpecWith:" : "Haru 6/8/2024 13:37",
"buildWith:" : "Haru 6/7/2024 15:07",
"buildWith:" : "Haru 6/10/2024 11:02",
"changeRecentGitHubBoards:" : "Haru 6/8/2024 12:46",
"changeRecentLocalBoards:" : "Haru 6/8/2024 12:40",
"forlaterbuildRecentLocalBoardsSpecWith:" : "Haru 6/9/2024 20:09",
"initialize" : "Haru 6/7/2024 11:58",
"lastSidebarPart" : "Haru 6/7/2024 11:57",
"lastSidebarPart:" : "Haru 6/7/2024 11:57",
"list" : "Haru 6/7/2024 11:55",
"list" : "Haru 6/9/2024 14:12",
"open" : "Haru 6/1/2024 12:22",
"usedBuilder" : "Haru 6/1/2024 12:39",
"usedBuilder:" : "Haru 6/1/2024 12:40" } }
8 changes: 3 additions & 5 deletions Squello-Core.package/SPBLandingPage.class/properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,12 @@
"classinstvars" : [
],
"classvars" : [
],
"RecentGitHubBoards",
"RecentLocalBoards" ],
"commentStamp" : "",
"instvars" : [
"usedBuilder",
"window",
"lastSidebarPart",
"RecentLocalBoards",
"RecentGitHubBoards" ],
"lastSidebarPart" ],
"name" : "SPBLandingPage",
"pools" : [
],
Expand Down

0 comments on commit 5737031

Please sign in to comment.