Skip to content

Lewis/vendor management - #109

Merged
carhartlewis merged 4 commits into
mainfrom
lewis/vendor-management
Mar 6, 2025
Merged

carhartlewis merged 4 commits into
mainfrom
lewis/vendor-management

Conversation

@carhartlewis

@carhartlewis carhartlewis commented Mar 6, 2025 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Introduced a vendor management dashboard with an overview page that displays interactive charts for vendor statuses and categories.
  • Enhancements

    • Expanded layout width for a broader content display.
    • Updated primary navigation with reordered menu items and enabled vendor access.
    • Refined interface details including dialog spacing and responsive table header design.
    • Improved localization across multiple languages with updated terminology for API key creation and vendor sections.

carhartlewis and others added 4 commits March 6, 2025 19:07
Add comprehensive vendor management features:
- Create vendor overview page with status and category charts
- Implement vendor-specific layouts and routing
- Add new vendor-related Prisma models and migrations
- Update main menu to enable vendor navigation
- Localize vendor dashboard and overview translations
- Enhance UI with responsive design and chart components
@vercel

vercel Bot commented Mar 6, 2025 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
comp-portal ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 6, 2025 7:10pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
app ⬜️ Skipped (Inspect) Mar 6, 2025 7:10pm
web ⬜️ Skipped (Inspect) Mar 6, 2025 7:10pm

@coderabbitai

coderabbitai Bot commented Mar 6, 2025 •

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

Walkthrough

The pull request introduces a range of updates across the project. In the apps, the maximum width of a layout component has been increased and new layout components and pages have been added for vendor overviews. Several UI components were updated to support internationalization and responsive design. The localization files were restructured, adding new sections for vendor management while adjusting API key terminology. Additionally, new vendor chart components for categorization and status visualizations were implemented. On the database side, new tables, columns, indexes, and schema modifications have been introduced to support vendor management. A cosmetic reformatting was applied to an AWS integration configuration file.

Changes

File(s) Change Summary
apps/app/src/app/[locale]/(app)/(dashboard)/settings/layout.tsx,
apps/app/src/app/[locale]/(app)/(dashboard)/vendors/(overview)/layout.tsx,
apps/app/src/app/[locale]/(app)/(dashboard)/vendors/(overview)/page.tsx,
apps/app/src/components/main-menu.tsx
Increased maximum width to 1200px; introduced new vendor overview layout and page with i18n and authentication; reordered menu items and enabled vendor item.
apps/app/src/components/risks/charts/risks-by-department.tsx,
apps/app/src/components/risks/charts/risks-by-status.tsx,
apps/app/src/components/tables/api-keys/create-api-key-dialog.tsx,
apps/app/src/components/tables/api-keys/index.tsx
Updated card titles and labels with localization; adjusted styling classes for responsiveness and spacing.
apps/app/src/components/vendors/charts/category-chart.tsx,
apps/app/src/components/vendors/charts/status-chart.tsx,
apps/app/src/components/vendors/charts/vendors-by-category.tsx,
apps/app/src/components/vendors/charts/vendors-by-status.tsx,
apps/app/src/components/vendors/charts/vendors-overview.tsx
Added new chart components for vendor categorization and status; implemented a vendor overview component that integrates these charts with data filtering, sorting, and D3 scaling.
apps/app/src/locales/{en,es,fr,no,pt}.ts Updated API key terminology and restructured localization sections to remove obsolete vendor entries and add new keys for vendor management and dashboard metrics.
packages/db/prisma/migrations/*_vendor_management/migration.sql,
packages/db/prisma/migrations/*_vendors/migration.sql,
packages/db/prisma/schema/{schema.prisma,vendor.prisma}
Introduced vendor-related tables, new columns (category, inherentRisk, residualRisk, status) and indexes; expanded the Organization model; removed vendor-specific enums; added comprehensive vendor models and relationships.
packages/integrations/src/aws/config.ts Reformatted the configuration object using tab-based indentation; no changes to functionality.

Sequence Diagram(s)

sequenceDiagram
	participant U as User
	participant VOP as VendorOverviewPage
	participant Auth as Authentication Service
	participant DB as Database/API
	participant VO as VendorOverview Component
	participant VSC as VendorsByStatus Component
	participant VCC as VendorsByCategory Component

	U->>VOP: Request Vendor Overview Page
	VOP->>Auth: Execute authentication check
	Auth-->>VOP: Return session details (organizationId)
	VOP->>DB: Fetch vendor overview data (with caching)
	DB-->>VOP: Return vendor data
	VOP->>VO: Render VendorOverview layout
	VO->>VSC: Render VendorsByStatus component
	VO->>VCC: Render VendorsByCategory component
	note over VSC,VCC: Process data with D3 scaling and sorting
Loading

Poem

Hopping through the code with glee,
I'm a bunny on a bug-free spree.
Layouts widened, charts appear,
Vendors and risks now crystal clear.
With keys and strings all set to play,
I nibble bugs and hop away!
🐇✨


📜 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 0cb2969 and 72e649e.

⛔ Files ignored due to path filters (1)
  • apps/app/languine.lock is excluded by !**/*.lock
📒 Files selected for processing (23)
  • apps/app/src/app/[locale]/(app)/(dashboard)/settings/layout.tsx (1 hunks)
  • apps/app/src/app/[locale]/(app)/(dashboard)/vendors/(overview)/layout.tsx (1 hunks)
  • apps/app/src/app/[locale]/(app)/(dashboard)/vendors/(overview)/page.tsx (1 hunks)
  • apps/app/src/components/main-menu.tsx (2 hunks)
  • apps/app/src/components/risks/charts/risks-by-department.tsx (1 hunks)
  • apps/app/src/components/risks/charts/risks-by-status.tsx (1 hunks)
  • apps/app/src/components/tables/api-keys/create-api-key-dialog.tsx (1 hunks)
  • apps/app/src/components/tables/api-keys/index.tsx (1 hunks)
  • apps/app/src/components/vendors/charts/category-chart.tsx (1 hunks)
  • apps/app/src/components/vendors/charts/status-chart.tsx (1 hunks)
  • apps/app/src/components/vendors/charts/vendors-by-category.tsx (1 hunks)
  • apps/app/src/components/vendors/charts/vendors-by-status.tsx (1 hunks)
  • apps/app/src/components/vendors/charts/vendors-overview.tsx (1 hunks)
  • apps/app/src/locales/en.ts (2 hunks)
  • apps/app/src/locales/es.ts (2 hunks)
  • apps/app/src/locales/fr.ts (2 hunks)
  • apps/app/src/locales/no.ts (2 hunks)
  • apps/app/src/locales/pt.ts (2 hunks)
  • packages/db/prisma/migrations/20250306175455_vendor_management/migration.sql (1 hunks)
  • packages/db/prisma/migrations/20250306181056_vendors/migration.sql (1 hunks)
  • packages/db/prisma/schema/schema.prisma (1 hunks)
  • packages/db/prisma/schema/vendor.prisma (1 hunks)
  • packages/integrations/src/aws/config.ts (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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 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.

This branch was previously deployed

3 inactive deployments
Preview – comp-portal — 72e649e2 Deployed Mar 6, 2025 by vercel[bot]
Preview – web — 72e649e2 Deployed Mar 6, 2025 by vercel[bot]
Preview – app — 72e649e2 Deployed Mar 6, 2025 by vercel[bot]
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.

2 participants