Skip to content
Merged
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
7 changes: 7 additions & 0 deletions apps/web-dashboard/src/components/CollectionTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ export default function CollectionTable({ data, activeCollection, onDelete, onVi
className="btn-icon"
onClick={() => onView(info.row.original)}
onPointerDown={e => e.stopPropagation()}
aria-label="View Details"
title="View Details"
>
<Eye size={15} />
Expand All @@ -189,6 +190,7 @@ export default function CollectionTable({ data, activeCollection, onDelete, onVi
className="btn-icon"
onClick={() => onEdit(info.row.original)}
onPointerDown={e => e.stopPropagation()}
aria-label="Edit Record"
title="Edit"
>
<Pencil size={15} />
Expand All @@ -197,6 +199,7 @@ export default function CollectionTable({ data, activeCollection, onDelete, onVi
className="btn-icon danger-hover"
onClick={() => onDelete(info.row.original._id)}
onPointerDown={e => e.stopPropagation()}
aria-label="Delete Record"
title="Delete"
>
<Trash2 size={15} />
Expand Down Expand Up @@ -361,6 +364,9 @@ export default function CollectionTable({ data, activeCollection, onDelete, onVi
<div style={{ position: 'relative' }}>
<button
className="btn btn-secondary btn-sm"
aria-label={showColumnMenu ? "Close column menu" : "Open column menu"}
aria-hashpopup="menu"
aria-expanded={showColumnMenu}
onClick={() => setShowColumnMenu(!showColumnMenu)}
style={{
display: 'flex',
Expand Down Expand Up @@ -556,6 +562,7 @@ export default function CollectionTable({ data, activeCollection, onDelete, onVi
value={scrollState.scrollLeft}
onChange={handleSliderChange}
onInput={handleSliderChange}
aria-label="Scroll table horizontally"
style={{ width: '100%', cursor: 'ew-resize' }}
className="column-slider"
/>
Expand Down
4 changes: 4 additions & 0 deletions apps/web-dashboard/src/components/DatabaseSidebar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,14 @@ export default function DatabaseSidebar({
<div className="sidebar-actions">
<button
className="btn-icon hide-desktop"
aria-label="Close sidebar"
onClick={() => setIsSidebarOpen(false)}
>
<X size={18} />
</button>
<button
className="btn-icon add-col-btn"
aria-label="New collection"
onClick={() => navigate(`/project/${projectId}/create-collection`)}
Comment thread
yash-pouranik marked this conversation as resolved.
title="New Collection"
>
Expand All @@ -50,6 +52,7 @@ export default function DatabaseSidebar({
<p>No collections yet.</p>
<button
className="btn btn-secondary btn-sm"
aria-label="Create your first collection"
onClick={() =>
navigate(`/project/${projectId}/create-collection`)
}
Expand All @@ -72,6 +75,7 @@ export default function DatabaseSidebar({
<div className="flex items-center gap-2 ml-auto" style={{ display: 'flex', alignItems: 'center', gap: '8px', marginLeft: 'auto' }}>
<button
className="btn-icon delete-btn"
aria-label="Delete Collection"
onClick={(e) => {
e.stopPropagation();
if (onRequestDelete) onRequestDelete(c);
Expand Down
1 change: 1 addition & 0 deletions apps/web-dashboard/src/components/RecordList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export default function RecordList({ data, activeCollection, onView }) {
<div
key={record._id}
className="record-card glass-panel"
aria-label={`View details for record ${record._id}`}
onClick={() => onView(record)}
Comment thread
yash-pouranik marked this conversation as resolved.
>
<div className="record-main-info">
Expand Down
Loading