_companyId._companyId, and the UI only exposes fixed team handbooks (office, inspector) per company login.Product / data model (decision needed)
help-docs vs handbook list values on helpDocSchema.Backend (attik-backend)
src/models/helpDocSchema.ts — all documents require _companyId; list enum is 'help-docs' | 'handbook' only; no org/LP/region field.src/routes/helpdoc.ts — list/create/update filtered by req.query._companyId / res.locals.company._id.src/util/data/permissionsData.ts — handbook permissions (handbook, handbook-office, handbook-inspector, handbook-admin) are per user/company role, not cross-brand.src/util/functions/ai/syncHelpdocsToAIChunks.ts — indexes helpdoc URLs per company context; may need scope if shared content is searchable across brands.Frontend (attik-frontend)
src/app/tools/handbook/[[...id]]/page.tsx — routing limited to office and inspector; other slugs return 404.src/util/data/navButtons.tsx — Company Handbook subnav is Office + Inspector only.HelpDocBase.tsx, HelpDocForm.tsx, DraftSheets.tsx, etc.) parameterized by handbookSlug — new slug(s) would need to flow through if added.next.config.js — legacy /help-docs redirects to /handbook.Out of scope (unless product expands)
attik-mobile).Constraints
attik-frontend/src/app/tools/handbook/[[...id]]/page.tsxattik-backend/src/models/helpDocSchema.ts, attik-backend/src/routes/helpdoc.tsattik-backend/src/util/data/permissionsData.tsPlease authenticate to join the conversation.
Planned
Main App
About 2 months ago
Linear
Get notified by email when there are changes.
Planned
Main App
About 2 months ago
Linear
Get notified by email when there are changes.