Huge bunch of UI/UX improvements and tweaks!
Some checks failed
Test / vitest (push) Successful in 10m36s
Test / playwright (push) Failing after 9m23s
Test / visual (push) Failing after 9m13s
Test / Notify on failure (push) Successful in 2s

This commit is contained in:
Jennie Robinson Faber 2026-04-06 16:17:12 +01:00
parent 501be10bfe
commit fb25e72215
37 changed files with 1651 additions and 949 deletions

View file

@ -13,209 +13,209 @@
</div>
<!-- Profile Content -->
<div v-else class="profile-content">
<!-- Header Area -->
<div class="profile-header">
<div class="profile-avatar">
<img
v-if="member.avatar"
:src="`/ghosties/Ghost-${member.avatar.charAt(0).toUpperCase() + member.avatar.slice(1)}.png`"
:alt="member.name"
class="profile-avatar-img"
/>
<span v-else class="profile-initials">{{
getInitials(member.name)
}}</span>
</div>
<div class="profile-identity">
<h1 class="profile-name">
{{ member.name }}
<span v-if="member.pronouns" class="profile-pronouns">{{
member.pronouns
}}</span>
</h1>
<div class="profile-meta">
<span v-if="member.circle" class="badge" :class="member.circle">{{
circleLabels[member.circle]
}}</span>
<template v-if="member.studio">
<span class="meta-sep">&middot;</span>
<span class="profile-studio">{{ member.studio }}</span>
</template>
<template v-else>
<!-- HERO: full-bleed, outside SidebarLayout -->
<div class="profile-hero" :class="{ 'profile-hero--with-links': hasSocialLinks }">
<!-- Left: Avatar + Identity -->
<div class="profile-hero-left">
<div class="profile-avatar">
<img
v-if="member.avatar"
:src="`/ghosties/Ghost-${member.avatar.charAt(0).toUpperCase() + member.avatar.slice(1)}.png`"
:alt="member.name"
class="profile-avatar-img"
/>
<span v-else class="profile-initials">{{ getInitials(member.name) }}</span>
</div>
<div class="profile-identity">
<h1 class="profile-name">
{{ member.name }}<span v-if="member.memberNumber" class="profile-member-number">#{{ member.memberNumber }}</span>
</h1>
<div v-if="member.pronouns" class="profile-pronouns-row">
<span class="profile-pronouns">{{ member.pronouns }}</span>
</div>
<div class="profile-meta">
<span v-if="member.circle" class="badge" :class="member.circle">
{{ circleLabels[member.circle] }}
</span>
<template v-if="member.studio">
<span class="meta-sep">&middot;</span>
<span class="profile-studio">{{ member.studio }}</span>
</template>
<template v-if="member.location || member.timeZone">
<span class="meta-sep">&middot;</span>
<span class="profile-location">
{{ [member.location, member.timeZone].filter(Boolean).join(' · ') }}
</span>
</template>
</div>
</div>
</div>
</div>
<!-- Bio Section -->
<div v-if="member.bio" class="profile-section">
<div class="section-label">About</div>
<div class="profile-bio" v-html="renderMarkdown(member.bio)"></div>
</div>
<!-- Location & Timezone -->
<div v-if="member.location || member.timeZone" class="profile-section">
<div class="section-label">Location</div>
<p class="profile-detail">
{{ [member.location, member.timeZone].filter(Boolean).join(" · ") }}
</p>
</div>
<!-- What I Do (craft tags, falling back to offering) -->
<div v-if="craftTagsDisplay.length > 0 || member.offering?.text" class="profile-section">
<div class="section-label">What I Do</div>
<div v-if="craftTagsDisplay.length > 0" class="tag-list">
<span
v-for="tag in craftTagsDisplay"
:key="tag"
class="tag-pill"
>{{ tagLabel('craft', tag) }}</span
>
</div>
<p v-if="member.offering?.text" class="profile-detail offering-text">
{{ member.offering.text }}
</p>
</div>
<!-- Community Connections (cooperative topics with states, falling back to lookingFor) -->
<div
v-if="connectionTopicsDisplay.length > 0 || member.lookingFor?.text || member.communityConnections?.details"
class="profile-section"
>
<div class="section-label">Community Connections</div>
<div v-if="connectionTopicsDisplay.length > 0" class="tag-list">
<span
v-for="topic in connectionTopicsDisplay"
:key="topic.tagSlug || topic"
class="tag-pill connection-pill"
>
<span v-if="topic.state" class="connection-state">{{ stateLabel(topic.state) }}</span>
{{ tagLabel('cooperative', topic.tagSlug || topic) }}
</span>
</div>
<p v-if="member.communityConnections?.details" class="profile-detail connection-details">
{{ member.communityConnections.details }}
</p>
<p v-else-if="member.lookingFor?.text" class="profile-detail looking-text">
{{ member.lookingFor.text }}
</p>
</div>
<!-- Social Links -->
<div
v-if="
member.socialLinks && Object.values(member.socialLinks).some(Boolean)
"
class="profile-section"
>
<div class="section-label">Links</div>
<div class="social-links">
<a
v-if="member.socialLinks.website"
:href="member.socialLinks.website"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>Website</a
>
<a
v-if="member.socialLinks.itch"
:href="member.socialLinks.itch"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>itch.io</a
>
<a
v-if="member.socialLinks.mastodon"
:href="member.socialLinks.mastodon"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>Mastodon</a
>
<a
v-if="member.socialLinks.bluesky"
:href="member.socialLinks.bluesky"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>Bluesky</a
>
<a
v-if="member.socialLinks.linkedin"
:href="member.socialLinks.linkedin"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>LinkedIn</a
>
</div>
</div>
<!-- Peer Support Section (reads from communityConnections, falls back to peerSupport) -->
<div v-if="showPeerSupport" class="profile-section">
<div class="section-label">Peer Support</div>
<div v-if="member.peerSupport?.skillTopics?.length" class="peer-group">
<span class="peer-label">Skills:</span>
<div class="tag-list">
<span
v-for="topic in member.peerSupport.skillTopics"
:key="topic"
class="tag-pill"
>{{ topic }}</span
>
<!-- Right: Social Links (only when present) -->
<div v-if="hasSocialLinks" class="profile-hero-right">
<div class="section-label">Links</div>
<div class="social-links">
<a
v-if="member.socialLinks.website"
:href="member.socialLinks.website"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>Website</a>
<a
v-if="member.socialLinks.itch"
:href="member.socialLinks.itch"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>itch.io</a>
<a
v-if="member.socialLinks.mastodon"
:href="member.socialLinks.mastodon"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>Mastodon</a>
<a
v-if="member.socialLinks.bluesky"
:href="member.socialLinks.bluesky"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>Bluesky</a>
<a
v-if="member.socialLinks.linkedin"
:href="member.socialLinks.linkedin"
target="_blank"
rel="noopener noreferrer"
class="social-link"
>LinkedIn</a>
</div>
</div>
<div v-if="member.peerSupport?.supportTopics?.length" class="peer-group">
<span class="peer-label">Topics:</span>
<div class="tag-list">
<span
v-for="topic in member.peerSupport.supportTopics"
:key="topic"
class="tag-pill"
>{{ topic }}</span
>
</div>
</div>
<p v-if="peerAvailability" class="profile-detail">
{{ peerAvailability }}
</p>
</div>
<!-- Recent Activity -->
<div v-if="activityEntries.length" class="profile-section">
<div class="section-label">Recent Activity</div>
<div class="activity-list">
<div v-for="entry in activityEntries" :key="entry._id" class="activity-item">
<UIcon :name="getActivity(entry).icon" class="activity-icon" />
<span class="activity-text">{{ getActivity(entry).text }}</span>
<span class="activity-time">{{ formatRelativeDate(entry.timestamp) }}</span>
</div>
</div>
</div>
<!-- END HERO -->
<!-- Auth Notice -->
<div v-if="!isAuthenticated" class="auth-notice">
<p>Sign in to see full profile details</p>
<button
type="button"
class="btn"
@click="
openLoginModal({
title: 'Sign in to see more',
description: 'Log in to view full member profiles',
})
"
<!-- SidebarLayout wraps all remaining sections -->
<SidebarLayout>
<!-- Bio: parch (inverted) block -->
<div v-if="member.bio" class="profile-section profile-section--parch">
<div class="section-label">About</div>
<div class="profile-bio" v-html="renderMarkdown(member.bio)"></div>
</div>
<!-- Two-column: Craft Tags + Community Connections -->
<div
v-if="craftTagsDisplay.length > 0 || member.offering?.text || connectionTopicsDisplay.length > 0 || member.lookingFor?.text || member.communityConnections?.details"
class="profile-two-col"
>
Log In
</button>
</div>
<!-- Left: What I Do -->
<div class="profile-section">
<div class="section-label">What I Do</div>
<div v-if="craftTagsDisplay.length > 0" class="tag-list">
<span
v-for="tag in craftTagsDisplay"
:key="tag"
class="tag-pill"
>{{ tagLabel('craft', tag) }}</span>
</div>
<p v-if="member.offering?.text" class="profile-detail offering-text">
{{ member.offering.text }}
</p>
</div>
<!-- Back Link -->
<div class="profile-back">
<NuxtLink to="/members" class="back-link"> Back to Members</NuxtLink>
</div>
</div>
<!-- Right: Community Connections -->
<div class="profile-section">
<div class="section-label">Community Connections</div>
<div v-if="connectionTopicsDisplay.length > 0" class="tag-list">
<span
v-for="topic in connectionTopicsDisplay"
:key="topic.tagSlug || topic"
class="tag-pill connection-pill"
>
<span v-if="topic.state" class="connection-state">{{ stateLabel(topic.state) }}</span>
{{ tagLabel('cooperative', topic.tagSlug || topic) }}
</span>
</div>
<p v-if="member.communityConnections?.details" class="profile-detail connection-details">
{{ member.communityConnections.details }}
</p>
<p v-else-if="member.lookingFor?.text" class="profile-detail looking-text">
{{ member.lookingFor.text }}
</p>
</div>
</div>
<!-- Peer Support -->
<div v-if="showPeerSupport" class="profile-section">
<div class="section-label">Peer Support</div>
<div class="dashed-box no-hover">
<div v-if="member.peerSupport?.skillTopics?.length" class="peer-group">
<span class="peer-label">Skills</span>
<div class="tag-list">
<span
v-for="topic in member.peerSupport.skillTopics"
:key="topic"
class="tag-pill"
>{{ topic }}</span>
</div>
</div>
<div v-if="member.peerSupport?.supportTopics?.length" class="peer-group">
<span class="peer-label">Topics</span>
<div class="tag-list">
<span
v-for="topic in member.peerSupport.supportTopics"
:key="topic"
class="tag-pill"
>{{ topic }}</span>
</div>
</div>
<p v-if="peerAvailability" class="profile-detail peer-availability">
{{ peerAvailability }}
</p>
</div>
</div>
<!-- Recent Activity -->
<div v-if="activityEntries.length" class="profile-section">
<div class="section-label">Recent Activity</div>
<div class="activity-timeline">
<div v-for="entry in activityEntries" :key="entry._id" class="activity-entry">
<UIcon :name="getActivity(entry).icon" class="activity-icon" />
<div class="activity-body">
<span class="activity-text">{{ getActivity(entry).text }}</span>
<span class="activity-time">{{ formatRelativeDate(entry.timestamp) }}</span>
</div>
</div>
</div>
</div>
<!-- Auth Notice -->
<div v-if="!isAuthenticated" class="profile-section">
<div class="auth-notice">
<p>Sign in to see full profile details</p>
<button
type="button"
class="btn"
@click="openLoginModal({ title: 'Sign in to see more', description: 'Log in to view full member profiles' })"
>
Log In
</button>
</div>
</div>
<!-- Back Link -->
<div class="profile-back">
<NuxtLink to="/members" class="back-link"> Back to Members</NuxtLink>
</div>
</SidebarLayout>
</template>
</div>
</template>
@ -333,6 +333,11 @@ const peerAvailability = computed(() => {
);
});
// Whether the member has any social links (for hero layout)
const hasSocialLinks = computed(() =>
member.value?.socialLinks && Object.values(member.value.socialLinks).some(Boolean)
)
const pageBreadcrumbTitle = useState("pageBreadcrumbTitle", () => "");
watch(
member,
@ -356,52 +361,77 @@ useHead({
</script>
<style scoped>
/* ====================================================
PROFILE PAGE
Full-bleed layout: no max-width, no centering.
Flex chain enables SidebarLayout's flex: 1 to work.
==================================================== */
.profile-page {
max-width: 720px;
margin: 0 auto;
padding: 0 24px 60px;
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
}
/* ---- LOADING ---- */
/* ---- LOADING STATE ---- */
.loading-state {
padding: 80px 24px;
padding: 80px 32px;
text-align: center;
color: var(--text-faint);
font-size: 12px;
font-family: "Commit Mono", monospace;
}
/* ---- ERROR / 404 ---- */
/* ---- ERROR / 404 STATE ---- */
.error-state {
padding: 80px 24px;
padding: 80px 32px;
text-align: center;
}
.error-title {
font-family: "Brygada 1918", serif;
font-size: 20px;
color: var(--text-dim);
margin-bottom: 6px;
}
.error-sub {
font-size: 12px;
color: var(--text-faint);
margin-bottom: 20px;
}
/* ---- HEADER ---- */
.profile-header {
display: flex;
align-items: center;
gap: 16px;
padding: 28px 0 24px;
/* ====================================================
HERO full-bleed, two-column when social links exist
==================================================== */
.profile-hero {
display: grid;
grid-template-columns: 1fr;
border-bottom: 1px dashed var(--border);
}
.profile-hero--with-links {
grid-template-columns: 1fr 1fr;
}
.profile-hero-left {
padding: 32px 32px 28px;
display: flex;
flex-direction: column;
gap: 20px;
}
.profile-hero--with-links .profile-hero-left {
border-right: 1px dashed var(--border);
}
.profile-hero-right {
padding: 32px;
}
/* Avatar */
.profile-avatar {
width: 48px;
height: 48px;
width: 96px;
height: 96px;
background: var(--surface);
border: 1px dashed var(--border);
display: flex;
@ -410,131 +440,191 @@ useHead({
flex-shrink: 0;
overflow: hidden;
}
.profile-avatar-img {
width: 42px;
height: 42px;
width: 86px;
height: 86px;
object-fit: contain;
}
.profile-initials {
font-family: "Commit Mono", monospace;
font-size: 14px;
font-size: 28px;
color: var(--text-faint);
font-weight: 600;
}
/* Identity */
.profile-identity {
min-width: 0;
}
.profile-name {
font-family: "Brygada 1918", serif;
font-size: 22px;
font-size: 42px;
font-weight: 600;
color: var(--text-bright);
margin: 0;
line-height: 1.3;
line-height: 1.1;
letter-spacing: -0.02em;
}
.profile-member-number {
font-family: "Commit Mono", monospace;
font-size: 16px;
font-weight: 400;
color: var(--text-faint);
letter-spacing: 0.02em;
margin-left: 10px;
vertical-align: middle;
}
.profile-pronouns-row {
margin-top: 4px;
}
.profile-pronouns {
font-family: "Commit Mono", monospace;
font-size: 12px;
font-size: 11px;
color: var(--text-faint);
font-weight: 400;
margin-left: 8px;
letter-spacing: 0.04em;
}
.profile-meta {
display: flex;
align-items: center;
gap: 8px;
margin-top: 4px;
margin-top: 10px;
flex-wrap: wrap;
font-size: 12px;
color: var(--text-dim);
}
.meta-sep {
color: var(--border);
}
.profile-studio,
.profile-location {
font-family: "Commit Mono", monospace;
font-size: 12px;
color: var(--text-dim);
}
.meta-sep {
color: var(--border);
/* Social links — vertical stack in hero right column */
.social-links {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 4px;
}
.profile-studio {
.social-link {
font-family: "Commit Mono", monospace;
font-size: 11px;
color: var(--candle);
text-decoration: none;
padding: 5px 12px;
border: 1px dashed var(--border);
transition: border-color 0.15s, color 0.15s, border-style 0.15s;
display: block;
}
.social-link:hover {
border-color: var(--candle);
border-style: solid;
color: var(--text-bright);
}
/* ---- SECTIONS ---- */
/* ====================================================
SECTIONS inside SidebarLayout
==================================================== */
.profile-section {
padding: 20px 0;
padding: 28px 32px;
border-bottom: 1px dashed var(--border);
}
.section-label {
font-family: "Commit Mono", monospace;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-faint);
margin-bottom: 10px;
/* Bio: parch (inverted) block */
.profile-section--parch {
background: var(--parch);
}
.profile-section--parch .section-label {
color: var(--parch-text-dim);
}
.profile-section--parch .profile-bio {
color: var(--parch-text);
}
.profile-section--parch .profile-bio :deep(a) {
color: var(--candle-faint);
text-decoration: underline;
text-underline-offset: 2px;
}
.profile-section--parch .profile-bio :deep(a:hover) {
color: var(--parch-text);
}
.profile-bio {
font-size: 13px;
line-height: 1.75;
color: var(--text-dim);
line-height: 1.7;
}
.profile-bio :deep(p) {
margin: 0 0 8px;
margin: 0 0 10px;
}
.profile-bio :deep(p:last-child) {
margin-bottom: 0;
}
.profile-bio :deep(a) {
color: var(--candle);
text-decoration: underline;
text-underline-offset: 2px;
}
.profile-bio :deep(a:hover) {
color: var(--ember);
}
/* ====================================================
TWO-COLUMN: Craft Tags + Community Connections
==================================================== */
.profile-two-col {
display: grid;
grid-template-columns: 1fr 1fr;
border-bottom: 1px dashed var(--border);
}
.profile-two-col .profile-section {
border-bottom: none;
}
.profile-two-col .profile-section:first-child {
border-right: 1px dashed var(--border);
}
/* ====================================================
SHARED SECTION ELEMENTS
==================================================== */
.profile-detail {
font-size: 13px;
color: var(--text-dim);
line-height: 1.6;
margin: 0;
}
.offering-text,
.looking-text,
.connection-details {
margin-top: 8px;
margin-top: 10px;
}
/* ---- TAGS ---- */
/* Tags */
.tag-list {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.tag-pill {
font-family: "Commit Mono", monospace;
font-size: 10px;
color: var(--text-dim);
padding: 2px 8px;
padding: 3px 8px;
border: 1px dashed var(--border);
white-space: nowrap;
}
.connection-pill {
display: inline-flex;
align-items: center;
gap: 4px;
}
.connection-state {
font-size: 9px;
text-transform: uppercase;
@ -542,97 +632,105 @@ useHead({
color: var(--text-faint);
}
/* ---- SOCIAL LINKS ---- */
.social-links {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
/* ====================================================
PEER SUPPORT
==================================================== */
.social-link {
font-family: "Commit Mono", monospace;
font-size: 11px;
color: var(--candle);
text-decoration: none;
padding: 3px 10px;
border: 1px dashed var(--border);
transition: all 0.15s;
}
.social-link:hover {
border-color: var(--candle);
color: var(--text-bright);
}
/* ---- PEER SUPPORT ---- */
.peer-group {
margin-bottom: 10px;
margin-bottom: 14px;
}
.peer-group:last-child {
.peer-group:last-of-type {
margin-bottom: 0;
}
.peer-label {
font-family: "Commit Mono", monospace;
font-size: 11px;
font-size: 10px;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--text-faint);
display: block;
margin-bottom: 6px;
margin-bottom: 8px;
}
.peer-availability {
margin-top: 12px;
padding-top: 12px;
border-top: 1px dashed var(--border);
}
/* ---- ACTIVITY ---- */
.activity-list {
/* ====================================================
ACTIVITY TIMELINE
==================================================== */
.activity-timeline {
display: flex;
flex-direction: column;
gap: 8px;
border-left: 1px dashed var(--border);
margin-left: 6px;
}
.activity-item {
.activity-entry {
display: flex;
align-items: center;
gap: 8px;
font-size: 12px;
align-items: flex-start;
gap: 10px;
padding: 8px 0 8px 16px;
position: relative;
}
/* Dot connector on the timeline track */
.activity-entry::before {
content: "";
position: absolute;
left: -4px;
top: 14px;
width: 6px;
height: 6px;
border: 1px dashed var(--border);
background: var(--bg);
}
.activity-icon {
width: 14px;
height: 14px;
color: var(--text-faint);
flex-shrink: 0;
margin-top: 1px;
}
.activity-text {
color: var(--text-dim);
flex: 1;
.activity-body {
display: flex;
flex-direction: column;
gap: 2px;
min-width: 0;
}
.activity-text {
font-size: 12px;
color: var(--text-dim);
line-height: 1.5;
}
.activity-time {
font-size: 10px;
color: var(--text-faint);
font-size: 11px;
flex-shrink: 0;
letter-spacing: 0.04em;
}
/* ---- AUTH NOTICE ---- */
/* ====================================================
AUTH NOTICE
==================================================== */
.auth-notice {
padding: 20px;
margin-top: 24px;
border: 1px dashed var(--candle-faint, var(--border));
border: 1px dashed var(--border);
padding: 24px;
text-align: center;
}
.auth-notice p {
font-size: 12px;
color: var(--text-dim);
margin: 0 0 12px;
}
/* ---- BACK LINK ---- */
.profile-back {
padding: 24px 0;
}
/* ====================================================
BACK LINK
==================================================== */
.profile-back {
padding: 24px 32px;
}
.back-link {
font-family: "Commit Mono", monospace;
font-size: 12px;
@ -640,34 +738,64 @@ useHead({
text-decoration: none;
transition: color 0.15s;
}
.back-link:hover {
color: var(--candle);
}
/* ---- RESPONSIVE ---- */
/* ====================================================
RESPONSIVE
==================================================== */
@media (max-width: 1024px) {
/* SidebarLayout sidebar hides itself at ≤1024px */
.profile-two-col {
grid-template-columns: 1fr;
}
.profile-two-col .profile-section:first-child {
border-right: none;
border-bottom: 1px dashed var(--border);
}
}
@media (max-width: 768px) {
.profile-page {
padding: 0 16px 40px;
.profile-hero,
.profile-hero--with-links {
grid-template-columns: 1fr;
}
.profile-header {
padding: 20px 0 18px;
gap: 12px;
.profile-hero--with-links .profile-hero-left {
border-right: none;
border-bottom: 1px dashed var(--border);
}
.profile-hero-left {
padding: 24px 20px;
gap: 16px;
}
.profile-hero-right {
padding: 20px;
}
.profile-name {
font-size: 18px;
font-size: 28px;
}
.profile-pronouns {
display: block;
margin-left: 0;
margin-top: 2px;
.profile-avatar {
width: 72px;
height: 72px;
}
.profile-avatar-img {
width: 64px;
height: 64px;
}
.profile-initials {
font-size: 20px;
}
.profile-section {
padding: 16px 0;
padding: 20px;
}
.profile-back {
padding: 20px;
}
.social-links {
flex-direction: row;
flex-wrap: wrap;
}
}
</style>