Defects pinned on the drawing, carried across revisions
The drawing screen puts a site's defects, questions for the designer and photos on the sheet as numbered pins, each disc in the colour of its state, with the same pins in a list beside it. When a new revision is uploaded, the open pins move onto it and the closed ones stay behind, greyed. A pin opens in a side panel, so the drawing and the list stay in view.
By Bohuslav PoláčekChecked
What the screen shows
- The header: the drawing's number as a small eyebrow, its title, "Valid revision C" with a check, then "Add a pin" and "Upload a revision".
- The drawing: the sheet of the current revision on the kit's
PinBoard, which pans and zooms, with the revision switch in one corner and the zoom buttons in the other. The sheet marks what revision C changed with a cloud and the letter. - The pins: numbered discs on the sheet. The disc takes the tone of the pin's state, the same word the list shows beside it, and a pin that belongs to another revision is grey.
- The list beside the drawing: tabs for Pins and Revisions with their counts, the kind of pin (All, Defects, Questions, Photos) and the state, then each pin with its number, title, code, state and place, such as "1.03 Paediatric surgery, by axis B/3".
On a phone the drawing comes first and the list under it, in the screen's one scroll (canvas pattern).
Revisions: open pins move on, closed ones stay behind
The newest revision is the valid one. An older revision opens as it was, its pins greyed and nothing added to it, and its header says "Revision B is superseded by revision C".
When a revision is uploaded, every open pin is carried onto it: a defect not yet accepted, a question without an answer. Closed pins and photos stay on the revision they belong to and show greyed on the newer ones, so the history stays on the sheet without competing with the work still open. On A-102, pins 1 to 4 (an answered question, a photo and two accepted defects) are grey on revision C; 5 to 7 are being fixed and 8 to 10 are open.
Adding a pin and opening one
"Add a pin" turns the board into a crosshair: a click drops the pin and a short form opens in the side panel, and Escape stops. A drag that moved the drawing never drops a pin.
A pin opens in a RecordPeek beside the drawing (?nahled= and the pin), so the board and the list stay usable. While the panel is open on a wide screen, the list gives way to a strip of numbered discs beside the board, so no pin hides under the panel. The kind and state filters live in the address too (?druh=, ?stav=) and apply to the list and the board at once.
Pins are stored as fractions of the sheet, from 0 to 1, so a pin lands on the same spot at any size, and the discs keep their size at any zoom. Every pin is a button named by its number and title, so the pins can be walked with Tab; the board pans with the arrow keys and zooms with the plus and minus keys when it has focus.
Who may do what, and by when
The rules sit in the module's domain/permissions.ts and the api asks again before it saves (permissions pattern):
- The owner and the site managers do everything.
- The foreman drops pins and photos and marks a fix done.
- The client's supervisor sees the drawings and pins of his own sites only, asks the designer and accepts fixes.
- The office and the estimator only read.
- Four eyes: a fix is accepted by somebody other than the person who marked it done.
The deadlines come from one file, domain/rules.ts: a defect found during the build is due in 14 days unless the manager sets another day, a question to the designer is answered within 5 working days, and defects from a handover are removed within 21 days.
The snag list behind the pins
Defects and snags is the same defects of a site as a table for the handover protocol: the number, the defect and its place on the drawing, the category (Preventing use or Minor), who fixes it, the deadline and the state, built on the kit's DataTable. A summary above it counts the defects by category and state for the protocol. "Hand over" sends the selected open defects to their fixers and says how many of the selection it applies to (bulk bar). Each row links to its pin on the drawing, and a defect opens beside the list like any record.
What AI coding tools get wrong here
- Markers placed in pixels. A generated plan view puts absolutely positioned markers over an image, which drift as soon as the image scales.
PinBoardkeeps pins as fractions of the drawing and keeps their size at any zoom. - Colour by kind. Red for defects and blue for questions says nothing about what needs doing. Here the disc carries the state, the same word as in the list (StatusLabel), and what is closed turns grey.
- One sheet, no revisions. Pins stuck on a single image are lost when the drawing changes. Here a pin belongs to the revision it was dropped on, and the open ones move on to the next.
- A pin on its own page. Opening a pin that replaces the drawing loses where it was. The pin opens beside the board, and from the snag list the panel's corner button takes it to its drawing, which is the pin's full page (record side panel).
Which pins a revision shows, and one list for the board and the list
// A pin exists on a revision from the one it was dropped on; the ones that
// live on another revision (closed ones left behind, carried ones seen on
// an older sheet) are greyed.
const onRevision = useMemo(() => pins.filter((pin) => pin.createdRevision <= viewing.letter), [pins, viewing.letter]);
const counts = {
all: onRevision.length,
defect: onRevision.filter((pin) => pin.kind === "defect").length,
question: onRevision.filter((pin) => pin.kind === "question").length,
photo: onRevision.filter((pin) => pin.kind === "photo").length,
};
const shown = useMemo(
() =>
onRevision
.filter(
(pin) => ((!kindFilter || pin.kind === kindFilter) && matchesState(pin, stateFilter)) || pin.id === peekId,
)
.sort((a, b) => a.number - b.number),
[onRevision, kindFilter, stateFilter, peekId],
);
const isFiltered = kindFilter !== null || stateFilter !== "all";Questions
Can the foreman add defects from a phone?
Yes. The foreman may drop pins and photos on his site's drawings and mark a fix done, and on a phone the drawing comes first with the list of pins under it. Accepting the fix is somebody else's step.
What happens to the pins when a new revision of the drawing arrives?
The open pins move onto the new revision. Closed pins and photos stay on the revision they belong to and show greyed on the newer ones, and an older revision opens as it was, with nothing added to it.
Can the client's supervisor see the defects of other sites?
No. He sees the drawings and pins of his own sites only, and a pin of another site opened by its address is refused as well. On his sites he asks the designer and accepts fixes.
Who confirms that a defect is fixed?
Somebody other than the person who marked it fixed: a site manager, the owner or the client's supervisor. The rule sits in the module's permissions file, and the api checks it again before it saves.
Do the pins stay in place when the drawing is zoomed or resized?
Yes. Each pin is stored as a fraction of the sheet's width and height, so it lands on the same spot at any size, and the discs keep their size at any zoom so they stay easy to tap.
Related
- An app for a construction companyExample app
- A construction schedule that reads the weatherScreens
- A site diary day, prefilled and signed by the right personScreens
- A change order that shows its price before anyone approves itScreens
- A workflow canvas where a test run walks the stepsScreens
- A driver record that says what expires nextScreens
Two ways
Build it yourself, or have it built
Build it yourself
Build your app on the framework
Get the codebase these apps stand on and build yours with Claude Code, Cursor or Codex.
One payment, lifetime updates
Get the frameworkHave it built
Have us build your app
Tell us how your team works. We plan the app with you and build it on the same framework at a fixed price.
After launch, Care keeps it improving, from €99 a month.
from €1,990
Describe your app