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 legacy safe-core-sdk migration guide #291

Merged
merged 33 commits into from
Nov 30, 2023
Merged

Conversation

dasanra
Copy link
Contributor

@dasanra dasanra commented Nov 28, 2023

Overview

We plan to mark the legacy safe-core-sdk as deprecated on npm. There weren't many breaking changes between safe-core-sdk and the protocol-kit v1 release but we want to provide a few migration materials that can be used as reference when existing integrations want to migrate to the new kits structure.

Copy link

github-actions bot commented Nov 28, 2023

Overall readability score: 70.99 (🟢 +0.14)

File Readability
v1.md 67.43 (-)
v2.md 62.94 (🟢 +0)
v1.md 81.27 (-)
v2.md 70.41 (🟢 +0.2)
SUMMARY.md 100 (🟢 +0)
View detailed metrics

🟢 - Shows an increase in readability
🔴 - Shows a decrease in readability

File Readability FRE GF ARI CLI DCRS
v1.md 67.43 46.03 8.5 9.3 12.32 6.66
  - - - - - -
v2.md 62.94 48.6 11.03 9.5 10.72 7.45
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0
v1.md 81.27 67.65 7.9 8.1 8.51 6
  - - - - - -
v2.md 70.41 59.09 10.7 7.1 8.34 7.97
  🟢 +0.2 🟢 +0.2 🔴 -0.08 🟢 +0.1 🟢 +0.23 🔴 -0.05
SUMMARY.md 100 100 6 6 6 4.9
  🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0 🟢 +0

Averages:

  Readability FRE GF ARI CLI DCRS
Average 70.99 62.25 9.1 9.42 10.2 6.94
  🟢 +0.14 🔴 -0.21 🟢 +0.03 🟢 +0.03 🟢 +0 🟢 +0.02
View metric targets
Metric Range Ideal score
Flesch Reading Ease 100 (very easy read) to 0 (extremely difficult read) 60
Gunning Fog 6 (very easy read) to 17 (extremely difficult read) 8 or less
Auto. Read. Index 6 (very easy read) to 14 (extremely difficult read) 8 or less
Coleman Liau Index 6 (very easy read) to 17 (extremely difficult read) 8 or less
Dale-Chall Readability 4.9 (very easy read) to 9.9 (extremely difficult read) 6.9 or less

@dasanra dasanra marked this pull request as ready for review November 29, 2023 10:41
@dasanra dasanra requested a review from tanay1337 November 29, 2023 10:41
Copy link
Collaborator

@tanay1337 tanay1337 left a comment

Choose a reason for hiding this comment

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

We should also add the pages to the sidebar under migrating to v2.

@@ -0,0 +1,114 @@
# API Kit: Migrating from `safe-service-client`
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should the title be Migrating to v1 for consistency with the other migration guide?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the other migration guide we set API Kit: Migrating from v1. The Migrating to v2 was set as the Link title in SUMMARY.md.

Should I align the titles or should I leave it like this?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think both the link title and the title were the same: https://docs.safe.global/safe-core-aa-sdk/api-kit/reference/v2.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It seems gitdocs is ignoring the H1 element # in the file and overwritting with what you write in the SUMMARY file

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah, I see. Interesting. I am fine if you so it same as you did for the last one by changing it in the Summary file :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, for the visuals in the menu Migrating to v1 feels more correct, I'm just concerned because this migration also involved a package name change:

safe-core-sdk + safe-ethers-lib + safe-web3-lib -> protocol-kit
safe-service-client -> safe-api-kit

We can test this way and re-evaluate if people is having trouble finding it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should this be added as a page description or somewhere in the text so that it appears when people search from the search bar? 👀

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will think about it

