Skip to content

chore: open page data update - #1380

Merged
Mythie merged 1 commit into
mainfrom
chore/open-page-update
Oct 4, 2024
Merged

Mythie merged 1 commit into
mainfrom
chore/open-page-update

Conversation

@ephraimduncan

@ephraimduncan ephraimduncan commented Oct 3, 2024 •

Copy link
Copy Markdown
Contributor

Summary by CodeRabbit

  • New Features

    • Updated team member role and compensation details for improved clarity and accuracy.
    • Enhanced German, English, and French translations for marketing-related content, ensuring better localization and user engagement.
  • Bug Fixes

    • Removed outdated translation entries, such as "Part-Time," to streamline content.
  • Documentation

    • Updated translation files to reflect current marketing language and phrases.

@coderabbitai

coderabbitai Bot commented Oct 3, 2024 •

Copy link
Copy Markdown
Contributor

Walkthrough

The pull request introduces updates to the TEAM_MEMBERS array in the data.ts file, specifically altering the details for "Ephraim Atta-Duncan." Changes include an updated role, increased salary, and a shift to full-time engagement. Additionally, the translations in the German, English, and French files have been revised to reflect these updates, including the removal of the "Part-Time" status. The modifications aim to ensure the translations align with the current marketing strategies and user engagement terminology.

Changes

File Path Change Summary
apps/marketing/src/app/(marketing)/open/data.ts Updated "Ephraim Atta-Duncan" entry in TEAM_MEMBERS: role changed to "Software Engineer - I", salary to 60,000, engagement to "Full-Time". Commented out "Part-Time". Added new message "Full-Time".
packages/lib/translations/de/marketing.po Updated German translations: added new entries, modified existing translations, and removed outdated strings, including "Part-Time".
packages/lib/translations/en/marketing.po Updated English translations: added new entries, modified existing strings, and commented out "Part-Time". Retained "Get paid (Soon)".
packages/lib/translations/fr/marketing.po Updated French translations: added new entries, modified existing translations, and removed outdated strings, including "Part-Time".

Possibly related PRs

  • feat: add language switcher #1337: The changes in this PR involve commenting out the "Part-Time" entry in the translations, which aligns with the main PR's modification of the TEAM_MEMBERS array where "Part-Time" was also commented out.
  • feat: add french #1355: This PR introduces initial French translations, which may relate to the changes in the main PR that involve updating engagement statuses and roles, as these changes could require corresponding translations in French.

Suggested reviewers

  • catalinpit

Poem

🐇 In the meadow where bunnies play,
A role was changed, hip-hip-hooray!
From part-time hops to full-time leaps,
With salaries high, our joy just keeps!
Translation blooms in every tongue,
Celebrating changes, let the songs be sung! 🎶


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@ephraimduncan
ephraimduncan requested a review from ElTimuro October 3, 2024 09:25
@vercel

vercel Bot commented Oct 3, 2024 •

Copy link
Copy Markdown

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

Name Status Preview Comments Updated (UTC)
prd-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 9:38am
stg-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 9:38am
stg-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 9:38am
stg-marketing ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 3, 2024 9:38am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
prd-app ⬜️ Ignored (Inspect) Oct 3, 2024 9:38am
prd-marketing ⬜️ Ignored (Inspect) Oct 3, 2024 9:38am

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Outside diff range and nitpick comments (4)
apps/marketing/src/app/(marketing)/open/data.ts (1)

22-25: LGTM! Congratulations on the promotion!

The changes accurately reflect Ephraim's promotion from intern to a full-time Software Engineer I position. The updated salary aligns with the SALARY_BANDS for this role, and the engagement status has been appropriately changed to Full-Time.

For consistency with other entries, consider adding an underscore to the salary value:

-    salary: 60_000,
+    salary: 60_000,

This change would maintain the formatting consistency with other salary entries in the file.

packages/lib/translations/en/marketing.po (1)

Line range hint 87-87: Consider updating or removing the "(Soon)" annotation for "Get paid" feature.

The message "Get paid (Soon)." has been retained, indicating that this feature is still planned but not yet implemented. However, the vague "(Soon)" annotation might create unrealistic expectations for users.

Consider one of the following actions:

  1. If there's a specific timeline for this feature, update the message to be more precise (e.g., "Get paid (Coming Q4 2024)").
  2. If the timeline is uncertain, remove the "(Soon)" annotation and use a more general phrase like "Get paid (Coming in the future)".
  3. If the feature is close to release, remove the annotation entirely.

