Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
af7015f
Merge pull request #240 from ANCIENTINSANE/dev
Happyesss Apr 14, 2026
2990511
Merge pull request #246 from stemlen/main
ANCIENTINSANE May 6, 2026
356b05a
fixed unable to create workflow issue
manideepyelugam May 12, 2026
1a9fc55
Merge branch 'dev' into manideep
manideepyelugam May 12, 2026
31339e3
Merge pull request #30 from manideepyelugam/manideep
manideepyelugam May 12, 2026
a55425d
Merge pull request #31 from ANCIENTINSANE/dev
ANCIENTINSANE May 12, 2026
2c0ffc8
Revert "Enhance wallet creation, UI modernization, and billing features"
ANCIENTINSANE May 12, 2026
e20ca9b
Merge pull request #32 from ANCIENTINSANE/revert-31-dev
ANCIENTINSANE May 12, 2026
612a753
enhanced spaces ui
manideepyelugam May 15, 2026
8bcc3d2
Merge pull request #33 from manideepyelugam/ui-space-enhanced
ANCIENTINSANE May 15, 2026
c37d7eb
Merge pull request #34 from ANCIENTINSANE/dev
ANCIENTINSANE May 15, 2026
0a2e9e8
fix: layout gaps, production build warnings, and kanban create work i…
ANCIENTINSANE May 15, 2026
2229998
Merge pull request #35 from ANCIENTINSANE/fixes
ANCIENTINSANE May 15, 2026
d0026dd
Merge pull request #247 from ANCIENTINSANE/main
ANCIENTINSANE May 15, 2026
d4227f2
fix: restrict invited members from workspace creation and fix profile…
ANCIENTINSANE May 16, 2026
4308b82
Merge pull request #36 from ANCIENTINSANE/fixes
ANCIENTINSANE May 16, 2026
478fb10
feat: add trial credits for personal accounts
ANCIENTINSANE May 16, 2026
00db575
feat: separate trial credit settings for org and personal accounts
ANCIENTINSANE May 16, 2026
4394243
feat: premium billing dashboard with trial expiration and credit brea…
ANCIENTINSANE May 16, 2026
5ca340f
Merge pull request #37 from ANCIENTINSANE/fixes
ANCIENTINSANE May 16, 2026
fc68812
chore: update github action workflows with granular trial credit vari…
ANCIENTINSANE May 16, 2026
781e36c
feat: align personal trial duration to 60 days across config and work…
ANCIENTINSANE May 16, 2026
d40846c
Merge pull request #38 from ANCIENTINSANE/fixes
ANCIENTINSANE May 16, 2026
e5b258e
Merge pull request #248 from ANCIENTINSANE/main
ANCIENTINSANE May 16, 2026
0520131
feat: increase maxTokens for AI response and improve JSON extraction …
Happyesss May 17, 2026
d47a236
Merge pull request #250 from Happyesss/dev
Happyesss May 17, 2026
9a032c3
Merge pull request #39 from ANCIENTINSANE/dev
ANCIENTINSANE May 17, 2026
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 .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ coverage
bun.lock
docs/
md/
playwright.config.ts
playwright.config.ts
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ jobs:
echo "BILLING_CURRENCY=USD" >> $GITHUB_ENV
echo "BYOB_ENCRYPTION_SECRET=test_secret_32_characters_long_123" >> $GITHUB_ENV
echo "NEXT_PUBLIC_APPWRITE_BYOB_TENANTS_ID=byob_tenants" >> $GITHUB_ENV
echo "NEXT_PUBLIC_TRIAL_CREDIT_USD=30" >> $GITHUB_ENV
echo "TRIAL_CREDIT_DAYS=60" >> $GITHUB_ENV
echo "NEXT_PUBLIC_ORG_TRIAL_CREDIT_USD=30" >> $GITHUB_ENV
echo "ORG_TRIAL_CREDIT_DAYS=60" >> $GITHUB_ENV
echo "NEXT_PUBLIC_PERSONAL_TRIAL_CREDIT_USD=10" >> $GITHUB_ENV
echo "PERSONAL_TRIAL_CREDIT_DAYS=30" >> $GITHUB_ENV

- name: Type check
run: npx tsc --noEmit
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,13 @@ jobs:
# Redis (server-side caching layer)
REDIS_URL: ${{ secrets.REDIS_URL }}
REDIS_PASSWORD: ${{ secrets.REDIS_PASSWORD }}
# Trial Credits
NEXT_PUBLIC_TRIAL_CREDIT_USD: ${{ vars.NEXT_PUBLIC_TRIAL_CREDIT_USD }}
TRIAL_CREDIT_DAYS: ${{ vars.TRIAL_CREDIT_DAYS }}
# Trial Credits (Granular Config)
NEXT_PUBLIC_ORG_TRIAL_CREDIT_USD: ${{ vars.NEXT_PUBLIC_ORG_TRIAL_CREDIT_USD }}
ORG_TRIAL_CREDIT_USD: ${{ vars.ORG_TRIAL_CREDIT_USD }}
ORG_TRIAL_CREDIT_DAYS: ${{ vars.ORG_TRIAL_CREDIT_DAYS }}
NEXT_PUBLIC_PERSONAL_TRIAL_CREDIT_USD: ${{ vars.NEXT_PUBLIC_PERSONAL_TRIAL_CREDIT_USD }}
PERSONAL_TRIAL_CREDIT_USD: ${{ vars.PERSONAL_TRIAL_CREDIT_USD }}
PERSONAL_TRIAL_CREDIT_DAYS: ${{ vars.PERSONAL_TRIAL_CREDIT_DAYS }}
run: npm run build