safe-core-sdk/api-kit/reference/migrating/v1.md Outdated Show resolved Hide resolved
safe-core-sdk/api-kit/reference/migrating/v1.md Outdated Show resolved Hide resolved
safe-core-sdk/api-kit/reference/migrating/v1.md Outdated Show resolved Hide resolved
safe-core-sdk/api-kit/reference/migrating/v1.md Outdated Show resolved Hide resolved
safe-core-sdk/protocol-kit/reference/migrating/v1.md Outdated Show resolved Hide resolved
safe-core-sdk/protocol-kit/reference/migrating/v1.md Outdated Show resolved Hide resolved
safe-core-sdk/protocol-kit/reference/migrating/v1.md Outdated Show resolved Hide resolved
safe-core-sdk/protocol-kit/reference/migrating/v1.md Outdated Show resolved Hide resolved
safe-core-sdk/protocol-kit/reference/migrating/v2.md Outdated Show resolved Hide resolved
SUMMARY.md Outdated
@@ -34,6 +34,7 @@

* [Protocol Kit](safe-core-sdk/protocol-kit/README.md)
* [Reference](safe-core-sdk/protocol-kit/reference/README.md)
* [Migrating to v1](safe-core-sdk/protocol-kit/reference/migrating/v1.md)
Copy link
Collaborator

Choose a reason for hiding this comment

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

The last question, we should probably switch the order. WDYT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

With only 2 versions people wouldn't get lost, but I think I get your point.

Will do it 👍