This will help manage user expectations more effectively.

packages/lib/translations/de/marketing.po (2)

Line range hint 233-234: Consider a minor improvement to the translation

The current translation "GitHub: Gesamte PRs zusammengeführt" is mostly correct, but it could be improved for clarity:

-msgstr "GitHub: Gesamte PRs zusammengeführt"
+msgstr "GitHub: Gesamtanzahl zusammengeführter PRs"

This suggestion maintains "PRs" as a tech term and places "zusammengeführt" (merged) before "PRs" for better readability.


Line range hint 29-30: Suggest a minor grammatical improvement

The current translation "Insgesamt Finanzierungsvolumen" is close, but it can be improved for grammatical correctness:

-msgstr "Insgesamt Finanzierungsvolumen"
+msgstr "Insgesamt aufgebrachtes Finanzierungsvolumen"

This suggestion adds "aufgebrachtes" to create a grammatically correct phrase that fully captures the meaning of "Total Funding Raised".

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between f05b670 and 26483d5.

📒 Files selected for processing (4)
  • apps/marketing/src/app/(marketing)/open/data.ts (1 hunks)
  • packages/lib/translations/de/marketing.po (2 hunks)
  • packages/lib/translations/en/marketing.po (2 hunks)
  • packages/lib/translations/fr/marketing.po (2 hunks)
🔇 Additional comments (24)
apps/marketing/src/app/(marketing)/open/data.ts (1)

22-25: Verify references to previous role and engagement status

The changes to Ephraim's role and engagement status look good. To ensure consistency across the codebase:

Please review the results and update any outdated references if found.

✅ Verification successful

Verification Successful: No Outdated References Found

All references to Ephraim's previous role and engagement status have been verified, and no outdated references were found.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Check for any references to Ephraim's previous role or part-time status

# Search for "Software Engineer - Intern" or "Part-Time" in relation to Ephraim
rg -i "ephraim.*intern" --type ts
rg -i "ephraim.*part.?time" --type ts

# Search for any hardcoded salary values that might need updating
rg "15.?000" --type ts

Length of output: 190

packages/lib/translations/en/marketing.po (4)

384-385: ⚠️ Potential issue

"Part-Time" message has been commented out.

The removal of the "Part-Time" message ID could impact existing functionality or UI elements. Please ensure this change is intentional and consistent across the application.

To verify the impact of removing "Part-Time", run the following script:

#!/bin/bash
# Description: Check for any remaining usage of "Part-Time" in the codebase

# Search for "Part-Time" in TypeScript/JavaScript files
echo "Searching for 'Part-Time' usage in TS/JS files:"
rg --type-add 'frontend:*.{ts,tsx,js,jsx}' -t frontend 'Part-Time' -C 2

# Search for "Part-Time" in React components
echo "Searching for 'Part-Time' in React components:"
ast-grep --lang typescript --pattern 'Part-Time'

# Check if there are any translation keys still using "Part-Time"
echo "Checking for translation keys using 'Part-Time':"
rg '"Part-Time"' *.po

If any occurrences are found, please update them accordingly or reconsider commenting out this message.


Line range hint 1-385: Overall assessment of changes in marketing translations

The changes in this file reflect updates to the product's features and messaging. Most modifications appear to be intentional and aligned with the current state of the application. However, it's crucial to ensure these changes are consistently applied across the entire application and all marketing materials.

To ensure consistency, please run a final verification script:

#!/bin/bash
# Description: Verify consistency of marketing messages across the application

# List all unique message IDs in the marketing.po file
echo "Unique message IDs in marketing.po:"
grep msgid marketing.po | sort | uniq

# Check for any hardcoded strings that should be translated
echo "Potential hardcoded strings in TS/JS files:"
rg --type-add 'frontend:*.{ts,tsx,js,jsx}' -t frontend '"[A-Z][a-z]' -C 2

# Verify usage of translation function in React components
echo "Usage of translation function in React components:"
ast-grep --lang typescript --pattern 't($msgid)'

Review the output to ensure all marketing messages are properly translated and no hardcoded strings are used where translations should be applied.


Line range hint 42-42: Verify removal of "Easy Sharing (Soon)" feature from all materials.

The "Easy Sharing (Soon)." message has been commented out, suggesting this feature is no longer planned or has been indefinitely postponed.

Please ensure that this change is reflected across all marketing materials and user-facing documentation. Run the following script to check for any remaining references:

