Skip to content

Commit 149b829

Browse files
committed
Initial Commit
0 parents  commit 149b829

File tree

4 files changed

+353
-0
lines changed

4 files changed

+353
-0
lines changed

README.md

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
# Appian User Initials Avatar
2+
Appian utility application to display user avatars based on a user's first and last name.
3+
4+
![User Initials as Comment Header](./resources/img/user-initials-as-comment-header.png)
5+
6+
![Github All Releases](https://img.shields.io/badge/Appian%20Version-19.4%2B-red)
7+
8+
## Requirements
9+
10+
The User Initials Avatar application depends on the following Appian Cloud approved plug-in(s):
11+
12+
* Content Tools (v1.0.1)
13+
* finddocumentsbyname()
14+
15+
## Installation
16+
17+
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.
18+
19+
## Usage
20+
21+
22+
23+
## Configuration
24+
25+
### Set Security
26+
**UIA All Users**
27+
28+
Members of this group are allowed to view all user initials avatars.
29+
30+
**UIA Administrators**
31+
32+
Members of this group will be given Administrator permissions to modify the User Initials Avatar application.
33+
34+
35+
### Set Default Constant Values
36+
**UIA_INITIALS_SET_DEFAULT**
37+
38+
**Type:** `Number (Integer)`
39+
40+
Represents the default initials set to display in the user's avatar.
41+
42+
Acceptable Values:
43+
44+
* `1`
45+
* `2`
46+
47+
**UIA_STYLE_AVATAR_SINGLE_DEFAULT**
48+
49+
**Type:** `Folder`
50+
51+
Represents the default style for single initial avatars.
52+
53+
Acceptable Values:
54+
55+
* `Single Initial/appian`
56+
* `Single Initial/dark`
57+
* `Single Initial/light`
58+
59+
**UIA_STYLE_AVATAR_DOUBLE_DEFAULT**
60+
61+
**Type:** `Folder`
62+
63+
Represents the default style for double initial avatars.
64+
65+
Acceptable Values:
66+
67+
* `Double Initials/appian`
68+
* `Double Initials/dark`
69+
* `Double Initials/light`

resources/example/UIA_examples.sail

Lines changed: 284 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,284 @@
1+
a!columnsLayout(
2+
columns: {
3+
a!columnLayout(
4+
contents: {
5+
{
6+
a!richTextDisplayField(
7+
value: a!richTextHeader(text: "Initial Set 1")
8+
),
9+
a!sideBySideLayout(
10+
alignVertical: "MIDDLE",
11+
items: {
12+
a!sideBySideItem(
13+
width: "MINIMIZE",
14+
item: a!imageField(
15+
images: {
16+
rule!UIA_documentAvatarSingleInitialForUserWithStyle(
17+
user: loggedInUser(),
18+
)
19+
},
20+
style: "AVATAR",
21+
size:"SMALL",
22+
),
23+
),
24+
a!sideBySideItem(
25+
item: a!richTextDisplayField(
26+
labelPosition: "COLLAPSED",
27+
value: {
28+
a!richTextItem(
29+
text: rule!APN_displayUser(user: loggedInUser()),
30+
style: "STRONG",
31+
color: "ACCENT"
32+
),
33+
char(10),
34+
a!richTextItem(
35+
text: {
36+
a!richTextItem(text: "Initials Set: ", style: "STRONG"),
37+
"1"
38+
}
39+
),
40+
char(10),
41+
a!richTextItem(
42+
text: {
43+
a!richTextItem(text: "Avatar Style: ", style: "STRONG"),
44+
"Appian"
45+
}
46+
)
47+
}
48+
)
49+
)
50+
}
51+
),
52+
a!sideBySideLayout(
53+
alignVertical: "MIDDLE",
54+
items: {
55+
a!sideBySideItem(
56+
width: "MINIMIZE",
57+
item: a!imageField(
58+
images: {
59+
rule!UIA_documentAvatarSingleInitialForUserWithStyle(
60+
user: loggedInUser(),
61+
style: cons!UIA_STYLE_AVATAR_SINGLE_LIGHT
62+
)
63+
},
64+
style: "AVATAR",
65+
size:"SMALL",
66+
),
67+
),
68+
a!sideBySideItem(
69+
item: a!richTextDisplayField(
70+
labelPosition: "COLLAPSED",
71+
value: {
72+
a!richTextItem(
73+
text: rule!APN_displayUser(user: loggedInUser()),
74+
style: "STRONG",
75+
color: "ACCENT"
76+
),
77+
char(10),
78+
a!richTextItem(
79+
text: {
80+
a!richTextItem(text: "Initials Set: ", style: "STRONG"),
81+
"1"
82+
}
83+
),
84+
char(10),
85+
a!richTextItem(
86+
text: {
87+
a!richTextItem(text: "Avatar Style: ", style: "STRONG"),
88+
"Light"
89+
}
90+
)
91+
}
92+
)
93+
)
94+
}
95+
),
96+
a!sideBySideLayout(
97+
alignVertical: "MIDDLE",
98+
items: {
99+
a!sideBySideItem(
100+
width: "MINIMIZE",
101+
item: a!imageField(
102+
images: {
103+
rule!UIA_documentAvatarSingleInitialForUserWithStyle(
104+
user: loggedInUser(),
105+
style: cons!UIA_STYLE_AVATAR_SINGLE_DARK
106+
)
107+
},
108+
style: "AVATAR",
109+
size:"SMALL",
110+
),
111+
),
112+
a!sideBySideItem(
113+
item: a!richTextDisplayField(
114+
labelPosition: "COLLAPSED",
115+
value: {
116+
a!richTextItem(
117+
text: rule!APN_displayUser(user: loggedInUser()),
118+
style: "STRONG",
119+
color: "ACCENT"
120+
),
121+
char(10),
122+
a!richTextItem(
123+
text: {
124+
a!richTextItem(text: "Initials Set: ", style: "STRONG"),
125+
"1"
126+
}
127+
),
128+
char(10),
129+
a!richTextItem(
130+
text: {
131+
a!richTextItem(text: "Avatar Style: ", style: "STRONG"),
132+
"Dark"
133+
}
134+
)
135+
}
136+
)
137+
)
138+
}
139+
),
140+
}
141+
}
142+
),
143+
a!columnLayout(
144+
contents: {
145+
{
146+
a!richTextDisplayField(
147+
value: a!richTextHeader(text: "Initial Set 2")
148+
),
149+
a!sideBySideLayout(
150+
alignVertical: "MIDDLE",
151+
items: {
152+
a!sideBySideItem(
153+
width: "MINIMIZE",
154+
item: a!imageField(
155+
images: {
156+
rule!UIA_documentAvatarDoubleInitialsForUserWithStyle(
157+
user: loggedInUser(),
158+
)
159+
},
160+
style: "AVATAR",
161+
size:"SMALL",
162+
),
163+
),
164+
a!sideBySideItem(
165+
item: a!richTextDisplayField(
166+
labelPosition: "COLLAPSED",
167+
value: {
168+
a!richTextItem(
169+
text: rule!APN_displayUser(user: loggedInUser()),
170+
style: "STRONG",
171+
color: "ACCENT"
172+
),
173+
char(10),
174+
a!richTextItem(
175+
text: {
176+
a!richTextItem(text: "Initials Set: ", style: "STRONG"),
177+
"2"
178+
}
179+
),
180+
char(10),
181+
a!richTextItem(
182+
text: {
183+
a!richTextItem(text: "Avatar Style: ", style: "STRONG"),
184+
"Appian"
185+
}
186+
)
187+
}
188+
)
189+
)
190+
}
191+
),
192+
a!sideBySideLayout(
193+
alignVertical: "MIDDLE",
194+
items: {
195+
a!sideBySideItem(
196+
width: "MINIMIZE",
197+
item: a!imageField(
198+
images: {
199+
rule!UIA_documentAvatarDoubleInitialsForUserWithStyle(
200+
user: loggedInUser(),
201+
style: cons!UIA_STYLE_AVATAR_DOUBLE_LIGHT
202+
)
203+
},
204+
style: "AVATAR",
205+
size:"SMALL",
206+
),
207+
),
208+
a!sideBySideItem(
209+
item: a!richTextDisplayField(
210+
labelPosition: "COLLAPSED",
211+
value: {
212+
a!richTextItem(
213+
text: rule!APN_displayUser(user: loggedInUser()),
214+
style: "STRONG",
215+
color: "ACCENT"
216+
),
217+
char(10),
218+
a!richTextItem(
219+
text: {
220+
a!richTextItem(text: "Initials Set: ", style: "STRONG"),
221+
"2"
222+
}
223+
),
224+
char(10),
225+
a!richTextItem(
226+
text: {
227+
a!richTextItem(text: "Avatar Style: ", style: "STRONG"),
228+
"Light"
229+
}
230+
)
231+
}
232+
)
233+
)
234+
}
235+
),
236+
a!sideBySideLayout(
237+
alignVertical: "MIDDLE",
238+
items: {
239+
a!sideBySideItem(
240+
width: "MINIMIZE",
241+
item: a!imageField(
242+
images: {
243+
rule!UIA_documentAvatarDoubleInitialsForUserWithStyle(
244+
user: loggedInUser(),
245+
style: cons!UIA_STYLE_AVATAR_DOUBLE_DARK
246+
)
247+
},
248+
style: "AVATAR",
249+
size:"SMALL",
250+
),
251+
),
252+
a!sideBySideItem(
253+
item: a!richTextDisplayField(
254+
labelPosition: "COLLAPSED",
255+
value: {
256+
a!richTextItem(
257+
text: rule!APN_displayUser(user: loggedInUser()),
258+
style: "STRONG",
259+
color: "ACCENT"
260+
),
261+
char(10),
262+
a!richTextItem(
263+
text: {
264+
a!richTextItem(text: "Initials Set: ", style: "STRONG"),
265+
"2"
266+
}
267+
),
268+
char(10),
269+
a!richTextItem(
270+
text: {
271+
a!richTextItem(text: "Avatar Style: ", style: "STRONG"),
272+
"Dark"
273+
}
274+
)
275+
}
276+
)
277+
)
278+
}
279+
),
280+
}
281+
}
282+
)
283+
}
284+
)
Loading

src/User Initials Avatar - v1.0.zip

9.9 MB
Binary file not shown.

0 commit comments

Comments
 (0)