-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
cody: update indexing icons #54262
Conversation
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. |
There was a problem hiding this 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" |
There was a problem hiding this comment.
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.
close sourcegraph/cody#86
Update codebase status icons based on tim's figma design.
Test plan
when codebase is indexed
![image](https://private-user-images.githubusercontent.com/68532117/249097878-9b36f6ae-e301-498d-b4b2-76de4227e12e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNzE2NzEsIm5iZiI6MTcxOTE3MTM3MSwicGF0aCI6Ii82ODUzMjExNy8yNDkwOTc4NzgtOWIzNmY2YWUtZTMwMS00OThkLWI0YjItNzZkZTQyMjdlMTJlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDE5MzYxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMyNDFlNzVhYWQ4YmRlYzIzOTBmZTBkZTMwMGYzZGY0YzcyZGQzYzkzNmE2ZTBkOTllNTFmMGUzMzVmYTRjNjQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.vWoFUS68OkrVuBJxQTI5u7y2SBHdjbES1jN8r4_Dwqc)
when codebase is not indexed
![image](https://private-user-images.githubusercontent.com/68532117/249251892-0cac9fd1-990f-4b0b-a399-b1d3b8d92e78.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNzE2NzEsIm5iZiI6MTcxOTE3MTM3MSwicGF0aCI6Ii82ODUzMjExNy8yNDkyNTE4OTItMGNhYzlmZDEtOTkwZi00YjBiLWEzOTktYjFkM2I4ZDkyZTc4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDE5MzYxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAyODEzYjdhZDMxNTE2MjE2MzhlNTYxZGJhNzRjNDg1MjQ0MDZlMjVlOThkZjJiN2E2N2RhYTYxNWYwMGI2OTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.iTP96yRRkteEFaK4QfffBdQ3awtI7lBehuPo_SADnH8)
when codebase is not indexed and not a valid git repository
![image](https://private-user-images.githubusercontent.com/68532117/249098982-3f43ca1d-1db0-4cad-80b2-44e467ceeb64.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxNzE2NzEsIm5iZiI6MTcxOTE3MTM3MSwicGF0aCI6Ii82ODUzMjExNy8yNDkwOTg5ODItM2Y0M2NhMWQtMWRiMC00Y2FkLTgwYjItNDRlNDY3Y2VlYjY0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDE5MzYxMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQyYjUxYjQ5OWY2YmYxNWQ2ZDU3YjQ3MWNhZmI0YWNlMWZiMzFhZTU4YWVlZDIyNmYzZmMxMDQwZjRlYWFmNjYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.EjV_HSguylxOdN0MRIdrwK3gsM0ApiIDnQ20wgykxIM)