Skip to content

Commit

Permalink
Add icons in front of sidebar lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke committed Jun 6, 2022
1 parent 64a03e8 commit e48ee98
Show file tree
Hide file tree
Showing 14 changed files with 47 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ buildSidebarLabelListSpecWith: aBuilder
dragItem: #dragFromLabels:;
dropAccept: #wantsLabelDrop:;
dropItem: #dropOnLabels:at:;
icon: #labelIcon:;
yourself.

Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ buildSidebarPotentialLabelListSpecWith: aBuilder
dragItem: #dragFromPotentialLabels:;
dropAccept: #wantsLabelDrop:;
dropItem: #dropOnPotentialLabels:at:;
icon: #potentialLabelIcon:;
yourself.

5 changes: 5 additions & 0 deletions Squello-Core.package/SPBBoard.class/instance/labelIcon..st
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
labelIcon: aNumber

aNumber = 1 ifTrue: [^ nil].
^ (self activeCard labels at: aNumber - 1) asForm.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
accessing
potentialLabelIcon: aNumber

aNumber = 1 ifTrue: [^ nil].
^ (self potentialLabelsList at: aNumber) asForm.
6 changes: 4 additions & 2 deletions Squello-Core.package/SPBBoard.class/methodProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
"buildSidebarAssigneeListSpecWith:" : "mcr 5/27/2022 18:28",
"buildSidebarAssigneePanelSpecWith:" : "mcr 5/27/2022 19:05",
"buildSidebarDescriptionSpecWith:" : "lo 6/5/2022 14:45",
"buildSidebarLabelListSpecWith:" : "lo 6/5/2022 14:43",
"buildSidebarLabelListSpecWith:" : "lo 6/6/2022 12:20",
"buildSidebarLabelPanelSpecWith:" : "lo 6/5/2022 14:45",
"buildSidebarPotentialAssigneeListSpecWith:" : "mcr 5/27/2022 18:28",
"buildSidebarPotentialLabelListSpecWith:" : "lo 6/5/2022 15:12",
"buildSidebarPotentialLabelListSpecWith:" : "lo 6/6/2022 12:43",
"buildSidebarSpecWith:" : "lo 6/5/2022 14:45",
"buildSidebarTitleSpecWith:" : "mcr 5/27/2022 19:06",
"buildSyncButton:" : "mcr 5/31/2022 00:08",
Expand All @@ -46,6 +46,7 @@
"dropOnPotentialAssignees:at:" : "mcr 5/30/2022 21:47",
"dropOnPotentialLabels:at:" : "lo 6/5/2022 14:48",
"initialize" : "NTK 6/1/2022 16:39",
"labelIcon:" : "lo 6/6/2022 12:23",
"labelSelected" : "lo 6/5/2022 14:56",
"labelSelected:" : "lo 6/5/2022 15:14",
"lanes" : "lo 5/26/2022 23:15",
Expand All @@ -55,6 +56,7 @@
"potentialAssignees" : "mcr 5/28/2022 01:44",
"potentialAssignees:" : "mcr 5/27/2022 15:29",
"potentialAssigneesList" : "mcr 5/27/2022 19:17",
"potentialLabelIcon:" : "lo 6/6/2022 12:45",
"potentialLabelSelected" : "lo 6/5/2022 14:52",
"potentialLabelSelected:" : "lo 6/5/2022 14:53",
"potentialLabels" : "lo 6/5/2022 14:39",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ api calls delete request
deleteLabel: aString fromIssue: aNumber user: anOtherString repo: aThirdString

| stream url |
url := 'https://api.github.com/repos/' , anOtherString , '/' , aThirdString, '/issues/' , aNumber , '/labels/' , aString.
url := ('https://api.github.com/repos/' , anOtherString , '/' , aThirdString, '/issues/' , aNumber , '/labels/' , aString) urlEncoded.

self halt.

