Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 16 additions & 4 deletions apps/web/src/components/EntryShell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ import {
type PluginShareProjectOutcome,
} from '../state/projects';
import { TasksView } from './TasksView';
import { TeamProjectsView } from './TeamProjectsView';
import {
API_KEY_PLACEHOLDERS,
API_PROTOCOL_TABS,
Expand Down Expand Up @@ -1082,13 +1083,24 @@ export function EntryShell({
) : null}
{/* Team destinations — the entry shell owns the nav frame only; each
view is provided by another lane (B = members/board, D = team
project spaces / workspace settings), rendered as a placeholder
until those land. */}
project spaces / workspace settings). */}
{view === 'drafts' ? (
<TeamSlotPlaceholder icon="file" title={t('entry.navDrafts')} />
workspaceContext ? (
<TeamProjectsView
mode="drafts"
context={workspaceContext}
onOpenProject={onOpenProject}
/>
) : null
) : null}
{view === 'all-projects' ? (
<TeamSlotPlaceholder icon="folder" title={t('entry.navAllProjects')} />
workspaceContext ? (
<TeamProjectsView
mode="all-projects"
context={workspaceContext}
onOpenProject={onOpenProject}
/>
) : null
) : null}
{view === 'members' ? (
<TeamSlotPlaceholder icon="users" title={t('entry.navMembers')} />
Expand Down
159 changes: 159 additions & 0 deletions apps/web/src/components/TeamProjectsView.module.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
.header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 18px;
}

.titleBlock {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}

.meta {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
color: var(--text-muted);
font-size: 13px;
}

.error {
margin-bottom: 14px;
padding: 10px 12px;
border: 1px solid var(--red-border);
border-radius: var(--radius-sm);
color: var(--red);
background: var(--red-bg);
font-size: 13px;
}

.empty {
display: flex;
align-items: center;
justify-content: center;
min-height: 220px;
border: 1px dashed var(--border);
border-radius: var(--radius-sm);
color: var(--text-muted);
background: var(--bg-panel);
font-size: 14px;
}

.grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 12px;
}

.card {
display: grid;
grid-template-columns: 36px minmax(0, 1fr);
gap: 12px;
min-height: 150px;
padding: 14px;
border: 1px solid var(--border);
border-radius: var(--radius-sm);
background: var(--bg-panel);
box-shadow: var(--shadow-xs);
}

.iconWrap {
display: inline-flex;
align-items: center;
justify-content: center;
width: 36px;
height: 36px;
border-radius: var(--radius-sm);
color: var(--accent);
background: var(--accent-tint);
}

.cardBody {
min-width: 0;
}

.tagRow {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 5px;
min-width: 0;
margin-bottom: 8px;
}

.tag {
display: inline-flex;
align-items: center;
max-width: 100%;
padding: 1px 7px;
border: 1px solid var(--border);
border-radius: var(--radius-pill);
color: var(--text-muted);
background: var(--bg-subtle);
font-size: 10.5px;
font-weight: 500;
line-height: 1.5;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}

.sharedTag {
color: #1c6b55;
background: rgba(28, 138, 115, 0.12);
border-color: rgba(28, 138, 115, 0.28);
}

.name {
margin: 0;
color: var(--text-strong, var(--text));
font-size: 15px;
font-weight: 600;
line-height: 1.35;
overflow-wrap: anywhere;
}

.subline {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 6px;
margin-top: 7px;
color: var(--text-muted);
font-size: 12.5px;
line-height: 1.4;
}

.actions {
grid-column: 1 / -1;
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: 8px;
align-self: end;
}

@media (max-width: 640px) {
.header {
align-items: stretch;
flex-direction: column;
}

.grid {
grid-template-columns: 1fr;
}

.actions {
justify-content: stretch;
}

.actions > button {
flex: 1 1 140px;
}
}
Loading
Loading