#!/bin/bash
# Description: Check for any remaining references to "Easy Sharing" feature

# Search for "Easy Sharing" in TypeScript/JavaScript files
echo "Searching for 'Easy Sharing' in TS/JS files:"
rg --type-add 'frontend:*.{ts,tsx,js,jsx}' -t frontend 'Easy Sharing' -C 2

# Search for "Easy Sharing" in Markdown files (likely documentation)
echo "Searching for 'Easy Sharing' in Markdown files:"
rg 'Easy Sharing' *.md

# Search for "Easy Sharing" in HTML files (possibly marketing pages)
echo "Searching for 'Easy Sharing' in HTML files:"
rg 'Easy Sharing' *.html

If any occurrences are found, please update them to reflect the current status of this feature.


221-221: New "Full-Time" message added across multiple contexts.

The addition of the "Full-Time" message ID appears to be consistent with the application's needs. This term is used in various parts of the application, which is good for maintaining consistency.

To ensure this new term is used correctly throughout the codebase, please run the following script:

✅ Verification successful

"Full-Time" message usage verified across the codebase.
The "Full-Time" message has been correctly added and is consistently used in the necessary translation and data files. No further issues were found.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify the usage of "Full-Time" across the codebase

# Search for "Full-Time" usage in TypeScript/JavaScript files
echo "Searching for 'Full-Time' usage in TS/JS files:"
rg --type-add 'frontend:*.{ts,tsx,js,jsx}' -t frontend 'Full-Time' -C 2

# Search for "Full-Time" usage in React components
echo "Searching for 'Full-Time' usage in React components:"
ast-grep --lang typescript --pattern 'Full-Time'

Length of output: 56163


Script:

#!/bin/bash
# Description: Re-verify the usage of "Full-Time" across the codebase

# Search for "Full-Time" usage in TypeScript/JavaScript files
echo "Searching for 'Full-Time' usage in TS/JS files:"
rg --type-add 'frontend:*.{ts,tsx,js,jsx}' -t frontend 'Full-Time' -C 2

# Search for "Full-Time" usage in React components
echo "Searching for 'Full-Time' usage in React components:"
ast-grep --lang typescript --pattern 'Full-Time' .

Length of output: 19148

packages/lib/translations/de/marketing.po (8)

226-227: LGTM: Accurate translation of "Full-Time"

The translation "Vollzeit" for "Full-Time" is correct and commonly used in German.


Line range hint 46-47: LGTM: Accurate translation of "Easy Sharing."

The translation "Einfaches Teilen." for "Easy Sharing." is correct and maintains the original formatting.


226-227: LGTM: Accurate and idiomatic translation

The translation "Fangen Sie heute an." for "Get started today." is correct, idiomatic, and maintains the original formatting.


Line range hint 289-290: LGTM: Accurate translation of "Is there more?"

The translation "Gibt es mehr?" for "Is there more?" is correct and maintains the original meaning and formatting.


Line range hint 108-109: LGTM: Accurate translation with appropriate tech term usage

The translation "React Widget (Demnächst)." for "React Widget (Soon)." is correct, maintains the tech term "Widget", and uses an appropriate German word for "Soon".


Line range hint 83-84: LGTM: Excellent translation of "Template Store (Soon)."

The translation "Vorlagen-Shop (Demnächst)." for "Template Store (Soon)." is accurate, idiomatic, and consistent with other translations in the file.


Line range hint 165-166: LGTM: Excellent translation of the open metrics message

The translation accurately conveys the message about transparency and open metrics. It maintains the correct placeholders and keeps "Open Metrics" as a product feature name. The German text flows naturally and captures the spirit of the original.


Line range hint 293-294: LGTM: Well-translated message about page evolution

The translation effectively conveys the message about the page's ongoing development. The use of "Signing-Unternehmen" for "signing company" is appropriate, and the overall German phrasing is natural and clear.

packages/lib/translations/fr/marketing.po (11)

226-226: LGTM: Reference line addition

This additional reference line doesn't affect the translation quality. It's likely due to code reorganization or additional usage of the translated string.


Line range hint 1-2: LGTM: Correct placeholder handling

The translation for the placeholder "{0}" is correctly kept as-is. This is the proper approach for handling dynamic content in translations.


Line range hint 3-4: LGTM: Accurate and natural translation

The translation "5 documents standard par mois" for "5 standard documents per month" is accurate and follows natural French word order.


Line range hint 5-6: LGTM: Correct translation with proper agreement