stream := WriteStream with: OrderedCollection new.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"createPostRequestTo:" : "mcr 5/27/2022 23:08",
"deleteAssignees:fromIssue:user:repo:" : "mcr 5/28/2022 00:45",
"deleteColumn:" : "mcr 5/28/2022 00:45",
"deleteLabel:fromIssue:user:repo:" : "lo 6/5/2022 15:00",
"deleteLabel:fromIssue:user:repo:" : "lo 6/6/2022 12:40",
"deleteRequestToURL:" : "mcr 5/28/2022 00:31",
"deleteRequestToURL:withData:" : "mcr 5/28/2022 00:28",
"getRequestToURL:" : "mcr 5/27/2022 23:08",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ createCard: aDictionary into: aSPBLane
| cardJson payload |
cardJson := self api createIssue: aDictionary user: self user repo: self repo.
payload := Dictionary newFrom: {'content_id' -> (cardJson at: 'id') . 'content_type' -> 'Issue'}.
^ self api addIssue: payload toColumn: aSPBLane id.
^ self api addIssue: payload ToColumn: aSPBLane id.
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"api" : "mcr 5/28/2022 01:24",
"api:" : "mcr 5/28/2022 01:24",
"checkUser:" : "jh 6/1/2022 00:40",
"createCard:into:" : "mcr 5/31/2022 17:49",
"createCard:into:" : "lo 6/6/2022 11:34",
"createColumn:" : "mcr 5/31/2022 18:41",
"createLabel:" : "mcr 5/31/2022 14:29",
"deleteAssignees:fromCard:" : "mcr 5/31/2022 18:31",
"deleteColumn:" : "mcr 5/31/2022 14:29",
"deleteLabel:fromCard:" : "lo 6/5/2022 14:49",
"deleteLabel:fromCard:" : "lo 6/6/2022 12:38",
"error" : "lo 6/5/2022 14:34",
"error:" : "lo 6/5/2022 14:34",
"initialize" : "mcr 5/28/2022 01:23",
Expand Down
2 changes: 1 addition & 1 deletion Squello-Core.package/SPBLabel.class/class/newFrom..st
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ newFrom: aJsonObject
instance
title: (aJsonObject at: 'name');
id: (aJsonObject at: 'id');
color: (aJsonObject at: 'color');
color: (Color fromString: (aJsonObject at: 'color'));
description: (aJsonObject at: 'description').

^ instance.
11 changes: 11 additions & 0 deletions Squello-Core.package/SPBLabel.class/instance/asForm.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
as yet unclassified
asForm

| array |
array := (1 to: self extent x * self extent y) collect: [:i | self color pixelValueForDepth: self formDepth].

^ Form
extent: self extent
depth: self formDepth
fromArray: array
offset: (0@0).
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBLabel.class/instance/extent.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
extent

^ 12 @ 12.
4 changes: 4 additions & 0 deletions Squello-Core.package/SPBLabel.class/instance/formDepth.st
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
as yet unclassified
formDepth

^ 32.
5 changes: 4 additions & 1 deletion Squello-Core.package/SPBLabel.class/methodProperties.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"class" : {
"newFrom:" : "lo 6/5/2022 15:03" },
"newFrom:" : "lo 6/6/2022 12:25" },
"instance" : {
"=" : "lo 6/5/2022 14:59",
"asForm" : "lo 6/6/2022 12:19",
"asString" : "lo 6/5/2022 14:49",
"color" : "lo 5/16/2022 22:01",
"color:" : "lo 5/23/2022 16:52",
"description" : "lo 5/16/2022 22:01",
"description:" : "lo 5/16/2022 21:45",
"extent" : "lo 6/6/2022 12:19",
"formDepth" : "lo 6/6/2022 12:20",
"hash" : "lo 6/5/2022 14:59",
"id" : "lo 5/16/2022 22:01",
"id:" : "lo 5/16/2022 21:45",
Expand Down

0 comments on commit e48ee98

Please sign in to comment.