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

Added banner and notice page for SDK deprecation #928

Merged
merged 6 commits into from
Oct 5, 2024
Merged

Conversation

krofax
Copy link
Contributor

@krofax krofax commented Sep 26, 2024

Description

A notice page informing community of the SDK deprecation and a migration to viem/opstack library

Tests

Please describe any tests you've added. If you've added no tests, or left important behavior untested, please explain why not.

Additional context

Add any other context about the problem you're solving.

Metadata

Copy link

netlify bot commented Sep 26, 2024

Deploy Preview for docs-optimism ready!

Name Link
🔨 Latest commit 924eceb
🔍 Latest deploy log https://app.netlify.com/sites/docs-optimism/deploys/67001ea1f151a90008e8fa0e
😎 Deploy Preview https://deploy-preview-928--docs-optimism.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@krofax krofax changed the title Added notice page for deprecation and banner Added banner and notice page for SDK deprecation Sep 26, 2024
@krofax krofax marked this pull request as ready for review October 3, 2024 13:41
@krofax krofax requested a review from a team as a code owner October 3, 2024 13:41
Copy link
Contributor

coderabbitai bot commented Oct 3, 2024

Walkthrough

This pull request introduces changes related to the deprecation of the Optimism SDK. It adds a new documentation page that details the migration to the viem library, updates a JSON file to indicate this deprecation, and modifies the theme configuration to include a banner linking to the deprecation notice. Additionally, the words.txt file is updated to standardize terminology and include new entries relevant to the changes.

Changes

File Change Summary
pages/builders/notices/_meta.json Added new entry: "sdk-deprecation": "Preparing for Optimism SDK deprecation"
pages/builders/notices/sdk-deprecation.mdx New page added detailing the deprecation of the Optimism SDK and migration to viem.
theme.config.tsx Introduced a new banner property linking to the Optimism SDK deprecation notice.
words.txt Added new entry: opstack and normalized case sensitivity of existing terms.

Possibly related PRs

  • Update fp-changes.mdx #689: The changes in fp-changes.mdx mention updates related to the Optimism SDK and Viem, which are relevant to the deprecation notice for the Optimism SDK in the main PR.
  • fp updates #732: This PR also deals with updates to fp-changes.mdx, which includes information about changes affecting the Optimism SDK, linking it to the deprecation notice in the main PR.
  • update banner #801: The changes in theme.config.tsx include a new banner property that links to a deprecation notice for the Optimism SDK, which is directly related to the main PR's focus on the Optimism SDK deprecation.
  • Updating Old wip callout to the new callout #775: This PR includes updates to tutorial pages that reference the Optimism SDK, which is directly related to the main PR's emphasis on the migration from the Optimism SDK to the viem library.
  • updating notice to have info on breaking changes #889: This PR updates the notice regarding breaking changes associated with the Alt-DA mode, which is relevant to the overall context of deprecating the Optimism SDK and transitioning to new standards.

Suggested labels

flag:merge-pending-release, documentation

Suggested reviewers

  • sbvegan
  • bradleycamacho

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 59c12d8 and 924eceb.

📒 Files selected for processing (1)
  • pages/builders/notices/sdk-deprecation.mdx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • pages/builders/notices/sdk-deprecation.mdx

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.

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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 7

🧹 Outside diff range and nitpick comments (2)
pages/builders/notices/_meta.json (1)

3-4: LGTM! The changes align with the PR objectives.

The addition of the "sdk-deprecation" entry is appropriate and consistent with the existing structure. It clearly indicates the purpose of preparing users for the Optimism SDK deprecation, which aligns with the PR objectives.

For consistency with the other entries, consider capitalizing "SDK" in the value:

-  "sdk-deprecation": "Preparing for Optimism SDK deprecation"
+  "sdk-deprecation": "Preparing for Optimism SDK Deprecation"
pages/builders/notices/sdk-deprecation.mdx (1)

61-64: Clarify package manager usage in the code snippet.

The code snippet uses both pnpm and npm commands, which might be confusing for users. Consider using a single package manager or providing instructions for both.

Consider revising the code snippet as follows:

