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

Chat: Improve enhanced context popover and button styles #2075

Merged
merged 13 commits into from
Dec 4, 2023

Conversation

toolmantim
Copy link
Contributor

@toolmantim toolmantim commented Dec 4, 2023

Updates the styles of the enhanced context popover and the button:

  • Consistent use of sparkle icon
  • Changed from check to database icon to avoid looking like nested checkboxes
  • Added label to indexed embeddings
  • Shortened the folder name for the simple case (single root folder workspace)
  • Commented out non-existent links
Before After
Screenshot 2023-12-05 at 12 02 40 am Screenshot 2023-12-05 at 12 02 10 am
Screenshot 2023-12-05 at 12 02 44 am Screenshot 2023-12-05 at 12 02 18 am

Test plan

  • New chat
  • View button
  • Click button, view popover

@@ -198,7 +215,8 @@ export const EnhancedContextSettings: React.FunctionComponent<EnhancedContextSet
onClick={() => setOpen(!isOpen)}
title="Configure Enhanced Context"
>
<i className="codicon codicon-settings" />
<i className="codicon codicon-sparkle" />
{/* Show this dot if the popover has never been opened: <div className={styles.glowyDot}/> */}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added this while I was here!

Copy link
Contributor

@dominiccooney dominiccooney left a comment

Choose a reason for hiding this comment

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

Awesome!

@@ -15,17 +15,19 @@
}

.enhanced-context-settings-popup label h1 {
text-transform: none;
Copy link
Contributor

Choose a reason for hiding this comment

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

THANK YOU FOR THIS. I GOT A BIT OF A SURPRISE WHEN OUR H1 STYLES CHANGED ELSEWHERE AND ENHANCED CONTEXT WAS SHOUTING ALL OF A SUDDEN. THE MAGIC OF CSS, RIGHT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

lol I had the same feeling. Either that or someone decided IT NEEDS MORE POP!

@toolmantim toolmantim merged commit 6df4972 into main Dec 4, 2023
13 checks passed
@toolmantim toolmantim deleted the tl/enhanced-context-tweaks branch December 4, 2023 21:33
@kalanchan
Copy link
Contributor

@toolmantim I was doing some debugging and don't see your changes! I'm running Cody off tip of main, I don't see the sparkle icon :(

CleanShot 2023-12-04 at 15 11 10@2x

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