Skip to content

feat(creator): add creator market dashboard - #1058

Merged
greatest0fallt1me merged 2 commits into
Predictify-org:mainfrom
Killerjunior:feat/1004-creator-dashboard
Nov 23, 2026
Merged

greatest0fallt1me merged 2 commits into
Predictify-org:mainfrom
Killerjunior:feat/1004-creator-dashboard

Conversation

@Killerjunior

Copy link
Copy Markdown
Contributor

Description

Adds a creator dashboard at /creator with wallet-scoped market data, fee summaries, action eligibility, confirmation dialogs, and transaction result states.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Refactoring (no functional changes)
  • Style/UI changes
  • Test updates
  • CI/CD changes
  • Security improvements

Related Issues

Closes #1004

Changes Made

Files Modified

  • Creator dashboard page and page tests: add wallet, empty, market-list, confirmation, and transaction-result states.
  • Creator market helpers, creator intents, and market hook/provider: add wallet-scoped mock data, eligibility rules, and decimal-safe fee calculations.
  • Navbar and navbar tests: add a Creator link.
  • Creator helper tests: cover fee precision, action eligibility, wallet scoping, and intent shape.

Key Changes

  • Markets are loaded by connected wallet address; cancellation and resolution eligibility include disabled-state reasons.
  • Actions require confirmation, invoke executeTransaction once, and update the mock market state only after success. Failed or rejected transactions leave it unchanged.
  • The checked-in contract spec exposes neither cancel_market nor request_resolution. The XDR builder therefore fails explicitly rather than sending invalid transaction data; these on-chain actions require contract support.

Testing

  • Unit tests added/updated
  • Integration tests added/updated
  • Manual testing completed
  • Cross-browser testing (if applicable)
  • Mobile responsiveness tested (if applicable)
  • Accessibility testing completed
  • Performance testing (if applicable)

Test Coverage

  • New code is covered by tests
  • Existing tests still pass
  • Test coverage meets project standards

Validation:

  • git diff --cached --check — passed.
  • Direct Node check of fee and eligibility helpers — passed; verified 7-decimal calculations and no actions at the exact deadline.
  • corepack pnpm test -- lib/__tests__/creator.test.ts — could not run because Jest is not installed in the checkout. The component tests were not run for the same reason.

Screenshots/Videos

Minimum screenshots for UI/design PRs

  • Desktop default state
  • Mobile default state
  • One stressed state: error, empty, loading, success, validation, open menu, or open modal
  • Focus-visible screenshot for the primary interactive element (required when focus behavior changed)
  • Open overlay screenshot for modal, drawer, popover, select, or date picker (required when applicable)
  • Quick actions closed and open states (required for toolbar, FAB, or bottom-sheet action changes)
  • Keyboard-open mobile screenshot and desktop sticky state (required for sticky action panel changes)

Before

Not captured.

After

Not captured.

Pre-submission Checklist

Code Quality

  • Code follows project style guidelines
  • Self-review completed
  • Code is self-documenting
  • No console errors or warnings
  • No linting errors
  • No TypeScript errors (if applicable)

Functionality

  • All tests pass
  • Feature works as expected
  • No breaking changes introduced
  • Performance impact assessed

Documentation

  • README updated (if applicable)
  • Code comments added where necessary
  • API documentation updated (if applicable)
  • Changelog updated (if applicable)

Security & Accessibility

  • Security considerations addressed
  • Accessibility standards met
  • No sensitive data exposed
  • Input validation implemented

Breaking Changes

Breaking Changes:

  • None.

Migration Steps:

  • None.

Additional Notes

Dependencies

  • No new dependencies added
  • Dependencies updated (list changes)
  • Security vulnerabilities addressed

Performance Impact

  • No performance impact
  • Performance improved
  • Performance impact documented

Browser/Device Support

  • Tested on Chrome
  • Tested on Firefox
  • Tested on Safari
  • Tested on Edge
  • Tested on mobile devices

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@vercel

vercel Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Killerjunior is attempting to deploy a commit to the Jagadeesh B's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Nov 23, 2026

Copy link
Copy Markdown

@Killerjunior 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

@greatest0fallt1me
greatest0fallt1me merged commit 37dbbff into Predictify-org:main Nov 23, 2026
1 of 2 checks passed
@greatest0fallt1me

Copy link
Copy Markdown
Contributor

Thanks @Killerjunior! We resolved the merge conflicts on our side and merged this. 🎉

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.

Add a market-creator dashboard

2 participants