Skip to content

Bugfix/make-brands-perfect - #141

Merged
rahul-sinha1908 merged 9 commits into
masterfrom
bugfix/make-brands-perfect
Jun 23, 2025
Merged

rahul-sinha1908 merged 9 commits into
masterfrom
bugfix/make-brands-perfect

Conversation

@rahul-sinha1908

@rahul-sinha1908 rahul-sinha1908 commented Jun 23, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Introduced a dedicated "Brand Preferences" screen accessible from the main menu, allowing brands to view and update influencer marketing preferences.
    • Added a new "Brand Preferences" item to the main menu for easy navigation.
    • Added a profile avatar button to the menu tab header on smaller screens for quick access to the profile.
  • Enhancements

    • Updated brand profile to remove influencer category and promotion type sections for a cleaner interface.
    • Improved typing and consistency in UI components and menu items.
    • Enhanced drawer menu with a "view-profile" option displaying the manager’s avatar.
  • Bug Fixes

    • Adjusted loading logic in influencer exploration screens for more accurate loading indicators.
  • Removals

    • Removed the "Preferences" tab from collaboration details and deleted related settings components.
  • Refactor

    • Centralized and streamlined constants for categories, industries, languages, and platforms.
    • Simplified logout UI in the menu for a more direct user experience.

@coderabbitai

coderabbitai Bot commented Jun 23, 2025 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Walkthrough

This update introduces a new Preferences screen and tab content for managing brand preferences, refactors menu and drawer layouts to include profile and preferences navigation, and consolidates constants for shared use. Several UI components are updated for type safety and improved structure, while obsolete collaboration settings are removed.

Changes

Files/Paths Change Summary
app/(main)/(drawer)/(secondary)/preferences.tsx, components/preferences/PreferencesTabContent.tsx Added new Preferences screen and tab content for managing brand preferences.
app/(main)/(drawer)/(tabs)/_layout.tsx, app/(main)/(drawer)/(tabs)/menu.tsx Updated tab and menu layouts to include profile avatar navigation and web padding adjustments.
components/ProfileItemCard.tsx Refined prop typing for menu items to reference constants.
components/brand-profile/index.tsx Removed influencer category and promotion type sections from brand profile.
components/collaboration/collaboration-details/SettingsTabContent.tsx, components/collaboration/collaboration-details/index.tsx Removed obsolete collaboration preferences tab and related component.
components/drawer-layout/BrandActionItem.tsx, components/drawer-layout/DrawerMenuContent.tsx Added optional profile image and new "view-profile" drawer item.
components/explore-influencers/index.tsx, app/(main)/(drawer)/(tabs)/explore-influencers.tsx Integrated brand context for influencer exploration and adjusted loading logic.
components/menu/index.tsx Simplified logout UI to use a single menu card component.
constants/ItemsList.ts, constants/Menu.ts Centralized and restructured constants for menu items and selection lists.
shared-constants, shared-libs, shared-uis Updated subproject references to latest commits.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant DrawerMenu
    participant PreferencesScreen
    participant PreferencesTabContent
    participant BrandContext
    participant API

    User->>DrawerMenu: Opens drawer
    DrawerMenu->>User: Shows "Brand Preferences" and profile items
    User->>DrawerMenu: Clicks "Brand Preferences"
    DrawerMenu->>PreferencesScreen: Navigates to PreferencesScreen
    PreferencesScreen->>PreferencesTabContent: Renders preferences form
    PreferencesTabContent->>BrandContext: Loads current brand preferences
    User->>PreferencesTabContent: Updates preferences and clicks Save
    PreferencesTabContent->>API: Persists updated preferences
    API-->>PreferencesTabContent: Returns success/failure
    PreferencesTabContent->>User: Shows toast notification
Loading

Suggested reviewers

  • Manan-Sharma-5

Poem

In a warren of code, a rabbit did find
New preferences, menus, all neatly aligned.
With profiles and brands now easy to see,
Constants united, collaboration set free.
So hop on ahead, let your features expand—
For this update brings joy to every brand!
((\
( -.-)
o_(")(")


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 218bb91 and 2048bd4.

📒 Files selected for processing (18)
  • app/(main)/(drawer)/(secondary)/preferences.tsx (1 hunks)
  • app/(main)/(drawer)/(tabs)/_layout.tsx (4 hunks)
  • app/(main)/(drawer)/(tabs)/explore-influencers.tsx (1 hunks)
  • app/(main)/(drawer)/(tabs)/menu.tsx (1 hunks)
  • components/ProfileItemCard.tsx (1 hunks)
  • components/brand-profile/index.tsx (2 hunks)
  • components/collaboration/collaboration-details/SettingsTabContent.tsx (0 hunks)
  • components/collaboration/collaboration-details/index.tsx (1 hunks)
  • components/drawer-layout/BrandActionItem.tsx (3 hunks)
  • components/drawer-layout/DrawerMenuContent.tsx (3 hunks)
  • components/explore-influencers/index.tsx (2 hunks)
  • components/menu/index.tsx (3 hunks)
  • components/preferences/PreferencesTabContent.tsx (1 hunks)
  • constants/ItemsList.ts (1 hunks)
  • constants/Menu.ts (1 hunks)
  • shared-constants (1 hunks)
  • shared-libs (1 hunks)
  • shared-uis (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@rahul-sinha1908
rahul-sinha1908 merged commit 46596a5 into master Jun 23, 2025
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.

1 participant