diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index efb347fd2..ab33a8f37 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -17,8 +17,8 @@ jobs: - name: Log in to Docker Hub uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 @@ -54,8 +54,8 @@ jobs: - name: Log in to Docker Hub uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 @@ -90,8 +90,8 @@ jobs: - name: Log in to Docker Hub uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} + username: ${{ vars.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v5 diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 2142ec11e..a18443c61 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,7 +7,7 @@ settings: dependencies: '@appwrite.io/console': specifier: https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@9193 - version: '@pkg.pr.new/appwrite/appwrite/@appwrite.io/console@9193' + version: '@pkg.pr.new/appwrite/appwrite/@appwrite.io/console/9193' '@appwrite.io/pink-icons': specifier: 0.25.0 version: 0.25.0 @@ -7293,7 +7293,7 @@ packages: resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} dev: false - '@pkg.pr.new/appwrite/appwrite/@appwrite.io/console@9193': + '@pkg.pr.new/appwrite/appwrite/@appwrite.io/console/9193': resolution: {tarball: https://pkg.pr.new/appwrite/appwrite/@appwrite.io/console@9193} name: '@appwrite.io/console' version: 1.2.1 diff --git a/src/lib/charts/bar.svelte b/src/lib/charts/bar.svelte index a447492d2..9d19e3605 100644 --- a/src/lib/charts/bar.svelte +++ b/src/lib/charts/bar.svelte @@ -13,7 +13,6 @@ {formatted} series={series.map((s) => { s.type = 'bar'; - s.stack = 'total'; s.barMaxWidth = 6; s.itemStyle = { borderRadius: [10, 10, 0, 0] diff --git a/src/lib/charts/index.ts b/src/lib/charts/index.ts index c73108a13..488756ecb 100644 --- a/src/lib/charts/index.ts +++ b/src/lib/charts/index.ts @@ -1,2 +1,3 @@ export { default as BarChart } from './bar.svelte'; export { default as LineChart } from './line.svelte'; +export { default as Legend, type LegendData } from './legend.svelte'; diff --git a/src/lib/charts/legend.svelte b/src/lib/charts/legend.svelte new file mode 100644 index 000000000..2e72c1410 --- /dev/null +++ b/src/lib/charts/legend.svelte @@ -0,0 +1,25 @@ + + + + +
+ {#each legendData as { name, value }, index} + {@const formattedValue = typeof value === 'number' ? formatNumberWithCommas(value) : value} + + {name} ({formattedValue}) + + {/each} +
diff --git a/src/lib/components/billing/estimatedTotalBox.svelte b/src/lib/components/billing/estimatedTotalBox.svelte index a6c8db6a7..474ed59f8 100644 --- a/src/lib/components/billing/estimatedTotalBox.svelte +++ b/src/lib/components/billing/estimatedTotalBox.svelte @@ -70,8 +70,10 @@ >{!currentPlan.trialDays ? toLocaleDate(billingPayDate.toString()) : toLocaleDate(trialEndDate.toString())}. Once your credits run out, you'll be charged - {formatCurrency(currentPlan.price)} plus usage fees every 30 days. + >. {#if couponData?.status === 'active'}Once your credits run out, you'll be charged + {formatCurrency(currentPlan.price)} plus usage fees every 30 + days. + {/if}

diff --git a/src/lib/components/billing/planComparisonBox.svelte b/src/lib/components/billing/planComparisonBox.svelte index c48dabfc3..6d11df4fd 100644 --- a/src/lib/components/billing/planComparisonBox.svelte +++ b/src/lib/components/billing/planComparisonBox.svelte @@ -1,7 +1,7 @@
  • {#if noContent} -
    -
    +
    +
    @@ -59,7 +62,7 @@ // TODO: remove once pink is updated .collapsible-item:not(.is-info) { .collapsible-wrapper { - padding-left: 0.5rem; + padding: 0; } .collapsible-wrapper.is-disabled { cursor: not-allowed; diff --git a/src/lib/components/status.svelte b/src/lib/components/status.svelte index 00ed3353e..7dc78c84e 100644 --- a/src/lib/components/status.svelte +++ b/src/lib/components/status.svelte @@ -6,17 +6,35 @@ | 'completed' | 'processing' | 'ready' - | 'building'; + | 'building' + | 'none'; + + export let statusIconStyle: string | undefined = undefined;
    {#if status} - + {/if}
    + + diff --git a/src/lib/components/support.svelte b/src/lib/components/support.svelte index 2fc7a5a7e..d28cce103 100644 --- a/src/lib/components/support.svelte +++ b/src/lib/components/support.svelte @@ -1,63 +1,141 @@ -{#if isCloud} -
    -
    -

    Premium support

    - {#if hasPremiumSupport} -

    - Get personalized support from the Appwrite team from {supportTimings} -

    - {/if} -
    - {#if !hasPremiumSupport} - - {:else} - - {/if} -
    -{/if} -
    -
    -

    Troubleshooting

    +
    + {#if showHeader} +

    Support

    + {/if} -
    + {#each supportOptions as option, index} + {#if showCloudSupport(index)} + +
    +

    {option.label}

    + +

    + {option.description} +

    +
    + + {#if option.showSupport} +
    + {#if !hasPremiumSupport} + + {:else} + + {/if} + +
    +
    +
    + {:else} + + {/if} +
    + {/if} + {/each} + + {#if isCloud} +
    {#key $app.themeInUse}