Skip to content

Commit 64ba378

Browse files
Merge pull request #14 from trophyso/streak-freezes-docs
Update leaderboard asset
2 parents fb2ebc2 + 0d81cad commit 64ba378

24 files changed

Lines changed: 393 additions & 68 deletions

File tree

.github/workflows/check-link-rot.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.vale.ini

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Top level styles
2+
StylesPath = styles
3+
MinAlertLevel = suggestion
4+
IgnoredScopes = code, tt, img, url, a, em, strong, code
5+
SkippedScopes = script, style, pre, figure, code
6+
7+
# Vocabularies
8+
Vocab = Mintlify, Trophy
9+
10+
# This is required since Vale doesn't officially support MDX
11+
[formats]
12+
mdx = md
13+
14+
# MDX support
15+
[*.mdx]
16+
BasedOnStyles = Vale
17+
Vale.Terms = NO # Enforces really harsh capitalization rules, keep off
18+
19+
# `import ...`, `export ...`
20+
# `<Component ... />`
21+
# `<Component>...</Component>`
22+
# `{ ... }`
23+
TokenIgnores = (?sm)((?:import|export) .+?$), \
24+
(?<!`)(<\w+ ?.+ ?\/>)(?!`), \
25+
(<[A-Z]\w+>.+?<\/[A-Z]\w+>)
26+
27+
# Exclude:
28+
# `<Component \n ... />`
29+
BlockIgnores = (?sm)^(<\w+\n .*\s\/>)$, \
30+
(?sm)^({.+.*})
31+
32+
CommentDelimiters = {/*, */}

account/billing.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Trophy defines an MAU as a single user that is involved in at least one API call
2121

2222
## Free tier
2323

24-
All customers start on the free tier. This allows dev teams to build and test implementations for up to **100 MAUs** without accurring any usage charges.
24+
All customers start on the free tier. This allows dev teams to build and test implementations for up to **100 MAUs** without accruing any usage charges.
2525

2626
<Note>
2727
If you exceed the free plan, don't panic! Nothing will stop working, we'll
@@ -62,7 +62,7 @@ You can view your usage for the current billing period in the [Trophy dashboard]
6262

6363
<AccordionGroup>
6464
<Accordion title="When will I be charged?">
65-
We charge all customers on the 1st of the month in arreas.
65+
We charge all customers on the 1st of the month in arrears.
6666
</Accordion>
6767
</AccordionGroup>
6868

account/branding.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Branding
33
description: Configure your logo and brand colors used across features built with Trophy.
4-
"og:description": Learn how Trophy tracks usage according to the number of usres that use your product.
4+
"og:description": Learn how Trophy tracks usage according to the number of users that use your product.
55
icon: palette
66
---
77

api-reference/authentication.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Trophy keeps track of and displays when each API key in your account was created
1717

1818
### Anatomy of an API key
1919

20-
Each API key is made up of 2 parts seperated by a period:
20+
Each API key is made up of 2 parts separated by a period:
2121

