-
Notifications
You must be signed in to change notification settings - Fork 88
(DOCSP-26999): Connect to App Services page #2526
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
Conversation
Readability for Commit Hash: e0f8976 You can see any previous Readability scores (if they exist) by looking Flesch Reading Ease scores for changed documents:
The following table can be helpful in assessing the readability score of a document.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a few things to clean up and this is good to go 👍🏼
examples/react-native/__tests__/js/app-services/app-provider.test.jsx
Outdated
Show resolved
Hide resolved
examples/react-native/__tests__/js/app-services/app-provider.test.jsx
Outdated
Show resolved
Hide resolved
source/examples/generated/react-native/js/app-provider.test.snippet.app-provider.jsx
Outdated
Show resolved
Hide resolved
source/examples/generated/react-native/ts/app-provider.test.snippet.app-provider.tsx
Show resolved
Hide resolved
source/sdk/react-native/app-services/connect-to-app-services-app.txt
Outdated
Show resolved
Hide resolved
Co-authored-by: Andrew Meyer <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall, looks great! Thanks, @mongodben!
I have a few comments/questions. Also, looks like the use-app.test.jsx
test is failing. But the .tsx
version is passing.
|
||
const id = "<Your App ID>"; // replace this with your App ID | ||
.. tab:: | ||
:tabid: typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[question] Is there any benefit to keeping tabs for TypeScript and JavaScript? The implementation is exactly the same between the two. I think just one sample would make sense. Again though, as we discussed only updating a minimum of things to get @realm/react
changes up, take or leave as you see fit.
Also applies to tabs on line 54.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any benefit to keeping tabs for TypeScript and JavaScript?
i don't think so tbh. but the other @realm/reactified stuff does this as well.
you think we should go thru the whole updated branch and remove the unnec duplications?
w that being said, if we do that, would like to do it in a separate PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think it would be good to do, but we can probably do it later. It's not breaking anything right now. 😄
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also think it would make sense to only display two tabs if the content is different.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
eh let's just do it now. i'll update
source/sdk/react-native/app-services/connect-to-app-services-app.txt
Outdated
Show resolved
Hide resolved
|
||
To retrieve an instance of the App Client from anywhere in your application, call :js-sdk:`Realm.App.getApp() <Realm.App.html#getApp>` and pass in your ``App ID``. | ||
To retrieve an instance of the App Client from anywhere in your application, | ||
call :js-sdk:`Realm.App.getApp() <Realm.App.html#getApp>` and pass in your ``App ID``. | ||
|
||
.. tabs-realm-languages:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not getting syntax highlighting on either of these tabbed samples, but I'm not sure why.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it was b/c i forgot to put a linebreak before the code example
2dbd2be
to
b95de78
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, @mongodben!
Just one minor thing: we're inconsistent with single or double quotes on our imports. It seems common React Native convention is single quotes, but I'm not sure if this is something we've decided for/against in the past.
source/examples/generated/react-native/ts/use-app.test.snippet.use-app.tsx
Outdated
Show resolved
Hide resolved
source/sdk/react-native/app-services/connect-to-app-services-app.txt
Outdated
Show resolved
Hide resolved
## Pull Request Info @realm/react-ify RN 'Connect to App Services' page ### Jira - https://jira.mongodb.org/browse/DOCSP-26999 ### Staged Changes - [Connect to App Services (React Native)](https://docs-mongodbcom-staging.corp.mongodb.com/realm/docsworker-xlarge/DOCSP-26999/sdk/react-native/app-services/connect-to-app-services-app) ### Reminder Checklist If your PR modifies the docs, you might need to also update some corresponding pages. Check if completed or N/A. - [x] Create Jira ticket for corresponding docs-app-services update(s), if any - [x] Checked/updated Admin API - [x] Checked/updated CLI reference ### Review Guidelines [REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md) --------- Co-authored-by: Andrew Meyer <[email protected]>
## Pull Request Info @realm/react-ify RN 'Connect to App Services' page ### Jira - https://jira.mongodb.org/browse/DOCSP-26999 ### Staged Changes - [Connect to App Services (React Native)](https://docs-mongodbcom-staging.corp.mongodb.com/realm/docsworker-xlarge/DOCSP-26999/sdk/react-native/app-services/connect-to-app-services-app) ### Reminder Checklist If your PR modifies the docs, you might need to also update some corresponding pages. Check if completed or N/A. - [x] Create Jira ticket for corresponding docs-app-services update(s), if any - [x] Checked/updated Admin API - [x] Checked/updated CLI reference ### Review Guidelines [REVIEWING.md](https://github.com/mongodb/docs-realm/blob/master/REVIEWING.md) --------- Co-authored-by: Andrew Meyer <[email protected]>
Pull Request Info
@realm/react-ify RN 'Connect to App Services' page
Jira
Staged Changes
Reminder Checklist
If your PR modifies the docs, you might need to also update some corresponding
pages. Check if completed or N/A.
Review Guidelines
REVIEWING.md