Unify the web UI on shared controls and let pipeline columns be managed on the board.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-10 01:22:24 +03:30
co-authored by Cursor
parent f1aba1b386
commit b8ad4037b6
40 changed files with 2334 additions and 788 deletions
+72 -99
View File
@@ -38,52 +38,50 @@ const colors = computed(() => PIPELINE_ACCENT[props.accent]);
@dragend="emit('dragEnd')"
@dblclick="emit('open', deal.id)"
>
<div class="top">
<div class="identity">
<span class="badge" aria-hidden="true">{{ deal.initials }}</span>
<div class="titles">
<h3 @click.stop="emit('open', deal.id)">{{ deal.title }}</h3>
<p v-if="deal.description" class="desc">{{ deal.description }}</p>
</div>
</div>
<button
type="button"
class="menu"
aria-label="گزینه‌های معامله"
@click.stop="emit('menu', deal.id)"
>
<UiIcon name="dots-v" :size="18" />
</button>
<span class="badge" aria-hidden="true">{{ deal.initials }}</span>
<div class="titles">
<h3 @click.stop="emit('open', deal.id)">{{ deal.title }}</h3>
<p v-if="deal.description" class="desc">{{ deal.description }}</p>
</div>
<div class="meta">
<div class="who">
<img
class="avatar"
src="/brand/user-avatar.png"
alt=""
width="28"
height="28"
/>
<span class="date">
<UiIcon name="calendar" :size="14" />
{{ deal.date }}
</span>
</div>
<div class="amount" dir="ltr">
<strong>{{ money.number }}</strong>
<span>{{ money.unit }}</span>
</div>
<button
type="button"
class="menu"
aria-label="گزینه‌های معامله"
@click.stop="emit('menu', deal.id)"
>
<UiIcon name="dots-v" :size="16" />
</button>
<img
class="avatar"
src="/brand/user-avatar.png"
alt=""
width="32"
height="32"
/>
<span class="date">
{{ deal.date }}
<UiIcon name="calendar" :size="13" />
</span>
<div class="amount">
<strong>{{ money.number }}</strong>
<span>{{ money.unit }}</span>
</div>
</article>
</template>
<style scoped>
.deal-card {
--face: 32px;
display: grid;
grid-template-columns: var(--face) minmax(0, 1fr) auto;
grid-template-rows: auto auto;
column-gap: 0.5rem;
row-gap: 0.65rem;
align-items: center;
background: #fff;
border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
border-radius: 16px;
padding: 1rem;
border-radius: var(--radius);
padding: 0.85rem 0.7rem 0.85rem 0.55rem;
min-width: 0;
overflow: hidden;
box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
@@ -118,45 +116,40 @@ const colors = computed(() => PIPELINE_ACCENT[props.accent]);
outline-offset: 2px;
}
.top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 0.5rem;
}
.identity {
display: flex;
align-items: flex-start;
gap: 0.65rem;
min-width: 0;
flex: 1;
.badge,
.avatar {
width: var(--face);
height: var(--face);
max-width: var(--face);
border-radius: 999px;
justify-self: center;
}
.badge {
flex: 0 0 auto;
width: 2.35rem;
height: 2.35rem;
border-radius: 999px;
display: grid;
place-items: center;
background: var(--badge-bg);
color: var(--badge-fg);
font-size: 0.72rem;
font-size: 0.65rem;
font-weight: 800;
line-height: 1;
}
.avatar {
object-fit: cover;
border: 1px solid var(--line);
}
.titles {
min-width: 0;
flex: 1;
text-align: right;
}
.titles h3 {
margin: 0;
font-size: 0.95rem;
font-size: 0.82rem;
font-weight: 800;
line-height: 1.45;
line-height: 1.4;
color: var(--ink);
cursor: pointer;
overflow: hidden;
@@ -167,64 +160,45 @@ const colors = computed(() => PIPELINE_ACCENT[props.accent]);
}
.desc {
margin: 0.15rem 0 0;
margin: 0.1rem 0 0;
color: var(--muted);
font-size: 0.8rem;
line-height: 1.4;
font-size: 0.7rem;
line-height: 1.35;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.menu {
align-self: start;
justify-self: end;
border: 0;
background: transparent;
background: none;
color: var(--muted);
padding: 0.15rem;
border-radius: 8px;
width: auto;
height: auto;
padding: 0;
margin: 0;
line-height: 0;
cursor: pointer;
flex: 0 0 auto;
}
.menu:hover,
.menu:focus-visible {
color: var(--ink);
background: #f1f5f9;
}
.meta {
margin-top: 0.85rem;
display: flex;
align-items: flex-end;
justify-content: space-between;
gap: 0.5rem;
min-width: 0;
}
.who {
display: flex;
align-items: center;
gap: 0.5rem;
min-width: 0;
}
.avatar {
width: 28px;
height: 28px;
max-width: 28px;
border-radius: 999px;
object-fit: cover;
border: 1px solid var(--line);
flex: 0 0 auto;
background: none;
outline: none;
}
.date {
display: inline-flex;
display: flex;
align-items: center;
gap: 0.3rem;
justify-content: flex-start;
gap: 0.25rem;
min-width: 0;
width: 100%;
color: var(--muted);
font-size: 0.78rem;
font-size: 0.68rem;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
@@ -234,14 +208,13 @@ const colors = computed(() => PIPELINE_ACCENT[props.accent]);
.amount {
text-align: left;
display: grid;
justify-items: start;
justify-items: end;
gap: 0.02rem;
flex: 0 1 auto;
min-width: 0;
}
.amount strong {
font-size: 1.05rem;
font-size: 0.88rem;
font-weight: 800;
color: var(--ink);
letter-spacing: -0.01em;
@@ -250,7 +223,7 @@ const colors = computed(() => PIPELINE_ACCENT[props.accent]);
}
.amount span {
font-size: 0.72rem;
font-size: 0.65rem;
color: var(--muted);
font-weight: 600;
}