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

A source component was not found for component id xxx:xxx #1072

Closed
OperationalFallacy opened this issue Nov 21, 2023 · 7 comments
Closed

A source component was not found for component id xxx:xxx #1072

OperationalFallacy opened this issue Nov 21, 2023 · 7 comments
Labels
figma Issues related to figma import pending-triage An issue that is pending triage question An issue which is a question asked by a customer studio-ui An issue that needs to be tracked by Studio Console team

Comments

@OperationalFallacy
Copy link

Which Specific Feature is your question related to?

Figma integration

Question

Hi,

How is the Amplify UI Kit organized, specifically the components on the examples page?

Is it possible to import them? I'm getting tons of errors.

image
image

Thanks!

Related
#885

@OperationalFallacy OperationalFallacy added pending-triage An issue that is pending triage question An issue which is a question asked by a customer labels Nov 21, 2023
@ykethan
Copy link
Member

ykethan commented Nov 21, 2023

Hey @OperationalFallacy, the examples in the UI kit are currently not connected to existing primitives and causing the text fields and checkbox to not appear.

Please refer to following file providing an example where i imported the primitives for the Login component in the components section.
https://www.figma.com/file/14t8nfGqsqQeez5kvo3HGT/AWS-Amplify-UI-Kit-(Community)?type=design&node-id=861-3635&mode=design&t=2Fmnekdrm14eh97M-0

@ykethan ykethan added pending-response An issue is pending response from the issue requestor studio-ui An issue that needs to be tracked by Studio Console team figma Issues related to figma import labels Nov 21, 2023
@OperationalFallacy
Copy link
Author

Hey @OperationalFallacy, the examples in the UI kit are currently not connected to existing primitives and causing the text fields and checkbox to not appear.

Please refer to following file providing an example where i imported the primitives for the Login component in the components section. https://www.figma.com/file/14t8nfGqsqQeez5kvo3HGT/AWS-Amplify-UI-Kit-(Community)?type=design&node-id=861-3635&mode=design&t=2Fmnekdrm14eh97M-0

Thank you, could you mark the component or leave some note there? I can't see the difference.

What's the process to make this higher-level components like login page, footer to work correctly? Should the be re-assembled manually, so-to speak?

@github-actions github-actions bot removed the pending-response An issue is pending response from the issue requestor label Nov 21, 2023
@ykethan
Copy link
Member

ykethan commented Nov 21, 2023

@OperationalFallacy made a visual marker in the figma file, its under My components section.
To provide an example, I set the primitive as follows
image

If you would like to have a customization on the login, you could use the Amplify UI library authenticator component and customize the it. Please refer to https://ui.docs.amplify.aws/react/connected-components/authenticator/customization
if you want to use Studio UI generated component as login component, you may have add the Sign-in logic manually. But Amplify Studio does provide properties such as Sign-out and user attributes which may assist with this.

@ykethan ykethan added the pending-response An issue is pending response from the issue requestor label Nov 21, 2023
@OperationalFallacy
Copy link
Author

So when you import this component, does amplify UI work without errors?

I still get the import errors when I copy/pasted the example you created. Or it's not supposed to work this way?

Component "Login Page" was renamed to "LoginPage" for code compatibility.
A source component was not found for component id 4074:268 with name 'TextField'. Please ensure it exists in the Figma file you are working with. For the time being, we have recreated it inside of this component.
A source component was not found for component id 4074:524 with name 'CheckboxField'. Please ensure it exists in the Figma file you are working with. For the time being, we have recreated it inside of this component.
A source component was not found for component id 4074:364 with name '🔒Icon'. Please ensure it exists in the Figma file you are working with. For the time being, we have recreated it inside of this component.

Maybe sing-in is not a good example, and I can use imported component.

I just don't understand how "complex" components supposed should be imported, like footer, or header.

@github-actions github-actions bot removed the pending-response An issue is pending response from the issue requestor label Nov 21, 2023
@ykethan
Copy link
Member

ykethan commented Nov 21, 2023

@OperationalFallacy when we copy paste a component it will not have a reference to the primitive. you will need to set the reference similar to screenshot provided.
In this case you will need to set TextField, CheckboxField and Icon references by selecting the field and modifying it with the primitive present on the right side panel.
If have already imported the default UI kit, they should have example footer and header called MarketingFooter and NavBarHeader. which you could just modify for your use case.

@ykethan ykethan added the pending-response An issue is pending response from the issue requestor label Nov 21, 2023
@OperationalFallacy
Copy link
Author

Oh, I see. That made a trick.

I'm a completely newbie in Figma and design, so thank you for helping patiently!

@github-actions github-actions bot removed the pending-response An issue is pending response from the issue requestor label Nov 21, 2023
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
figma Issues related to figma import pending-triage An issue that is pending triage question An issue which is a question asked by a customer studio-ui An issue that needs to be tracked by Studio Console team
Projects
None yet
Development

No branches or pull requests

2 participants