-
Notifications
You must be signed in to change notification settings - Fork 29
🎨 [Frontend] Feature: Hide username #7406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
mergify
merged 56 commits into
ITISFoundation:master
from
odeimaiz:feature/hide-username
Mar 24, 2025
Merged
Changes from 22 commits
Commits
Show all changes
56 commits
Select commit
Hold shift + click to select a range
ce0a606
drafts test
pcrespov d5f2e7e
privacy
pcrespov 47d8bc5
migration
pcrespov c7b2357
update OAS
pcrespov badef8f
services/webserver api version: 0.61.2 → 0.61.3
pcrespov 8e89260
fixes tests
pcrespov afe375c
cleanuppre
pcrespov c672b55
fixes test
pcrespov e72b5d5
fixes test
pcrespov d2fbd04
helpers
pcrespov ef5f72a
self test
pcrespov 8eb1612
fixes test
pcrespov ae47f89
Merge branch 'master' into is38/username-privacy
pcrespov 3431e8d
hideUsername field and message
odeimaiz f665a5c
Merge branch 'master' into feature/hide-username
odeimaiz 2057d34
optOutMessage
odeimaiz 9cd1a0c
optOutMessage
odeimaiz 43c5e89
eyes next to the fields
odeimaiz 12264dd
dynamic eyes
odeimaiz b048916
minor
odeimaiz 27c13c8
username is nullable
odeimaiz c11d3a0
minor
odeimaiz f138b4c
missing fields
pcrespov 3a30f39
constant
pcrespov 4aa012a
refactor
pcrespov 86422c2
test
pcrespov 38400c1
retire put
pcrespov 8ea9dfd
update OAS
pcrespov 4c3f5be
services/webserver api version: 0.61.3 → 0.61.4
pcrespov e37dc5f
wrong import
pcrespov a0c3bb2
wrong example
pcrespov f07de3f
fixes test
pcrespov 12d0665
Merge branch 'master' into feature/hide-username
odeimaiz f16bd1d
Merge branch 'is38/missing-username-privacy' of github.com:pcrespov/o…
odeimaiz e9735c4
minor
odeimaiz 6fca955
more startup calls
odeimaiz 03a15c3
missing fields
pcrespov b67d799
constant
pcrespov 3c17c2b
refactor
pcrespov fd4dad6
test
pcrespov a205478
retire put
pcrespov 00eaff1
update OAS
pcrespov 5e0789f
services/webserver api version: 0.61.3 → 0.61.4
pcrespov 06e7f4c
wrong import
pcrespov eaa357e
wrong example
pcrespov 3de5949
fixes test
pcrespov ea59980
@odeimaiz review: missing field
pcrespov 1e0eaff
better practices
odeimaiz d63516b
minor
odeimaiz f0f4e0f
enable button
odeimaiz f5107dc
profileFields
odeimaiz 4866179
Merge branch 'is38/missing-username-privacy' of github.com:pcrespov/o…
odeimaiz 6ea4ba7
minor
odeimaiz 66e3490
do not check tasks
odeimaiz fd65ac4
Merge branch 'master' into feature/hide-username
odeimaiz 10f741d
bad merge
odeimaiz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
services/static-webserver/client/source/class/osparc/ui/form/renderer/SingleWithIcon.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
/* ************************************************************************ | ||
|
||
osparc - the simcore frontend | ||
|
||
https://osparc.io | ||
|
||
Copyright: | ||
2025 IT'IS Foundation, https://itis.swiss | ||
|
||
License: | ||
MIT: https://opensource.org/licenses/MIT | ||
|
||
Authors: | ||
* Odei Maiz (odeimaiz) | ||
|
||
************************************************************************ */ | ||
|
||
qx.Class.define("osparc.ui.form.renderer.SingleWithIcon", { | ||
extend: qx.ui.form.renderer.Single, | ||
|
||
construct: function(form, icons) { | ||
if (icons) { | ||
this.__icons = icons; | ||
} else { | ||
this.__icons = {}; | ||
} | ||
|
||
this.base(arguments, form); | ||
}, | ||
|
||
members: { | ||
__icons: null, | ||
|
||
setIcons: function(icons) { | ||
this.__icons = icons; | ||
|
||
this._onFormChange(); | ||
}, | ||
|
||
// overridden | ||
addItems: function(items, names, title, itemOptions, headerOptions) { | ||
this.base(arguments, items, names, title, itemOptions, headerOptions); | ||
|
||
// header | ||
let row = title === null ? 0 : 1; | ||
|
||
for (let i = 0; i < items.length; i++) { | ||
if (i in this.__icons) { | ||
const image = new qx.ui.basic.Image(this.__icons[i]).set({ | ||
alignY: "middle", | ||
}); | ||
this._add(image, { | ||
row, | ||
column: 2, | ||
}); | ||
} | ||
|
||
row++; | ||
} | ||
}, | ||
} | ||
}); |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.