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
4 changes: 4 additions & 0 deletions .changeset/fix-admin-member-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

Fix broken admin organization links and make member names clickable.
11 changes: 10 additions & 1 deletion server/public/admin-members.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@
.members-table tr:hover {
background: var(--color-gray-50);
}
.company-link {
color: var(--color-text-heading);
text-decoration: none;
font-weight: var(--font-medium);
}
.company-link:hover {
color: var(--color-brand);
text-decoration: underline;
}
.status-badge {
display: inline-block;
padding: var(--space-1) var(--space-2);
Expand Down Expand Up @@ -600,7 +609,7 @@ <h4>This action cannot be undone</h4>

return `
<tr id="row-${member.company_id}">
<td><strong>${member.company_name || 'Unknown'}</strong></td>
<td><a href="/admin/organizations/${member.company_id}" class="company-link">${member.company_name || 'Unknown'}</a></td>
<td>${companyTypeText}</td>
<td>${revenueTierText}</td>
<td>${member.owner_email || 'No email'}</td>
Expand Down
4 changes: 2 additions & 2 deletions server/public/admin-prospects.html
Original file line number Diff line number Diff line change
Expand Up @@ -2225,7 +2225,7 @@ <h3>No Issues Found</h3>
return `
<tr style="vertical-align: top;">
<td>
<a href="/admin/member.html?org=${analysis.org_id}" target="_blank">
<a href="/admin/organizations/${analysis.org_id}" target="_blank">
<strong>${analysis.org_name}</strong>
</a>
</td>
Expand All @@ -2249,7 +2249,7 @@ <h3>No Issues Found</h3>

// Update table headers for cleanup view
document.querySelector('thead tr').innerHTML = `
<th>Organization</th>
<th style="width: 180px;">Organization</th>
<th>Issues</th>
<th>Suggested Actions</th>
<th style="width: 120px;">Actions</th>
Expand Down