-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 149b829
Showing
4 changed files
with
353 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,69 @@ | ||
# Appian User Initials Avatar | ||
Appian utility application to display user avatars based on a user's first and last name. | ||
|
||
![User Initials as Comment Header](./resources/img/user-initials-as-comment-header.png) | ||
|
||
![Github All Releases](https://img.shields.io/badge/Appian%20Version-19.4%2B-red) | ||
|
||
## Requirements | ||
|
||
The User Initials Avatar application depends on the following Appian Cloud approved plug-in(s): | ||
|
||
* Content Tools (v1.0.1) | ||
* finddocumentsbyname() | ||
|
||
## Installation | ||
|
||
Installing the Appian User Initials Avatar application follows the same process as installing any new Appian application into your environment. The application is ready for use upon installation, but if you would like to configure the default `initials set` and `style` properties then refer to the [Configuration](#Configuration) section. | ||
|
||
## Usage | ||
|
||
|
||
|
||
## Configuration | ||
|
||
### Set Security | ||
**UIA All Users** | ||
|
||
Members of this group are allowed to view all user initials avatars. | ||
|
||
**UIA Administrators** | ||
|
||
Members of this group will be given Administrator permissions to modify the User Initials Avatar application. | ||
|
||
|
||
### Set Default Constant Values | ||
**UIA_INITIALS_SET_DEFAULT** | ||
|
||
**Type:** `Number (Integer)` | ||
|
||
Represents the default initials set to display in the user's avatar. | ||
|
||
Acceptable Values: | ||
|
||
* `1` | ||
* `2` | ||
|
||
**UIA_STYLE_AVATAR_SINGLE_DEFAULT** | ||
|
||
**Type:** `Folder` | ||
|
||
Represents the default style for single initial avatars. | ||
|
||
Acceptable Values: | ||
|
||
* `Single Initial/appian` | ||
* `Single Initial/dark` | ||
* `Single Initial/light` | ||
|
||
**UIA_STYLE_AVATAR_DOUBLE_DEFAULT** | ||
|
||
**Type:** `Folder` | ||
|
||
Represents the default style for double initial avatars. | ||
|
||
Acceptable Values: | ||
|
||
* `Double Initials/appian` | ||
* `Double Initials/dark` | ||
* `Double Initials/light` |
This file contains 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,284 @@ | ||
a!columnsLayout( | ||
columns: { | ||
a!columnLayout( | ||
contents: { | ||
{ | ||
a!richTextDisplayField( | ||
value: a!richTextHeader(text: "Initial Set 1") | ||
), | ||
a!sideBySideLayout( | ||
alignVertical: "MIDDLE", | ||
items: { | ||
a!sideBySideItem( | ||
width: "MINIMIZE", | ||
item: a!imageField( | ||
images: { | ||
rule!UIA_documentAvatarSingleInitialForUserWithStyle( | ||
user: loggedInUser(), | ||
) | ||
}, | ||
style: "AVATAR", | ||
size:"SMALL", | ||
), | ||
), | ||
a!sideBySideItem( | ||
item: a!richTextDisplayField( | ||
labelPosition: "COLLAPSED", | ||
value: { | ||
a!richTextItem( | ||
text: rule!APN_displayUser(user: loggedInUser()), | ||
style: "STRONG", | ||
color: "ACCENT" | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Initials Set: ", style: "STRONG"), | ||
"1" | ||
} | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Avatar Style: ", style: "STRONG"), | ||
"Appian" | ||
} | ||
) | ||
} | ||
) | ||
) | ||
} | ||
), | ||
a!sideBySideLayout( | ||
alignVertical: "MIDDLE", | ||
items: { | ||
a!sideBySideItem( | ||
width: "MINIMIZE", | ||
item: a!imageField( | ||
images: { | ||
rule!UIA_documentAvatarSingleInitialForUserWithStyle( | ||
user: loggedInUser(), | ||
style: cons!UIA_STYLE_AVATAR_SINGLE_LIGHT | ||
) | ||
}, | ||
style: "AVATAR", | ||
size:"SMALL", | ||
), | ||
), | ||
a!sideBySideItem( | ||
item: a!richTextDisplayField( | ||
labelPosition: "COLLAPSED", | ||
value: { | ||
a!richTextItem( | ||
text: rule!APN_displayUser(user: loggedInUser()), | ||
style: "STRONG", | ||
color: "ACCENT" | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Initials Set: ", style: "STRONG"), | ||
"1" | ||
} | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Avatar Style: ", style: "STRONG"), | ||
"Light" | ||
} | ||
) | ||
} | ||
) | ||
) | ||
} | ||
), | ||
a!sideBySideLayout( | ||
alignVertical: "MIDDLE", | ||
items: { | ||
a!sideBySideItem( | ||
width: "MINIMIZE", | ||
item: a!imageField( | ||
images: { | ||
rule!UIA_documentAvatarSingleInitialForUserWithStyle( | ||
user: loggedInUser(), | ||
style: cons!UIA_STYLE_AVATAR_SINGLE_DARK | ||
) | ||
}, | ||
style: "AVATAR", | ||
size:"SMALL", | ||
), | ||
), | ||
a!sideBySideItem( | ||
item: a!richTextDisplayField( | ||
labelPosition: "COLLAPSED", | ||
value: { | ||
a!richTextItem( | ||
text: rule!APN_displayUser(user: loggedInUser()), | ||
style: "STRONG", | ||
color: "ACCENT" | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Initials Set: ", style: "STRONG"), | ||
"1" | ||
} | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Avatar Style: ", style: "STRONG"), | ||
"Dark" | ||
} | ||
) | ||
} | ||
) | ||
) | ||
} | ||
), | ||
} | ||
} | ||
), | ||
a!columnLayout( | ||
contents: { | ||
{ | ||
a!richTextDisplayField( | ||
value: a!richTextHeader(text: "Initial Set 2") | ||
), | ||
a!sideBySideLayout( | ||
alignVertical: "MIDDLE", | ||
items: { | ||
a!sideBySideItem( | ||
width: "MINIMIZE", | ||
item: a!imageField( | ||
images: { | ||
rule!UIA_documentAvatarDoubleInitialsForUserWithStyle( | ||
user: loggedInUser(), | ||
) | ||
}, | ||
style: "AVATAR", | ||
size:"SMALL", | ||
), | ||
), | ||
a!sideBySideItem( | ||
item: a!richTextDisplayField( | ||
labelPosition: "COLLAPSED", | ||
value: { | ||
a!richTextItem( | ||
text: rule!APN_displayUser(user: loggedInUser()), | ||
style: "STRONG", | ||
color: "ACCENT" | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Initials Set: ", style: "STRONG"), | ||
"2" | ||
} | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Avatar Style: ", style: "STRONG"), | ||
"Appian" | ||
} | ||
) | ||
} | ||
) | ||
) | ||
} | ||
), | ||
a!sideBySideLayout( | ||
alignVertical: "MIDDLE", | ||
items: { | ||
a!sideBySideItem( | ||
width: "MINIMIZE", | ||
item: a!imageField( | ||
images: { | ||
rule!UIA_documentAvatarDoubleInitialsForUserWithStyle( | ||
user: loggedInUser(), | ||
style: cons!UIA_STYLE_AVATAR_DOUBLE_LIGHT | ||
) | ||
}, | ||
style: "AVATAR", | ||
size:"SMALL", | ||
), | ||
), | ||
a!sideBySideItem( | ||
item: a!richTextDisplayField( | ||
labelPosition: "COLLAPSED", | ||
value: { | ||
a!richTextItem( | ||
text: rule!APN_displayUser(user: loggedInUser()), | ||
style: "STRONG", | ||
color: "ACCENT" | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Initials Set: ", style: "STRONG"), | ||
"2" | ||
} | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Avatar Style: ", style: "STRONG"), | ||
"Light" | ||
} | ||
) | ||
} | ||
) | ||
) | ||
} | ||
), | ||
a!sideBySideLayout( | ||
alignVertical: "MIDDLE", | ||
items: { | ||
a!sideBySideItem( | ||
width: "MINIMIZE", | ||
item: a!imageField( | ||
images: { | ||
rule!UIA_documentAvatarDoubleInitialsForUserWithStyle( | ||
user: loggedInUser(), | ||
style: cons!UIA_STYLE_AVATAR_DOUBLE_DARK | ||
) | ||
}, | ||
style: "AVATAR", | ||
size:"SMALL", | ||
), | ||
), | ||
a!sideBySideItem( | ||
item: a!richTextDisplayField( | ||
labelPosition: "COLLAPSED", | ||
value: { | ||
a!richTextItem( | ||
text: rule!APN_displayUser(user: loggedInUser()), | ||
style: "STRONG", | ||
color: "ACCENT" | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Initials Set: ", style: "STRONG"), | ||
"2" | ||
} | ||
), | ||
char(10), | ||
a!richTextItem( | ||
text: { | ||
a!richTextItem(text: "Avatar Style: ", style: "STRONG"), | ||
"Dark" | ||
} | ||
) | ||
} | ||
) | ||
) | ||
} | ||
), | ||
} | ||
} | ||
) | ||
} | ||
) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.