From e1af036f1c2aa7f8ab241921e4f0e6d44ec41439 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Wed, 1 Apr 2020 15:26:47 -0400 Subject: [PATCH 1/3] groups: show tile icon, not full color --- pkg/arvo/app/contacts/img/Chat.png | Bin 0 -> 4779 bytes pkg/arvo/app/contacts/img/Link.png | Bin 0 -> 3407 bytes pkg/arvo/app/contacts/img/Publish.png | Bin 0 -> 3838 bytes .../src/js/components/lib/group-detail.js | 29 ++++++++++++------ 4 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 pkg/arvo/app/contacts/img/Chat.png create mode 100644 pkg/arvo/app/contacts/img/Link.png create mode 100644 pkg/arvo/app/contacts/img/Publish.png diff --git a/pkg/arvo/app/contacts/img/Chat.png b/pkg/arvo/app/contacts/img/Chat.png new file mode 100644 index 0000000000000000000000000000000000000000..58223a5d63968ee75c496d22331ab5699c6c7bc8 GIT binary patch literal 4779 zcmV;c5>)MpP)@~0drDELIAGL9O(c600d`2O+f$vv5yP2NChYC2J6acsZFEkKv0m)tG{}|E$WM8!7 zJNM{}G}3;}Nay!FZVFo8afq z+xB7ibF*t7VeHK<7(?;G{1AfWnF1)?lwj~-RHU#DY8YuJ^xVH3T!-|UVF<9zKp!baS#@$>!N&waem>s@;b^A59C03X^=@GA^sgX<9EXPhV0@QPZY zQ4ELSit%RKR@?SHjM-4332#_cNev^`yK|^8r%rZ<5QcBO=G6ORUo0`)5Ez9(!FYmn zp}0aLL>2ND_&&UsTOmE4`8OJ`XiNYKz$MbGJ(Z)zw5=dRq#9|;z+>nY9E{>{NDFiL zeT{j#ek#KXY06-VPzVmqLrt;v6%3CLlS~l`B_-7H*1qJJ{@6IAc?DC1jOY`5KFk^> z_(NHsTM_u(Qy6EXLjME0fUz$NboVo>Mqk4?8MNfDV1j>Y7U))lB`hpDI;`c#!X1n8 zPeYBkBG?$hk#Oi9#A3RZ$7hDfv-rz{kqCZ1C+_4Ho zKJZz@jMR59?>rcXxMf+x+-r`|8^pp?dI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5a%Fek>vbHs%Sjmh;Sh$qIJhad&Z#s?yjQB#XYUFD)#6< z;R=QAKI6~X(V229=_h~Z_#*ijfeH^5p!0*7Vus5ZHiT&St~5gm9xjz0MMTArrIMT#71P(vRYb|Ari2;#f(A!| z4SZ~f?M=LXA?pyTxBb8Rm`jNTswoMgKG+sfLPzy>>zUM_+?1Y}wN(T&V|SBdrgTc# b&)3nSEe^CCVn_`Cxe9QwIeV(w3Pboer+Y$# literal 0 HcmV?d00001 diff --git a/pkg/interface/groups/src/js/components/lib/group-detail.js b/pkg/interface/groups/src/js/components/lib/group-detail.js index 08e2aa84d6..bce844eb43 100644 --- a/pkg/interface/groups/src/js/components/lib/group-detail.js +++ b/pkg/interface/groups/src/js/components/lib/group-detail.js @@ -57,7 +57,15 @@ export class GroupDetail extends Component { let channelList = (
); - channelList = Object.keys(props.association).map((key) => { + channelList = Object.keys(props.association).sort((a, b) => { + let aChannel = props.association[a]; + let bChannel = props.association[b]; + + let aTitle = aChannel.metadata.title || a; + let bTitle = bChannel.metadata.title || b; + + return aTitle.toLowerCase().localeCompare(bTitle.toLowerCase()); + }).map((key) => { let channel = props.association[key]; if (!('metadata' in channel)) { return
; @@ -75,20 +83,23 @@ export class GroupDetail extends Component { app = app.charAt(0).toUpperCase() + app.slice(1) return ( -
  • -
    +
  • +

    {title}

    -

    +

    {app} - Open + + Open +

  • - ) + ); }) let backLink = props.location.pathname; From e70643b44da66a05e9a417810d7f7822c4562faf Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Wed, 1 Apr 2020 15:46:59 -0400 Subject: [PATCH 2/3] groups: default to coloured tile if unknown app --- .../src/js/components/lib/group-detail.js | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/pkg/interface/groups/src/js/components/lib/group-detail.js b/pkg/interface/groups/src/js/components/lib/group-detail.js index bce844eb43..0fdd47d159 100644 --- a/pkg/interface/groups/src/js/components/lib/group-detail.js +++ b/pkg/interface/groups/src/js/components/lib/group-detail.js @@ -80,15 +80,23 @@ export class GroupDetail extends Component { let app = channel["app-name"] || "Unknown"; let channelPath = channel["app-path"]; let link = `/~${app}/join${channelPath}` - app = app.charAt(0).toUpperCase() + app.slice(1) + app = app.charAt(0).toUpperCase() + app.slice(1); + + let tile = (app === "Unknown") + ?
    + : return (
  • - + {tile}

    {title}

    From 8c7898786e04782207aea60660d7ae29decf3592 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Wed, 1 Apr 2020 21:08:00 -0400 Subject: [PATCH 3/3] groups: add slight background overlay to channel tiles --- .../src/js/components/lib/group-detail.js | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pkg/interface/groups/src/js/components/lib/group-detail.js b/pkg/interface/groups/src/js/components/lib/group-detail.js index 0fdd47d159..dae8f24a62 100644 --- a/pkg/interface/groups/src/js/components/lib/group-detail.js +++ b/pkg/interface/groups/src/js/components/lib/group-detail.js @@ -82,17 +82,27 @@ export class GroupDetail extends Component { let link = `/~${app}/join${channelPath}` app = app.charAt(0).toUpperCase() + app.slice(1); + let overlay = { + r: parseInt(color.slice(0, 2), 16), + g: parseInt(color.slice(2, 4), 16), + b: parseInt(color.slice(4, 6), 16) + }; + let tile = (app === "Unknown") ?

    - : + :
    + +
    return (