Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
060174a
wip
pontusab Feb 12, 2025
76a8418
wip
pontusab Feb 12, 2025
5d12c3e
wip
pontusab Feb 12, 2025
7f36452
wip
pontusab Feb 12, 2025
99c0852
wip
pontusab Feb 12, 2025
e3af3b2
wip
pontusab Feb 12, 2025
8d12cfa
wip
pontusab Feb 12, 2025
6004839
working
pontusab Feb 12, 2025
00201a2
working
pontusab Feb 12, 2025
78a8e4a
working
pontusab Feb 12, 2025
faedd5b
working
pontusab Feb 12, 2025
3dde4c7
working
pontusab Feb 12, 2025
9d8ae4f
Good one
pontusab Feb 12, 2025
3c0efe4
Yeah
pontusab Feb 12, 2025
e92146f
Yeah
pontusab Feb 12, 2025
52202a8
Yeah
pontusab Feb 12, 2025
03bfd17
Yeah
pontusab Feb 12, 2025
76e3d6d
Yeah
pontusab Feb 12, 2025
1b1650c
Works
pontusab Feb 12, 2025
291ed55
Works
pontusab Feb 12, 2025
a5048c0
Works
pontusab Feb 12, 2025
17dc79e
Works
pontusab Feb 12, 2025
2d44689
Works
pontusab Feb 12, 2025
c3d56ad
wip
pontusab Feb 13, 2025
981af74
Getting there
pontusab Feb 14, 2025
11711f2
Getting there
pontusab Feb 14, 2025
47628a8
v0.5
pontusab Feb 14, 2025
594d8f0
v0.6
pontusab Feb 14, 2025
46efc78
wip
pontusab Feb 14, 2025
af18181
wip
pontusab Feb 14, 2025
5a648b7
wip
pontusab Feb 14, 2025
0482663
V0.7
pontusab Feb 14, 2025
7b5648e
Support source types (#107)
pontusab Mar 5, 2025
ae421e3
Remove language limit (#108)
pontusab Mar 5, 2025
1a62c9e
Add new tier and upgrade keys
pontusab Mar 6, 2025
a3e9a6d
chore: (i18n) update translations using Languine.ai
languinebot Mar 6, 2025
00250aa
Fix pricing page
pontusab Mar 6, 2025
e088e7e
Feature/overrides command (#109)
pontusab Mar 6, 2025
300490c
Add overrides for source
pontusab Mar 6, 2025
98206a7
Add comment
pontusab Mar 6, 2025
5439822
Delete command (#110)
pontusab Mar 6, 2025
87cb4f6
Fix overrides glob
pontusab Mar 6, 2025
66e1db6
Fix overrides glob
pontusab Mar 6, 2025
c105db3
Update copy
pontusab Mar 6, 2025
02559bd
chore: (i18n) update translations using Languine.ai
languinebot Mar 6, 2025
602e499
Support arrays in JSON (#111)
pontusab Mar 6, 2025
ca2e292
Fix retry
pontusab Mar 13, 2025
21e1060
wip
pontusab Feb 12, 2025
fea8733
working
pontusab Feb 12, 2025
299e522
V0.7
pontusab Feb 14, 2025
305aeda
V0.8
pontusab Feb 14, 2025
f073328
V0.81
pontusab Feb 14, 2025
2e845b6
v8.2
pontusab Feb 16, 2025
5fa6d15
wip
pontusab Feb 20, 2025
7db4e98
clean
pontusab Mar 13, 2025
891694b
Working
pontusab Mar 13, 2025
4366441
Working
pontusab Mar 13, 2025
76a4546
Working
pontusab Mar 13, 2025
a5039f0
Working
pontusab Mar 13, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/jobs-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
env:
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
run: |
TRIGGER_PROJECT_ID=${{ secrets.TRIGGER_PROJECT_ID }} bunx [email protected].13 deploy
TRIGGER_PROJECT_ID=${{ secrets.TRIGGER_PROJECT_ID }} bunx [email protected].17 deploy
working-directory: apps/web
1 change: 0 additions & 1 deletion apps/web/README.md
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@
###
11 changes: 5 additions & 6 deletions apps/web/languine.lock
Original file line number Diff line number Diff line change
Expand Up @@ -254,28 +254,27 @@ files:
pricing.title: 467c18a9436478b8db6c9f6124784d74
pricing.free.title: b24ce0cd392a5b0b8dedc66c25213594
pricing.free.price: b24ce0cd392a5b0b8dedc66c25213594
pricing.free.keys_limit: 68ded5c952acf17cd71488921eb409fb
pricing.free.keys_limit: 87817711e7f538d4bb92c9d7a0adc7d4
pricing.free.description: beed456178e89c22031175a81ac64faf
pricing.free.features.unlimited_projects: 29be4d95ae3d4131e1f3f2bf97d334dd
pricing.free.features.fine_tuning: dd4e28c05b95e8f69925f58a472c041a
pricing.free.features.overrides: 877ea670329e5a2232734b18245a5c3d
pricing.free.features.analytics: a768caa988605a2846599cf7e2d0c26a
pricing.free.features.context_memory: f0ae622dd995d57acd0e697cb95c068e
pricing.free.features.community_support: 1cf7168782187634fbc408c66b895dbc
pricing.free.features.keys_limit: 68ded5c952acf17cd71488921eb409fb
pricing.free.features.keys_limit: 87817711e7f538d4bb92c9d7a0adc7d4
pricing.free.features.docs_limit: 1778b411fe46f59bc4454d89b01bb122
pricing.free.features.languages: 258b956ff3f1550eeeda8300ff9835a9
pricing.pro.title: abd900517e55dce0437dac136a8568d7
pricing.pro.includes_free: 048d1ba13c785db62638cfca520b0a5f
pricing.pro.features.github_action: ba6fa6e325e04710d41ade5d4fc49717
pricing.pro.features.latest_features: 9a484e3a0a97e92a9baa721048626455
pricing.pro.features.priority_support: d62f9dcbe63520f9fb0857b3c615b210
pricing.pro.features.priority_queues: 7f8fc85a9455f20bc1ef7c0600a50c8a
pricing.pro.features.languages: 3abcfd9dff220ae00b9488e24f603d35
pricing.pro.features.keys_limit: 8144a202e83b7990c4fa47a9afa1dd65
pricing.pro.features.keys_limit: a0fe87ea6f4dca08e4cac94acc4baf56
pricing.pro.features.docs_limit: a2f1779e50d585ab84bcb5b2af4efec7
pricing.cta: a698f6a6e17c887e558c625a4e19800b
pricing.keys_limit_explanation: d74aedb7dfbacb3a7cc87d387275543a
pricing.keys_limit_explanation: f88686e0bcfbe82f1fcb7b8c143b16bc
createTeam.teamName: a415526ab37ab308188999eda9b481db
createTeam.teamNamePlaceholder: 0c5521fcea9b8efdcae81b16ec0dcac8
createTeam.createTeamButton: 566b03c72e8a6206b2efc9e5fab5823c
Expand Down Expand Up @@ -452,7 +451,7 @@ files:
changePlan.title: 9622c46ac664d07f743905654edd5f26
changePlan.upgrade_to_tier: 61cbfbdd35af1bb14696b17fd92e63a0
changePlan.cancel: ea4788705e6873b424c65e91c2846b19
changePlan.description: 37a2fcfd330ad6061664a10cb47ffe15
changePlan.description: 2409737476c01aaf0e7eb9048c248dcd
test_translation.title: 46c178749fb7452b7ed65f7ec3343aff
test_translation.description: 4b09fc95c9a7e3c04fc424cea93117b4
support.title: db5eb84117d06047c97c9a0191b5fffe
Expand Down
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@react-email/font": "0.0.9",
"@shikijs/rehype": "^2.3.1",
"@tanstack/react-query": "5.66.0",
"@trigger.dev/sdk": "3.3.13",
"@trigger.dev/sdk": "3.3.17",
"@trpc/client": "11.0.0-rc.700",
"@trpc/react-query": "11.0.0-rc.700",
"@trpc/server": "11.0.0-rc.700",
Expand Down Expand Up @@ -84,7 +84,7 @@
"zod": "3.24.1"
},
"devDependencies": {
"@trigger.dev/build": "3.3.13",
"@trigger.dev/build": "3.3.17",
"@types/node": "22",
"@types/pg": "8.11.11",
"@types/react": "19",
Expand Down
2 changes: 0 additions & 2 deletions apps/web/src/app/[locale]/(marketing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Companies } from "@/components/companies";
import { DottedSeparator } from "@/components/dotted-separator";
import { Features } from "@/components/features";
import { Hero } from "@/components/hero";
Expand All @@ -21,7 +20,6 @@ export default function Page() {
<Hero />

<div className="space-y-16 max-w-screen-lg mx-auto">
{/* <Companies /> */}
<Features />

<DottedSeparator />
Expand Down
159 changes: 0 additions & 159 deletions apps/web/src/components/companies.tsx

This file was deleted.

12 changes: 2 additions & 10 deletions apps/web/src/components/current-tier.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ import {
} from "@/components/ui/card";
import { SubmitButton } from "@/components/ui/submit-button";
import { usePlanModal } from "@/hooks/use-plan-modal";
import {
TIERS_MAX_DOCUMENTS,
TIERS_MAX_KEYS,
TIER_MAX_LANGUAGES,
} from "@/lib/tiers";
import { TIERS_MAX_DOCUMENTS, TIERS_MAX_KEYS } from "@/lib/tiers";
import { useTranslations } from "next-intl";
import Link from "next/link";
import { useState } from "react";
Expand All @@ -35,8 +31,6 @@ export function CurrentTier({
const maxKeys = TIERS_MAX_KEYS[tier as keyof typeof TIERS_MAX_KEYS];
const maxDocuments =
TIERS_MAX_DOCUMENTS[tier as keyof typeof TIERS_MAX_DOCUMENTS];
const maxLanguages =
TIER_MAX_LANGUAGES[tier as keyof typeof TIER_MAX_LANGUAGES];

return (
<div>
Expand All @@ -48,9 +42,7 @@ export function CurrentTier({
{tier > 0 ? `${t("tier")} ${tier}` : t("free")}
</CardTitle>
<CardDescription>
{maxKeys.toLocaleString()} {t("translationKeys")},{" "}
{maxDocuments.toLocaleString()} {t("documents")}, {maxLanguages}{" "}
{t("languages")}
{maxKeys.toLocaleString()} {t("translationKeys")}
</CardDescription>
</CardHeader>
<CardContent className="flex gap-4">
Expand Down
28 changes: 1 addition & 27 deletions apps/web/src/components/plan-settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,25 @@ import {
CardTitle,
} from "@/components/ui/card";
import { Progress } from "@/components/ui/progress";
import {
TIERS_MAX_DOCUMENTS,
TIERS_MAX_KEYS,
TIER_MAX_LANGUAGES,
} from "@/lib/tiers";
import { TIERS_MAX_DOCUMENTS, TIERS_MAX_KEYS } from "@/lib/tiers";
import { useTranslations } from "next-intl";

interface PlanSettingsProps {
tier: number;
keysUsed: number;
documentsUsed: number;
languagesUsed: number;
}

export function PlanSettings({
tier,
keysUsed = 0,
documentsUsed = 0,
languagesUsed = 0,
}: PlanSettingsProps) {
const t = useTranslations("plan_settings");

const maxKeys = TIERS_MAX_KEYS[tier as keyof typeof TIERS_MAX_KEYS] || 0;
const maxDocuments =
TIERS_MAX_DOCUMENTS[tier as keyof typeof TIERS_MAX_DOCUMENTS] || 0;
const maxLanguages =
TIER_MAX_LANGUAGES[tier as keyof typeof TIER_MAX_LANGUAGES] || 0;

const getPercentage = (value: number, max: number) =>
Math.min(100, Math.round((value / max) * 100));
Expand Down Expand Up @@ -73,24 +65,6 @@ export function PlanSettings({
/>
</CardContent>
</Card>

<Card className="bg-transparent">
<CardHeader>
<CardTitle className="text-sm font-normal">
{t("languages")}
</CardTitle>
<CardDescription>
{languagesUsed.toLocaleString()}/{maxLanguages.toLocaleString()}{" "}
{t("languagesUsed")}
</CardDescription>
</CardHeader>
<CardContent>
<Progress
value={getPercentage(languagesUsed, maxLanguages)}
className="h-2"
/>
</CardContent>
</Card>
</div>
);
}
22 changes: 2 additions & 20 deletions apps/web/src/components/pricing-slider.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import { Slider } from "@/components/ui/slider";
import {
TIERS_MAX_DOCUMENTS,
TIERS_MAX_KEYS,
TIER_MAX_LANGUAGES,
TIER_PRICES,
} from "@/lib/tiers";
import { TIERS_MAX_DOCUMENTS, TIERS_MAX_KEYS, TIER_PRICES } from "@/lib/tiers";
import NumberFlow from "@number-flow/react";
import { useTranslations } from "next-intl";

Expand Down Expand Up @@ -36,13 +31,6 @@ export function PricingSlider({
);
};

const getLanguagesForTier = (tier: number) => {
return (
TIER_MAX_LANGUAGES[tier as keyof typeof TIER_MAX_LANGUAGES] ||
TIER_MAX_LANGUAGES[1]
);
};

const handleValueChange = (newValue: number[]) => {
const tier = Math.round(newValue[0]);
if (min !== undefined && tier < min) {
Expand Down Expand Up @@ -82,13 +70,6 @@ export function PricingSlider({
</span>
<span className="text-secondary">{t("documents")}</span>
</div>

<div className="text-xs flex items-center justify-between px-2 pb-2">
<span className="text-primary">
{getLanguagesForTier(currentTier).toLocaleString()}
</span>
<span className="text-secondary">{t("languages")}</span>
</div>
</div>

<div className="flex">
Expand Down Expand Up @@ -117,6 +98,7 @@ export function PricingSlider({
}}
suffix={`/${t("period")}`}
/>
<span className="text-xs text-secondary ml-2">Excl. VAT</span>
</div>
</div>
);
Expand Down
Loading