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

ref(quick-start): Prevent 'complete' tasks from being displayed outside of the completed tasks list #80172

Merged
merged 6 commits into from
Dec 2, 2024

Conversation

priscilawebdev
Copy link
Member

@priscilawebdev priscilawebdev commented Nov 4, 2024

No description provided.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Nov 4, 2024
@@ -304,7 +304,6 @@ function TaskGroup({
task={task}
hidePanel={hidePanel}
showWaitingIndicator={taskKeyForWaitingIndicator === task.task}
status={task.status}
Copy link
Member Author

Choose a reason for hiding this comment

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

when we pass the status here, if it’s 'complete' but not yet 'seen,' the task is displayed with the style of a complete task but does not appear in the completed list. To fix this issue, it’s better to omit the status in this context

Copy link
Member

@vgrozdanic vgrozdanic Dec 2, 2024

Choose a reason for hiding this comment

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

Shouldn't we instead fix the check in the group by completed/non completed tasks in groupTasksByCompletion?

function groupTasksByCompletion(tasks: OnboardingTask[]) {

We check there if the task is seen and completed.

const pendingCompletionSeen = doneTasks.length !== completeTasks.length;
const allTasksCompleted = allTasks.length === completeTasks.length;
Copy link
Member Author

Choose a reason for hiding this comment

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

It’s better to check for completeTasks instead of doneTasks, as completeTasks are the ones that have already been seen by the user

@priscilawebdev priscilawebdev marked this pull request as ready for review November 4, 2024 02:39
@priscilawebdev priscilawebdev enabled auto-merge (squash) November 4, 2024 02:39
@priscilawebdev priscilawebdev requested a review from a team November 4, 2024 02:39
@priscilawebdev priscilawebdev changed the title ref(quick-start): Improve logic ref(quick-start): Prevent 'complete' tasks from being displayed outside of the completed tasks list Nov 4, 2024
@priscilawebdev priscilawebdev enabled auto-merge (squash) November 4, 2024 12:09
@getsantry
Copy link
Contributor

getsantry bot commented Nov 26, 2024

This pull request has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you add the label WIP, I will leave it alone unless WIP is removed ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

@getsantry getsantry bot added the Stale label Nov 26, 2024
@shellmayr shellmayr added the WIP label Nov 26, 2024

const skipQuickStart =
!organization.features?.includes('onboarding') ||
(completeTasks.length === allTasks.length && !isActive);
!organization.features?.includes('onboarding') || (allTasksCompleted && !isActive);
Copy link
Member

Choose a reason for hiding this comment

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

Where is this feature flag defined?
I can't find it in our flagpole config

Copy link
Member

Choose a reason for hiding this comment

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

Ok, i found it, it is only registered in our API

Copy link

codecov bot commented Dec 2, 2024

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...tic/app/components/sidebar/newOnboardingStatus.tsx 0.00% 3 Missing ⚠️
...tic/app/components/onboardingWizard/newSidebar.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master   #80172   +/-   ##
=======================================
  Coverage   80.47%   80.47%           
=======================================
  Files        7230     7230           
  Lines      321215   321214    -1     
  Branches    20779    20779           
=======================================
+ Hits       258488   258489    +1     
+ Misses      62324    62322    -2     
  Partials      403      403           

@priscilawebdev priscilawebdev merged commit 7bb8937 into master Dec 2, 2024
43 of 44 checks passed
@priscilawebdev priscilawebdev deleted the priscila/ref/quick-start/tweaks branch December 2, 2024 13:12
andrewshie-sentry pushed a commit that referenced this pull request Dec 2, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Scope: Frontend Automatically applied to PRs that change frontend components
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants