-
Notifications
You must be signed in to change notification settings - Fork 2
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
Add/analysis overview query #2970
base: develop
Are you sure you want to change the base?
Conversation
a160364
to
621961c
Compare
84c8175
to
9324507
Compare
} = useForm(schema, defaultFormValue); | ||
|
||
const error = getErrorObject(riskyError); | ||
|
||
/* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yo block nai hatauda huncha
const onDeleteConfirmClick = useCallback(() => { | ||
onDelete(pillarId); | ||
onDelete(Number(pillarId)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leave a TODO here as well
@@ -74,13 +71,11 @@ function AnalysisPillar(props: Props) { | |||
statusLabel = _ts('analysis', 'noAnalysisTagLabel'); | |||
} | |||
|
|||
const disabled = pendingPillarDelete; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need this, don't we?
projectId: activeProject, | ||
title: data.title, | ||
pendingPillarDelete: pendingPillarDelete && data.id === deletePillarId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are we moving this inside?
@@ -429,7 +427,7 @@ function Analysis(props: ComponentProps) { | |||
<ExpandableContainer | |||
className={styles.pillarAnalyses} | |||
headerClassName={styles.pillarAnalysesHeader} | |||
heading={_ts('analysis', 'pillarAnalysisCount', { count: pillars.length })} | |||
heading={_ts('analysis', 'pillarAnalysisCount', { count: pillars?.length })} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets remove _ts and replace this directly with a text.
const timelineLabelSelector = (d: TimelineData): string => d.label; | ||
const timelineValueSelector = (d: TimelineData): number => d.value; | ||
const timelineKeySelector = (d: TimelineData): string => d.key; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why replace the d?
const totalLeadsCount = analysisSummaryData | ||
?.project?.analysisOverview?.totalLeadsCount; | ||
|
||
const analysisRendererParams = useCallback((id: string, data: AnalysisSummaryType) => ({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add return time in renderer params for better typecheck
9324507
to
1f6da74
Compare
|
||
const handleAnalysisEditClick = useCallback((analysisId: number | undefined) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please do not undo this
interface AnalysisDashboardProps { | ||
className?: string; | ||
analysisId: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why? Please no
6866c77
to
7ab476d
Compare
81ee1a1
to
4f874bf
Compare
4f874bf
to
e2835f2
Compare
Addresses
Depends on: the-deep/server#1516
Changes
This PR doesn't introduce any:
console.log
meant for debuggingThis PR contains valid: