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

Don't show Continue/Back if the concept has been completed #2738

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

VasylMarchuk
Copy link
Collaborator

@VasylMarchuk VasylMarchuk commented Mar 16, 2025

Closes #2727

Brief

After completing the concept, Continue/Back buttons remain visible, and continue responding to Enter/Backspace key presses, stealing them from the Feedback component.

Details

This hides Continue/Back buttons if the concept has been completed.

Checklist

  • I've thoroughly self-reviewed my changes
  • I've added tests for my changes, unless they affect admin-only areas (or are otherwise not worth testing)
  • I've verified any visual changes using Percy (add a commit with [percy] in the message to trigger)

Summary by CodeRabbit

  • Bug Fixes
    • Updated the workflow so that the continue/step back option is now only displayed when further action is needed, ensuring that it no longer appears after the process is finished.

@VasylMarchuk VasylMarchuk added the bug Something isn't working label Mar 16, 2025
@VasylMarchuk VasylMarchuk requested a review from rohitpaulk March 16, 2025 16:07
@VasylMarchuk VasylMarchuk self-assigned this Mar 16, 2025
Copy link
Contributor

coderabbitai bot commented Mar 16, 2025

Walkthrough

This change adds a conditional rendering check to the Concept::ContinueOrStepBack component in the concept page template. The component is now only rendered when this.hasFinished is false, preventing its display after completion. No modifications to exported or public entities were made.

Changes

File Change Summary
app/components/.../index.hbs Wrapped the Concept::ContinueOrStepBack component with a {{#unless this.hasFinished}} block for conditional rendering.

Sequence Diagram(s)

Loading
sequenceDiagram
    participant User as User
    participant Page as Concept Page
    participant Renderer as Component Renderer

    User->>Page: Load concept page
    Page->>Renderer: Check `hasFinished` state
    alt hasFinished is false
        Renderer-->>Page: Render ContinueOrStepBack component
    else hasFinished is true
        Renderer-->>Page: Do NOT render ContinueOrStepBack component
    end

Assessment against linked issues

Objective Addressed Explanation
Fix Del/Backspace key issue in feedback pop-up (#2727) The change does not address the Del/Backspace key issue in the feedback pop-up.

Possibly related PRs

  • Add concept progress #2707: Involves similar conditional rendering logic based on component state changes affecting rendering behavior.

Suggested reviewers

  • rohitpaulk

Poem

I'm a rabbit tapping keys so light,
Hopping through code from morning to night.
I guard the keys with a conditional hop,
Ensuring no rogue clicks will ever drop.
Cheers to clean code and bugs that flee—
My whiskers wiggle in joyful glee!


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro (Legacy)

📥 Commits

Reviewing files that changed from the base of the PR and between 69b613a and ee57189.

📒 Files selected for processing (1)
  • app/components/concept/index.hbs (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • app/components/concept/index.hbs
⏰ Context from checks skipped due to timeout of 90000ms (1)
  • GitHub Check: test

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codecov bot commented Mar 16, 2025

Bundle Report

Changes will increase total bundle size by 56 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
client-array-push 36.21MB 56 bytes (0.0%) ⬆️

Affected Assets, Files, and Routes:

view changes for bundle: client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
assets/chunk.*.js 56 bytes 26.29kB 0.21%

Copy link

github-actions bot commented Mar 16, 2025

Test Results

  1 files  ±0    1 suites  ±0   6m 54s ⏱️ - 1m 22s
622 tests ±0  577 ✅ +1  44 💤 ±0  0 ❌ ±0  1 🔥  - 1 
622 runs  ±0  576 ✅ +2  44 💤 ±0  1 ❌  - 1  1 🔥  - 1 

For more details on these errors, see this check.

Results for commit ee57189. ± Comparison against base commit eb9258d.

♻️ This comment has been updated with latest results.

Copy link

codecov bot commented Mar 16, 2025

❌ 2 Tests Failed:

Tests completed Failed Passed Skipped
579 2 577 44
View the top 1 failed test(s) by shortest run time
Chrome error
Stack Traces | 0s run time
Error: Browser failed to connect within 120s. testem.js not loaded?
Stderr: 
 [3183:3425:0322/120719.565960:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3183:3425:0322/120719.616995:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3183:3425:0322/120719.617008:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3183:3425:0322/120719.617021:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3183:3425:0322/120719.617032:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............/org/freedesktop/DBus: unknown error type: 
Fontconfig error: No writable cache directories
[3183:3425:0322/120729.102162:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3183:3425:0322/120729.761630:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3183:3425:0322/120729.761660:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............/org/freedesktop/DBus: unknown error type: 

DevTools listening on ws://127.0.0.1:.../devtools/browser/a81d6eda-04e8-48fe-8e98-cc312577349c
[3183:3183:0322/120732.510866:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............/org/freedesktop/DBus: unknown error type: 
[3183:3425:0322/120732.511001:ERROR:bus.cc(408)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[3183:4725:0322/120732.532855:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= ........./org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[3183:4725:0322/120732.532968:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= ........./org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[3183:4725:0322/120732.533062:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= ........./org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[3183:3183:0322/120732.534153:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= ............/org/freedesktop/DBus: unknown error type: 
View the full list of 1 ❄️ flaky tests
Chrome 133.0 Integration | Component | code-mirror &gt; Options &gt; filename: it doesn't break the editor when passed

Flake rate in main: 35.37% (Passed 53 times, Failed 29 times)

Stack Traces | 5.04s run time
Test took longer than 5000ms; test timed out.

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@rohitpaulk
Copy link
Member

@VasylMarchuk let's add some kind of test for this? Ideally one that replicates the actual user-reported bug, and not just one that checks whether the continue button is rendered or not.

@rohitpaulk
Copy link
Member

Good to merge in the meantime

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Del/Backspace key broken for feedback pop-up at the bottom of Concept page
2 participants