```bash
# If using npm
npm uninstall @eth-optimism/sdk
npm install viem

# If using pnpm
pnpm remove @eth-optimism/sdk
pnpm add viem

</blockquote></details>

</blockquote></details>

<details>
<summary>📜 Review details</summary>

**Configuration used: .coderabbit.yaml**
**Review profile: CHILL**

<details>
<summary>📥 Commits</summary>

Files that changed from the base of the PR and between d7efe1c4761cf221eadc1409855797d4c61620dd and 138050284dcf0c56a8fc8bdf582b901b4bd387bd.

</details>

<details>
<summary>📒 Files selected for processing (4)</summary>

* pages/builders/notices/_meta.json (1 hunks)
* pages/builders/notices/sdk-deprecation.mdx (1 hunks)
* theme.config.tsx (1 hunks)
* words.txt (1 hunks)

</details>

<details>
<summary>✅ Files skipped from review due to trivial changes (1)</summary>

* words.txt

</details>

<details>
<summary>🧰 Additional context used</summary>

<details>
<summary>📓 Path-based instructions (1)</summary><blockquote>

<details>
<summary>pages/builders/notices/sdk-deprecation.mdx (1)</summary>

Pattern `**/*.mdx`: "ALWAYS review Markdown content THOROUGHLY with the following criteria:
- Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
- Avoid gender-specific language and use the imperative form.
- Monitor capitalization for emphasis. Use **bold** for prominence instead of all caps or italics.
- Ensure proper nouns are capitalized in sentences.
- Apply the Oxford comma.
- Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
- Use correct spelling and grammar at all times (IMPORTANT).
"


</details>

</blockquote></details>

<details>
<summary>🪛 LanguageTool</summary><blockquote>

<details>
<summary>pages/builders/notices/sdk-deprecation.mdx</summary><blockquote>

[uncategorized] ~23-~23: You might be missing the article “the” here.
Context: ... our tutorials and documentation to use `viem/opstack` library. Below, you'll fin...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

---

[uncategorized] ~73-~73: This verb does not appear to agree with the subject. Consider using a different form.
Context: ...em/opstack`. The `viem/opstack` library offer more efficient methods to handle these ...

(AI_EN_LECTOR_REPLACEMENT_VERB_AGREEMENT)

</blockquote></details>

</blockquote></details>
<details>
<summary>🪛 GitHub Check: lint</summary><blockquote>

<details>
<summary>pages/builders/notices/sdk-deprecation.mdx</summary><blockquote>

[warning] 1-1: 
Must have required property 'lang' • /home/runner/work/docs/docs/utils/schemas/page.schema.yaml • #/required

</blockquote></details>

</blockquote></details>

</details>

<details>
<summary>🔇 Additional comments (4)</summary><blockquote>

<details>
<summary>pages/builders/notices/sdk-deprecation.mdx (2)</summary><blockquote>

`21-50`: **LGTM: Updated Tutorials section is well-structured and informative.**

The "Updated Tutorials" section provides a comprehensive list of updated and deprecated tutorials with clear descriptions. The use of relative links is good for maintainability.

<details>
<summary>🧰 Tools</summary>

<details>
<summary>🪛 LanguageTool</summary><blockquote>

[uncategorized] ~23-~23: You might be missing the article “the” here.
Context: ... our tutorials and documentation to use `viem/opstack` library. Below, you'll fin...

(AI_EN_LECTOR_MISSING_DETERMINER_THE)

</blockquote></details>

</details>

---

`81-90`: **LGTM: For Node Operators section is well-structured and informative.**

The "For Node Operators" section provides clear guidance for node operators on migrating to `viem/opstack`. The use of bullet points is consistent with other sections, making the information easy to read and follow.

</blockquote></details>
<details>
<summary>theme.config.tsx (2)</summary><blockquote>

`31-38`: **LGTM! Banner implementation looks good.**

The added banner property effectively communicates the SDK deprecation notice to users. It aligns well with the PR objectives by providing a visible link to the deprecation notice page.

A few observations:
1. The use of an emoji (🎉) adds a friendly touch to the notification.
2. The link opens in a new tab (`target="_blank"`), which is good for user experience.
3. The key 'viem/op-stack' suggests this banner is specific to the migration to viem/op-stack, allowing for potential future banners if needed.

---

Line range hint `1-184`: **Summary: Banner addition is well-implemented and non-disruptive.**

The changes in this file are minimal and focused, which is excellent for maintainability. The addition of the banner property to the configuration object effectively addresses the PR objective of notifying users about the SDK deprecation.

Key points:
1. The banner implementation is clean and doesn't interfere with existing configuration.
2. The change aligns well with the PR objectives.
3. The rest of the file remains unchanged, minimizing the risk of unintended side effects.

Overall, this is a well-executed change that enhances user communication without disrupting the existing documentation structure.

</blockquote></details>

</blockquote></details>

</details>

<!-- This is an auto-generated comment by CodeRabbit for review status -->

pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
theme.config.tsx Show resolved Hide resolved
Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 8

📜 Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 1380502 and 59c12d8.

📒 Files selected for processing (1)
  • pages/builders/notices/sdk-deprecation.mdx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
pages/builders/notices/sdk-deprecation.mdx (1)

Pattern **/*.mdx: "ALWAYS review Markdown content THOROUGHLY with the following criteria:

  • Use proper nouns in place of personal pronouns like 'We' and 'Our' to maintain consistency in communal documentation.
  • Avoid gender-specific language and use the imperative form.
  • Monitor capitalization for emphasis. Use bold for prominence instead of all caps or italics.
  • Ensure proper nouns are capitalized in sentences.
  • Apply the Oxford comma.
  • Use proper title case for headers, buttons, tab names, page names, and links. Sentence case should be used for body content and short phrases, even in links.
  • Use correct spelling and grammar at all times (IMPORTANT).
    "
🪛 GitHub Check: lint
pages/builders/notices/sdk-deprecation.mdx

[warning] 1-1:
Must have required property 'lang' • /home/runner/work/docs/docs/utils/schemas/page.schema.yaml • #/required

🔇 Additional comments (4)
pages/builders/notices/sdk-deprecation.mdx (4)

54-71: LGTM: App Developers section is informative and well-structured

The "For App Developers" section provides clear and helpful guidance for migrating from the Optimism SDK to the viem/opstack library. The content is well-organized and includes a useful code snippet for installing dependencies.


83-92: LGTM: Node Operators section is clear and informative

The "For Node Operators" section provides concise and helpful guidance for node operators transitioning from the Optimism SDK to the viem/opstack library. The content is well-structured and covers key points such as updating node software, reviewing configurations, and thorough testing.


1-100: LGTM: Comprehensive and well-structured document on SDK deprecation

The document provides a thorough overview of the Optimism SDK deprecation and the transition to the viem/opstack library. It effectively covers:

  1. Introduction and timeline
  2. Breaking changes to expect
  3. Updated tutorials
  4. Guidance for app developers, chain operators, and node operators
  5. Resources for further assistance

The structure is logical, and the content is informative. While there are some minor issues with language and formatting (addressed in previous comments), the overall document serves its purpose well.

🧰 Tools
🪛 GitHub Check: lint

[warning] 1-1:
Must have required property 'lang' • /home/runner/work/docs/docs/utils/schemas/page.schema.yaml • #/required


1-100: Summary: Solid documentation with minor improvements needed

This document on the Optimism SDK deprecation is comprehensive and well-structured. It effectively communicates the necessary information to various stakeholders. Here's a summary of the key points and suggested improvements:

  1. Add the 'lang' property to the frontmatter for compliance with the page schema.
  2. Revise language throughout to use proper nouns instead of personal pronouns for consistency in communal documentation.
  3. Correct typos and grammatical errors, particularly in the "Updated Tutorials" and "Need Help?" sections.
  4. Improve formatting in the "Need Help?" section for better readability.
  5. Uncomment and review the tutorial links to ensure they are up-to-date and functional.

Overall, the document is informative and valuable. Implementing these suggestions will enhance its clarity and effectiveness.

🧰 Tools
🪛 GitHub Check: lint

[warning] 1-1:
Must have required property 'lang' • /home/runner/work/docs/docs/utils/schemas/page.schema.yaml • #/required

pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
pages/builders/notices/sdk-deprecation.mdx Outdated Show resolved Hide resolved
@krofax
Copy link
Contributor Author

krofax commented Oct 4, 2024

@bradleycamacho mind giving this a review?

@krofax krofax merged commit 0be241d into main Oct 5, 2024
7 of 8 checks passed
@krofax krofax deleted the notice-page branch October 5, 2024 00:26
This was referenced Oct 24, 2024
This was referenced Nov 8, 2024
@coderabbitai coderabbitai bot mentioned this pull request Dec 27, 2024
@coderabbitai coderabbitai bot mentioned this pull request Jan 6, 2025
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