@tanay1337 tanay1337 self-requested a review November 29, 2023 13:41
@tanay1337 tanay1337 merged commit d393a62 into main Nov 30, 2023
5 checks passed
@tanay1337 tanay1337 deleted the add-missing-resources branch November 30, 2023 07:01
louis-md added a commit that referenced this pull request Dec 19, 2023
louis-md added a commit that referenced this pull request Jan 24, 2024
* Update SUMMARY.md (#251)

* Update SUMMARY.md

* Update SUMMARY.md

* Add GH action for readability (#254)

Co-authored-by: Tanay Pant <tanaypantprotonmail.com>

* Add workflow for style check on PRs (#255)

Co-authored-by: Tanay Pant <tanaypantprotonmail.com>

* Update workflow setting

* Add link check workflow (#257)

* Add link check workflow

* Fix errors

---------

Co-authored-by: Tanay Pant <tanaypantprotonmail.com>

* Remove link check GH action

* Link check workflow (#259)

* Link check workflow

* Test a fix

* Updates

* Fixes

---------

Co-authored-by: Tanay Pant <tanaypantprotonmail.com>

* Add weekly link checker (#260)

* Add weekly link checker

* Minor updates

---------

Co-authored-by: Tanay Pant <tanaypantprotonmail.com>

* Add manual trigger for testing

* Fix conditional for issue creation

* Update conditional for workflow

* Minor updates to the workflow

* Update information architecture (#265)

* Update information architecture

* Update minimum alert level for Vale

* Remove unused files

---------

Co-authored-by: Tanay Pant <tanaypantprotonmail.com>

* Update Safe Apps section (#267)

* Update Safe Docs

* Update README.md

* Add new vocabulary

* Update README.md

* Update get-started.md

* Update get-started.md

* Add new vocab

* Update release.md

* Update release.md

* Add new vocab

* New words

* Update release.md

* Update release.md

* Update safe-apps/release.md

Co-authored-by: Germán Martínez <[email protected]>

* Update safe-apps/release.md

Co-authored-by: Germán Martínez <[email protected]>

* Update safe-apps/release.md

Co-authored-by: Germán Martínez <[email protected]>

---------

Co-authored-by: Tanay Pant <tanaypantprotonmail.com>
Co-authored-by: Germán Martínez <[email protected]>

* Update IA for reference (#268)

* Update IA

* Fixes

* Move files around

* Update SUMMARY.md

---------

Co-authored-by: Tanay Pant <tanaypantprotonmail.com>

* docs: fix typos (#271)

* docs: fix typos

* Update safe-apps/release.md

revert typo walkthroughts

Co-authored-by: Germán Martínez <[email protected]>

* Update safe-core-api/rpc-requirements.md

fix typos

Co-authored-by: Germán Martínez <[email protected]>

* Update safe-core-api/rpc-requirements.md

Co-authored-by: Germán Martínez <[email protected]>

* Update safe-core-api/rpc-requirements.md

Co-authored-by: Germán Martínez <[email protected]>

* Update safe-core-api/rpc-requirements.md

fix typos

Co-authored-by: Germán Martínez <[email protected]>

* Update safe-apps/release.md

fix typo

Co-authored-by: Germán Martínez <[email protected]>

---------

Co-authored-by: Germán Martínez <[email protected]>

* fix: update `@web3auth/*` versions (#270)

* fix: update `@web3auth/*` versions

* fix: revert formatting

* Update README.md (#276)

* Add script to generate Supported Networks pages from safe-deployments repo as a github action (#278)

* Add script to genereate Supported Networks pages from safe-deployments repo as a github action

* Update summary

* Update summary

* Fix typo in supported networks script & re-generate .md files

* Implement requested changes

* Implement requested changes

* Remove unused console.log; fix supported networks index page & block explorers

* Fix some vale errors ("networks's" & "Testnet")

* Re-generate supported networks

* Implement requested changes (wording & correct section)

* Update SUMMARY.md

* Update SUMMARY.md

* Update SUMMARY.md

* Update SUMMARY.md

* Update SUMMARY.md

* Move supported networks .md folder into safe-smart-accounts

* Implement requested changes (create PR on workflow, minor fixes)

* Update vale dictionnary

* Update vale dictionnary

* Remove duplicates in vale dictionnary

* Remove unnecessary steps in github workflow for supported networks

* Remove duplicates in vale dictionnary

* Alphabetize & deduplicate vale dictionnary

* Exclude deprecated block explorer from supported networks page generation

---------

Co-authored-by: Germán Martínez <[email protected]>

* Link checks (#275)

* Fix some link checker errors

* Fix some link checker errors

* Fix some link checker errors

* Add Pimlico to Safe Modules (#279)

* Update modules.md

* Update accept.txt

* Update weekly-link-check.yml (#281)

* Revert "Update weekly-link-check.yml (#281)" (#283)

This reverts commit 4d2f19d.

* Link fixes (#284)

* Update README.md

* Update MoneriumPack.md

* Link checks (#285)

* Fix some link checker errors

* Fix some link checker errors

* Fix some link checker errors

* Fix broken links

* Re-generate .md files

* protocol-kit v2.0 (#266)

* update ethers docs

* add singleton change to api-kit and protocol-kit
update api-kit initialization
update createTransaction use

* update GelatoRelayKit breaking changes

* fix wording recommendations

* highlight ethers.js v6

* add migration guides highlighting the major changes

---------

Co-authored-by: Daniel <[email protected]>

* Switch from gitbook to nextra

* Migrate getting started section

* Migrate assets

* Migrate misc section

* Migrate safe-apps section

* Migrate safe-core-api section

* Migrate safe-core-sdk section

* Migrate safe-smart-account section

* Migrate safe-core-protocol section

* Add index page

* Update generate supported network script

* Fix broken links & vale errors

* Fix vale errors

* Fix vale errors

* Fix vale errors

* Reorder sidebar (#292)

* Update SUMMARY.md

* Update and rename available-services.md to supported-networks.md

* Implement design feedback (color palette, font)

* Add torusscan as a deprecated block explorer in generateSupportedNetworks

* Add footer from safe.global

* Remove Home component; redirect index to first page

* Implement design feedback (navbar background color & backdrop filter)

* Add legacy `safe-core-sdk` migration guide (#291)

* update ethers docs

* add singleton change to api-kit and protocol-kit
update api-kit initialization
update createTransaction use

* Fix linting and typos

* fix: broken links

* update GelatoRelayKit breaking changes

* improve parameter naming

* fix linter reported issue

* fix wording recommendations

* highlight ethers.js v6

* add migration guides highlighting the major changes

* fix typos

* Apply suggestions from code review

Co-authored-by: Tanay Pant <[email protected]>

* add backticks to EthersAdapter

* Apply suggestions from code review

Co-authored-by: Tanay Pant <[email protected]>

* set migrating guides below reference

* add wording suggestions

* Add safe-transaction-service migration guide

* Add migration guide from legacy safe-core-sdk

* Add types changes

* remove auth-kit changes

* fix linting issues

* improve api-kit v2 migration

* Add latest changes

* Add missing type

* fix typo

* Apply suggestions from code review

Co-authored-by: Tanay Pant <[email protected]>

* add migration links

* Update safe-core-sdk/protocol-kit/reference/migrating/v1.md

Co-authored-by: Tanay Pant <[email protected]>

* Reverse migration links order in SUMMARY

---------

Co-authored-by: Daniel Somoza <[email protected]>
Co-authored-by: Tanay Pant <[email protected]>

* Add middleware information for Safe Apps (#293)

* Update get-started.md

* Update accept.txt

* Fix information architecture

* Fix error in code snippet (#295)

* Fix all images &  callouts

* Collapse sidebar menu items

* Add deployment workflow

* Fix deployment workflow

* Fix deployment workflow

* Fix deployment workflow

* docs(auth-kit): Update docs for the new `SafeAuthPack` (#289)

* add protocol-kit v2 updates

* Add SafeAuth information

* Update ethersv6 changes

* Fix deployment workflow

* Fix deployment workflow

* Fix deployment workflow

* fix broken links (#296)

* fix broken links

* fix: link name

* Minor fixes

* chore: Improve auth-kit docs (#298)

* Fix broken links

* Force dark theme

* Fix generate supported networks

* Add avax.boba.network as deprecated block explorers

* Fix generate supported networks (#299)

* Fix generate supported networks

* Generate supported networks .md files

* Edit vocab

* Add toruscan as deprecated block explorer

* Add favicon; fix theme color.

* Cherry pick merged changes from #289

* Cherry pick merged changes from #291

* Cherry pick merged changes from subsequent PRs

* Fix link checker & vale errors

* Add eslint, standard, husky

* Fix lint errors

* Fix pre-push commit hook

* Fix theme import

* Set Google Form for first Safe App review contact (#303)

* Feedback widget design. WIP logic

* Add google analytics

* Move contact-us links in footer

* Rename all files with prefixes

* Add local link checker to prepush hook

* Minor fix

* Fix vale config

* Add missing content from `main`

* Add redirections from gitbook paths

* Fix eslint config

* Remove linkchecker from prepush hook

* Add legacy redirects

* Custom 404 page

* Fix breaking changes in vale v3

* fix: link view inside hint element not showing as expected (#307)

* Restore signature files (#308)

* Restore signatures

* Fix link

* Fix conflicts with signatures

* Update gitignore

* Fix Vale errors

* Accept words with Vale

* Fix vale errors; add vale to lint command.

* Fix build

* Fix redirect link

* Implement requested changes

* Add redirections test

* Fix tsconfig

* Fix typos in redirects

* Fix typo in redirects

* Switch all routes to kebab-case

---------

Co-authored-by: Tanay Pant <[email protected]>
Co-authored-by: Tanay Pant <tanaypantprotonmail.com>
Co-authored-by: Germán Martínez <[email protected]>
Co-authored-by: xiaolou86 <[email protected]>
Co-authored-by: Aaron Cook <[email protected]>
Co-authored-by: Dani Somoza <[email protected]>
Co-authored-by: Daniel <[email protected]>
Co-authored-by: Daniel Somoza <[email protected]>
Co-authored-by: Pran <[email protected]>
Co-authored-by: Yago Pérez Vázquez <[email protected]>
Co-authored-by: Germán Martínez <[email protected]>
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