- name: Clean up before transfer
Expand Down Expand Up @@ -298,8 +302,12 @@ jobs:
R2_PUBLIC_URL=${{ vars.R2_PUBLIC_URL }}
REDIS_URL=${{ secrets.REDIS_URL }}
REDIS_PASSWORD=${{ secrets.REDIS_PASSWORD }}
NEXT_PUBLIC_TRIAL_CREDIT_USD=${{ vars.NEXT_PUBLIC_TRIAL_CREDIT_USD }}
TRIAL_CREDIT_DAYS=${{ vars.TRIAL_CREDIT_DAYS }}
NEXT_PUBLIC_ORG_TRIAL_CREDIT_USD=${{ vars.NEXT_PUBLIC_ORG_TRIAL_CREDIT_USD }}
ORG_TRIAL_CREDIT_USD=${{ vars.ORG_TRIAL_CREDIT_USD }}
ORG_TRIAL_CREDIT_DAYS=${{ vars.ORG_TRIAL_CREDIT_DAYS }}
NEXT_PUBLIC_PERSONAL_TRIAL_CREDIT_USD=${{ vars.NEXT_PUBLIC_PERSONAL_TRIAL_CREDIT_USD }}
PERSONAL_TRIAL_CREDIT_USD=${{ vars.PERSONAL_TRIAL_CREDIT_USD }}
PERSONAL_TRIAL_CREDIT_DAYS=${{ vars.PERSONAL_TRIAL_CREDIT_DAYS }}
EOF
chmod 600 .env.local

Expand Down
17 changes: 8 additions & 9 deletions src/app/(dashboard)/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ const DashboardContent = ({ children }: DashboardLayoutProps) => {
const isProfilePage = pathname === "/profile" || pathname.startsWith("/profile/");
const workspaceId = useWorkspaceId();
const isTaskDetailPage = /^\/workspaces\/[^\/]+\/tasks\/[^\/]+$/.test(pathname || "");
const isMainDashboard = /^\/workspaces\/[^\/]+$/.test(pathname || "");
const isWorkflowPage = /^\/workspaces\/[^\/]+\/spaces\/[^\/]+\/workflows\/[^\/]+$/.test(pathname || "");
const isMainDashboard = /^\/workspaces\/[^\/]+$/.test(pathname || "");

return (
<div className={`min-h-screen ${isMainDashboard ? 'bg-background' : ''}`}>
Expand Down Expand Up @@ -93,14 +94,12 @@ const DashboardContent = ({ children }: DashboardLayoutProps) => {
<div className="lg:pl-[264px] w-full flex flex-col min-h-screen">
<Navbar />
<div className="flex-1 overflow-y-auto bg-background">
<div className="mx-auto max-w-screen-2xl">
<main className={cn(
"flex flex-col",
isTaskDetailPage ? "py-0 px-0" : "py-8 px-6"
)}>
{children}
</main>
</div>
<main className={cn(
"flex flex-col",
isTaskDetailPage || isWorkflowPage ? "py-0 px-0" : "py-8 px-6"
)}>
{children}
</main>
</div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import {
useGetUsageDashboard,
useExportUsage,
} from "@/features/usage/api";
import { useGetBillingAccount } from "@/features/billing/api";
import {
UsageKPICards,
UsageCharts,
Expand Down Expand Up @@ -131,6 +132,13 @@ export function UsageDashboardClient() {
eventsOffset: fetchOffset,
});

// Fetch billing account for wallet balance
const { data: billingAccountData } = useGetBillingAccount({
organizationId: isOrg ? primaryOrganizationId : undefined,
userId: !isOrg ? user?.$id : undefined,
enabled: !!(isOrg ? primaryOrganizationId : user?.$id)
});

const isEventsLoading = isDashboardLoading;
const isSummaryLoading = isDashboardLoading;
const isAlertsLoading = isDashboardLoading;
Expand Down Expand Up @@ -367,6 +375,8 @@ export function UsageDashboardClient() {
isLoading={isSummaryLoading}
currency={currency}
exchangeRate={rate}
walletBalance={billingAccountData?.walletBalance}
walletCurrency={billingAccountData?.walletCurrency}
/>

{/* Charts */}
Expand Down
Loading
Loading