Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
petykowski committed Mar 28, 2020
0 parents commit 149b829
Show file tree
Hide file tree
Showing 4 changed files with 353 additions and 0 deletions.
69 changes: 69 additions & 0 deletions README.md
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`
284 changes: 284 additions & 0 deletions resources/example/UIA_examples.sail
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 added src/User Initials Avatar - v1.0.zip
Binary file not shown.

0 comments on commit 149b829

Please sign in to comment.