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: adds opengraph to records #1042

Merged
merged 3 commits into from
Nov 19, 2024
Merged

feat: adds opengraph to records #1042

merged 3 commits into from
Nov 19, 2024

Conversation

f-necas
Copy link
Collaborator

@f-necas f-necas commented Nov 15, 2024

Description

This PR introduces OpenGraph protocol to datahub's records. A nice implmentation would be to have a default image and base title for og:title.

But it will add more default.toml conf. I tried here to keep it simple.

🔗 ⚠️ Also add external viewer button to exports to be able to use it in other apps which use gn-ui

Screenshots

image

Quality Assurance Checklist

  • Commit history is devoid of any merge commits and readable to facilitate reviews

This work is sponsored by MEL.

@f-necas f-necas requested a review from jahow November 15, 2024 14:39
Copy link
Contributor

github-actions bot commented Nov 15, 2024

Affected libs: feature-record, feature-router,
Affected apps: datahub, metadata-editor, demo, webcomponents,

  • 🚀 Build and deploy storybook and demo on GitHub Pages
  • 📦 Build and push affected docker images

@coveralls
Copy link

coveralls commented Nov 15, 2024

Coverage Status

coverage: 84.784% (+0.4%) from 84.36%
when pulling 8c010a2 on opengraph
into 68624e7 on main.

Copy link
Contributor

github-actions bot commented Nov 15, 2024

📷 Screenshots are here!

Copy link
Collaborator

@jahow jahow left a comment

Choose a reason for hiding this comment

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

Thank you, very interesting feature! Could you maybe put all the meta-related features in a component in the feature/record lib? something like gn-ui-record-meta for example. Thanks!

Comment on lines 8 to 10
<meta property="og:title" content="Datahub" />
<meta property="og:type" content="website" />
<meta property="og:url" content="" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this really required or will the angular code be enough to create those elements?

@f-necas f-necas requested a review from jahow November 19, 2024 09:35
Copy link
Collaborator

@jahow jahow left a comment

Choose a reason for hiding this comment

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

thank you! I just added a comment to remind you to make the new component standalone, thanks :)


@Component({
selector: 'gn-ui-record-meta',
template: '<>',
Copy link
Collaborator

Choose a reason for hiding this comment

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

it would be great if you could make this component standalone, thanks!

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Set as standalone and removed <> as it was adding this to html page :p

@f-necas f-necas merged commit fdac73d into main Nov 19, 2024
13 checks passed
@f-necas f-necas deleted the opengraph branch November 19, 2024 13:09
jahow added a commit that referenced this pull request Nov 20, 2024
jahow added a commit that referenced this pull request Nov 21, 2024
jahow added a commit that referenced this pull request Nov 21, 2024
jahow added a commit that referenced this pull request Nov 21, 2024
jahow added a commit that referenced this pull request Nov 21, 2024
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.

3 participants