Skip to content
Merged
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
79 changes: 44 additions & 35 deletions src/pages/Tracker/Tracker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -351,41 +351,50 @@ const Home: React.FC = () => {
</TableHead>

<TableBody>
{currentFilteredData.length === 0 ? (
<TableRow>
<TableCell colSpan={4} align="center" sx={{ py: 6, color: "text.secondary" }}>
{tab === 0 ? "No issues found for this user" : "No pull requests available"}
</TableCell>
</TableRow>
) : (
currentFilteredData.map((item) => (
<TableRow key={item.id}>
<TableCell sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
{getStatusIcon(item)}
<Link
href={item.html_url}
target="_blank"
rel="noopener noreferrer"
underline="hover"
sx={{ color: theme.palette.primary.main }}
>
{item.title}
</Link>
</TableCell>

<TableCell align="center">
{item.repository_url.split("/").slice(-1)[0]}
</TableCell>

<TableCell align="center">
{item.pull_request?.merged_at ? "merged" : item.state}
</TableCell>

<TableCell>{formatDate(item.created_at)}</TableCell>
</TableRow>
))
)}
</TableBody>
{totalCount === 0 ? (
<TableRow>
<TableCell colSpan={4} align="center" sx={{ py: 6, color: "text.secondary", textAlign: "center" }}>
{tab === 0 ? "No issues found for this user" : "No pull requests available"}
</TableCell>
</TableRow>
) :

currentFilteredData.length === 0 ? (
<TableRow>
<TableCell colSpan={4} align="center" sx={{ py: 6, color: "text.secondary", textAlign: "center" }}>
No matches found on this page. Try resetting your filters or changing pages.
</TableCell>
</TableRow>
) : (

currentFilteredData.map((item) => (
<TableRow key={item.id}>
<TableCell sx={{ display: 'flex', alignItems: 'center', gap: 1 }}>
{getStatusIcon(item)}
<Link
href={item.html_url}
target="_blank"
rel="noopener noreferrer"
underline="hover"
sx={{ color: theme.palette.primary.main }}
>
{item.title}
</Link>
</TableCell>

<TableCell align="center">
{item.repository_url.split("/").slice(-1)[0]}
</TableCell>

<TableCell align="center">
{item.pull_request?.merged_at ? "merged" : item.state}
</TableCell>

<TableCell>{formatDate(item.created_at)}</TableCell>
</TableRow>
))
)}
</TableBody>

</Table>
<TablePagination
Expand Down