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

gear: migrate from deprecated packages + use gear #184

Merged
merged 14 commits into from
Jun 8, 2023
Merged

Conversation

tomholford
Copy link
Contributor

@tomholford tomholford commented May 23, 2023

Context

This is part of an ongoing effort to implement Userspace Permissions UI (#182).

Changes

This set resolves #175

  • Import from @urbit/api
  • remove deprecated dependencies (graph store, webterm, groups)
  • rename legacy libs (s3 --> storage, settings)

This set resolves #176

  • migrate tloncorp/landscape to use local gear dir/
  • uninstall legacy package: @urbit/api
  • install new package: @urbit/aura

Fixes LAND-513

@tomholford tomholford mentioned this pull request May 23, 2023
14 tasks
@tomholford tomholford force-pushed the t/gear branch 2 times, most recently from 1f6031f to 68dfc77 Compare May 25, 2023 03:58
@tomholford tomholford changed the title [wip] gear: import @urbit/api; migrate to local gear/ gear: import @urbit/api; migrate to local gear/ May 25, 2023
@tomholford tomholford marked this pull request as ready for review May 25, 2023 05:19
@tomholford
Copy link
Contributor Author

@arthyn Let's go over this tomorrow if you have time. I'd like to make sure the frontend is working as expected given the large delta and recent changes to garden / landscape desks + agent names.

@tomholford
Copy link
Contributor Author

An update on this: just paired with @arthyn to test this locally. Iniitially there were two failing scries: contacts/all and hark/skeins. However, once I installed Talk and sent a DM (and thus populated the test ship's contact store), the scries worked as expected.

@tomholford tomholford requested review from arthyn and patosullivan May 25, 2023 19:38
@tomholford tomholford changed the title gear: import @urbit/api; migrate to local gear/ gear: migrate from deprecated packages + use gear May 25, 2023
ui/package.json Outdated Show resolved Hide resolved
ui/src/api.ts Outdated Show resolved Hide resolved
ui/src/gear/contacts/lib.ts Outdated Show resolved Hide resolved
ui/src/gear/contacts/lib.ts Outdated Show resolved Hide resolved
ui/src/gear/contacts/types.ts Outdated Show resolved Hide resolved
ui/src/gear/storage/types.ts Show resolved Hide resolved
ui/src/gear/utils/BigIntArrayOrderedMap.ts Outdated Show resolved Hide resolved
ui/src/preferences/StoragePrefs.tsx Outdated Show resolved Hide resolved
ui/src/state/base.ts Outdated Show resolved Hide resolved
ui/src/state/contact.ts Outdated Show resolved Hide resolved
@linear
Copy link

linear bot commented Jun 6, 2023

LAND-513 migrate urbit/api to a new gear directory in tloncorp/landscape

  • urbit/api is outdated except for for a few types and pokes related to settings, storage, and kiln
  • this is the first step in the direction of the tloncorp/gear vision
  • a toolkit for developers integrating with landscape, consisting of a component library, a set of types and pokes, and a set of hooks
  • keep only the types and pokes related to settings, storage, and kiln
  • move webterm pokes / types to urbit/webterm

- copied lib and types from @urbit/api repo to gear/
- migrated webterm types (see: urbit/webterm#3)
- rename S3 --> Storage
also uninstall @urbit/api
- remove @urbit/api
- remove @urbit/http-api
- remove urbit-ob
- add @urbit/aura
- add urbit/js-http-api (via github repo)
- remove all references to @urbit/api
- replace with references to @/gear for most types, @urbit/aura for helpers, and js-http-api for network types (via the github repo; replace with npm package when published)
Addresses PR Feedback: restore usage of @urbit/http-api (instead of the new @urbit/js-http-api) for now
- also update @urbit/http-api to latest
- rename s3 stragglers --> storage
- also fix Hark tsc issues
- install missing deps
- also fix PutEntry type
Before this change, Vite was complaining that the value was being referenced before being defined.
@tomholford tomholford requested a review from arthyn June 8, 2023 19:50
@tomholford
Copy link
Contributor Author

@arthyn Thanks for your feedback. I addressed the comments and marked this as ready for re-review

Copy link
Member

@arthyn arthyn left a comment

Choose a reason for hiding this comment

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

lgtm w/ suggestion

ui/src/state/storage/storage.ts Outdated Show resolved Hide resolved
@tomholford tomholford merged commit 2d6e599 into master Jun 8, 2023
@tomholford tomholford deleted the t/gear branch June 8, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants