Skip to content

Commit

Permalink
feat(results): remove incomplete results limitation
Browse files Browse the repository at this point in the history
  • Loading branch information
baptisteArno committed Jul 20, 2022
1 parent bd0d995 commit 7d0a526
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
2 changes: 0 additions & 2 deletions apps/builder/pages/api/typebots/[typebotId]/results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { NextApiRequest, NextApiResponse } from 'next'
import { canReadTypebot, canWriteTypebot } from 'services/api/dbRules'
import { deleteFiles } from 'services/api/storage'
import { getAuthenticatedUser } from 'services/api/utils'
import { isFreePlan } from 'services/workspace'
import {
badRequest,
forbidden,
Expand Down Expand Up @@ -38,7 +37,6 @@ const handler = async (req: NextApiRequest, res: NextApiResponse) => {
where: {
typebot: canReadTypebot(typebotId, user),
answers: { some: {} },
isCompleted: isFreePlan(workspace) ? true : undefined,
},
orderBy: {
createdAt: 'desc',
Expand Down
7 changes: 1 addition & 6 deletions apps/builder/pages/typebots/[typebotId]/results.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { useWorkspace } from 'contexts/WorkspaceContext'
import { AnalyticsContent } from 'components/analytics/AnalyticsContent'
import { useRouter } from 'next/router'
import { useStats } from 'services/analytics'
import { isFreePlan } from 'services/workspace'
import { useToast } from 'components/shared/hooks/useToast'
import { ResultsProvider } from 'contexts/ResultsProvider'

Expand All @@ -35,6 +34,7 @@ const ResultsPage = () => {
stats: { ...stats, totalStarts: stats.totalStarts - total },
})
}

return (
<Flex overflow="hidden" h="100vh" flexDir="column">
<Seo
Expand Down Expand Up @@ -87,11 +87,6 @@ const ResultsPage = () => {
workspaceId={workspace.id}
typebotId={publishedTypebot.typebotId}
totalResults={stats?.totalStarts ?? 0}
totalHiddenResults={
isFreePlan(workspace)
? (stats?.totalStarts ?? 0) - (stats?.totalCompleted ?? 0)
: undefined
}
onDeleteResults={handleDeletedResults}
>
<ResultsContent />
Expand Down

4 comments on commit 7d0a526

@vercel
Copy link

@vercel vercel bot commented on 7d0a526 Jul 20, 2022

Choose a reason for hiding this comment

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

@vercel
Copy link

@vercel vercel bot commented on 7d0a526 Jul 20, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

viewer-v2-alpha – ./apps/viewer

am.nigerias.io
vhpage.cr8.ai
bot.aipr.kr
bot.aws.bj
an.nigerias.io
bt.id8rs.com
finplex.be
8jours.top
sat.cr8.ai
ar.nigerias.io
chat.sureb4.com
aso.nigerias.io
bot.lalmon.com
apo.nigerias.io
apr.nigerias.io
games.klujo.com
sakuranembro.it
eventhub.com.au
bot.piccinato.co
bot.upfunnel.art
stan.vselise.com
feedback.ofx.one
voicehelp.cr8.ai
clo.closeer.work
faqs.nigerias.io
app.chatforms.net
bot.maitempah.com
bot.phuonghub.com
gentleman-shop.fr
bot.agfunnel.tech
ov1.wpwakanda.com
ov2.wpwakanda.com
k1.kandabrand.com
ov3.wpwakanda.com
goalsettingbot.com
this-is-a-test.com
bot.digitalbled.com
carsalesenquiry.com
bot.eventhub.com.au
zap.techadviser.in
order.maitempah.com
forms.webisharp.com
typebot.stillio.com
bium.gratirabbit.com
bot.cotemeuplano.com
connect.growthguy.in
bot.ansuraniphone.my
chat.hayurihijab.com
get.freebotoffer.xyz
abutton.wpwakanda.com
aidigitalmarketing.kr
bot.incusservices.com
bbutton.wpwakanda.com
sbutton.wpwakanda.com
bbutton.wpwwakanda.com
bot.meuesocial.com.br
cdd.searchcube.com.sg
apply.ansuraniphone.my
chat.missarkansas.org
c23111azqw.nigerias.io
felipewelington.com.br
form.searchcube.com.sg
gcase.barrettamario.it
kodawariab736.skeep.it
report.gratirabbit.com
info.clickasuransi.com
resume.gratirabbit.com
view.onlinebotdemo.xyz
83242573.actualizar.xyz
bot.upgradesolutions.eu
mainmenu.diddancing.com
survey.hypemarketing.in
subfooter.wpwakanda.com
91181264.your-access.one
hunterbot.saleshunter.ai
bot.aidigitalmarketing.kr
form.sergiolimajr.com.br
aibot.angrybranding.co.uk
type.opaulovieira.com.br
bot.blackboxsports.com.br
boyfriend-breakup.riku.ai
bot.cabinrentalagency.com
chat.thisiscrushhouse.com
sellmyharleylouisiana.com
designguide.techyscouts.com
type.dericsoncalari.com.br
verfica.botmachine.com.br
presente.empresarias.com.mx
piazzatorre.barrettamario.it
onboarding.libertydreamcare.ie
bookings.littlepartymonkeys.com
agendamento.sergiolimajr.com.br
type.talitasouzamarques.com.br
bot.comercializadoraomicron.com
personal-trainer.barrettamario.it
viewer-v2-alpha-typebot-io.vercel.app
register.thailandmicespecialist.com
studiotecnicoimmobiliaremerelli.it
preagendamento.sergiolimajr.com.br
viewer-v2-alpha-git-main-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7d0a526 Jul 20, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

builder-v2 – ./apps/builder

builder-v2-git-main-typebot-io.vercel.app
app.typebot.io
builder-v2-typebot-io.vercel.app

@vercel
Copy link

@vercel vercel bot commented on 7d0a526 Jul 20, 2022

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

docs – ./apps/docs

docs-typebot-io.vercel.app
docs.typebot.io
docs-git-main-typebot-io.vercel.app

Please sign in to comment.