Skip to content

Commit

Permalink
local board sketch
Browse files Browse the repository at this point in the history
  • Loading branch information
FePrHPI committed May 23, 2024
1 parent dd04041 commit edfdc20
Show file tree
Hide file tree
Showing 63 changed files with 313 additions and 7 deletions.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
assignees
addAssignee: anSPBAssignee toCard: anSPBCard

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
labels
addLabel: aSPBLabel toCard: aSPBCard

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cards
createCardsFromColumn: anSPBColumn

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
columns
createColumn: aString

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cards
createNewCard: aDictionary into: anSPBColumn

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
assignees
deleteAssignee: anSPBAssignee fromCard: anSPBCard

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
labels
deleteLabel: anSPBLabel fromCard: anSPBCard

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
assignees
listPossibleAssignees

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
labels
listPossibleLabels

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
columns
moveCard: anSPBCard after: anotherSPBCard toColumn: anSPBColumn

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
columns
moveCardToTop: aSPBCard toColumn: aSPBColumn

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
columns
moveColumn: anSPBColumn after: anotherSPBColumn

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
columns
moveColumnToFront: anSPBColumn

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
columns
queryColumns

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
columns
renameColumn: anSPBColumn to: aString

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cards
updateCard: anSPBCard

self subclassResponsibility.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"class" : {
},
"instance" : {
"addAssignee:toCard:" : "FP 5/23/2024 10:41",
"addLabel:toCard:" : "FP 5/23/2024 10:30",
"createCardsFromColumn:" : "FP 5/23/2024 10:12",
"createColumn:" : "FP 5/23/2024 10:37",
"createNewCard:into:" : "FP 5/23/2024 10:21",
"deleteAssignee:fromCard:" : "FP 5/23/2024 10:41",
"deleteLabel:fromCard:" : "FP 5/23/2024 10:32",
"listPossibleAssignees" : "FP 5/23/2024 10:35",
"listPossibleLabels" : "FP 5/23/2024 10:35",
"moveCard:after:toColumn:" : "FP 5/23/2024 10:35",
"moveCardToTop:toColumn:" : "FP 5/23/2024 10:35",
"moveColumn:after:" : "FP 5/23/2024 10:36",
"moveColumnToFront:" : "FP 5/23/2024 10:35",
"queryColumns" : "FP 5/23/2024 10:35",
"renameColumn:to:" : "FP 5/23/2024 10:35",
"updateCard:" : "FP 5/23/2024 10:39" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"category" : "Squello-Core",
"classinstvars" : [
],
"classvars" : [
],
"commentStamp" : "",
"instvars" : [
],
"name" : "SPBAbstractBoardProvider",
"pools" : [
],
"super" : "Object",
"type" : "normal" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
as yet unclassified
newWithName: aString id: anObject

^ self new
username: aString;
id: anObject;
yourself.
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBAssignee.class/methodProperties.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"class" : {
"newFrom:" : "NTK 7/23/2022 10:19" },
"newFrom:" : "NTK 7/23/2022 10:19",
"newWithName:id:" : "FP 5/23/2024 10:05" },
"instance" : {
"=" : "LW 7/14/2022 12:24",
"asString" : "lo 5/28/2022 12:17",
Expand Down
12 changes: 12 additions & 0 deletions Squello-Core.package/SPBBoard.class/class/newLocalWith..st
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
startup
newLocalWith: aString

| instance |
instance := self new.
instance makeLocal.

[instance parseLocalRepoFromUrl: aString]
on: Error do: [self errorParsingUrl. ^ self].

instance buildAndOpen.
^ instance.
1 change: 1 addition & 0 deletions Squello-Core.package/SPBBoard.class/class/open.st
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ open
prompt := self promptUrl.
prompt = '' ifTrue: [^ self].
self lastProject: prompt.
(prompt beginsWith: 'local') ifTrue: [^ self newLocalWith: prompt].
^ self newWith: prompt.

4 changes: 4 additions & 0 deletions Squello-Core.package/SPBBoard.class/instance/localPrefix.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialize-release
localPrefix

^ 'local.'.
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBBoard.class/instance/makeLocal.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
initialize-release
makeLocal

self boardProvider: SPBLocalBoardProvider new.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
initialize-release
parseLocalRepoFromUrl: aString

| repoNum |
(aString beginsWith: self localPrefix) ifFalse: [^ self error].
repoNum := aString allButFirst: self localPrefix size.

self boardProvider repo: repoNum asInteger.
6 changes: 5 additions & 1 deletion Squello-Core.package/SPBBoard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@
"errorParsingUrl" : "mcr 8/4/2022 01:05",
"lastProject" : "tk 7/30/2022 21:54",
"lastProject:" : "tk 7/30/2022 21:54",
"newLocalWith:" : "FP 5/23/2024 09:43",
"newWith:" : "mcr 8/4/2022 01:09",
"open" : "mcr 8/4/2022 01:31",
"open" : "FP 5/23/2024 09:26",
"promptUrl" : "mcr 8/4/2022 01:31",
"registerInAppsMenu" : "lo 6/4/2022 23:19" },
"instance" : {
Expand Down Expand Up @@ -55,6 +56,9 @@
"indexOfColumn:" : "lo 8/3/2022 12:57",
"initialize" : "jh 7/29/2022 11:36",
"loadProject:" : "mcr 8/4/2022 01:24",
"localPrefix" : "FP 5/23/2024 09:38",
"makeLocal" : "FP 5/23/2024 09:30",
"parseLocalRepoFromUrl:" : "FP 5/23/2024 09:40",
"parseRepoFromUrl:" : "mcr 8/4/2022 01:06",
"removeColumn:" : "lo 8/1/2022 14:09",
"rerenderColumns" : "lo 7/31/2022 16:42",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
instance creation
newWithTitle: aString body: anotherString id: anObject into: anSPBColumn

^ self new
id: anObject;
boardProvider: anSPBColumn boardProvider;
changeProvider: anSPBColumn changeProvider;
setupMouseEvents;
title: aString;
description: anotherString;
buildUI;
openInWorld;
yourself.
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBCard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
"buildNewFromRemote:into:" : "mcr 8/3/2022 14:56",
"defaultCardExtent" : "lo 8/1/2022 12:18",
"indicatorCardEdgeOffset" : "lo 8/1/2022 12:23",
"newFrom:with:" : "FP 5/20/2024 19:15" },
"newFrom:with:" : "FP 5/20/2024 19:15",
"newWithTitle:body:id:into:" : "FP 5/23/2024 10:26" },
"instance" : {
"=" : "lo 7/31/2022 18:14",
"addAssignee:" : "lo 7/31/2022 16:22",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
instance creation
newWithTitle: aString id: anObject

^ self new
title: aString;
id: anObject;
yourself.
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBColumn.class/methodProperties.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"class" : {
"defaultSpaceBetweenCards" : "mcr 7/19/2022 19:56",
"newFrom:" : "mcr 7/12/2022 16:44" },
"newFrom:" : "mcr 7/12/2022 16:44",
"newWithTitle:id:" : "FP 5/23/2024 09:56" },
"instance" : {
"=" : "jh 7/31/2022 13:04",
"activeCard" : "mcr 8/1/2022 02:30",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
assignees
labels
deleteLabel: anSPBLabel fromCard: anSPBCard

self api deleteLabel: anSPBLabel asString fromIssue: anSPBCard issueId user: self user repo: self repo.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
"name" : "SPBGithubBoardProvider",
"pools" : [
],
"super" : "Object",
"super" : "SPBAbstractBoardProvider",
"type" : "normal" }
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
as yet unclassified
newWithName: aString id: anObject color: aColor

