Add collaborators names (#1223)

* add random usernames

* add username state

* add username input

* ability to set names

* fix tests

* set username oon mobile

* remove auto generated names

* remove commented code

* always string

* updaate snapshots

* maintain username when clearing canvas

* Update src/renderer/renderScene.ts

Co-Authored-By: Lipis <lipiridis@gmail.com>

* add border

* fix styles

Co-authored-by: Pete Hunt <petehunt@users.noreply.github.com>
Co-authored-by: Faustino Kialungila <faustino.kialungila@gmail.com>
Co-authored-by: Lipis <lipiridis@gmail.com>
This commit is contained in:
Kostas Bariotis 2020-04-07 14:02:42 +01:00 committed by GitHub
parent 0c3d34261e
commit 67805bc7a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 154 additions and 2 deletions

View file

@ -38,6 +38,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -233,6 +234,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -348,6 +350,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -616,6 +619,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -772,6 +776,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -967,6 +972,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -1221,6 +1227,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -1589,6 +1596,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -2205,6 +2213,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -2320,6 +2329,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -2435,6 +2445,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -2550,6 +2561,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -2687,6 +2699,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -2824,6 +2837,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -2961,6 +2975,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -3076,6 +3091,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -3191,6 +3207,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -3328,6 +3345,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -3443,6 +3461,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": true,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -3513,6 +3532,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -4379,6 +4399,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -4793,6 +4814,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -5116,6 +5138,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -5352,6 +5375,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -5521,6 +5545,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -6339,6 +6364,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -7050,6 +7076,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -7658,6 +7685,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -8168,6 +8196,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -8629,6 +8658,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -8997,6 +9027,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -9276,6 +9307,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -9486,6 +9518,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -10359,6 +10392,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -11123,6 +11157,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -11782,6 +11817,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -12336,6 +12372,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -12707,6 +12744,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -12761,6 +12799,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": true,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -12815,6 +12854,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}
@ -13106,6 +13146,7 @@ Object {
"selectionElement": null,
"shouldCacheIgnoreZoom": false,
"showShortcutsDialog": false,
"username": "",
"viewBackgroundColor": "#ffffff",
"zoom": 1,
}