Newest version first in history, remove nav section labels

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Krao Hasanee
2026-03-27 00:55:00 -04:00
parent 2c4f42ea55
commit 0371e3eba5
3 changed files with 3 additions and 5 deletions
-2
View File
@@ -5,7 +5,6 @@ import { useAuth } from '../context/AuthContext';
function TeamNav({ onNav }) {
return (
<div className="sidebar-section">
<div className="sidebar-section-label">Main</div>
{[
{ to: '/dashboard', label: 'Dashboard' },
{ to: '/requests', label: 'Requests' },
@@ -23,7 +22,6 @@ function TeamNav({ onNav }) {
function ClientNav({ onNav }) {
return (
<div className="sidebar-section">
<div className="sidebar-section-label">My Work</div>
{[
{ to: '/my-dashboard', label: 'Dashboard' },
{ to: '/my-projects', label: 'Projects' },
+1 -1
View File
@@ -312,7 +312,7 @@ export default function RequestDetail() {
groups[key].push(sub);
return groups;
}, {})
).map(group => {
).reverse().map(group => {
const primary = group.find(s => s.type !== 'amendment') || group[0];
const amendments = group.filter(s => s.type === 'amendment');
const delivery = primary.delivery;
+2 -2
View File
@@ -347,11 +347,11 @@ export default function TaskDetail() {
groups[key].push(sub);
return groups;
}, {})
).map((group, gi, all) => {
).reverse().map((group, gi, all) => {
const primary = group.find(s => s.type !== 'amendment') || group[0];
const amendments = group.filter(s => s.type === 'amendment');
const delivery = primary.delivery;
const isCurrent = gi === all.length - 1;
const isCurrent = gi === 0;
return (
<div key={primary.id} style={{ borderRadius: 8, border: `1px solid ${isCurrent ? 'var(--accent)' : 'var(--border)'}`, background: 'var(--bg)', overflow: 'hidden', opacity: isCurrent ? 1 : 0.85 }}>
<div style={{ padding: '12px 16px', display: 'flex', alignItems: 'center', gap: 10, borderBottom: '1px solid var(--border)', background: 'var(--card-bg-2)' }}>