Skip to content

Commit b1df97a

Browse files
svelte5: cleanups, improvements (#1966)
* update: cleanups, improvements. * fix: protocol usage. * update: load failed invoice as non-blocking. * address comments, make stuff faster! * fix: missing type on org loads. * fix: connect button shown on org. page. * fix: error check. * update: comment, just ocd things. * update: flip `localStorage` check after `browser` check. * update: comment. * perf: parallelize fetch for faster loads [↓49%] * update: compute things later. * update: don't rely on dependency or reload if scope doesn't allow. * update: simplify. * update: do not load credits if the organization plan does not support it. * update: just some cleaning. * address comments for promise handling. * address comments; remove: unused api calls!!! * address comments; * address comment. * misc. * cleaner endpoint creation. * fix: required to optional. * update: url to quick load. * address comments. * update: load payments on ui. * update: load non-urgent calls on UI. * fix: unnecessary runs of root layout. * reduce: calls to countries, locale api. * reduce: calls to countries, locale api in org settings. * update: simplify api calls and data passing. * address comments. * remove: id from `UsageProjectInfo`. * update: make api call only when needed. * fix: text. * fix: endpoint flag design <> verified by design. * fix: `inline` inner stack so project name has enough space. * fix: tests. * update: improve orgs loading? * update: misc. * remove: todo. * updates: more billing cleanups. * misc. * misc. * fix: tests and a warning. * address comment. * fix: merge leftover issues. * fix: tab selection on overview. * fix: issues with user store on main project layout. * remove: `selectedTab` store. * fix: account menu regression. * fix: reactive logic. use `svelte5` syntax. * Remove trailing comma in invalidate array * remove: unused method. * updates: misc optimizations. * fix: lint. * update: changes after merge. * update: modal size for credits and show loader. * update: misc and PR freeze! * update: use a default credit card icon if one isn't supported by the API. * fix: project loading state as per updated org ID. LAST FIX. * address comments. --------- Co-authored-by: Torsten Dittmann <[email protected]>
1 parent 9920723 commit b1df97a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+908
-821
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"dependencies": {
2424
"@ai-sdk/svelte": "^1.1.24",
25-
"@appwrite.io/console": "^1.9.0",
25+
"@appwrite.io/console": "https://pkg.pr.new/appwrite-labs/cloud/@appwrite.io/console@56743f5",
2626
"@appwrite.io/pink-icons": "0.25.0",
2727
"@appwrite.io/pink-icons-svelte": "^2.0.0-RC.1",
2828
"@appwrite.io/pink-legacy": "^1.0.3",

pnpm-lock.yaml

Lines changed: 10 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lib/components/billing/selectPaymentMethod.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import { invalidate } from '$app/navigation';
1212
import { Dependencies } from '$lib/constants';
1313
14-
export let methods: PaymentList;
1514
export let value: string;
1615
export let taxId = '';
16+
export let methods: PaymentList;
1717
1818
let showTaxId = false;
1919
let showPaymentModal = false;

src/lib/components/billing/validateCreditModal.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
}
4949
</script>
5050

51-
<Modal bind:show title="Add credits" onSubmit={addCoupon} bind:error>
51+
<Modal size="s" bind:show title="Add credits" onSubmit={addCoupon} bind:error>
5252
<svelte:fragment slot="description">
5353
Credits will be applied automatically to your next invoice.
5454
</svelte:fragment>
@@ -62,6 +62,6 @@
6262

6363
<svelte:fragment slot="footer">
6464
<Button text on:click={() => (show = false)}>Cancel</Button>
65-
<Button submit disabled={coupon === ''}>Add</Button>
65+
<Button submissionLoader submit disabled={coupon === ''}>Add</Button>
6666
</svelte:fragment>
6767
</Modal>

src/lib/components/bottom-sheet/SheetMenuBlock.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
{#if menu?.title}
1212
<span class="menu-title">{menu.title}</span>
1313
{/if}
14-
<ActionMenu.Root>
14+
<ActionMenu.Root width="100%">
1515
{#each menu.items as menuItem}
1616
{#if menuItem.href}
1717
<ActionMenu.Item.Anchor

0 commit comments

Comments
 (0)