Commit Graph

10 Commits (ef063100f2c7fb5ab59f2a437c02159c75fde586)

Author SHA1 Message Date
Joca 17ae561828
Cable labels shown between trace segments
Connection labels now appear as accent-bordered pills on the main arrow
between far and clicked segments, instead of plain paragraphs below the
trace. Unlabeled cables show a plain em-dash as before.
2026-06-09 20:14:50 -03:00
Joca 8371ffa1f5
Multi-U device rows get continuous background tint
Rack table rows now carry .device-row class for every unit a device
occupies (not just the start row), giving multi-U devices a continuous
surface-colored background block. A bottom border on the last unit-row
visually separates it from the next device.
2026-06-09 20:14:15 -03:00
Joca 0e97029c59
Click-to-connect mode for rapid cabling
Added Connect Mode toggle button on rack and device views. When active,
clicking a port selects it (glowing accent border), clicking a second
port opens a mini form to choose connection type/color/labels and
create the cable in one flow. Escape or re-clicking deselects. Port
elements now use onclick JS instead of HTMX triggers to support both
normal inspection mode and connect mode.
2026-06-09 20:13:47 -03:00
Joca 56c525cb26
Power strip visual in rack view with outlet grid
Added is_power_strip flag to device_models (schema migration, model,
form checkbox, DB CRUD). Power strip devices in rack view now render
a grid of plug-icon outlets instead of the regular port list, with
custom cable colors showing which outlets are in use.
2026-06-09 20:10:42 -03:00
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