Commit Graph

6 Commits (7bcfa73c1903d7f9f1a13781dce80d109c1d35f2)

Author SHA1 Message Date
Joca 7bcfa73c19
Show device model images + Back to Rack link
Device view now displays front/back model images above the port list.
Added a 'Back to Rack' breadcrumb link when the device is rack-mounted.
2026-06-09 19:11:10 -03:00
Joca b9ebc1d141
Use cable color instead of hardcoded green for connected port badges
Port spans now pick up the connection's actual color for border and a
light tint for background via inline styles. The .connected CSS class
only ups the border width to 2px for emphasis. Applied to _port_list.html
shared partial and wall_sockets.html inline rendering.
2026-06-09 18:55:48 -03:00
Joca cada7ab6c2
Add empty-state messages to overview page
Grid sections for Racks and Devices now show a dashed 'No X yet' message
when the collection is empty, using Go template {{else}} blocks. CSS
styles the placeholder with muted text and a dashed border.
2026-06-09 18:55:03 -03:00
Joca cfc4dc564a
Fix rack front/back column misalignment
Replaced independent flex columns with a single table where each rack
unit is a <tr> containing both front and back content. Row heights now
stay locked together regardless of device name length. Device-start
rows get a top border and surface background for visual grouping.
2026-06-09 18:54:04 -03:00
Joca fcb04be887
Fix modal overlay sticking on page changes
- CSS now uses .open class instead of conflicting display:flex rule
- Simplified closeModal() - removed broken event.target checks
- Escape key calls closeModal() directly
- Removed stale style attribute from overlay div
2026-06-03 23:42:41 -03:00
Joca a0f05791f8
Initial commit: Go + HTMX network mapping tool
- Database schema (SQLite) with migrations
- Data models: racks, devices, device models, ports, connections
- CRUD store layer in internal/db/
- Connection tracing service
- HTTP handlers for overview, rack, device, model, connection, wall sockets
- HTML templates with HTMX for connection modal
- Dark-themed CSS
- Vanilla JS for modal overlay management
2026-06-03 23:11:15 -03:00