Skip to content

feat(ai): hide underlying model details from users - #200

Merged
2witstudios merged 1 commit into
masterfrom
claude/hide-pagespace-model-details-pqtTk
Jan 14, 2026
Merged

2witstudios merged 1 commit into
masterfrom
claude/hide-pagespace-model-details-pqtTk

Conversation

@2witstudios

@2witstudios 2witstudios commented Jan 14, 2026 •

Copy link
Copy Markdown
Owner

Add getUserFacingModelName utility function to abstract model details:

  • PageSpace provider shows "PageSpace Standard" or "PageSpace Pro"
  • All other providers show "PageSpace AI" to hide underlying models

Updates all user-facing components to use the new function:

  • ActivityItem: Show branded AI name instead of raw model
  • VersionHistoryItem: Same branded display
  • SidebarActivityTab: Same branded display
  • AiUsageMonitor: Hide model/provider details in tooltips and headers
  • SidebarSettingsTab: Simplify agent config display
  • PageAgentConversationRenderer: Single branded badge

Users no longer see raw model names like "GLM 4.7", "Claude", etc.

Summary by CodeRabbit

  • Improvements
    • Enhanced AI model name display throughout the application with clearer, more user-friendly labels.
    • Improved consistency in AI model identification across activity history, settings, usage monitoring, and version history for a better user experience.

✏️ Tip: You can customize this high-level summary in your review settings.

Add getUserFacingModelName utility function to abstract model details:
- PageSpace provider shows "PageSpace Standard" or "PageSpace Pro"
- All other providers show "PageSpace AI" to hide underlying models

Updates all user-facing components to use the new function:
- ActivityItem: Show branded AI name instead of raw model
- VersionHistoryItem: Same branded display
- SidebarActivityTab: Same branded display
- AiUsageMonitor: Hide model/provider details in tooltips and headers
- SidebarSettingsTab: Simplify agent config display
- PageAgentConversationRenderer: Single branded badge

Users no longer see raw model names like "GLM 4.7", "Claude", etc.
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@coderabbitai

coderabbitai Bot commented Jan 14, 2026 •

Copy link
Copy Markdown
Contributor

Caution

Review failed

The pull request is closed.

📝 Walkthrough

Walkthrough

This PR introduces a new utility function getUserFacingModelName to centralize AI model display logic, replacing direct provider/model references with a consistent user-friendly naming scheme across multiple UI components.

Changes

Cohort / File(s) Summary
Core Implementation
apps/web/src/lib/ai/core/ai-providers-config.ts
Adds exported function getUserFacingModelName(provider, model) that maps internal identifiers to user-facing names: defaults to "PageSpace AI", with special handling for PageSpace provider models (glm-4.7 → "PageSpace Pro", glm-4.5-air → "PageSpace Standard").
Activity & Version History Components
apps/web/src/components/activity/ActivityItem.tsx, apps/web/src/components/version-history/VersionHistoryItem.tsx
Replaces static "AI" label rendering with getUserFacingModelName(aiProvider, aiModel) for AI-generated activity badges.
Agent Configuration Components
apps/web/src/components/ai/page-agents/PageAgentConversationRenderer.tsx, apps/web/src/components/layout/right-sidebar/ai-assistant/SidebarActivityTab.tsx, apps/web/src/components/layout/right-sidebar/ai-assistant/SidebarSettingsTab.tsx
Consolidates separate provider/model badge rendering into single badge using getUserFacingModelName(). Simplifies conditional logic and centralizes model name display; SidebarSettingsTab relabels "Provider" to "AI Model".
AI Usage Monitoring
apps/web/src/components/ai/shared/AiUsageMonitor.tsx
Replaces raw model display with getUserFacingModelName(provider, model) in three locations: session cost tooltip, header label, and total cost section ("Powered by" instead of "Provider").

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

Poem

🐰 A model name fit for all to see,
No more raw codes in our UI,
"PageSpace Pro" and "Standard" fair,
User-facing names beyond compare! ✨

✨ Finishing touches
  • 📝 Generate docstrings


📜 Recent review details

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between c1f1cf6 and 8980df8.

📒 Files selected for processing (7)
  • apps/web/src/components/activity/ActivityItem.tsx
  • apps/web/src/components/ai/page-agents/PageAgentConversationRenderer.tsx
  • apps/web/src/components/ai/shared/AiUsageMonitor.tsx
  • apps/web/src/components/layout/right-sidebar/ai-assistant/SidebarActivityTab.tsx
  • apps/web/src/components/layout/right-sidebar/ai-assistant/SidebarSettingsTab.tsx
  • apps/web/src/components/version-history/VersionHistoryItem.tsx
  • apps/web/src/lib/ai/core/ai-providers-config.ts

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@2witstudios
2witstudios merged commit cc44bef into master Jan 14, 2026
2 of 3 checks passed
@2witstudios
2witstudios deleted the claude/hide-pagespace-model-details-pqtTk branch January 29, 2026 02:23
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