You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(frontend): add runtime-configurable loading tips with branded dots (#817)
## Summary
- Replace joke loading messages with educational tips about ACP features
- Add 4 branded loading dots (#0066B1, #522DAE, #F40000, white) at 2x
size
- Make tips runtime-configurable via `LOADING_TIPS` environment variable
- Add markdown link support in tips using `[text](url)` syntax
## Changes
- **New API endpoint**: `/api/config/loading-tips` serves tips from env
var with fallback
- **New hook**: `useLoadingTips()` with React Query caching (staleTime:
Infinity)
- **Shared constants**: `lib/loading-tips.ts` for default tips
- **Updated LoadingDots**: 4 colored dots, markdown link parsing,
improved contrast
## Configuration
Set `LOADING_TIPS` env var as JSON array:
```bash
LOADING_TIPS='["Tip: First tip", "Tip: Second tip", "[Link text](https://example.com)"]'
```
Or use a ConfigMap (example in artifacts folder).
## Test plan
- [ ] Verify loading dots appear during AI response generation
- [ ] Verify tips rotate every 8 seconds
- [ ] Test with `LOADING_TIPS` env var set to custom JSON
- [ ] Test markdown links render as clickable
- [ ] Verify fallback to defaults when env var not set
🤖 Generated with [Claude Code](https://claude.com/claude-code)
---------
Co-authored-by: Ambient Code Bot <bot@ambient-code.local>
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments