Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main for fix-sdk-context #1746

Open
wants to merge 309 commits into
base: fix-sdk-context
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
309 commits
Select commit Hold shift + click to select a range
a3a3cf3
Merge pull request #1616 from appwrite/fix-region-flags
TorstenDittmann Jan 22, 2025
dc2927d
Merge pull request #1620 from appwrite/update-relationship-size-list
stnguyen90 Jan 23, 2025
f712ec5
fix: redirect
ArmanNik Jan 23, 2025
d7105f7
Merge pull request #1627 from appwrite/chore-enable-scale-plan
ArmanNik Jan 23, 2025
fd4b5e5
update: increase width.
ItzNotABug Jan 23, 2025
ddd131f
Merge pull request #1628 from appwrite/fix-backup-name-width
TorstenDittmann Jan 23, 2025
a679297
add: database read, writes.
ItzNotABug Jan 23, 2025
cb7650e
update: improve descriptions for billing tiers
ArmanNik Jan 23, 2025
e4824cc
Merge pull request #1630 from appwrite/chore-fix-plans-copy
ArmanNik Jan 23, 2025
e048f6b
fix: payment history not visible.
ItzNotABug Jan 24, 2025
884c454
add: database read, writes in org. usage screen.
ItzNotABug Jan 24, 2025
cc6ae2c
remove: leftovers.
ItzNotABug Jan 24, 2025
3fed097
add: types for org-usage modal.
ItzNotABug Jan 24, 2025
df94359
skip: loader for now.
ItzNotABug Jan 24, 2025
2125ba9
Merge pull request #1631 from appwrite/fix-invoice-tab
ItzNotABug Jan 24, 2025
f143d34
new: custom legend and usage component.
ItzNotABug Jan 25, 2025
e3774be
update: use new usageMultiple component for database r&w metrics.
ItzNotABug Jan 25, 2025
0cb3512
Fix review comments and errors
lohanidamodar Jan 26, 2025
dda2fd8
update review comments
lohanidamodar Jan 26, 2025
8e994cb
remove old component
lohanidamodar Jan 26, 2025
6e6daca
removed unused change
lohanidamodar Jan 26, 2025
27c5453
more review fixes
lohanidamodar Jan 26, 2025
cc0f655
fix component
lohanidamodar Jan 26, 2025
f3a28cd
remove duplicates
lohanidamodar Jan 26, 2025
acb814b
fix function definiation
lohanidamodar Jan 26, 2025
4fbd814
Merge remote-tracking branch 'origin/main' into poc-invoice-cycle-ref
lohanidamodar Jan 26, 2025
dccfb28
fix new org error
lohanidamodar Jan 26, 2025
609cf5f
fix button state
lohanidamodar Jan 26, 2025
c978939
remove: custom id options when creating an organization.
ItzNotABug Jan 26, 2025
55d822b
address comments: change chart and status tag specs.
ItzNotABug Jan 26, 2025
1ddd635
Merge pull request #1619 from appwrite/fix-wizard-interceptor
ItzNotABug Jan 27, 2025
4fb76da
fix alert
lohanidamodar Jan 27, 2025
734c818
update: confirm leaving page if file upload in progress.
ItzNotABug Jan 27, 2025
e358afc
address comments: update copies, specs of the graphs.
ItzNotABug Jan 27, 2025
1064fc4
Merge pull request #1633 from appwrite/confirm-leaving-page
ItzNotABug Jan 27, 2025
303139d
address comments.
ItzNotABug Jan 27, 2025
d9fe601
fix spacing
lohanidamodar Jan 28, 2025
429c7da
bring back credits modal
lohanidamodar Jan 28, 2025
a75af80
update designs
lohanidamodar Jan 28, 2025
c52db33
fix alert
lohanidamodar Jan 28, 2025
d3865e8
Fix copy
Meldiron Jan 28, 2025
7b55dc4
Merge pull request #1634 from appwrite/fix-copy-file-extentions
eldadfux Jan 28, 2025
11f15b1
address comments: ui changes as per designs.
ItzNotABug Jan 28, 2025
a4cb594
Merge pull request #1567 from ItzNotABug/add-users-to-messages
ItzNotABug Jan 28, 2025
47d0b32
review improvements
lohanidamodar Jan 29, 2025
269bf9f
fix formatting
lohanidamodar Jan 29, 2025
079b7b5
fix refactor
lohanidamodar Jan 29, 2025
3c37336
remove unused code
lohanidamodar Jan 29, 2025
65720b2
improve delete organization
lohanidamodar Jan 29, 2025
f3c903a
bump: console sdk for db read/writes.
ItzNotABug Jan 29, 2025
bb04620
fix: svelte check.
ItzNotABug Jan 29, 2025
b3f06d2
update: safeguard when the backend may not yet support the metrics fo…
ItzNotABug Jan 29, 2025
8d7e87b
Merge pull request #1629 from appwrite/database-reads-writes
ItzNotABug Jan 29, 2025
a72a538
Merge pull request #1632 from appwrite/remove-custom-id
ItzNotABug Jan 29, 2025
242c9bd
update: allow focus on labels to trigger enter hit.
ItzNotABug Jan 29, 2025
562ef23
fix: count format.
ItzNotABug Jan 29, 2025
a160fe0
Merge pull request #1638 from appwrite/fix-count
Meldiron Jan 29, 2025
9db3a1f
update: hide project breakdown if the metric doesn't exist for it.
ItzNotABug Jan 29, 2025
5497a3c
Merge pull request #1639 from appwrite/fix-project-break-down
eldadfux Jan 29, 2025
9be7e17
bind data
lohanidamodar Jan 30, 2025
998e6ab
fix downgrade info
lohanidamodar Jan 30, 2025
d0747b8
fix information on downgrade
lohanidamodar Jan 30, 2025
e53e305
unused code
lohanidamodar Jan 30, 2025
6b69f55
Update src/routes/(console)/create-organization/+page.svelte
lohanidamodar Jan 30, 2025
8abab80
update downgrade info
lohanidamodar Feb 2, 2025
4246d48
fix issue
lohanidamodar Feb 2, 2025
f28fcd6
update cancel model
lohanidamodar Feb 2, 2025
d31b971
Merge remote-tracking branch 'origin/main' into poc-invoice-cycle-ref
lohanidamodar Feb 2, 2025
bcfd428
fix alert
lohanidamodar Feb 3, 2025
9486712
format
lohanidamodar Feb 3, 2025
91988fa
refactor downgrade alerts
lohanidamodar Feb 4, 2025
c320009
fix new dev pro banner
lohanidamodar Feb 4, 2025
ab14064
fix comment
lohanidamodar Feb 4, 2025
2dd1e9a
fix alert type
lohanidamodar Feb 5, 2025
856b994
fix free downgrade
lohanidamodar Feb 5, 2025
9ae763d
updates
lohanidamodar Feb 5, 2025
3123fca
Merge pull request #1637 from appwrite/fix-enter-on-regions
ItzNotABug Feb 7, 2025
2e78dd2
update: billing plans mapping to show enterprise.
ItzNotABug Feb 7, 2025
8658ab1
update: mark scalable as disabled if the current plan is not self-ser…
ItzNotABug Feb 7, 2025
c0605a3
update: missed opacity on disabled scale plan.
ItzNotABug Feb 7, 2025
545aec0
update: use current plan name instead of mapping.
ItzNotABug Feb 7, 2025
8453cd2
fix: allowing invalid hostnames on web platforms.
ItzNotABug Feb 8, 2025
aa9ae2a
fix: misleading alerts on invoice failed x service limit reached.
ItzNotABug Feb 8, 2025
4b8dbc4
fix: a crash due to invalid indexing access on object :\
ItzNotABug Feb 8, 2025
b1907af
fix: corepack build
loks0n Feb 9, 2025
23a0728
Merge pull request #1655 from appwrite/fix-corepack-build
christyjacob4 Feb 10, 2025
ea4c76c
ran: formatter.
ItzNotABug Feb 10, 2025
47f128f
address comment.
ItzNotABug Feb 10, 2025
31f0fac
Merge pull request #1650 from appwrite/update-plan-name-mapping
ItzNotABug Feb 10, 2025
fcc6b6e
Merge pull request #1653 from appwrite/fix-readonly-alerts
ItzNotABug Feb 10, 2025
b5d7230
Merge remote-tracking branch 'origin/main' into poc-invoice-cycle-ref
lohanidamodar Feb 11, 2025
2caad83
renaming constants
lohanidamodar Feb 11, 2025
74e37c0
fix: loop condition
loks0n Feb 11, 2025
c0a0ea4
Merge pull request #1658 from appwrite/feat-sms-invoice
christyjacob4 Feb 12, 2025
9f607eb
update: preload the flags 🚀
ItzNotABug Feb 12, 2025
8895e0b
improve: preload call site.
ItzNotABug Feb 12, 2025
27a6463
Feat: routes for viewing invoice
lohanidamodar Feb 13, 2025
1ce92ae
update url
lohanidamodar Feb 13, 2025
a341dfb
remove unused var
lohanidamodar Feb 13, 2025
96aa042
fix check
lohanidamodar Feb 13, 2025
5a51d1a
update: manage redirection after coupon validation.
ItzNotABug Feb 13, 2025
4a0e559
update: improve coupon validity check.
ItzNotABug Feb 13, 2025
c5483b6
address comments.
ItzNotABug Feb 13, 2025
b2474d4
fix: usage alert.
ItzNotABug Feb 13, 2025
dc40c6b
address comments: fix checks.
ItzNotABug Feb 13, 2025
4ea403e
address comments: fix checks.
ItzNotABug Feb 13, 2025
c234c0c
Fix check issues
lohanidamodar Feb 13, 2025
ef6c421
Fix analysis issues 2
lohanidamodar Feb 13, 2025
5afae81
check success
lohanidamodar Feb 13, 2025
0a43c45
update: copies.
ItzNotABug Feb 14, 2025
4132c03
fix error
lohanidamodar Feb 14, 2025
7e8084b
Merge pull request #1665 from appwrite/fix-appply-credits
lohanidamodar Feb 14, 2025
723b5d3
Merge remote-tracking branch 'origin/main' into poc-invoice-cycle-ref
lohanidamodar Feb 14, 2025
c72b768
fix missing await
lohanidamodar Feb 14, 2025
602f1cb
format
lohanidamodar Feb 14, 2025
80fb6ce
update endpoint for test
lohanidamodar Feb 14, 2025
1d9a1c5
Fix info
lohanidamodar Feb 14, 2025
2880967
Use constant
lohanidamodar Feb 14, 2025
55dceee
Update src/lib/constants.ts
lohanidamodar Feb 14, 2025
178698e
fix typo
lohanidamodar Feb 14, 2025
1f1e845
Merge pull request #1664 from appwrite/feat-invoice-view-download-url
lohanidamodar Feb 14, 2025
cfe49e0
Merge remote-tracking branch 'origin/main' into poc-invoice-cycle-ref
lohanidamodar Feb 14, 2025
0afd6d2
Merge pull request #1331 from appwrite/poc-invoice-cycle-ref
lohanidamodar Feb 14, 2025
e42ddf2
update: banner showing check.
ItzNotABug Feb 16, 2025
cacb2d2
update: safe-fallback.
ItzNotABug Feb 16, 2025
8aa34e2
Merge pull request #1666 from appwrite/fix-usage-alerts
ItzNotABug Feb 16, 2025
2f91381
Feat: make budget cap nullable
lohanidamodar Feb 18, 2025
1f8fb9e
Fix: upgrade vitest to fix audit error
lohanidamodar Feb 18, 2025
c4d3756
fix: redirects.
ItzNotABug Feb 18, 2025
aec6519
patch: dependencies for tests.
ItzNotABug Feb 18, 2025
c613ab9
address comment.
ItzNotABug Feb 18, 2025
31ad83e
Merge pull request #1676 from appwrite/fix-redirects
TorstenDittmann Feb 18, 2025
dd2e37e
tmp fix apply credit
ArmanNik Feb 18, 2025
009a93d
Merge pull request #1678 from appwrite/tmp-fix-apply-credit
TorstenDittmann Feb 18, 2025
3f2bb5b
Fix: coupon fetch endpoint
lohanidamodar Feb 19, 2025
803a038
Merge pull request #1680 from appwrite/fix-coupon
ArmanNik Feb 19, 2025
d4f6e24
Merge branch 'main' into feat-budget-nullable
lohanidamodar Feb 19, 2025
ac9dc1e
fix: apply credit flow
ArmanNik Feb 19, 2025
e12c772
fix: redirection logic
ArmanNik Feb 19, 2025
f9a8621
Merge pull request #1683 from appwrite/fix-apply-credit
ArmanNik Feb 19, 2025
7a121a9
fix: invalid campaign image.
ItzNotABug Feb 20, 2025
45a4200
Merge pull request #1689 from appwrite/fix-campaign-image
ItzNotABug Feb 20, 2025
50c67ce
chore: fix avatar on members list
ChiragAgg5k Feb 21, 2025
9085ed0
Merge pull request #1690 from appwrite/fix-avatar
ItzNotABug Feb 21, 2025
dce7214
chore: fix avatar on usage list
ChiragAgg5k Feb 21, 2025
feb174b
Merge pull request #1691 from appwrite/fix-avatar
ItzNotABug Feb 21, 2025
b5fad49
feat: added image transformation usage to org & buckets
ChiragAgg5k Feb 21, 2025
0a26004
chore: fix schema
ChiragAgg5k Feb 21, 2025
ef68f54
Merge pull request #1660 from appwrite/preload-flags
ItzNotABug Feb 21, 2025
181b71f
chore: gracefully handle username being null
ChiragAgg5k Feb 21, 2025
26f0a5c
chore: fix membership usernames
ChiragAgg5k Feb 21, 2025
712917a
Merge pull request #1694 from appwrite/pla-2546
stnguyen90 Feb 21, 2025
5dad220
update: logic to verify hostname while maintaining backwards compatib…
ItzNotABug Feb 22, 2025
86f140c
remove: type.
ItzNotABug Feb 22, 2025
edf44e8
fix: poll message status when sent or already processing.
ItzNotABug Feb 22, 2025
ee3ab70
update: apply polling on main page as well.
ItzNotABug Feb 22, 2025
db54f46
update: no need to mark a message as processing.
ItzNotABug Feb 22, 2025
92fb862
remove: dependency invalidate, message update should be enough?
ItzNotABug Feb 22, 2025
cf48e43
update: comment.
ItzNotABug Feb 22, 2025
7952b83
fix: credits section not shown.
ItzNotABug Feb 22, 2025
f21f229
update: validate cron before updating.
ItzNotABug Feb 22, 2025
9d9665a
ci: empty commit
ItzNotABug Feb 22, 2025
b1efd13
Update +page.svelte
lohanidamodar Feb 23, 2025
ba38970
Update budgetCap.svelte
lohanidamodar Feb 23, 2025
8d9967d
Merge remote-tracking branch 'origin/main' into feat-budget-nullable
lohanidamodar Feb 23, 2025
7f23bb4
Merge pull request #1675 from appwrite/feat-budget-nullable
christyjacob4 Feb 23, 2025
ad47257
Merge pull request #1696 from appwrite/fix-credits-listing
ItzNotABug Feb 23, 2025
67a332f
update: remove new tag.
ItzNotABug Feb 23, 2025
50ad794
ran: formatter.
ItzNotABug Feb 23, 2025
761d0ec
ran: formatter, again.
ItzNotABug Feb 23, 2025
e5ab426
Merge pull request #1699 from appwrite/remove-new-tag
ItzNotABug Feb 23, 2025
d3f0aa0
chore: update naming convention
ChiragAgg5k Feb 25, 2025
e0890ac
chore: updated component
ChiragAgg5k Feb 25, 2025
2258baa
chore: hide selector for image transformations
ChiragAgg5k Feb 25, 2025
586a51e
chore: added image transformation breakdown
ChiragAgg5k Feb 26, 2025
95d05a3
Feat: add sentry release environment variable
ernstmul Feb 27, 2025
6518fda
update: remove otp dates.
ItzNotABug Feb 27, 2025
3f6230e
Merge pull request #1709 from appwrite/update-otp-desc
ItzNotABug Feb 27, 2025
431a4ef
Merge pull request #1697 from appwrite/validate-function-cron
ItzNotABug Feb 27, 2025
7325351
improve: validation logic.
ItzNotABug Feb 27, 2025
489cd32
add: validation logic in update screen for web platforms.
ItzNotABug Feb 27, 2025
e77b95d
Merge pull request #1708 from appwrite/feat-set-sentry-release-var
stnguyen90 Feb 27, 2025
550ff43
fix: safari shenanigans!
ItzNotABug Feb 28, 2025
2b5d6ea
chore: updated usage to project level
ChiragAgg5k Feb 28, 2025
a08709e
fix: count logic for `PHP_INT_MAX` on `JS`!
ItzNotABug Feb 28, 2025
3ee3821
Merge pull request #1710 from appwrite/fix-modals-on-safari
TorstenDittmann Feb 28, 2025
61bc0ad
Merge pull request #1711 from appwrite/fix-org-limit
ItzNotABug Mar 1, 2025
859a904
fix: rendering of image transformations component
ChiragAgg5k Mar 1, 2025
6287f15
fix: auth states not updating.
ItzNotABug Mar 3, 2025
76b1e37
fix: table cell width.
ItzNotABug Mar 3, 2025
3064b4b
update: add `$createdAt` to deployments table.
ItzNotABug Mar 3, 2025
f12bf7c
update: component that displays create/update data.
ItzNotABug Mar 3, 2025
d34e231
Merge branch 'main' into add-image-transformation-stats
ChiragAgg5k Mar 3, 2025
8c67fa6
Merge pull request #1714 from appwrite/add-column-to-deployments
ernstmul Mar 3, 2025
c78f84d
Merge pull request #1712 from appwrite/fix-auth-setting-state
ernstmul Mar 3, 2025
34ca5d4
Merge pull request #1652 from appwrite/fix-invalid-hostname
ItzNotABug Mar 4, 2025
c82af15
chore: hide image transforamtions on free tier
ChiragAgg5k Mar 4, 2025
7ea7c0e
chore: updated usage card
ChiragAgg5k Mar 4, 2025
f8245ca
chore: updated free tier card
ChiragAgg5k Mar 4, 2025
571d026
Feat: prevent downgrading an org when a coupon/credit is applied
ernstmul Mar 4, 2025
6e6da3f
fix: accumulate charts with trailing zeros
TorstenDittmann Mar 4, 2025
47dd256
chore: hid banner before april 1st
ChiragAgg5k Mar 4, 2025
a8274ba
fix: code quality
TorstenDittmann Mar 4, 2025
52f585b
chore: remove date logic
ChiragAgg5k Mar 4, 2025
ae52c97
chore: temporary check
ChiragAgg5k Mar 5, 2025
1933c8e
chore: bump console sdk to 1.5.2
ChiragAgg5k Mar 5, 2025
b37bf5a
chore: remove consolelog
ChiragAgg5k Mar 5, 2025
0159740
Merge pull request #1719 from appwrite/fix-accumulate-charts-with-tra…
ItzNotABug Mar 5, 2025
be31051
Merge pull request #1718 from appwrite/feat-prevent-billingplan-downg…
ItzNotABug Mar 5, 2025
055846a
Merge pull request #1693 from appwrite/add-image-transformation-stats
ItzNotABug Mar 5, 2025
aaf9885
Revert "Console Feat: make budget cap nullable"
ItzNotABug Mar 5, 2025
e800b0b
Merge pull request #1721 from appwrite/revert-1675-feat-budget-nullable
ItzNotABug Mar 5, 2025
bf82c9f
fix: add option to usage bucket chart to be cumulative
ChiragAgg5k Mar 6, 2025
7f322dc
Merge pull request #1726 from appwrite/fix-usage-bucket-chart
ItzNotABug Mar 6, 2025
7921ce1
update: status width.
ItzNotABug Mar 6, 2025
42c1e68
Merge pull request #1713 from appwrite/fix-payment-status-width
ItzNotABug Mar 6, 2025
f0510de
improve: reduce calls to backend on free plans for policy check.
ItzNotABug Mar 6, 2025
7caf892
address comment: remove `await`.
ItzNotABug Mar 6, 2025
d91d689
Merge pull request #1729 from appwrite/fix-backup-calls
ItzNotABug Mar 6, 2025
d7d3e5a
update: allow localhost.
ItzNotABug Mar 8, 2025
2ff0b2c
Merge pull request #1732 from appwrite/fix-hostname
ItzNotABug Mar 8, 2025
f3507c8
Revert "Revert "Console Feat: make budget cap nullable""
lohanidamodar Mar 10, 2025
27fded5
Merge pull request #1695 from appwrite/check-message-status
ItzNotABug Mar 11, 2025
568aba8
Merge pull request #1733 from appwrite/revert-1721-revert-1675-feat-b…
lohanidamodar Mar 11, 2025
bf7b52f
fix: wrong params sent to backend.
ItzNotABug Mar 12, 2025
2023708
fix: ai dependency and stream protocol.
ItzNotABug Mar 12, 2025
00a1313
Merge pull request #1737 from appwrite/fix-updates
ItzNotABug Mar 12, 2025
09407ca
Save the specification when updating a function
ernstmul Mar 12, 2025
79cb166
Merge pull request #1739 from appwrite/fix-remember-specification-fun…
ernstmul Mar 12, 2025
3b6cb31
Send utm info to analytics
ernstmul Mar 13, 2025
bc7e8d1
Ommit min or max when limit of integer in javascript
ernstmul Mar 13, 2025
8a44b92
Use safe integer check
ernstmul Mar 13, 2025
ce1f3fd
Merge pull request #1741 from appwrite/feat-track-utm-on-create-and-u…
ernstmul Mar 13, 2025
0619be7
Merge pull request #1742 from appwrite/fix-big-int-issue
ItzNotABug Mar 14, 2025
3114f75
Merge branch 'main' 'into sdk-context-main-merge'.
ItzNotABug Mar 16, 2025
cdba879
fix: todo.
ItzNotABug Mar 16, 2025
492f391
ran: formatter.
ItzNotABug Mar 16, 2025
b39d689
fix: conflicts.
ItzNotABug Mar 16, 2025
aeaab5d
misc: cleanup.
ItzNotABug Mar 16, 2025
67dbebc
fix: org/team api usage.
ItzNotABug Mar 16, 2025
f391888
remove: hardcoded project region.
ItzNotABug Mar 16, 2025
febda51
fix: import order!
ItzNotABug Mar 16, 2025
1a5b302
clean: paths.
ItzNotABug Mar 16, 2025
2766859
clean: paths.
ItzNotABug Mar 16, 2025
8a4abb1
misc: add line.
ItzNotABug Mar 16, 2025
24d47ed
fix: api loads failing when no project access is available.
ItzNotABug Mar 16, 2025
c47bae1
fix: warning on e2e -
ItzNotABug Mar 16, 2025
8980fcf
bump: deps.
ItzNotABug Mar 16, 2025
07e754e
fix: tests?.
ItzNotABug Mar 17, 2025
18d08c4
update: regexify the tests.
ItzNotABug Mar 17, 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
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ jobs:
"PUBLIC_GROWTH_ENDPOINT=${{ secrets.PUBLIC_GROWTH_ENDPOINT }}"
"PUBLIC_STRIPE_KEY=${{ secrets.PUBLIC_STRIPE_KEY }}"
"SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}"
"SENTRY_RELEASE=${{ github.event.release.tag_name }}"
publish-cloud-stage:
runs-on: ubuntu-latest
steps:
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ENV PNPM_HOME="/pnpm"
ENV PATH="$PNPM_HOME:$PATH"
RUN npm i -g corepack@latest
RUN corepack enable
RUN corepack prepare [email protected] --activate

