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

cody: update indexing icons #54262

Merged
merged 9 commits into from
Jun 27, 2023
Merged

cody: update indexing icons #54262

merged 9 commits into from
Jun 27, 2023

Conversation

abeatrix
Copy link
Contributor

@abeatrix abeatrix commented Jun 27, 2023

close sourcegraph/cody#86

Update codebase status icons based on tim's figma design.

Test plan

when codebase is indexed
image

when codebase is not indexed
image

when codebase is not indexed and not a valid git repository
image

@cla-bot cla-bot bot added the cla-signed label Jun 27, 2023
@abeatrix abeatrix requested a review from toolmantim June 27, 2023 09:13
@sourcegraph-bot
Copy link
Contributor

sourcegraph-bot commented Jun 27, 2023

📖 Storybook live preview

@toolmantim
Copy link
Contributor

I updated the styles based on the Figma, and testing in VS Code.

While I was there, my brain was breaking trying to redo the icons and styles with all the variables and structs, so I redid things to be a little more imperative in JSX so I could more easily track what's going on.

Copy link
Contributor

@toolmantim toolmantim left a comment

Choose a reason for hiding this comment

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

It would have been nice to conditionally change the tooltips depending on if it's talking to App or SG instance, but I didn't have the boolean handy, so just made them more simple and generic.

) : contextStatus.mode && contextStatus.connection ? (
<CodebaseState
codebase={contextStatus.codebase}
tooltip="Repository is indexed and has embeddings"
Copy link
Contributor

Choose a reason for hiding this comment

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

I opted to keep the word "embeddings" in here for the SG Enterprise customers. Code Search hasn't caught up with the term "Indexed" as far as Cody goes yet, so including it will help for search, docs and the site admin.

@abeatrix
Copy link
Contributor Author

Updated to use warning color for non-indexed repo to aligns with dotcom:
image

@abeatrix abeatrix merged commit e673147 into main Jun 27, 2023
24 of 26 checks passed
@abeatrix abeatrix deleted the bee/cody-index-icons branch June 27, 2023 18:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

VS Code embeddings status should use new icons and tooltips
3 participants