-
Notifications
You must be signed in to change notification settings - Fork 39
Secret changes dialog added #274 #318
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
Secret changes dialog added #274 #318
Conversation
@rohan-chaturvedi |
Sure @harshith-1008 , will take a look as soon as I can! |
@harshith-1008 Could you fix the filename please? |
![]() @rohan-chaturvedi for some reason vscode isnt allowing me to keep this license file because folder name license already exists, can you please guide me to restore it? |
Thanks a lot for the screenshot! Now I understand why this was a problem 😅 I'll raise a PR to rename the license folder in a bit, that should resolve it. |
@rohan-chaturvedi I have managed to rename the file through GitHub as I wasnt Able to do in Vscode. The file is renamed now. |
Hey @harshith-1008 , a couple of updates:
You can grab the colors from Figma. The tailwind colors are:
Sorry for the constant design updates! Lmk if you have any questions, we can hop on a slack huddle and discuss it as well. |
![]() @rohan-chaturvedi I tried changing the UI, Can you guide me how to override text-color of tags? In Tag component the styling is (text-zinc-700 dark:text-zinc-200). ![]() I tried this method but it isn't working. and should I decrease the height and width of tags? |
@harshith-1008 You could add a Lets keep the height and width of the tags for now. |
@rohan-chaturvedi can you look into these changes? I have kept the tags width and height same. ![]() |
Looking good! Only issue I can see is that monospace font isn't used in the right places. Could you take a look at that? |
![]() @rohan-chaturvedi changed font irregularities. |
|
![]() @rohan-chaturvedi Except change type, all other texts changed to font-mono. |
@harshith-1008 Nice! Lmk when the code changes are pushed, will take a look. Lets get this merged! |
@rohan-chaturvedi I have pushed changes. |
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.
@harshith-1008 Awesome work! This is working perfectly 👌
Just a few code changes and minor fixes required. Also, could you please create a separate component for this? Call is "DeployPreview" or something and put it in components/environments/secrets
{secretsToDelete?.map(secretId => { | ||
const deletedSecret = serverSecrets.find(secret => secret.id === secretId); | ||
return ( | ||
<div className="flex items-center space-x-2 mb-6"> |
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.
<div className="flex items-center space-x-2 mb-6"> | |
<div key={secretId} className="flex items-center space-x-2 mb-6"> |
Add a key for elements rendered in a list
const removedTags = change.tags?.old?.filter(tag => | ||
!change.tags?.new?.some(newTag => newTag.id === tag.id) | ||
) || []; | ||
|
||
const addedTags = change.tags?.new?.filter(tag => | ||
!change.tags?.old?.some(oldTag => oldTag.id === tag.id) | ||
) || []; |
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.
const removedTags = change.tags?.old?.filter(tag => | |
!change.tags?.new?.some(newTag => newTag.id === tag.id) | |
) || []; | |
const addedTags = change.tags?.new?.filter(tag => | |
!change.tags?.old?.some(oldTag => oldTag.id === tag.id) | |
) || []; | |
const removedTags = | |
change.tags?.old?.filter( | |
(tag: SecretTagType) => | |
!change.tags?.new?.some((newTag: SecretTagType) => newTag.id === tag.id) | |
) || [] | |
const addedTags = | |
change.tags?.new?.filter( | |
(tag: SecretTagType) => | |
!change.tags?.old?.some((oldTag: SecretTagType) => oldTag.id === tag.id) | |
) || [] |
Add the SecretTagType
annotation here
onClose={() => setIsChangesModalOpen(false)} | ||
buttonContent={<FaInfoCircle />} | ||
> | ||
<div className="flex flex-col space-y-2"> |
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.
<div className="flex flex-col space-y-2"> | |
<div className="flex flex-col space-y-2 max-h-[85vh] overflow-auto"> |
Add a max height to handle overflow where there are a large number of changes
@rohan-chaturvedi I have pushed new changes. Can you look into it ? |
Great work! Sorry for the lengthy review 😅 |
🔍 Overview
💡 Proposed Changes
🖼️ Screenshots or Demo
Before

After


📝 Release Notes
User now can see the changes made to the environment secrets
❓ Open Questions
Is there anyway I can enhance the UI more?
🧪 Testing
🎯 Reviewer Focus
You can just make any desired changes and click on the info button to view the changes
➕ Additional Context
issue #274
✨ How to Test the Changes Locally
💚 Did You...