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

feat: migrated the whole template to react #207

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ItshMoh
Copy link

@ItshMoh ItshMoh commented Sep 21, 2024

Description

As part of the template to migrate it to v3, I have completed the migration to react renderer engine

https://www.loom.com/share/b59f39be60be436ab7eac2f6e13bf56a?sid=cf9dae72-5816-442a-8ce9-6ee320767c8d

Related issue(s)
Part of #189

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome to AsyncAPI. Thanks a lot for creating your first pull request. Please check out our contributors guide useful for opening a pull request.
Keep in mind there are also other channels you can use to interact with AsyncAPI community. For more details check out this issue.

@ItshMoh ItshMoh changed the title feat: Migrated the whole template to react feat: migrated the whole template to react Sep 21, 2024
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarCloud

Catch issues before they fail your Quality Gate with our IDE extension SonarLint

@ItshMoh
Copy link
Author

ItshMoh commented Sep 27, 2024

@derberg Hey ! can you review the PR.

@ItshMoh
Copy link
Author

ItshMoh commented Oct 10, 2024

Hey @derberg can you review the PR?

@derberg
Copy link
Member

derberg commented Oct 16, 2024

sorry mate for delay, will look into it

Copy link
Member

@derberg derberg left a comment

Choose a reason for hiding this comment

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

sorry for late review 🙏🏼


// If there are no schemas, we expect to find an anonymous one embedded in a payload. If we do have schemas we assume we don't need this.
// This will turn out to be a bug if we ever have a file with schemas, but which also has an anonymous schema embedded in an operation.
if (hasSchema) {
Copy link
Member

Choose a reason for hiding this comment

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

is it not needed because of convertToFilename implementation? why so?

or basically why template/payload.py is no longer needed

@@ -0,0 +1,15 @@
const sanitizeFilename = require('sanitize-filename');

function convertToFilename(string, options = { replacement: '-', maxLength: 255 }) {
Copy link
Member

Choose a reason for hiding this comment

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

why did you take this direction? did you face some issues while testing changes?

@@ -0,0 +1,52 @@
const _ = require('lodash');
Copy link
Member

Choose a reason for hiding this comment

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

instead of partials people should rather opt in to use components reference for reusable components - more natively common word in the context of react and react components concept

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants