Skip to content

feat: add stream metadata support (name, category, memo)#208

Merged
Austinaminu2 merged 4 commits into
FlowwStar:mainfrom
Vera3289:feat/166-stream-metadata
Jun 29, 2026
Merged

feat: add stream metadata support (name, category, memo)#208
Austinaminu2 merged 4 commits into
FlowwStar:mainfrom
Vera3289:feat/166-stream-metadata

Conversation

@Vera3289

Copy link
Copy Markdown
Contributor

Summary

Adds optional metadata (name, category, memo) to streams in both the contract and frontend.

Changes

Contract (contracts/streaming/src/lib.rs)

  • Added StreamMetadata struct with name, category, memo string fields
  • Added metadata: Option<StreamMetadata> to Stream and CreateStreamParams
  • create_stream stores metadata separately if provided
  • New update_stream_metadata function (sender-only auth)
  • New get_stream_metadata query function

Types (types/stream.ts)

  • Added StreamMetadata interface
  • Added metadata?: StreamMetadata to StreamData and CreateStreamInput

Create form (app/app/create/page.tsx)

  • Added optional Name, Category (select), and Memo fields, wired into CreateStreamInput.metadata

Stream cards (components/streams/stream-card.tsx)

  • Header shows stream.metadata.name when set, otherwise falls back to direction label
  • USD equivalent shown below token amount

Acceptance criteria

  • StreamMetadata struct added to contract
  • create_stream accepts optional metadata
  • update_stream_metadata function for sender to edit
  • Frontend create form has optional metadata fields
  • Stream cards display name if set

Closes #166

@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Vera3289 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@Austinaminu2 Austinaminu2 merged commit 511cc4b into FlowwStar:main Jun 29, 2026
0 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(contract): Add stream metadata support (name, category, memo)

2 participants