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

Add fetching and displaying description files #109

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

SangMinhTruong
Copy link
Contributor

ELCA_SMARTDATALAKE-270

For this issue, I have put a comment in the JIRA ticket about how to handle URLs in markdown files. Could you please have a look at that and also do a review for this PR? I will make any correction as necessary.

Copy link
Contributor

@zzeekk zzeekk left a comment

Choose a reason for hiding this comment

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

Interesting approach to replace relative Urls. I did not yet think about that...

Maybe we could also use the following feature of react-markup instead - it has a transformLinkUri and transformImageUri option, see https://github.com/remarkjs/react-markdown/tree/8.0.3.

So the fetchAPI would need another interface method getDescriptionUriTransform, which would be given as option to Markdown component in src/components/ConfigExplorer/DescriptionTab.tsx.

WDYT?

src/api/fetchAPI_rest.ts Show resolved Hide resolved
@zzeekk zzeekk self-requested a review December 18, 2024 07:43
@SangMinhTruong SangMinhTruong merged commit 46a9f9f into develop Dec 18, 2024
1 check passed
@SangMinhTruong SangMinhTruong deleted the feature/description-files-endpoint branch December 18, 2024 08:39
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