Forays in Fancy Formatting
Supporting rich text in incident summaries and updates means translating between Slack's new rich text input and ProseMirror in the dashboard, plus one-way exports to Jira, Confluence, Notion, Google Docs and email, each with different formatting rules. Because Slack only supports single-level lists, incident.io restricted dashboard lists to one level rather than flattening them, keeping the experience consistent. Debrief templates were the hardest case, since an embedded summary might land inside a heading, table or list. Unsupported combinations are handled by "downgrading" the formatting: bullet characters stand in for lists in tables, bold text replaces headings in lists, and inline code replaces code blocks in quotes.
Related posts
- Frontend Engineering at Palantir: Engineering Multilingual Collaboration
Palantir mediumAdeptDossier, Palantir's collaborative rich-text editor, gained a read-only translation mode that routes all text through an in-house Language Model Service so content never leaves secure or air-gapped networks. Documents are chunked at the block level (paragraphs, list items, table cells) to balance model context against latency. Only blocks entering the viewport are translated, detected via IntersectionObserver, with batching, debouncing and caching to limit backend load. Translation state lives in a dedicated Redux slice with a per-block cache keyed by element ID, which is invalidated on live edits. Inline formatting is stripped before translation because splitting sentences around bold or link spans breaks grammar, so the translated view is currently plain text.
- Engineering nits: Building a Storybook for Slack Block Kit
incident.io mediumAdeptincident.io built a Storybook-style catalogue for its 70+ Slack modals and similar number of messages by extending its Go modal registration framework so every `modal.Register` call also supplies named example variants built from test fixtures. A `slackpreview` package collects these templates, and an API endpoint with a small Go template renders an index page linking each variant to Slack's Block Kit Builder, which serialises the whole Block Kit payload into a shareable URL. Because examples are cheap to write, they are required for every modal, letting anyone, including non-engineers, preview any Slack UI state within seconds.
- Zed Weekly: #21
Zed easyNoviceWeekly team update from the Zed editor team. It covers initial Prettier integration and better LSP server log display, a storybook CLI for rendering new GPUI UI components in isolation, and Vim mode's command palette shipping to preview. Julia explains why vertical cursor movement drifts with mixed scripts, multi-codepoint graphemes like ZWJ emoji, and proportional fonts, and proposes tracking an intended pixel x-position resolved like a mouse click, which costs more compute. Other items include ClickHouse dashboard query optimization (minutes to under 10 seconds), the Semantic Index shipping to stable, cross-project following for channel notes, and CRDT Lamport-timestamp-based change notifications.
- Zed Weekly: #24
Zed mediumAdeptWeekly roundup from the Zed editor team covering a range of fixes and features. Gitignore handling now stops at the first .gitignore whose sibling is a .git directory, which fixes setups with a dotfiles repo in $HOME. Up/down cursor movement now uses the text layout engine's output instead of counting UTF-8 bytes, because code points and grapheme clusters still break on font fallback, double-width characters and proportional fonts. Other items include guest participants in calls, a Copilot keybind collision with typographic quotes, Tailwind autocomplete for more languages, a Vim-mode toggle command, remote terminal sharing work, and a "Retrieve Context" button that feeds semantic-index results to the inline assistant.
- Optimizing LLM prompts for low latency
incident.io mediumAdeptincident.io cut latency of an LLM prompt that plans Grafana dashboards for incident investigations from 11s to under 2.3s without changing its behaviour, mainly by shrinking output tokens. Dropping JSON reasoning fields halved output tokens (315 to 170) and saved about 40% latency. Replacing JSON dashboard definitions with a compact custom format cut input from 15k to 2k tokens but saved only about 20%. A terse non-JSON output format cut output tokens by a further 70% and latency by 60%, though the team held back from shipping it because models are more familiar with JSON and quality could suffer in subtle ways.