Skip to content

Instantly share code, notes, and snippets.

View TosinAF's full-sized avatar
🧢

Tosin Afolabi TosinAF

🧢
View GitHub Profile
@TosinAF
TosinAF / gist:a3a3f77143765cdacc299910039bc554
Created April 10, 2026 06:32
i18n Phase 2: Unwrapped HTML help text blocks in workflow constants
# i18n Phase 2: HTML Help Text Blocks
## Context
As part of an i18n audit of the Harvey frontend, we identified ~23 large HTML help text blocks that contain user-facing content with zero Lingui wrapping. These are more complex than simple string wrapping (Phase 1) because they contain multi-paragraph HTML with inline formatting.
This doc covers the 7 blocks in `src/components/workflows/constants.ts`. There are also 16 similar blocks in `src/components/research/constants.tsx` (not covered here).
---
@TosinAF
TosinAF / tts-erd.md
Last active April 2, 2026 13:44
[ERD] Text-to-Speech for Harvey Responses — dual approach with Mixpanel tracking

[ERD] Text-to-Speech for Harvey Responses

Related Links

@TosinAF
TosinAF / tts-implementation-plan.md
Last active April 2, 2026 11:03
TTS Implementation Plan — Dual Approach (full file + progressive chunks)

TTS Implementation Plan — Dual Approach

Use Case & Requirements (from team discussion)

Primary use case: Playing Harvey assistant responses out loud. Responses can be long.

Control Priorities (from Anna, corrected)

Priority Control Notes
@TosinAF
TosinAF / i18n-callsite-migration-plan.md
Created April 1, 2026 20:23
i18n Call-Site Migration Plan — Agent-Ready PR-by-PR Guide

i18n Call-Site Migration Plan — Agent-Ready PR-by-PR Guide

Date: 2026-03-30 Status: Ready for execution Prerequisite PRs (all merged): #39975 (infra), #40117 (PO fill), #40174 (fixups)


How to Use This Plan

@TosinAF
TosinAF / audio-seeking-decision.md
Last active March 31, 2026 20:30
TTS Audio Delivery: Seeking Support on iOS & Web — decision doc for ElevenLabs integration

TTS Audio Delivery: Seeking Support on iOS & Web

Decision needed: How should we deliver TTS audio to clients so that seeking (scrubbing forward/backward) works reliably on both iOS and Web?


The Problem

When a user listens to generated audio, they expect standard playback controls: play, pause, and seek (scrub to any point in the audio). This is trivial with a normal audio file but breaks with streamed audio.

@TosinAF
TosinAF / i18n-completion-pr-plan.md
Created March 3, 2026 18:54
i18n Completion PR Plan — structured plan for the final wave of localization PRs

i18n Completion PR Plan: Hardcoded Strings + i18next→Lingui Migration

Date: February 24, 2026 Branch base: main Total scope: ~3,460 string changes across 19 PRs (18 done, 1 remaining) Prerequisite: Lingui v5 infrastructure already deployed (PR #19175)


How to Use This Document

@TosinAF
TosinAF / lingui-migration-plan.md
Created March 3, 2026 18:54
Lingui Migration Plan — master plan doc used to coordinate AI agents across 80+ parallel workspaces

Lingui Migration Plan: i18next → Lingui v5

Unified plan synthesized from two independent research efforts and framework documentation research. Date: 2026-02-08


Executive Summary

Migrate the Harvey frontend from i18next (runtime JSON loading via HTTP backend) to Lingui v5 (compile-time PO catalogs via Vite plugin). The migration covers the main app, Word Add-In, and Outlook Add-In. It is phased into atomic PRs grouped by product area for reviewability.

@TosinAF
TosinAF / lingui-audit-report.md
Created March 3, 2026 00:52
Lingui unlocalized strings audit report — 1,657 warnings across 428 files

Lingui Unlocalized Strings Audit Report

Generated: 2026-03-03

Total warnings: 1657 across 428 files


Table of Contents

@TosinAF
TosinAF / 0_reuse_code.js
Created November 27, 2015 17:38
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@TosinAF
TosinAF / TNPageViewController.m
Created May 24, 2015 18:30
Disabling UIPageViewController Swipe on certain areas of the screen
//
// TNPageViewController.m
// The News
//
// Created by Tosin Afolabi on 26/06/2014.
// Copyright (c) 2014 Tosin Afolabi. All rights reserved.
//
#import "TNPageViewController.h"