Skip to content

fix(styling): fix styling inconsistencies in dark mode, fix invites fetching to show active members#1229

Merged
waleedlatif1 merged 4 commits intostagingfrom
fix/styling
Sep 3, 2025
Merged

fix(styling): fix styling inconsistencies in dark mode, fix invites fetching to show active members#1229
waleedlatif1 merged 4 commits intostagingfrom
fix/styling

Conversation

@waleedlatif1
Copy link
Collaborator

Summary

fix styling inconsistencies in dark mode, fix invites fetching to show active members

Type of Change

  • Bug fix

Testing

UI refreshes, NA

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

@vercel
Copy link

vercel bot commented Sep 3, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
sim Building Building Preview Comment Sep 3, 2025 4:17am
1 Skipped Deployment
Project Deployment Preview Comments Updated (UTC)
docs Skipped Skipped Sep 3, 2025 4:17am

@waleedlatif1 waleedlatif1 merged commit baef8d7 into staging Sep 3, 2025
3 of 4 checks passed
@waleedlatif1 waleedlatif1 deleted the fix/styling branch September 3, 2025 04:17
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Greptile Summary

This PR addresses two main issues: dark mode styling inconsistencies and improper invite fetching for active workspace members.

Dark Mode Styling Fixes:
The changes systematically fix dark mode color inconsistencies across the application by replacing problematic color tokens with theme-aware alternatives. Key fixes include:

  • Removing text-muted-foreground from tooltips in tool-input components for better readability
  • Replacing text-primary with text-foreground in chat deploy success view links and wand prompt bar buttons
  • Removing hardcoded light mode styles (bg-white text-gray-900) from chat input tooltips
  • Adding tooltip overrides to the chat.css file to maintain consistent dark tooltips in forced light mode contexts
  • Removing native browser tooltip titles that don't respect custom dark mode styling
  • Replacing Button components with native buttons in chat messages for more direct styling control

Active Members Functionality:
The PR enhances workspace permission management by adding a refetch function to the workspace permissions system. This allows components to manually refresh permission data, particularly important for the invite modal to show up-to-date member lists. The implementation adds refetchPermissions to the workspace permissions context and hooks, then calls it when the invite modal opens to ensure users see current active members alongside pending invitations.

Code Quality Improvements:
The changes also include beneficial refactoring, such as consolidating AI wand button functionality into the CodeEditor component (removing duplicate implementations in custom-tool-modal) and extracting a reusable DocumentList component from duplicated JSX in knowledge-base-tags dialogs. These improvements follow DRY principles and improve maintainability.

The fixes integrate well with the existing codebase architecture, leveraging established patterns like the workspace permissions provider context and the existing tooltip components' built-in dark mode support.

Confidence score: 4/5

  • This PR is generally safe to merge with minor considerations around accessibility and component consistency
  • Score reflects solid dark mode fixes and proper permission refetching, but includes some changes that remove established design system patterns
  • Pay attention to the chat message component changes and ensure tooltip styling works consistently across all contexts

14 files reviewed, 2 comments

Edit Code Review Bot Settings | Greptile

Comment on lines +82 to +83
<button
className='text-muted-foreground transition-colors hover:bg-muted'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Replacing Button component with native button removes accessibility features like focus management and consistent styling from the design system

Comment on lines +38 to +39
<div className='truncate font-medium text-sm' style={{ maxWidth: '300px' }}>
{doc.name}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

style: Consider using Tailwind's max-w-[300px] instead of inline styles for consistency with the project's styling approach

Suggested change
<div className='truncate font-medium text-sm' style={{ maxWidth: '300px' }}>
{doc.name}
<div className='truncate font-medium text-sm max-w-[300px]'>
{doc.name}

arenadeveloper02 pushed a commit to arenadeveloper02/p2-sim that referenced this pull request Sep 19, 2025
…etching to show active members (simstudioai#1229)

* fix(styling): fix unreadble text in dark mode

* fix styling inconsistencies in kb

* refetch permissions on invite modal open

---------

Co-authored-by: Vikhyath Mondreti <vikhyath@simstudio.ai>
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