Skip to content

Conversation

arafatkatze
Copy link
Contributor

@arafatkatze arafatkatze commented Jul 19, 2025

  • Add openWalkthrough RPC method to ui.proto
  • Enable quick wins display for users with <3 tasks in history
  • Add "Take a Tour" button in HomeHeader when quick wins are shown
  • Update WelcomeSection to pass shouldShowQuickWins prop to HomeHeader

Description

Test Procedure

Find the code for

const shouldShowQuickWins = !taskHistory || taskHistory.length < QUICK_WINS_HISTORY_THRESHOLD
change it to

const shouldShowQuickWins = true

And you will see
image

And clicking on take a tour will open a walkthrough

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • ♻️ Refactor Changes
  • 💅 Cosmetic Changes
  • 📚 Documentation update
  • 🏃 Workflow Changes

Pre-flight Checklist

  • Changes are limited to a single feature, bugfix or chore (split larger changes into separate PRs)
  • Tests are passing (npm test) and code is formatted and linted (npm run format && npm run lint)
  • I have created a changeset using npm run changeset (required for user-facing changes)
  • I have reviewed contributor guidelines

Screenshots

Additional Notes


Important

Adds walkthrough button and quick wins for new users, enhancing onboarding experience.

  • Behavior:
    • Adds openWalkthrough RPC method to ui.proto to open a walkthrough.
    • Displays quick wins for users with less than 3 tasks in ChatView.tsx.
    • Adds "Take a Tour" button in HomeHeader when quick wins are shown.
  • Components:
    • Updates WelcomeSection to pass shouldShowQuickWins prop to HomeHeader.
    • Modifies QuickWinCard and SuggestedTasks to display quick win tasks.
  • Misc:
    • Updates task descriptions in quickWinTasks.ts for clarity.

This description was created by Ellipsis for 5594ad4. You can customize this summary. It will automatically update as commits are pushed.

@Copilot Copilot AI review requested due to automatic review settings July 19, 2025 20:15
Copy link

changeset-bot bot commented Jul 19, 2025

🦋 Changeset detected

Latest commit: 5594ad4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
claude-dev Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Contributor

@Copilot Copilot AI left a comment

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 implements a "Take a Tour" walkthrough feature for new users by adding a walkthrough button that appears when users have minimal task history. The purpose is to improve onboarding and help new users get started with the application.

  • Add new openWalkthrough RPC method to enable launching guided tours
  • Enable quick wins display for users with fewer than 3 completed tasks
  • Add a "Take a Tour" button in the home header when quick wins are shown

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
proto/ui.proto Adds new openWalkthrough RPC method definition
webview-ui/src/components/welcome/HomeHeader.tsx Adds walkthrough button and handler with conditional rendering
webview-ui/src/components/chat/chat-view/components/layout/WelcomeSection.tsx Passes quick wins prop to HomeHeader component
webview-ui/src/components/chat/ChatView.tsx Enables quick wins logic and defines threshold constant
.changeset/stupid-jars-explain.md Documents the change for release notes
Comments suppressed due to low confidence (1)

webview-ui/src/components/welcome/HomeHeader.tsx:11

  • The walkthrough functionality lacks test coverage. Consider adding tests to verify the button renders conditionally and the RPC call is made correctly when clicked.
	const handleTakeATour = async () => {

Copy link
Contributor

github-actions bot commented Jul 19, 2025

Coverage Report

Extension Coverage

Base branch: 47%

PR branch: 48%

✅ Coverage increased or remained the same

Webview Coverage

Base branch: 17%

PR branch: 17%

⚠️ Warning: Coverage decreased by 0.01%

Consider adding tests to cover your changes.

Overall Assessment

⚠️ Test coverage has decreased in this PR

Please consider adding tests to maintain or improve coverage.

Last updated: 2025-08-06T06:39:38.981524

@arafatkatze arafatkatze force-pushed the arafatkatze/enable-quickwins branch from 39a33bc to 44b88c4 Compare July 30, 2025 03:46
@arafatkatze arafatkatze force-pushed the arafatkatze/enable-quickwins branch from 8e27619 to d70d0c3 Compare July 30, 2025 07:17
Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

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

code lgtm. Since the UI has been updated we will need to update the E2E tests that are looking for the chat history - or we can turn off the quick win UI for process.env.E2E_TEST

@arafatkatze arafatkatze force-pushed the arafatkatze/enable-quickwins branch from 8a7a118 to e434c00 Compare August 4, 2025 06:54
- Add openWalkthrough RPC method to ui.proto
- Enable quick wins display for users with <3 tasks in history
- Add "Take a Tour" button in HomeHeader when quick wins are shown
- Update WelcomeSection to pass shouldShowQuickWins prop to HomeHeader
@arafatkatze arafatkatze force-pushed the arafatkatze/enable-quickwins branch from e434c00 to 9c8f6fa Compare August 6, 2025 04:36
Copy link
Contributor

@abeatrix abeatrix left a comment

Choose a reason for hiding this comment

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

When i have chat history:

image

When I cleared my chat history, i can see the quick wins UI. Clicking on the "Take a Tour" opens the welcome walkthrough:

image

Clicking on one of the quick wins will start a new task, but because im using openrouter without a valid API key the task failed as expected:

image

Non-blocking feedback: Adding a step for users to sign in to cline might be helpful here.

Approving on the eng side - not sure if we need products' feedback on the UI

@arafatkatze arafatkatze merged commit 3001f88 into main Aug 6, 2025
13 checks passed
@arafatkatze
Copy link
Contributor Author

Non-blocking feedback: Adding a step for users to sign in to cline might be helpful here.

So on a totally new setup flow that's the recommendation

Approving on the eng side - not sure if we need products' feedback on the UI

@trupix and @pashpashpash approved this too

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.

3 participants