2222
```bash
2323
{prefix}•{body}
@@ -64,7 +64,7 @@ API keys can be rotated if you want to change them for any reason. At the point
6464

6565
### Revoking keys
6666

67-
API keys can also be revoked entirely at which point they become _Inactive_. At the point of revokation, the API key will no longer function and any requests still using it will begin receiving `401` responses immediately.
67+
API keys can also be revoked entirely at which point they become _Inactive_. At the point of revocation, the API key will no longer function and any requests still using it will begin receiving `401` responses immediately.
6868

6969
Once revoked you can re-activate the API key at any time.
7070

api-reference/idempotency.mdx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,13 @@ When Trophy detects an idempotency key has been sent with an event, it will firs
4141
<Note>
4242
All Trophy [metrics](/platform/metrics) manage idempotency in isolation.
4343
Trophy will accept a user using the same idempotency key for events against
44-
different metrics as seperate isolated requests.
44+
different metrics as separate isolated requests.
4545
</Note>
4646

4747
Additionally, when using an idempotency key the response will contain two properties to help clients manage replayed requests effectively:
4848

49+
{/* vale off */}
50+
4951
```json
5052
{
5153
...,
@@ -54,9 +56,11 @@ Additionally, when using an idempotency key the response will contain two proper
5456
}
5557
```
5658

59+
{/* vale on */}
60+
5761
<Note>
58-
By default Trophy uses an infinte time window for detecting duplicate events.
59-
If you feel you need different behavoir, please [get in
62+
By default Trophy uses an infinite time window for detecting duplicate events.
63+
If you feel you need different behavior, please [get in
6064
touch](mailto:support@trophy.so) and we'll happily set that up for you.
6165
</Note>
6266

223 KB
Loading

experimentation/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ A key part of running a gamified platform is experimentation — tweaking and op
1111
Usually, you'd have to build these tools yourself, but with Trophy you get an experimentation stack out-of-the-box.
1212

1313
<Note>
14-
We have plans to extend Trophy's experimentation capibilities in the future to
14+
We have plans to extend Trophy's experimentation capabilities in the future to
1515
support more broad A/B testing of your gamification features.
1616
</Note>
1717

getting-started/quickstart.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Here you'll integrate your backend web application with Trophy and start buildin
110110
Create friendly competitions to increase user engagement.
111111
</Card>
112112
<Card title="Emails" icon="mail" href="/platform/emails">
113-
Deliver personalized lifecyle emails to users at the perfect moment.
113+
Deliver personalized lifecycle emails to users at the perfect moment.
114114
</Card>
115115
</CardGroup>
116116

guides/tutorials/how-to-build-a-gamified-study-platform.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Would you like to use Turbopack for `next dev`? Yes
7272
Would you like to customize the import alias (`@/*` by default)? No
7373
```
7474

75-
Next, we'll initialize a new install of everyones favourite UI library, shadcn/ui:
75+
Next, we'll initialize a new install of everyone's favourite UI library, shadcn/ui:
7676

7777
```bash
7878
npx shadcn@latest init
@@ -458,7 +458,7 @@ export default function Flashcard({ flashcard }: Props) {
458458

459459
You'll notice we also added a couple of styles here. These do a couple of things:
460460

461-
- Ensure that when a `<Card />` is flipping, the 'backface' isn't visible during the animation with `backface-visibility: hidden;`
461+
- Ensure that when a `<Card />` is flipping, the 'back face' isn't visible during the animation with `backface-visibility: hidden;`
462462
- As the `<Card />` component is a child of the `<motion.div />`, usually it would appear flat when it's parent rotates in 3D. Adding `transform-style: preserve-3d;` to the `<Card />` ensures it keeps it's 3D effect when it's parent animates.
463463

464464
```css src/app/flashcard.module.css
@@ -683,7 +683,7 @@ In this section we'll be adding the following gamification elements to the flash
683683
- Achievement unlocked
684684
- Weekly progress summaries
685685

686-
This might sound like a lot, but would you be surprised if I told you you could build all this in less than 10 lines of code?
686+
This might sound like a lot, but would you be surprised if I told you could build all this in less than 10 lines of code?
687687

688688
Yup, you can. Trophy makes it super easy to build these features with a few lines of integration code.
689689

@@ -1178,7 +1178,7 @@ To see this in action, all we need to do is unlock our first achievement by view
11781178

11791179
#### Streak Extended Toasts
11801180

1181-
We'll use the same methods to show similar toasts when a user extendeds their streak. As we've set up a daily streak in Trophy, this will trigger the first time a user views a flashcard each day.
1181+
We'll use the same methods to show similar toasts when a user extends their streak. As we've set up a daily streak in Trophy, this will trigger the first time a user views a flashcard each day.
11821182

11831183
<Tip>
11841184
If we wanted to experiment with a different streak cadence, like a weekly
@@ -1407,9 +1407,9 @@ export default function Flashcards({ flashcards }: Props) {
14071407

14081408
#### Displaying Study Journey
14091409

1410-
The last peice of UI we'll add will be a dialog to display the user's study progress, including their streak and any achievements they've unlocked so far.
1410+
The last piece of UI we'll add will be a dialog to display the user's study progress, including their streak and any achievements they've unlocked so far.
14111411

1412-
First, we'll add a couple of new server actions to fetch the users streak and achievements from Trophy. As we're using a daily sterak here, we'll fetch the last 14 days of streak data from Trophy to give us enough to work with in our UI:
1412+
First, we'll add a couple of new server actions to fetch the users streak and achievements from Trophy. As we're using a daily streak here, we'll fetch the last 14 days of streak data from Trophy to give us enough to work with in our UI:
14131413

14141414
```tsx src/app/actions.ts [expandable] {6-7,10-11,24,33,45-58,60-73}
14151415
"use server";

0 commit comments

Comments
 (0)