01Problem and context
Kazakhtelecom connects apartment buildings to fibre through construction contractors. One building goes through a long chain: a sponsor's request, an order to a contractor, network design in eight stages, a construction plan and sprints, commissioning (cable tracing, control measurements, OLT ports), preliminary and final acceptance by a commission, and a closing package. Part of the work happens at the contractor, part at the operator, and most steps end with an e-signature.
02Constraints
- aTwo audiences, two products, one backend and one identity provider (Keycloak).
- bLegally binding documents signed with the national e-signature (NCALayer).
- cThe map SDK was blocked at ISP level in the middle of the project.
- dA small team building both products in parallel while the backend contracts kept changing.
03My role
I started the Contractor Cabinet from git init in August 2025 — architecture, authentication, CI — and built its hardest parts: the facade constructor, with auto-design and a 3D view of every cable run; the eight-stage network-design workflow; construction plans and sprints; the map layer; and the in-app AI assistant chat. For the chat I built the interface and conversation flow; model integration comes next, and in Construction Hub the assistant is already live. In June 2026 we started Construction Hub on the same core, and I led its frontend: contractor orders, approval routes, registries, administration (roles, permissions, audit log, substitutions), reference-data classifiers, commissioning and final acceptance.
I lead a team of 4 frontend engineers — architecture, code review, sprint planning, mentoring — and stay hands-on about 60% of the time. I partner with product owners, Figma designers and backend engineers on requirements and API contracts. We — 4 frontend engineers with analysts, designers and the backend team — built the rest.
04Decisions and why
- Decision
- Construction Hub reuses the Contractor Cabinet's core — app skeleton, src/shared, auth, API client.
- Why
- Same backend, same design system, same rules; engineers move between the two products without relearning.
- Rejected
- Starting the second product from scratch.
- Decision
- Feature-Sliced Design with boundaries enforced by the linter — imports only go down, features never import each other.
- Why
- Two products and a growing team; architecture drift is caught in review, not months later.
- Rejected
- Conventions written down but not enforced.
- Decision
- API types generated from OpenAPI, query keys from shared factories.
- Why
- Backend contracts changed every week; mismatches now fail the build instead of production.
- Rejected
- Hand-written request and response types.
- Decision
- A map-provider interface: the blocked 2GIS SDK replaced by Leaflet with 2GIS tiles, with automatic fallback to Yandex Maps and back.
- Why
- The primary SDK became unreachable at ISP level; the product cannot depend on one vendor being reachable.
- Rejected
- A hard switch to one other vendor.
- Decision
- Auto-design draws cable routes from the backend's blueprint, not from a decorative frontend layer.
- Why
- What the engineer sees on the facade is exactly what gets built and priced.
- Rejected
- Drawing routes only on the client.
- Decision
- A verification gate before anything is “done” — type-check, lint, tests and formatting — and a guide for AI coding assistants in each repository with the same gate; AI agents also check each screen in a real browser through Playwright MCP against the Figma design.
- Why
- The team uses AI assistants daily, with AI code review in the pull-request flow; the gate keeps generated code to the same standard as hand-written code.
- Rejected
- Relying on review alone.
05Figures
06Tradeoffs and what went wrong
Reusing the core also meant inheriting its early shortcuts. The access-model migration from roles to fine-grained permissions landed after the first modules had shipped, so parts of them were reworked. E-signature depends on NCALayer, an app on the user's own machine: when its secure socket is unavailable, the UI can only explain what to check.
07Quality
- Testing
- Automated tests in both products — Vitest with React Testing Library and MSW — run with type-check and lint on every pull request; deploys go through CI.
- Performance
- Load time ~35% faster and bundle ~15% smaller, measured with Lighthouse, DevTools and bundle analysis: code splitting, lazy loading, brotli, Web Crypto instead of crypto-js. “any” types cut by 87%.
- Accessibility
- The facade constructor works from the keyboard — typed lengths, Enter, Del and function keys — and its diagram elements carry accessible names.
08Result in numbers
09What I'd do differently
- Extract the shared core into a package from day one, before the second product needed it.
- Start with fine-grained permissions, not roles.
- Agree OpenAPI contracts before building screens.
10Credits
- Product
- Product and analysts — Kazakhtelecom programme team
- Design
- Product designer
- Backend
- Backend team
- Frontend
- 4 engineers, led by me