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

Working with Figma file and UI component generation with multiple environment is causing clobbering #1099

Closed
4 tasks done
Bryson14 opened this issue Feb 6, 2024 · 3 comments
Labels
pending-response An issue is pending response from the issue requestor pending-triage An issue that is pending triage

Comments

@Bryson14
Copy link

Bryson14 commented Feb 6, 2024

Before creating a new issue, please confirm:

On which framework/platform are you having an issue?

React

Which UI component?

Primitive components

How is your app built?

CRA

What browsers are you seeing the problem on?

Chrome

Which region are you seeing the problem in?

us-east-1

Please describe your bug.

i have a figma file that has components I've generated. I connected that figma file both of my dev and main amplify studios. Now they are both in sync with the file, but as you know, you can connect various fields to data and there is some work that happens cleaning up the component within amplify studio.

I have the components and their data working with dev but not in main. So my solution now is whenever i run amplify pull in main, i have to ignore any changes done in the src/ui-components/ directory so it doesn't break the website or show empty data fields. Only the ui components generated form dev are correct in my case, and always are merged over main, before deploying.

Is there a better way to do this? Or is this the intended way to use the ui component generation?Amplify Studio

What's the expected behaviour?

a way to pull over configuration done in one studio to another to not repeat the customizing process for the component.

Help us reproduce the bug!

Make a project with two backend environments.

Create a figma file and component

Import that file into both studio environments.

click "configure" to alter the function of the component within one of the studios, but not the other.

IN your ide, run amplify pull for both environments.

Compare the output of the ui component generated.

Code Snippet

// Put your code below this line.

Console log output

No response

Additional information and screenshots

No response

@github-actions github-actions bot added the pending-triage An issue that is pending triage label Feb 6, 2024
@reesscot reesscot transferred this issue from aws-amplify/amplify-ui Feb 7, 2024
@ykethan
Copy link
Contributor

ykethan commented Feb 23, 2024

Hey @Bryson14, on each amplify pull is expected to pull the components from Amplify Studio and replace the ui-components folder. But if you would like to not pull the components, you can run amplify pull --no-codegen which should skip the component generation.

@ykethan ykethan added the pending-response An issue is pending response from the issue requestor label Feb 23, 2024
@arundna
Copy link

arundna commented Jun 10, 2024

Closing the issue due to inactivity - This repository only accepts new feature requests for AWS Amplify Studio. For technical support, we encourage you to open a case with AWS technical support if you have AWS support plan. If you do not have an active AWS support plan, we encourage you to leverage our Amplify community Discord server where community members and staff try to help each other with Amplify.

@arundna arundna closed this as completed Jun 10, 2024
Copy link

⚠️COMMENT VISIBILITY WARNING⚠️

Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-response An issue is pending response from the issue requestor pending-triage An issue that is pending triage
Projects
None yet
Development

No branches or pull requests

3 participants