Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partner Config: create and manage CMAccount #245

Merged
merged 34 commits into from
Sep 25, 2024
Merged

Partner Config: create and manage CMAccount #245

merged 34 commits into from
Sep 25, 2024

Conversation

aeddaqqa
Copy link

@aeddaqqa aeddaqqa commented Sep 25, 2024

PR: Partner Detail Page and Messenger Account Enhancements

Changes

Partner Detail Page

  • For users with a Messenger Configuration:
    • Hide "Back to all companies"
    • Add second-level menu:
      1. My Details (PartnerConfig: Add "My Details")
      2. My Messenger Account (Partner Configurator: new My Messenger Account)
      3. Configure as Distributor (Partner Configurator: new Configure as Distributor)
      4. Configure as Supplier (Partner Configurator: new Configure as Supplier)
      5. Manage Bots (Partner Configurator: new Manage Bots)
    • Menu visible on all subpages with current subpage highlighted
  • For other cases, change "Back to all companies" to "Back to all Partners"

Strapi Updates

  • Add new field "Owner C-Chain address" to partners (unique if possible)
  • New field to be manually populated based on offline partner information

Suite Updates

  • New "My Partner profile" tab in Partners section (visible to logged-in users only)
  • Tab behavior:
    1. Non-partner users: Display "Claim a profile" message
    2. Partner users: Redirect to respective Partner detail page

My Messenger Account Page

  • Display partner company name
  • Show supported services (format as in Messenger Widget)
  • Display messenger address with copy button
  • List accepted currencies:
    • Fiat (selectable checkbox)
    • CAM (balance + selectable checkbox)
    • USDC and EUROSH (non-selectable checkbox, non-clickable Withdraw button)
  • Currency management buttons:
    • REFRESH BALANCES: Reload CAM balance from chain
    • SAVE CURRENCIES: Save selected checkboxes on-chain
  • Include explanatory copy
  • Add block/widget showing top match partners (3+ partners, shuffled)
  • WITHDRAW button for CAM:
    • Opens popup with transaction initiation data

Ysrbolles and others added 30 commits August 5, 2024 10:37
chore: Update docker-compose commands in cypress.yml
feat: Update og:image and twitter:image meta tags to use preview.jpg …
fix(partnerConfig): fix matching partner with current logged in wallet
fix(partnerConfig): adjustment of styling and text modifications
@aeddaqqa aeddaqqa requested a review from Ysrbolles September 25, 2024 18:56
@aeddaqqa aeddaqqa changed the title Suite Partner Config: create and manage CMAccount Sep 25, 2024
@aeddaqqa aeddaqqa merged commit f0eb650 into suite-c4t Sep 25, 2024
8 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.

3 participants