Skip to content

feat: implement wiki copy buttons (#35) and pathways tutorial pagination (#36)#57

Merged
Aditya948351 merged 2 commits into
masterfrom
feature/resolve-wiki-and-pathways
May 17, 2026
Merged

feat: implement wiki copy buttons (#35) and pathways tutorial pagination (#36)#57
Aditya948351 merged 2 commits into
masterfrom
feature/resolve-wiki-and-pathways

Conversation

@Aditya948351

Copy link
Copy Markdown
Collaborator

Resolves Issue #35 and Issue #36

This Pull Request provides a robust, state-of-the-art consolidated implementation to resolve two key developer experience and usability features:

1. Dynamic Wiki Code Block Copy Buttons (Resolves #35)

  • Feature Details: Implemented client-side dynamic query selectors in the Wiki Page to automatically find all code block <pre>\ tags.
  • Visual Enhancement: Dynamically wraps code blocks with a relative \code-wrapper\ container and inserts an absolute-positioned, sleek Copy button.
  • Smooth Transition: Fades the copy button in on hover and updates it to a vibrant, emerald-themed Copied! state with a 2-second timeout upon click.
  • Realistic Documentation: Added standard, readable code samples in wikiContent.tsx to serve as elegant examples.

2. Paginated Pathway Tutorial Wizard (Resolves #36)

  • Feature Details: Refactored the RoadmapModal from a long scrollable list into a state-controlled, immersive step-by-step tutorial.
  • Top Step Tracker: Rendered a modern, premium horizontal progress/step indicator that dynamically highlights completed and active steps.
  • Boundary Checks: Implemented clean navigation buttons (Previous Step and Next Step) with robust boundary checks.
  • Acceptance Criteria Matched:
    • Hides the Previous button on the first page.
    • Replaces the Next button on the final page with a premium Complete Pathway action.
  • Gamified Success State: Successfully completing a pathway triggers the GamificationContext's XP award, granting +500 XP accompanied by a stunning floating trophy toast notification!

3. Asset Decodability Correction

  • Replaced the corrupted, 134-byte placeholder \logo.png\ with a premium, newly generated high-fidelity asset, enabling successful production builds.

All tests, compilation steps, and static route optimizations have been thoroughly validated and built locally with absolute success.

Copilot AI review requested due to automatic review settings May 17, 2026 12:10
@Aditya948351 Aditya948351 added gssoc26 This is a official GirlScript Summer of Code label. gssoc:approved give 50+ base points quality:exceptional type:assessibility labels May 17, 2026
@Aditya948351 Aditya948351 self-assigned this May 17, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adds wiki code block copy affordances and turns the roadmap modal into a step-by-step pathway tutorial with completion XP rewards.

Changes:

  • Adds sample <pre> code blocks to wiki articles for React and contribution commands.
  • Adds dynamic client-side copy buttons for wiki code blocks.
  • Refactors RoadmapModal into a paginated tutorial with progress steps, navigation, and completion XP.

Reviewed changes

Copilot reviewed 3 out of 8 changed files in this pull request and generated 4 comments.

File Description
src/app/wiki/page.tsx Adds DOM-based copy button injection for wiki code blocks.
src/data/wikiContent.tsx Adds sample code snippets to wiki content.
src/components/resources/RoadmapModal.tsx Converts roadmap display into a paginated tutorial with completion action.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/app/wiki/page.tsx
Comment thread src/app/wiki/page.tsx
Comment thread src/components/resources/RoadmapModal.tsx
Comment thread src/components/resources/RoadmapModal.tsx
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Aditya948351 Aditya948351 merged commit 21438d6 into master May 17, 2026
1 check failed
@Aditya948351 Aditya948351 deleted the feature/resolve-wiki-and-pathways branch May 17, 2026 12:21
Copilot stopped work on behalf of Aditya948351 due to an error May 17, 2026 12:21
@Aditya948351 Aditya948351 removed gssoc26 This is a official GirlScript Summer of Code label. gssoc:approved give 50+ base points level:advanced Advanced issues quality:exceptional type:bug type:design labels Jun 9, 2026
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.

[BUG] Fix Broken Next/Previous Page Links in Pathway Tutorial [FEATURE] Add a 'Copy Code' Button to Wiki Code Blocks

3 participants