31 lines
1.3 KiB
Markdown
31 lines
1.3 KiB
Markdown
# Architectural Request
|
|
|
|
**Date:** 2026-04-12
|
|
**Topic:** Debug dashboard badge injection — need ServerRow.tsx contents
|
|
|
|
## 1. Current State
|
|
UpdateBadge.tsx is copied correctly, but the sed injection into ServerRow.tsx may not be matching. Need to see what's actually on disk.
|
|
|
|
## 2. Questions — Please Run These on Dev Panel
|
|
|
|
```bash
|
|
# 1. Does ServerRow.tsx exist?
|
|
find /var/www/pterodactyl/resources/scripts -name "ServerRow.tsx" 2>/dev/null
|
|
|
|
# 2. Is UpdateBadge import present?
|
|
grep -n "UpdateBadge" /var/www/pterodactyl/resources/scripts/components/dashboard/ServerRow.tsx 2>/dev/null
|
|
|
|
# 3. What does the server name line look like?
|
|
grep -n "server.name" /var/www/pterodactyl/resources/scripts/components/dashboard/ServerRow.tsx 2>/dev/null
|
|
|
|
# 4. Was yarn build run after the injection?
|
|
ls -la /var/www/pterodactyl/public/assets/manifest.json 2>/dev/null
|
|
|
|
# 5. Any JS errors visible?
|
|
# Michael: open browser console (F12) on dashboard, look for red errors
|
|
```
|
|
|
|
The sed pattern `{server.name}</p>` has to match exactly. If the actual JSX is different (e.g. `{server.name}</span>` or uses a different variable), the injection silently fails.
|
|
|
|
Also: **did `yarn build:production` run after build.sh?** The React components need to be compiled for the frontend to pick them up.
|