7 Commits
Author SHA1 Message Date
MrBlakeandClaude Opus 5.5 4a4bf52a28 Add README screenshots; fix upside-down labels and status badges
Labels on items rotated by more than 90 degrees are flipped to stay
readable (designer and location preview). Status badges use inline
colors because NetBox color names are not Bootstrap badge classes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 14:20:37 +01:00
MrBlakeandClaude Opus 5.5 25e944ada7 Fix AttributeError on rack and device pages
NetBox 4.7 lists related objects via Model.objects.restrict(), which the
plain FloorPlanItem manager lacked. Drop the reverse accessors from rack
and device (related_name='+') and use a RestrictedQuerySet manager.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:23:02 +01:00
MrBlakeandClaude Opus 5.5 04a6e16975 Add tenant to floor plans with tenant filters
Floor plans get an optional tenant (inherited from location or site on
creation; existing plans are pre-filled by the migration). The list
view supports tenant and tenant group filtering and columns, and the
tenant is exposed in forms, CSV import, REST API and the detail page.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 13:04:15 +01:00
MrBlakeandClaude Opus 5.5 805aedba52 Show clickable floor plan previews on location pages
Render a read-only SVG preview of each floor plan server-side and add
it as a panel to the location detail page; clicking a preview opens
the floor plan. Bump version to 0.1.2.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:53:42 +01:00
MrBlakeandClaude Opus 5.5 6b47b0fd5b Fix CSRF failure when saving layout; rename plugin to NetBox-Floorplaner
Read the CSRF token from a rendered {% csrf_token %} instead of the
cookie, which may be HttpOnly or use a custom name. Set the plugin
author to Claude and bump the version to 0.1.1 (busts static cache).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:47:34 +01:00
MrBlakeandClaude Opus 5.5 ab8ab7ed61 Add room size input in meters alongside centimeters
The floor plan form and the designer accept a room size like "4 x 3"
(meters), show dimensions in meters on the plan edges, in the table,
detail page and tooltips, and display the floor area.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:37:15 +01:00
MrBlakeandClaude Opus 5.5 c4dc5d53ce Initial NetBox Floor Planner plugin
Drag & drop SVG floor plan designer for NetBox 4.7.2+ with rack/device
placement, smart snapping, undo/redo, view mode with status colouring,
SVG/PNG export, REST layout API and English/German translations.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-04 12:18:13 +01:00