Skip to content

src/lib/addressBook.ts is a fully implemented but completely unused address-book feature #1685

Description

@1nonlypiece

src/lib/addressBook.ts implements a complete localStorage-backed address book (getAll, add, remove, update, labelFor, clear) persisted under 'commitlabs:address-book', with a full AddressEntry { address, label } model. A repo-wide search (grep -rl addressBook src --include=*.tsx --include=*.ts, excluding the file itself and tests) finds zero consumers — no component imports or renders anything from this module, so a user has no way to add a label to an address, and labelFor() is never called anywhere to display one (e.g. next to a seller/owner address in the marketplace or commitment detail views, which would be the natural use case). This is real, working logic that ships in the bundle for no reason, following the same pattern as other orphaned features already found in this codebase (unused compare tray, unused related-commitments rail, unused locale switcher). Acceptance criteria: either wire addressBook into a UI surface where users can label known addresses (e.g. commitment/listing owner display, wallet menu), or remove the module if the feature was abandoned.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions