Skip to content

Commit 81d9c22

Browse files
committed
Change saved field to bookmarked
1 parent 0bb7cc4 commit 81d9c22

File tree

12 files changed

+1063
-1138
lines changed

12 files changed

+1063
-1138
lines changed

oss

Submodule oss updated 56 files

packages/gatsby-theme/src/components/TutorialListing.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const TutorialListing: React.FunctionComponent<TutorialListingProps> = ({
3939
viewerUserTutorial {
4040
id
4141
upvoted
42-
saved
42+
bookmarked
4343
}
4444
}
4545
}
@@ -97,13 +97,13 @@ const TutorialListing: React.FunctionComponent<TutorialListingProps> = ({
9797
</Mutation>
9898
<Mutation
9999
mutation={gql`
100-
mutation SaveTutorial($id: ID!) {
101-
saveTutorial(tutorialId: $id) {
100+
mutation BookmarkTutorial($id: ID!) {
101+
bookmarkTutorial(tutorialId: $id) {
102102
code
103103
success
104104
userTutorial {
105105
id
106-
saved
106+
bookmarked
107107
}
108108
}
109109
}
@@ -112,12 +112,12 @@ const TutorialListing: React.FunctionComponent<TutorialListingProps> = ({
112112
id: tutorialId,
113113
}}
114114
>
115-
{save => {
115+
{bookmark => {
116116
return (
117117
<Button
118118
onClick={async () => {
119119
const mutationRes = await handleMutationResponse(
120-
save(),
120+
bookmark(),
121121
);
122122
if (mutationRes.error) {
123123
if (mutationRes.error === ApiErrors.AUTHORIZATION) {
@@ -128,7 +128,7 @@ const TutorialListing: React.FunctionComponent<TutorialListingProps> = ({
128128
}
129129
}}
130130
>
131-
Save
131+
Bookmark
132132
</Button>
133133
);
134134
}}

packages/gatsby-theme/src/pages/profile.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ type User = {
3636
githubHandle: string;
3737
bio: string;
3838
upvoted: [Tutorials];
39-
saved: [Tutorials];
39+
bookmarked: [Tutorials];
4040
};
4141

4242
type Tutorials = {
@@ -78,9 +78,9 @@ const ProfilePage: React.FunctionComponent<ProfileProps> = ({ user }) => {
7878
),
7979
)}
8080
</ul>
81-
<Heading> Saved Tutorials </Heading>
81+
<Heading> Bookmarked Tutorials </Heading>
8282
<ul>
83-
{user.saved.map(
83+
{user.bookmarked.map(
8484
a =>
8585
a.tutorial && (
8686
<li key={a.tutorial.id}>
@@ -109,7 +109,7 @@ const PROFILE_QUERY = gql`
109109
name
110110
}
111111
}
112-
saved: userTutorials(where: { saved: true }) {
112+
bookmarked: userTutorials(where: { bookmarked: true }) {
113113
tutorial {
114114
id
115115
name

packages/server/.yoga/nexus-prisma/datamodel-info.ts

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1430,7 +1430,7 @@ export default {
14301430
"defaultValue": null
14311431
},
14321432
{
1433-
"name": "saved",
1433+
"name": "bookmarked",
14341434
"description": null,
14351435
"type": {
14361436
"kind": "SCALAR",
@@ -1440,7 +1440,7 @@ export default {
14401440
"defaultValue": null
14411441
},
14421442
{
1443-
"name": "saved_not",
1443+
"name": "bookmarked_not",
14441444
"description": null,
14451445
"type": {
14461446
"kind": "SCALAR",
@@ -4269,13 +4269,13 @@ export default {
42694269
"deprecationReason": null
42704270
},
42714271
{
4272-
"name": "saved_ASC",
4272+
"name": "bookmarked_ASC",
42734273
"description": null,
42744274
"isDeprecated": false,
42754275
"deprecationReason": null
42764276
},
42774277
{
4278-
"name": "saved_DESC",
4278+
"name": "bookmarked_DESC",
42794279
"description": null,
42804280
"isDeprecated": false,
42814281
"deprecationReason": null
@@ -4385,7 +4385,7 @@ export default {
43854385
"deprecationReason": null
43864386
},
43874387
{
4388-
"name": "saved",
4388+
"name": "bookmarked",
43894389
"description": null,
43904390
"args": [],
43914391
"type": {
@@ -6315,7 +6315,7 @@ export default {
63156315
"defaultValue": null
63166316
},
63176317
{
6318-
"name": "saved",
6318+
"name": "bookmarked",
63196319
"description": null,
63206320
"type": {
63216321
"kind": "SCALAR",
@@ -6783,7 +6783,7 @@ export default {
67836783
"defaultValue": null
67846784
},
67856785
{
6786-
"name": "saved",
6786+
"name": "bookmarked",
67876787
"description": null,
67886788
"type": {
67896789
"kind": "SCALAR",
@@ -7406,7 +7406,7 @@ export default {
74067406
"defaultValue": null
74077407
},
74087408
{
7409-
"name": "saved",
7409+
"name": "bookmarked",
74107410
"description": null,
74117411
"type": {
74127412
"kind": "SCALAR",
@@ -7416,7 +7416,7 @@ export default {
74167416
"defaultValue": null
74177417
},
74187418
{
7419-
"name": "saved_not",
7419+
"name": "bookmarked_not",
74207420
"description": null,
74217421
"type": {
74227422
"kind": "SCALAR",
@@ -7636,7 +7636,7 @@ export default {
76367636
"defaultValue": null
76377637
},
76387638
{
7639-
"name": "saved",
7639+
"name": "bookmarked",
76407640
"description": null,
76417641
"type": {
76427642
"kind": "SCALAR",
@@ -7825,7 +7825,7 @@ export default {
78257825
"defaultValue": null
78267826
},
78277827
{
7828-
"name": "saved",
7828+
"name": "bookmarked",
78297829
"description": null,
78307830
"type": {
78317831
"kind": "SCALAR",
@@ -8020,7 +8020,7 @@ export default {
80208020
"defaultValue": null
80218021
},
80228022
{
8023-
"name": "saved",
8023+
"name": "bookmarked",
80248024
"description": null,
80258025
"type": {
80268026
"kind": "SCALAR",
@@ -8262,7 +8262,7 @@ export default {
82628262
"defaultValue": null
82638263
},
82648264
{
8265-
"name": "saved",
8265+
"name": "bookmarked",
82668266
"description": null,
82678267
"type": {
82688268
"kind": "SCALAR",
@@ -8443,7 +8443,7 @@ export default {
84438443
"defaultValue": null
84448444
},
84458445
{
8446-
"name": "saved",
8446+
"name": "bookmarked",
84478447
"description": null,
84488448
"type": {
84498449
"kind": "SCALAR",
@@ -8777,7 +8777,7 @@ export default {
87778777
"defaultValue": null
87788778
},
87798779
{
8780-
"name": "saved",
8780+
"name": "bookmarked",
87818781
"description": null,
87828782
"type": {
87838783
"kind": "SCALAR",
@@ -9677,7 +9677,7 @@ export default {
96779677
"deprecationReason": null
96789678
},
96799679
{
9680-
"name": "saved",
9680+
"name": "bookmarked",
96819681
"description": null,
96829682
"args": [],
96839683
"type": {

0 commit comments

Comments
 (0)