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

fix(TJS-61): testing javascript course completion certificate #1425

Merged

Conversation

DrShpongle
Copy link
Contributor

@DrShpongle DrShpongle commented Feb 29, 2024

This does two things:

  1. Allows last lesson in the module to get completed
  2. Fixes the courseCompleted calculation function so that "Download Certificate" appears after all lesson get completed now.

About the person who reported about this issue - I think we should let him know he needs to rewatch last lessons in each of the modules to get them completed and get certificate download link eventually

CleanShot 2024-02-29 at 21 22 39

season 3 certificate GIF

Copy link

linear bot commented Feb 29, 2024

Copy link

vercel bot commented Feb 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
badass-turbo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm
colt-steele ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm
devrel-fyi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm
epic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm
pro-aws ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm
pro-nextjs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm
skill-stack-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm
testing-javascript ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm
total-typescript-turbo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 4, 2024 6:52pm

Comment on lines 8 to 13
const paymentOptions = defaultPaymentOptions({
stripeProvider: StripeProvider({
stripeSecretKey: process.env.STRIPE_SECRET_TOKEN,
apiVersion: '2020-08-27',
}),
})
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this being commented out?

this is the direction we're heading to support multi-provider payments.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

because of this:
CleanShot 2024-03-01 at 17 32 20@2x

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CleanShot 2024-03-01 at 17 35 11@2x

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@jbranchaud I think that correct import from is '@skillrecordings/skill-api/src' and not '@skillrecordings/skill-api/. Can you confirm?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

pushed the fix

Copy link
Contributor Author

Choose a reason for hiding this comment

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

now build fails on this:
CleanShot 2024-03-01 at 18 51 19@2x

Copy link
Contributor

Choose a reason for hiding this comment

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

The import should have already been correct. I think it may be an issue of re-building skill-api locally (cd packages/skill-api; pnpm dev).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

CleanShot 2024-03-01 at 20 39 18@2x

Copy link
Contributor Author

Choose a reason for hiding this comment

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

can't build on my side. Does it work on yours?

@DrShpongle DrShpongle force-pushed the yevhen/tjs-61-testing-javascript-course-completion-certificate branch from 43c93d9 to 87bbb47 Compare March 1, 2024 17:41
@kodiakhq kodiakhq bot merged commit 012ac85 into main Mar 4, 2024
13 checks passed
@kodiakhq kodiakhq bot deleted the yevhen/tjs-61-testing-javascript-course-completion-certificate branch March 4, 2024 18:59
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.

None yet

2 participants