ADD ./package.json /app/package.json
ADD ./pnpm-lock.yaml /app/pnpm-lock.yaml
Expand All @@ -24,12 +25,14 @@ ARG PUBLIC_APPWRITE_ENDPOINT
ARG PUBLIC_GROWTH_ENDPOINT
ARG PUBLIC_STRIPE_KEY
ARG SENTRY_AUTH_TOKEN
ARG SENTRY_RELEASE

ENV PUBLIC_APPWRITE_ENDPOINT=$PUBLIC_APPWRITE_ENDPOINT
ENV PUBLIC_GROWTH_ENDPOINT=$PUBLIC_GROWTH_ENDPOINT
ENV PUBLIC_CONSOLE_MODE=$PUBLIC_CONSOLE_MODE
ENV PUBLIC_STRIPE_KEY=$PUBLIC_STRIPE_KEY
ENV SENTRY_AUTH_TOKEN=$SENTRY_AUTH_TOKEN
ENV SENTRY_RELEASE=$SENTRY_RELEASE
ENV NODE_OPTIONS=--max_old_space_size=8192

RUN pnpm run sync && pnpm run build
Expand All @@ -39,4 +42,4 @@ FROM nginx:1.25-alpine
EXPOSE 80

COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/build /usr/share/nginx/html/console
COPY --from=build /app/build /usr/share/nginx/html/console
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@popperjs/core": "^2.11.8",
"@sentry/sveltekit": "^8.38.0",
"@stripe/stripe-js": "^3.5.0",
"@ai-sdk/svelte": "^1.1.22",
"@ai-sdk/svelte": "^1.1.24",
"analytics": "^0.8.14",
"cron-parser": "^4.9.0",
"dayjs": "^1.11.13",
Expand Down
2 changes: 1 addition & 1 deletion playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const config: PlaywrightTestConfig = {
webServer: {
timeout: 120000,
env: {
PUBLIC_APPWRITE_ENDPOINT: 'https://console-testing-2.appwrite.org/v1',
PUBLIC_APPWRITE_ENDPOINT: 'https://dlbillingic.appwrite.org/v1',
PUBLIC_CONSOLE_MODE: 'cloud',
PUBLIC_STRIPE_KEY:
'pk_test_51LT5nsGYD1ySxNCyd7b304wPD8Y1XKKWR6hqo6cu3GIRwgvcVNzoZv4vKt5DfYXL1gRGw4JOqE19afwkJYJq1g3K004eVfpdWn'
Expand Down
24 changes: 12 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/lib/actions/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { user } from '$lib/stores/user';
import { ENV, MODE, VARS, isCloud } from '$lib/system';
import { AppwriteException } from '@appwrite.io/console';
import { browser } from '$app/environment';
import { getReferrerAndUtmSource } from '$lib/helpers/utm';

function plausible(domain: string): AnalyticsPlugin {
if (!browser) return { name: 'analytics-plugin-plausible' };
Expand Down Expand Up @@ -65,6 +66,8 @@ export function trackEvent(name: string, data: object = null): void {
};
}

data = { ...data, ...getReferrerAndUtmSource() };

if (ENV.DEV || ENV.PREVIEW) {
console.debug(`[Analytics] Event ${name} ${path}`, data);
} else {
Expand Down
1 change: 0 additions & 1 deletion src/lib/charts/bar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions src/lib/charts/index.ts
Original file line number Diff line number Diff line change
@@ -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';
25 changes: 25 additions & 0 deletions src/lib/charts/legend.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script context="module" lang="ts">
export type LegendData = {
name: string;
value: string | number | boolean;
};
</script>

<script lang="ts">
import { Colors } from '$lib/charts/config';
import { Status } from '$lib/components';
import { formatNumberWithCommas } from '$lib/helpers/numbers';

export let legendData: LegendData[] = [];

let colors = Object.values(Colors);
</script>

<div class="u-flex u-cross-center u-gap-16">
{#each legendData as { name, value }, index}
{@const formattedValue = typeof value === 'number' ? formatNumberWithCommas(value) : value}
<Status status="none" statusIconStyle="background-color: {colors[index % colors.length]}">
{name} ({formattedValue})
</Status>
{/each}
</div>
4 changes: 2 additions & 2 deletions src/lib/commandCenter/panels/ai.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@
{#if $isLoading || answer}
<div class="content">
<div class="u-flex u-gap-8 u-cross-center">
<div class="avatar is-size-x-small">{getInitials($user.name)}</div>
<div class="avatar is-size-x-small">{getInitials($user.name || $user.email)}</div>
<p class="u-opacity-75">{previousQuestion}</p>
</div>
<div class="u-flex u-gap-8 u-margin-block-start-24">
Expand Down Expand Up @@ -230,7 +230,7 @@

<div class="footer" slot="footer">
<div class="u-flex u-cross-center u-gap-4">
<AvatarInitials size={32} name={$user.name} />
<AvatarInitials size={32} name={$user.name || $user.email} />
<form
class="input-text-wrapper u-width-full-line"
style="--amount-of-buttons: 1;"
Expand Down
6 changes: 5 additions & 1 deletion src/lib/commandCenter/searchers/organizations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@ import { goto } from '$app/navigation';
import { base } from '$app/paths';
import { sdk } from '$lib/stores/sdk';
import type { Searcher } from '../commands';
import { isCloud } from '$lib/system';

export const orgSearcher = (async (query: string) => {
const { teams } = await sdk.forConsole.teams.list();
const { teams } = !isCloud
? await sdk.forConsole.teams.list()
: await sdk.forConsole.billing.listOrganization();

return teams
.filter((organization) => organization.name.toLowerCase().includes(query.toLowerCase()))
.map((organization) => {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/components/billing/alerts/newDevUpgradePro.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { base } from '$app/paths';
import { page } from '$app/stores';
import { trackEvent } from '$lib/actions/analytics';
import { BillingPlan } from '$lib/constants';
import { BillingPlan, NEW_DEV_PRO_UPGRADE_COUPON } from '$lib/constants';
import { Button } from '$lib/elements/forms';
import { organization } from '$lib/stores/organization';
import { activeHeaderAlert } from '$routes/(console)/store';
Expand All @@ -29,7 +29,7 @@
secondary
fullWidthMobile
class="u-line-height-1"
href={`${base}/apply-credit?code=appw50&org=${$organization.$id}`}
href={`${base}/apply-credit?code=${NEW_DEV_PRO_UPGRADE_COUPON}&org=${$organization.$id}`}
on:click={() => {
trackEvent('click_credits_redeem', {
from: 'button',
Expand Down
25 changes: 25 additions & 0 deletions src/lib/components/billing/alerts/paymentFailed.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<script lang="ts">
import { base } from '$app/paths';
import { page } from '$app/stores';
import { Button } from '$lib/elements/forms';
import { HeaderAlert } from '$lib/layout';
import { failedInvoice } from '$lib/stores/billing';
import { organization } from '$lib/stores/organization';

$: isOnProjects = $page.route.id.includes('project-[project]');
</script>

{#if $failedInvoice && $failedInvoice.teamId === $organization.$id && isOnProjects}
<HeaderAlert type="error" title="A scheduled payment for {$organization.name} failed">
To avoid service disruptions in your projects, please verify your payment details and try
again.
<svelte:fragment slot="buttons">
<Button
href={`${base}/organization-${$organization?.$id}/billing`}
secondary
fullWidthMobile>
<span class="text">Go to billing</span>
</Button>
</svelte:fragment>
</HeaderAlert>
{/if}
2 changes: 1 addition & 1 deletion src/lib/components/billing/couponInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

async function addCoupon() {
try {
const response = await sdk.forConsole.billing.getCoupon(coupon);
const response = await sdk.forConsole.billing.getCouponAccount(coupon);
couponData = response;
dispatch('validation', couponData);
coupon = null;
Expand Down
47 changes: 47 additions & 0 deletions src/lib/components/billing/discountsApplied.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<script lang="ts">
import { formatCurrency } from '$lib/helpers/numbers';
import type { Coupon } from '$lib/sdk/billing';

export let label: string;
export let value: number;
export let couponData: Partial<Coupon> = {
code: null,
status: null,
credits: null
};
export let fixedCoupon = false;
</script>

{#if value > 0}
<span class="u-flex u-main-space-between">
<div class="u-flex u-cross-center u-gap-4">
<p class="text">
<span class="icon-tag u-color-text-success" aria-hidden="true" />
<span>
{label}
</span>
</p>
{#if !fixedCoupon && label.toLowerCase() === 'credits'}
<button
type="button"
class="button is-text is-only-icon"
style="--button-size:1.5rem;"
aria-label="Close"
title="Close"
on:click={() =>
(couponData = {
code: null,
status: null,
credits: null
})}>
<span class="icon-x" aria-hidden="true" />
</button>
{/if}
</div>
{#if value >= 100}
<p class="inline-tag">Credits applied</p>
{:else}
<span class="u-color-text-success">-{formatCurrency(value)}</span>
{/if}
</span>
{/if}
Loading