mirror of
https://github.com/block/buzz.git
synced 2026-11-30 13:12:38 +00:00
docs(agents): mark desktop/ as legacy, not a reference for mobile (#8868)
Agents working on the mobile app have been looking at `desktop/` for implementation and design cues. `desktop/` will soon be superseded by [block/buzz-app](https://github.com/block/buzz-app), while mobile is current, so it should never serve as that reference. - Root `AGENTS.md`: labels `desktop/` as legacy in the repo layout, adds a callout at the top of the Desktop App section, adds the same guidance to the Mobile App section, and drops "matches desktop" from the mobile theme note. Mobile kind constants now sync with `crates/buzz-core/src/kind.rs` (also in the `nostr_models.dart` comment) instead of desktop. - `VISION_MOBILE.md`: replaces the line that allowed the desktop implementation to inform shared mobile rules, so the vision and agent guidance agree. Written intent still takes priority. ### Validation Documentation-only. Reviewed the diff and links. Codex review's one finding (the vision conflict) is addressed. buzz-review-completed 🤖 Generated with [Claude Code](https://claude.com/claude-code) --------- Signed-off-by: Tom Brow <tomb@squareup.com> Co-authored-by: Tom Brow <tomb@squareup.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
17
AGENTS.md
17
AGENTS.md
@@ -130,7 +130,7 @@ crates/
|
||||
buzz-test-client # Integration test client and E2E test suite
|
||||
sprig # All-in-one harness bundling ACP, agent, and dev MCP
|
||||
|
||||
desktop/ # Tauri 2 + React 19 desktop app
|
||||
desktop/ # Legacy Tauri 2 + React 19 desktop app (being replaced by block/buzz-app)
|
||||
web/ # Browser web client (repo browser, served by the relay)
|
||||
mobile/ # Flutter mobile app
|
||||
migrations/ # SQL migrations (run at relay startup when BUZZ_AUTO_MIGRATE is on: binary default off, Helm default on; deployments at scale apply them out of band — see docs/database.md)
|
||||
@@ -619,6 +619,10 @@ description. See [PR #803](https://github.com/block/buzz/pull/803).
|
||||
|
||||
## Desktop App
|
||||
|
||||
> **Legacy.** `desktop/` will soon be superseded by
|
||||
> [block/buzz-app](https://github.com/block/buzz-app). Never use it as an
|
||||
> implementation or design reference for the mobile app, which is current.
|
||||
|
||||
The desktop app is Tauri 2 + React 19 + Vite + Tailwind CSS. Features are
|
||||
organized under `desktop/src/features/`. Biome handles linting and formatting.
|
||||
|
||||
@@ -699,13 +703,20 @@ Key files:
|
||||
|
||||
The mobile app lives in `mobile/` — a Flutter app using Riverpod + Hooks.
|
||||
|
||||
The mobile app is current. Do not use the legacy `desktop/` app as an
|
||||
implementation or design reference for it: `desktop/` will soon be superseded
|
||||
by [block/buzz-app](https://github.com/block/buzz-app). This does not relax
|
||||
cross-client wire compatibility: mobile must keep reading and writing the same
|
||||
event payloads as other clients (for example the `channel-sort` NIP-78 payload,
|
||||
which buzz-app also uses), even where a payload is documented only in code.
|
||||
|
||||
### Architecture
|
||||
|
||||
- **State management:** Riverpod + `flutter_hooks` (`HookConsumerWidget`)
|
||||
- **Theme:** Catppuccin Latte (light) / Macchiato (dark) — matches desktop
|
||||
- **Theme:** Catppuccin Latte (light) / Macchiato (dark)
|
||||
- **Features:** Isolated under `lib/features/`, shared code in `lib/shared/`
|
||||
- **Nostr models:** `lib/shared/relay/nostr_models.dart` — event kinds must
|
||||
stay in sync with `desktop/src/shared/constants/kinds.ts`
|
||||
stay in sync with `crates/buzz-core/src/kind.rs`
|
||||
|
||||
### Rules
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ When writing a spec or implementing significant changes or tests, check them for
|
||||
|
||||
Mobile and desktop follow shared rules for behavior such as channel ordering, unread state, and autocomplete. Presentation and interaction should suit each platform.
|
||||
|
||||
The desktop implementation is a reference we can use to inform defining those rules, but it contains bugs and unintended behavior and is not itself the specification. Written intent takes priority over implementation precedent. A clearer vision or spec developed for mobile can establish the intended shared behavior for desktop too.
|
||||
The legacy `desktop/` app in this repository will soon be superseded by [block/buzz-app](https://github.com/block/buzz-app). Never use it as an implementation or design reference for mobile. Written intent takes priority over implementation precedent. A clearer vision or spec developed for mobile can establish the intended shared behavior for desktop too.
|
||||
|
||||
## Architecture
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@ import 'thread_reference.dart';
|
||||
|
||||
/// Nostr event kind constants.
|
||||
///
|
||||
/// Keep in sync with `desktop/src/shared/constants/kinds.ts`.
|
||||
/// Keep in sync with `crates/buzz-core/src/kind.rs`.
|
||||
abstract final class EventKind {
|
||||
/// Kind:0 user profile metadata.
|
||||
static const profile = 0;
|
||||
|
||||
Reference in New Issue
Block a user