Skip to content

Commit

Permalink
chore(profile): minimizing public profile (#1832)
Browse files Browse the repository at this point in the history
* chore(profile): minimizing public profile

* wip

* wip

* wip

* wip

* wip

* wip: layout

* no faq

* fix: types in profile

* wip

* wip

---------

Co-authored-by: Adrian Maurer <[email protected]>
  • Loading branch information
pillowboy and maurerbot authored Mar 4, 2023
1 parent f340102 commit 73c3b8a
Show file tree
Hide file tree
Showing 47 changed files with 277 additions and 1,048 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const ApplicationListItemIcon = ({
{!iconUrl && (
<Text className="text-gray-500">{title?.substring(0, 1)}</Text>
)}
{iconUrl && <img src={iconUrl} className="object-cover" />}
{iconUrl && <img src={iconUrl} alt="Not Found" className="object-cover" />}
</div>
)

Expand Down
1 change: 0 additions & 1 deletion apps/passport/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const meta: MetaFunction = () => ({
viewport: 'width=device-width,initial-scale=1',
'og:url': 'https://passport.rollup.id',
'og:description': 'User identity in your control.',
// Hardcoded to not re-upload it every time
'og:image': social,
'twitter:card': 'summary_large_image',
'twitter:site': '@rollupid_xyz',
Expand Down
13 changes: 0 additions & 13 deletions apps/passport/app/utils/authenticate.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,6 @@ const provisionProfile = async (jwt: string, env: Env, address: AddressURN) => {
if (!profile) {
console.log(`Profile doesn't exist for account ${account}. Creating one...`)
const addressClient = getAddressClient(address, env)
/**
* Hardcoded url for default cover image
* to not upload it every time on each new user
*/
const cover =
'https://imagedelivery.net/VqQy1abBMHYDZwVsTbsSMw/55eea546-b14f-434e-16b4-e759e563ea00/public'
const newProfile = await addressClient.getAddressProfile
.query()
.then(async (res) => {
Expand All @@ -104,7 +98,6 @@ const provisionProfile = async (jwt: string, env: Env, address: AddressURN) => {
pfp: {
image: res.profile.avatar || gradient,
},
cover,
}
}
case OAuthAddressType.GitHub: {
Expand All @@ -114,7 +107,6 @@ const provisionProfile = async (jwt: string, env: Env, address: AddressURN) => {
pfp: {
image: res.profile.avatar_url || gradient,
},
cover,
}
}
case OAuthAddressType.Google: {
Expand All @@ -123,7 +115,6 @@ const provisionProfile = async (jwt: string, env: Env, address: AddressURN) => {
pfp: {
image: res.profile.picture,
},
cover,
}
}
case OAuthAddressType.Twitter: {
Expand All @@ -132,7 +123,6 @@ const provisionProfile = async (jwt: string, env: Env, address: AddressURN) => {
pfp: {
image: res.profile.profile_image_url_https,
},
cover,
}
}
case OAuthAddressType.Microsoft: {
Expand All @@ -146,21 +136,18 @@ const provisionProfile = async (jwt: string, env: Env, address: AddressURN) => {
//Cached profile image
image: res.profile.rollupidImageUrl as string,
},
cover,
}
}
case OAuthAddressType.Apple: {
const { firstName, lastName } = res.profile.name!
return {
cover,
displayName: `${firstName} ${lastName}`,
}
}
case OAuthAddressType.Discord: {
const gradient = await generateGradient(res.profile.id, env)
const { id, avatar } = res.profile
return {
cover,
displayName: res.profile.username,
pfp: {
image: avatar
Expand Down
3 changes: 3 additions & 0 deletions apps/profile/app/assets/subtract-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 0 additions & 59 deletions apps/profile/app/components/FAQ/FAQ.css

This file was deleted.

59 changes: 0 additions & 59 deletions apps/profile/app/components/FAQ/FAQ.scss

This file was deleted.

11 changes: 0 additions & 11 deletions apps/profile/app/components/FAQ/FAQ.stories.tsx

This file was deleted.

Loading

0 comments on commit 73c3b8a

Please sign in to comment.