Add end caps to polylines and keep them in PDF exports. Project creation can now trigger a Slack notification through PostHog, filtered to a specific user.
Pick start and end caps from the Polyline style controls, before drawing or on an existing markup. Caps appear in the drawing preview, remain selectable on the sheet and carry through flattened PDF exports. Polylength also keeps the caps chosen before a new run.
After a project and its creator's membership are saved, the server sends a creation event to PostHog. A Slack destination can match the creator's user ID to notify only for that person's projects.
NEXT_PUBLIC_POSTHOG_PROJECT_TOKEN and NEXT_PUBLIC_POSTHOG_HOST. Configure the Slack destination in the corresponding PostHog project.project_created with source = layr-server. The event's Distinct ID is the creator's user ID; user_id and project_id are also included. Project names and document contents are not sent.