Skip to content

feat(bottom-navbar): add progress bar & docs contentful update#19

Merged
saumyakaran merged 3 commits intodotcodeschool:masterfrom
andrzejSulkowski:feature/lesson-progress-bar
Apr 16, 2025
Merged

feat(bottom-navbar): add progress bar & docs contentful update#19
saumyakaran merged 3 commits intodotcodeschool:masterfrom
andrzejSulkowski:feature/lesson-progress-bar

Conversation

@andrzejSulkowski
Copy link
Copy Markdown
Member

I haven’t added a lot of content to Contentful yet — please test it locally to ensure everything works as expected.

Additionally, I noticed during setup that the described Contentful model didn’t match the variables extracted in the code, so I updated the documentation accordingly.

Cheers 🚀

doc: fix contentful model to used vars in code
@vercel
Copy link
Copy Markdown

vercel bot commented Feb 20, 2025

@andrzejSulkowski is attempting to deploy a commit to the dotcodeschool Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 8, 2025

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

Name Status Preview Comments Updated (UTC)
frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2025 3:08pm

@saumyakaran
Copy link
Copy Markdown
Contributor

saumyakaran commented Mar 8, 2025

@andrzejSulkowski this fails to build with the following build logs:

[08:02:29.864] Running build in Washington, D.C., USA (East) – iad1
[08:02:29.967] Cloning github.com/dotcodeschool/frontend (Branch: feature/lesson-progress-bar, Commit: 0bafe45)
[08:02:30.240] Cloning completed: 273.000ms
[08:02:34.038] Restored build cache from previous deployment (bYsfTLW5TYGMGWNnYcjpSrJnNQT3)
[08:02:34.106] Running "vercel build"
[08:02:34.558] Vercel CLI 41.2.2
[08:02:34.907] Detected `pnpm-lock.yaml` 9 which may be generated by pnpm@9.x or pnpm@10.x
[08:02:34.907] Using pnpm@9.x based on project creation date
[08:02:34.907] To use pnpm@10.x, manually opt in using corepack (https://vercel.com/docs/deployments/configure-a-build#corepack)
[08:02:34.910] Running "install" command: `pnpm install`...
[08:02:35.487] Lockfile is up to date, resolution step is skipped
[08:02:35.600] Already up to date
[08:02:36.039] 
[08:02:36.060] Done in 1.1s
[08:02:36.073] Detected Next.js version: 14.0.3
[08:02:36.074] Running "pnpm build"
[08:02:36.504] 
[08:02:36.504] > dotcodeschool@0.1.0 build /vercel/path0
[08:02:36.504] > next build
[08:02:36.505] 
[08:02:37.223]    ▲ Next.js 14.0.3
[08:02:37.223] 
[08:02:37.224]    Creating an optimized production build ...
[08:02:46.464] Browserslist: caniuse-lite is outdated. Please run:
[08:02:46.464]   npx browserslist@latest --update-db
[08:02:46.465]   Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
[08:02:50.160]  ✓ Compiled successfully
[08:02:50.161]    Linting and checking validity of types ...
[08:02:53.106] 
[08:02:53.107] ./src/components/lessons-interface/bottom-navbar.tsx
[08:02:53.107] 34:8  Warning: 'ProgressBar' is defined but never used.  no-unused-vars
[08:02:53.107] 
[08:02:53.107] ./src/components/lessons-interface/editor-tabs.tsx
[08:02:53.107] 28:4  Warning: 'newEditorContent' is defined but never used.  no-unused-vars
[08:02:53.107] 41:17  Warning: 'showDiff' is defined but never used.  no-unused-vars
[08:02:53.107] 42:17  Warning: 'index' is defined but never used.  no-unused-vars
[08:02:53.107] 
[08:02:53.107] ./src/pages/courses/[course]/lesson/[lesson]/chapter/[chapter]/index.tsx
[08:02:53.107] 102:48  Warning: 'index' is defined but never used.  no-unused-vars
[08:02:53.107] 
[08:02:53.107] ./src/utils/index.ts
[08:02:53.107] 36:7  Warning: 'currentFile' is assigned a value but never used.  no-unused-vars
[08:02:53.107] 
[08:02:53.107] info  - Need to disable some ESLint rules? Learn more here: https://nextjs.org/docs/basic-features/eslint#disabling-rules
[08:02:56.348] Failed to compile.
[08:02:56.349] 
[08:02:56.349] ./src/components/lessons-interface/bottom-navbar.tsx:34:25
[08:02:56.349] Type error: Cannot find module '@/components/lessons-interface/progress-bar' or its corresponding type declarations.
[08:02:56.349] 
[08:02:56.349] �[0m �[90m 32 |�[39m �[36mimport�[39m axios �[36mfrom�[39m �[32m"axios"�[39m�[33m;�[39m�[0m
[08:02:56.349] �[0m �[90m 33 |�[39m �[36mimport�[39m { useSession } �[36mfrom�[39m �[32m"next-auth/react"�[39m�[33m;�[39m�[0m
[08:02:56.349] �[0m�[31m�[1m>�[22m�[39m�[90m 34 |�[39m �[36mimport�[39m �[33mProgressBar�[39m �[36mfrom�[39m �[32m"@/components/lessons-interface/progress-bar"�[39m�[33m;�[39m�[0m
[08:02:56.349] �[0m �[90m    |�[39m                         �[31m�[1m^�[22m�[39m�[0m
[08:02:56.349] �[0m �[90m 35 |�[39m�[0m
[08:02:56.350] �[0m �[90m 36 |�[39m �[36minterface�[39m �[33mSectionProps�[39m {�[0m
[08:02:56.350] �[0m �[90m 37 |�[39m   courseId�[33m:�[39m string�[33m;�[39m�[0m
[08:02:56.447]  ELIFECYCLE  Command failed with exit code 1.
[08:02:56.463] Error: Command "pnpm build" exited with 1
[08:02:56.818] 

@andrzejSulkowski
Copy link
Copy Markdown
Member Author

Should work now

@saumyakaran saumyakaran merged commit dcd2317 into dotcodeschool:master Apr 16, 2025
2 checks passed
@saumyakaran
Copy link
Copy Markdown
Contributor

saumyakaran commented Apr 16, 2025

@andrzejSulkowski do you have a polkadot address? if you do, you could open a small tip request for your contribution here referencing this PR as evidence.

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.

2 participants