The translation "5 utilisateurs inclus" for "5 Users Included" is accurate and demonstrates correct grammatical agreement.


Line range hint 7-8: LGTM: Excellent idiomatic translation

The translation "Une expérience de signature 10 fois meilleure." for "A 10x better signing experience." is accurate and uses natural French phrasing. The adaptation of "10x" to "10 fois" is particularly well done.


Line range hint 9-10: LGTM: Accurate translation with proper article usage

The translation "Ajouter un document" for "Add document" is correct and includes the appropriate indefinite article "un", which is necessary in French for this context.


Line range hint 11-12: LGTM: Correct translation with preserved placeholder

The translation "Ajouter plus d'utilisateurs pour {0}" for "Add More Users for {0}" is accurate, maintains the placeholder, and uses natural French phrasing.


Line range hint 13-14: LGTM: Excellent translation with preserved HTML structure

The translation accurately conveys the original message while maintaining the HTML structure. The French phrasing is natural and preserves the tone of the English version.


Line range hint 15-16: LGTM: Accurate and context-appropriate translation

The translation "Montant levé" for "Amount Raised" is accurate and uses the correct terminology for fundraising contexts in French.


Line range hint 17-18: LGTM: Correct translation with appropriate technical term usage

The translation "Accès API" for "API Access" is accurate. It correctly maintains the technical term "API" in English and uses the proper French word order.


Line range hint 1-18: Overall excellent translation quality

The reviewed translations demonstrate high quality, accuracy, and natural French phrasing. They effectively convey the meaning and tone of the original English text while adhering to French linguistic norms. Great job on maintaining consistency and appropriately handling technical terms and placeholders.

Comment on lines +389 to +390
#~ msgid "Part-Time"
#~ msgstr "Teilzeit"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

"Part-Time" translation is still in use

The term "Part-Time" is still referenced in the following files:

  • packages/lib/translations/en/marketing.js
  • packages/lib/translations/ro/marketing.js

Please ensure that the German translation for "Part-Time" is retained or confirm that the term is no longer needed in the application.

🔗 Analysis chain

Verify the removal of "Part-Time" translation

The translation for "Part-Time" has been removed. Please verify if this term is no longer used in the application. If it's still needed, consider keeping the translation.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check if "Part-Time" is still used in the codebase
rg --type typescript --type javascript --type tsx --type jsx "Part-Time"

Length of output: 107


Script:

#!/bin/bash
# Check if "Part-Time" is still used in the codebase
rg --type js --type jsx --type ts --type tsx "Part-Time"

Length of output: 84


Script:

#!/bin/bash
# Check if "Part-Time" is still used in the codebase by searching specific file extensions
rg --glob "*.js" --glob "*.jsx" --glob "*.ts" --glob "*.tsx" "Part-Time"

Length of output: 25683

Comment on lines +389 to +390
#~ msgid "Part-Time"
#~ msgstr "Temps partiel"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

💡 Codebase verification

Incomplete Removal of "Part-Time" Translation Found

The "Part-Time" string is still present in the following translation files:

  • packages/lib/translations/en/marketing.js
  • packages/lib/translations/ro/marketing.js

Please ensure that "Part-Time" is removed from all translations to maintain consistency and avoid missing translations.

🔗 Analysis chain

Verify removal of "Part-Time" translation

The translation for "Part-Time" has been commented out. Please verify that this string is no longer used anywhere in the application to avoid potential missing translations.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for "Part-Time" string usage in the codebase
rg -i "Part-Time" --type ts --type tsx --type js --type jsx

Length of output: 87


Script:

#!/bin/bash
# Search for "Part-Time" string usage in the codebase, including .tsx files
rg -i "Part-Time" --type ts --type js --type jsx --glob "*.tsx"

Length of output: 91


Script:

#!/bin/bash
# Search for "Part-Time" string usage in the codebase, including .ts, .tsx, .js, and .jsx files
rg -i "Part-Time" --glob "*.ts" --glob "*.tsx" --glob "*.js" --glob "*.jsx"

Length of output: 25686

This branch was successfully deployed

4 active deployments
Preview – stg-marketing — 26483d5d Deployed Oct 3, 2024 by vercel[bot]
Preview – prd-docs — 26483d5d Deployed Oct 3, 2024 by vercel[bot]
Preview – stg-docs — 26483d5d Deployed Oct 3, 2024 by vercel[bot]
Preview – stg-app — 26483d5d Deployed Oct 3, 2024 by vercel[bot]
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