^ self new
title: aString;
id: anObject;
color: aColor;
yourself.
3 changes: 2 additions & 1 deletion Squello-Core.package/SPBLabel.class/methodProperties.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"class" : {
"newFrom:" : "mcr 8/4/2022 02:14" },
"newFrom:" : "mcr 8/4/2022 02:14",
"newWithName:id:color:" : "FP 5/23/2024 10:08" },
"instance" : {
"=" : "jh 7/31/2022 13:05",
"asForm" : "tk 8/2/2022 23:37",
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
assignees
addAssignee: anSPBAssignee toCard: anSPBCard


Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
labels
addLabel: aSPBLabel toCard: aSPBCard

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cards
createCardsFromColumn: aSPBColumn

self defaultCards.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
columns
createColumn: aString

^ SPBColumn newWithTitle: aString id: self nextId.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
cards
createNewCard: aDictionary into: anSPBColumn

^ SPBCard newWithTitle: (aDictionary at: 'title') body: (aDictionary at: 'body') id: self nextId into: anSPBColumn.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
defaults
defaultAssignees

^ { SPBAssignee newWithName: 'you' id: 1.
SPBAssignee newWithName: 'your cat' id: 2
} asOrderedCollection.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
defaults
defaultCards

^ { } asOrderedCollection.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
defaults
defaultColumns

^ { (SPBColumn newWithTitle: 'ToDo' id: 1) boardProvider: self; yourself.
(SPBColumn newWithTitle: 'InProgress' id: 2) boardProvider: self; yourself.
(SPBColumn newWithTitle: 'Done' id: 3) boardProvider: self; yourself.
} asOrderedCollection.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
defaults
defaultLabels

^ { SPBLabel newWithName: 'Bug' id: 1 color: Color red.
SPBLabel newWithName: 'Feature' id: 2 color: Color blue.} asOrderedCollection.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
assignees
deleteAssignee: anSPBAssignee fromCard: anSPBCard

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
labels
deleteLabel: anSPBLabel fromCard: anSPBCard

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
assignees
listPossibleAssignees

^ self defaultAssignees.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
labels
listPossibleLabels

^ self defaultLabels.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
columns
moveCard: anSPBCard after: anotherSPBCard toColumn: anSPBColumn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
columns
moveCardToTop: aSPBCard toColumn: aSPBColumn

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
columns
moveColumn: anSPBColumn after: anotherSPBColumn
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
columns
moveColumnToFront: anSPBColumn

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
cards
nextId

currentId ifNil: [currentId := 10].
^ currentId := currentId + 1.
Loading

0 comments on commit edfdc20

Please sign in to comment.