Skip to content

Conversation

@bmuenzenmeyer
Copy link
Contributor

@bmuenzenmeyer bmuenzenmeyer commented Jan 6, 2025

Description

Usesthe (already, but unused) edit this page translation in the metabar, and conditionally sends the user to the appropriate resource

Validation

Live

Rendering

image

Related Issues

closes #7342

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run npm run format to ensure the code follows the style guide.
  • I have run npm run test to check if all tests are passing.
  • I have run npx turbo build to check if the website builds without errors.
  • I've covered new added functionality with unit tests if necessary.

Copilot AI review requested due to automatic review settings January 6, 2025 23:17
@bmuenzenmeyer bmuenzenmeyer requested a review from a team as a code owner January 6, 2025 23:17
@vercel
Copy link

vercel bot commented Jan 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
nodejs-org ✅ Ready (Inspect) Visit Preview Jan 6, 2025 11:18pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

apps/site/components/withMetaBar.tsx:62

  • Ensure the translation key 'components.metabar.contributeText' is defined and covered by tests.
{t('components.metabar.contributeText')}

Copy link
Member

@mikeesto mikeesto left a comment

Choose a reason for hiding this comment

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

LGTM, thanks

Copy link
Member

@ovflowd ovflowd left a comment

Choose a reason for hiding this comment

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

SGTM

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2025

Lighthouse Results

URL Performance Accessibility Best Practices SEO Report
/en 🟢 99 🟢 100 🟢 100 🟢 91 🔗
/en/about 🟢 100 🟢 100 🟢 100 🟢 91 🔗
/en/about/previous-releases 🟢 99 🟢 100 🟢 100 🟢 92 🔗
/en/download 🟢 97 🟢 100 🟢 100 🟢 91 🔗
/en/blog 🟢 100 🟢 100 🟢 96 🟢 92 🔗

@github-actions
Copy link
Contributor

github-actions bot commented Jan 7, 2025

Unit Test Coverage Report

Lines Statements Branches Functions
Coverage: 88%
87.02% (751/863) 72.45% (242/334) 85.62% (143/167)

Unit Test Report

Tests Skipped Failures Errors Time
186 0 💤 0 ❌ 0 🔥 5.487s ⏱️

Copy link
Member

@canerakdas canerakdas left a comment

Choose a reason for hiding this comment

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

LGTM

@AugustinMauroy
Copy link
Member

I'm not 100% a fan. I think that if it's the default language, we should have ‘edit content’ and if it's another language we should have ‘edit source content’ and if translation is available for this page we should have ‘translate this page’.

It might be possible to move forward with this pr to avoid problems. And open an exit to have this feature more ‘fancy’.

@bmuenzenmeyer
Copy link
Contributor Author

@AugustinMauroy

I'm not 100% a fan.

Thanks for sharing your opinion. Re-reading #7342 (comment), you probably would have wanted something more nuanced.

I went with this approach after realizing we have already been translating this string, just not using it. Changing it will take time.

image

Would you be okay with this solution as an improvement on the existing state? I took it up during some downtime to improve reader/contributor UX.

@AugustinMauroy
Copy link
Member

Would you be okay with this solution as an improvement on the existing state? I took it up during some downtime to improve reader/contributor UX.

yeah let's merge with actual state and then open another change

@bmuenzenmeyer bmuenzenmeyer added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit d61ffd8 Jan 8, 2025
16 checks passed
@bmuenzenmeyer bmuenzenmeyer deleted the 7342-edit-this-translation branch January 8, 2025 20:55
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.

Handle Edit this page on non-English pages

7 participants