Open platform to collect and prioritize feedback
Show verified users
Matt Roberts2cb66ef139ff
diff --git a/public/components/VoteCounter.spec.tsx b/public/components/VoteCounter.spec.tsxindex cfd63749e..41c9a758e 100644--- a/public/components/VoteCounter.spec.tsx+++ b/public/components/VoteCounter.spec.tsx@@ -22,6 +22,7 @@ beforeEach(() => {user: {id: 5,name: "John",+ isVerified: false,role: UserRole.Collaborator,status: UserStatus.Active,avatarURL: "/static/avatars/letter/5/John",diff --git a/public/models/identity.ts b/public/models/identity.tsindex 788403f4a..27ac0860c 100644--- a/public/models/identity.ts+++ b/public/models/identity.ts@@ -28,6 +28,7 @@ export interface User {email?: stringrole: UserRolestatus: UserStatus+ isVerified: booleanavatarURL: string}diff --git a/public/pages/Administration/pages/ManageMembers.page.tsx b/public/pages/Administration/pages/ManageMembers.page.tsxindex a4adb0c84..a4d64803e 100644--- a/public/pages/Administration/pages/ManageMembers.page.tsx+++ b/public/pages/Administration/pages/ManageMembers.page.tsx@@ -27,6 +27,9 @@ const UserListItem = (props: UserListItemExtendedProps) => {const admin = props.user.role === UserRole.Administrator && <span className="text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded">administrator</span>const collaborator = props.user.role === UserRole.Collaborator && <span className="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">collaborator</span>const blocked = props.user.status === UserStatus.Blocked && <span className="text-xs bg-red-100 text-red-800 px-2 py-1 rounded">blocked</span>+ const verified = props.user.status === UserStatus.Active && props.user.role === UserRole.Visitor && props.user.isVerified && (+ <span className="text-xs bg-green-100 text-green-800 px-2 py-1 rounded">verified visitor</span>+ )const isVisitor = props.user.role === UserRole.Visitorconst actionSelected = (actionName: string) => () => {@@ -48,8 +51,8 @@ const UserListItem = (props: UserListItemExtendedProps) => {</div><div>- {admin} {collaborator} {blocked}- {isVisitor && !blocked && <span className="text-xs text-gray-600">visitor</span>}+ {admin} {collaborator} {blocked} {verified}+ {isVisitor && !blocked && !verified && <span className="text-xs text-gray-600">visitor</span>}</div><div className="flex justify-end relative">diff --git a/public/pages/DesignSystem/DesignSystem.page.tsx b/public/pages/DesignSystem/DesignSystem.page.tsxindex cac109102..1a8448f0f 100644--- a/public/pages/DesignSystem/DesignSystem.page.tsx+++ b/public/pages/DesignSystem/DesignSystem.page.tsx@@ -39,6 +39,7 @@ import { useFider } from "@fider/hooks"const jonSnow: User = {id: 0,name: "Jon Snow",+ isVerified: false,role: UserRole.Administrator,status: UserStatus.Active,avatarURL:@@ -49,6 +50,7 @@ const aryaStark: User = {id: 0,name: "Arya Snow",role: UserRole.Visitor,+ isVerified: false,status: UserStatus.Active,avatarURL: "https://images.unsplash.com/photo-1550525811-e5869dd03032?ixlib=rb-1.2.1&auto=format&fit=facearea&facepad=2&w=256&h=256&q=80",}@@ -56,6 +58,7 @@ const aryaStark: User = {const robStark: User = {id: 0,name: "Robert Stark",+ isVerified: false,role: UserRole.Visitor,status: UserStatus.Active,avatarURL: