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

fix: sdk context #1551

Draft
wants to merge 240 commits into
base: feat-support-multi-region
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
240 commits
Select commit Hold shift + click to select a range
d3c9636
fix: consistent divider colors.
ItzNotABug Jul 30, 2024
06a02c7
fix: add 16px padding around link items.
ItzNotABug Jul 30, 2024
302e58b
update: correct closed lock icon color.
ItzNotABug Jul 30, 2024
b59dd1d
update: center progress bar.
ItzNotABug Jul 30, 2024
3bd0143
fix: branch message to use plural.
ItzNotABug Jul 30, 2024
eda0016
fix: icon sizes as per designs.
ItzNotABug Jul 30, 2024
f4a7e99
fix: truncate labels in git deployment info tooltip.
ItzNotABug Jul 30, 2024
40120c7
fix: use `Build Size` for consistency.
ItzNotABug Jul 30, 2024
ef7dc5b
fix: remove extra space.
ItzNotABug Jul 30, 2024
9ce2d7b
fix: show only element if single in required vars.
ItzNotABug Jul 31, 2024
bc56e7d
update: stack content vertically on mobile.
ItzNotABug Aug 1, 2024
f53897f
fix: component borders for CLI modal.
ItzNotABug Aug 1, 2024
de4907c
Merge branch 'main' into functions-screen-fixes
ItzNotABug Aug 1, 2024
1242c45
fix: cli commands bg.
ItzNotABug Aug 2, 2024
14e8374
fix: item gap.
ItzNotABug Aug 2, 2024
c2b3a12
fix: hide accordion if all are required variables.
ItzNotABug Aug 2, 2024
3d31661
fix: status alignment.
ItzNotABug Aug 2, 2024
226227f
fix: execution modal theme.
ItzNotABug Aug 2, 2024
a55ec9c
fix: make only logs scrollable.
ItzNotABug Aug 2, 2024
c554aab
ran: `npm run format`.
ItzNotABug Aug 2, 2024
e437a45
improve: handle scroll to top button.
ItzNotABug Aug 2, 2024
1850899
fix: comment message.
ItzNotABug Aug 2, 2024
1818a76
fix: borders cut off.
ItzNotABug Aug 3, 2024
16ee139
fix: lowercase tag.
ItzNotABug Aug 3, 2024
fe74251
fix: avatars background colors.
ItzNotABug Aug 3, 2024
e82f982
fix: template title colors.
ItzNotABug Aug 3, 2024
8f90b1f
fix: spacing.
ItzNotABug Aug 4, 2024
31e35cd
fix: divider colors.
ItzNotABug Aug 4, 2024
294b059
fix: colors for unsupported git services.
ItzNotABug Aug 4, 2024
1730182
fix: duplicate, inconsistent message.
ItzNotABug Aug 4, 2024
08dc387
fix: use correct icon component.
ItzNotABug Aug 4, 2024
888d7af
fix: content text.
ItzNotABug Aug 4, 2024
8f7db8c
fix: add spacing.
ItzNotABug Aug 4, 2024
4e39335
fix: make table scrollable.
ItzNotABug Aug 4, 2024
d3926ee
fix: content alignment.
ItzNotABug Aug 4, 2024
73bf412
ran: `npm run format`
ItzNotABug Aug 4, 2024
e372d5c
rebuild previews
ItzNotABug Aug 6, 2024
ba8bd11
improve: mobile version of cards.
ItzNotABug Aug 6, 2024
be3e9a1
another empty commit to rebuild previews
ItzNotABug Aug 6, 2024
6f91e3e
fix: layout consistency issues.
ItzNotABug Aug 6, 2024
f1d51a9
address comments: fix colors.
ItzNotABug Aug 6, 2024
95c6dee
improve: use `https`
ItzNotABug Aug 12, 2024
8a78c41
Cherrypick Runtime Controls
PineappleIOnic Aug 16, 2024
f8ec933
Merge branch '1.6.x' into feat-variable-specifications
PineappleIOnic Aug 16, 2024
7e72391
Merge branch '1.6.x' into feat-variable-specifications
PineappleIOnic Aug 19, 2024
10b48f9
Update pnpm lockfile
PineappleIOnic Aug 19, 2024
84bb17b
Run Linter
PineappleIOnic Aug 19, 2024
a892c08
ran: `npm run format`.
ItzNotABug Aug 21, 2024
7984f38
Remove console and change getSpec... to listSpec...
PineappleIOnic Aug 23, 2024
ac850e6
Merge branch '1.6.x' into feat-variable-specifications
PineappleIOnic Aug 23, 2024
b6ff3fb
Merge branch 'main' into project-screen-fixes
ItzNotABug Aug 27, 2024
e9a21d1
Merge branch 'main' into template-screen-fixes.
ItzNotABug Aug 27, 2024
caee78e
Merge branch 'main' into functions-screen-fixes.
ItzNotABug Aug 27, 2024
e93a328
fix: formatting.
ItzNotABug Aug 27, 2024
7529748
ran: `pnpm format`.
ItzNotABug Aug 27, 2024
ec213d3
ran: `pnpm format`.
ItzNotABug Aug 27, 2024
33e9352
Merge branch 'main' into fix-domain-screen-issues
ItzNotABug Oct 9, 2024
2319b9c
Merge branch 'main' into fix-domain-screen-issues
ItzNotABug Oct 9, 2024
79cc304
Merge branch 'main' into 'functions-screen-fixes'.
ItzNotABug Nov 26, 2024
8462a74
Merge branch 'main' into functions-screen-fixes
ItzNotABug Nov 26, 2024
992fbb5
update: checkout from `main`.
ItzNotABug Nov 26, 2024
8396e5d
update: address comments.
ItzNotABug Nov 28, 2024
5c999e7
update: address comments.
ItzNotABug Nov 28, 2024
8cc5577
Feat: use premium support from plan attribute
lohanidamodar Dec 2, 2024
cd27045
improve currentPlan store
lohanidamodar Dec 2, 2024
c5519c9
show support based on current plan config
lohanidamodar Dec 2, 2024
de30de7
fix: autofocus on conditional inputs.
ItzNotABug Dec 2, 2024
b5f7376
fix: equality checks.
ItzNotABug Dec 2, 2024
c7d7f08
fix: missing custom id.
ItzNotABug Dec 2, 2024
f368acc
remove: `icon-x` button in a read-only view.
ItzNotABug Dec 2, 2024
869813e
remove: `icon-x` button in a read-only view.
ItzNotABug Dec 2, 2024
6a2c718
updates: copy, misc.
ItzNotABug Dec 2, 2024
37124f7
fix: sdk context
TorstenDittmann Dec 10, 2024
5c4b6ed
Merge branch 'feat-support-multi-region' of https://github.com/appwri…
TorstenDittmann Dec 10, 2024
b4fc532
fix: leftovers
TorstenDittmann Dec 10, 2024
61e27bd
add: autofocus to custom ids.
ItzNotABug Dec 10, 2024
e887b36
fix: build
TorstenDittmann Dec 11, 2024
b5d6620
ci: empty commit
ItzNotABug Dec 12, 2024
c85d9c7
update: copies, ui as per new designs.
ItzNotABug Dec 12, 2024
9523c1d
fix: diagnostic checks.
ItzNotABug Dec 12, 2024
a1cabc8
fix: more explicit projectId handling
TorstenDittmann Dec 12, 2024
dcaff79
fix: tests
TorstenDittmann Dec 12, 2024
cc426ee
modify deploymeny cancel message
pushkar707 Dec 12, 2024
70483f4
Update: deployment cancelled message
pushkar707 Dec 13, 2024
b0ed014
Merge pull request #1547 from ItzNotABug/remove-icon-x
TorstenDittmann Dec 13, 2024
0b50b58
fix: create collection modal not showing on mobile.
ItzNotABug Dec 14, 2024
e4f03e7
fix: tests and usage.
ItzNotABug Dec 14, 2024
5ea0d3a
Fix: show correct error
lohanidamodar Dec 15, 2024
411847f
fix: markdown and styles in ai assistant.
ItzNotABug Dec 15, 2024
99626fc
fix: use-case display title casing
ItzNotABug Dec 15, 2024
f516387
fix: indexing key.
ItzNotABug Dec 15, 2024
bc20be4
add: subject to support wizard form.
ItzNotABug Dec 15, 2024
634725c
Merge pull request #1560 from appwrite/fix-budget-update-failure-message
TorstenDittmann Dec 15, 2024
7ff085d
new: support layout.
ItzNotABug Dec 16, 2024
908e6ea
fix: padding on addons.
ItzNotABug Dec 16, 2024
937a8f2
fix: custom id not added to messages.
ItzNotABug Dec 16, 2024
aecbf50
fix: show a topic may not have targets.
ItzNotABug Dec 16, 2024
d232fb5
Set todo's for changeing
ernstmul Dec 16, 2024
8ce6af3
Add mocknumbers todo
ernstmul Dec 16, 2024
2e93e71
Use the selected bytes dropdown for calculating the max value
ernstmul Dec 16, 2024
c020e92
Merge pull request #1561 from ItzNotABug/fix-ai-rendering
ernstmul Dec 16, 2024
497e02e
Merge pull request #1566 from ItzNotABug/fix-addons-padding
ernstmul Dec 16, 2024
8cd9a65
Merge pull request #1546 from ItzNotABug/focus-inputs
ernstmul Dec 16, 2024
1b1fc02
Merge branch 'main' into fix-sms-message-id
ItzNotABug Dec 17, 2024
eb064bd
add: autofocus.
ItzNotABug Dec 17, 2024
db9a094
Merge pull request #1571 from appwrite/fix-max-file-size-use-bytes-dr…
ItzNotABug Dec 17, 2024
e1fa344
address comments, fix colors.
ItzNotABug Dec 17, 2024
1d050aa
Merge branch 'main' into feat-variable-specifications
PineappleIOnic Dec 17, 2024
bd78eb6
Merge pull request #1554 from pushkar707/fix-#1495-message-modified
ItzNotABug Dec 17, 2024
94378a4
ci: empty commit
ItzNotABug Dec 17, 2024
25f5bd0
ci: empty commit
ItzNotABug Dec 17, 2024
533604e
Merge pull request #1259 from ItzNotABug/project-screen-fixes
ItzNotABug Dec 17, 2024
bf5a6e6
Merge pull request #1257 from ItzNotABug/fix-domain-screen-issues
ItzNotABug Dec 17, 2024
e4f5de6
ci: empty commit
ItzNotABug Dec 17, 2024
d7de325
Merge pull request #1569 from ItzNotABug/fix-empty-topics-copy
ernstmul Dec 17, 2024
bfa142d
Add specification selector into wizard
PineappleIOnic Dec 18, 2024
21f3d94
Add create manual
PineappleIOnic Dec 18, 2024
ae20c36
Merge pull request #1568 from ItzNotABug/fix-sms-message-id
ItzNotABug Dec 18, 2024
c95befe
Add tooltip to specifications
PineappleIOnic Dec 18, 2024
e0a85c9
Merge pull request #1545 from appwrite/fix-premium-support
ernstmul Dec 18, 2024
5a2268e
Merge pull request #1562 from ItzNotABug/fix-title-in-functions-templ…
ItzNotABug Dec 18, 2024
4aa74ce
Merge pull request #1559 from ItzNotABug/fix-create-collection-on-mobile
ItzNotABug Dec 18, 2024
d9a8472
Inform the user to first add a billing address to their account
ernstmul Dec 18, 2024
0617968
test: update e2e endpoint
TorstenDittmann Dec 18, 2024
23105a0
Merge pull request #1573 from appwrite/test-update-e2e-endpoint
TorstenDittmann Dec 18, 2024
3ee44cb
address comments.
ItzNotABug Dec 18, 2024
79cf60a
Merge pull request #1250 from ItzNotABug/functions-screen-fixes
ItzNotABug Dec 18, 2024
a619baf
Merge pull request #1258 from ItzNotABug/template-screen-fixes
ItzNotABug Dec 19, 2024
65d477f
Use button instead of link
ernstmul Dec 19, 2024
f7d40f7
Remove unused imports
ernstmul Dec 19, 2024
6f74b71
Merge branch 'main' into fix-use-plan-features-instead-of-tier-name
ernstmul Dec 19, 2024
db0519f
Remove todo
ernstmul Dec 19, 2024
850613b
Add typings
ernstmul Dec 19, 2024
2432635
Add feature flag checks
ernstmul Dec 19, 2024
01e8fc9
Remove unused limitation check
ernstmul Dec 19, 2024
da94923
Remove unused prop, and correct email branding value check
ernstmul Dec 19, 2024
557dbba
Add tooltips for free users
PineappleIOnic Dec 20, 2024
855bf18
Update src/routes/(console)/project-[project]/databases/database-[dat…
ernstmul Dec 20, 2024
89b4496
Add check to which plan the org is changing when applying the credits
ernstmul Dec 20, 2024
9457691
Fix typo
ernstmul Dec 20, 2024
8c36c62
Fix education plan not showing change to pro plan when applying credits
ernstmul Dec 20, 2024
0c084db
Merge pull request #1572 from appwrite/fix-update-payment-address-wit…
ernstmul Dec 20, 2024
3b9138c
Filter the new users count to not include future days
ernstmul Dec 20, 2024
9a84182
Move users usage data tot .ts
ernstmul Dec 20, 2024
4145174
Merge pull request #1570 from appwrite/fix-use-plan-features-instead-…
stnguyen90 Dec 22, 2024
5832183
Show estimated usage and upgrade button again for GH education plan
ernstmul Dec 23, 2024
01b4dd1
Switch to if statement setup
ernstmul Dec 23, 2024
ef116a3
Change to ternary
ernstmul Dec 23, 2024
b5a0cc6
Merge pull request #1576 from appwrite/fix-show-usage-and-plan-change…
ItzNotABug Dec 23, 2024
b3af21d
Remove console.log
ernstmul Dec 23, 2024
24e4cfa
Merge pull request #1574 from appwrite/fix-credit-plan-downgrade
ernstmul Dec 24, 2024
de71e2a
Merge pull request #1575 from appwrite/fix-user-usage-graph-going-int…
ernstmul Dec 24, 2024
38fa2cf
Add new appwrite logo to git authorize page
ernstmul Dec 24, 2024
122b8be
Merge pull request #1577 from appwrite/fix-new-appwrite-logo
ItzNotABug Dec 25, 2024
c9db84b
Add spacing
ernstmul Dec 27, 2024
d411af2
Merge pull request #1581 from appwrite/fix-spacings
ernstmul Dec 30, 2024
714a83b
Merge pull request #1563 from ItzNotABug/fix-index-key-defaults
ItzNotABug Dec 30, 2024
cedc1af
Update specification label
PineappleIOnic Dec 30, 2024
f00d1be
remove: roles alert.
ItzNotABug Jan 1, 2025
57087b6
fix: tests.
ItzNotABug Jan 1, 2025
9896068
address comments.
ItzNotABug Jan 2, 2025
267aceb
resolve conflicts.
ItzNotABug Jan 2, 2025
b97710a
Merge branch 'main' into billing-ui-changes
ItzNotABug Jan 2, 2025
52a4bd2
Merge pull request #1596 from appwrite/remove-roles-alert
ernstmul Jan 2, 2025
1461d5a
ci: empty commit
ItzNotABug Jan 2, 2025
05ff3f6
Merge branch 'billing-ui-changes' of https://github.com/ItzNotABug/ap…
ItzNotABug Jan 2, 2025
27d7f07
ci: empty commit
ItzNotABug Jan 2, 2025
7ebad3c
Merge branch 'main' into `fix-support`.
ItzNotABug Jan 2, 2025
4b23e82
Show correct upload file size
ernstmul Jan 6, 2025
eb44a21
disable replays
ernstmul Jan 6, 2025
b90ce42
disable replays
ernstmul Jan 6, 2025
192bfd1
Merge pull request #1600 from appwrite/fix-disable-sentry-replays
ernstmul Jan 6, 2025
15b30c7
Update console docs URL
PineappleIOnic Jan 7, 2025
a5749c7
Update docs URL
PineappleIOnic Jan 7, 2025
be7aa21
Merge pull request #1301 from appwrite/feat-variable-specifications
ernstmul Jan 7, 2025
b65eaaa
Check and handle if the console is visited from the start building pr…
ernstmul Jan 8, 2025
c209e72
Merge pull request #1601 from appwrite/feat-fix-createpro-redirect
ernstmul Jan 8, 2025
62fb063
change: upgrade button style.
ItzNotABug Jan 8, 2025
792b4e4
change: button style.
ItzNotABug Jan 8, 2025
25cb282
chore: change Beta label to Experimental for relationships
stnguyen90 Jun 25, 2024
3ae83a3
fix: hide attribute type icon for relationships on mobile
stnguyen90 Jun 26, 2024
2b78dc5
remove: todo.
ItzNotABug Jan 9, 2025
c51bf9c
ci: empty commit
ItzNotABug Jan 9, 2025
92c45a5
feat: add sms to usage
loks0n Jan 9, 2025
d496093
chore: fmt
loks0n Jan 9, 2025
9f68ee7
fix: eslint
loks0n Jan 9, 2025
3b9c702
fix: copy
loks0n Jan 9, 2025
d8ae8f6
chore: design review
loks0n Jan 9, 2025
aee8bbd
fix: right padding
loks0n Jan 9, 2025
5c1240e
ui: deadline warning
loks0n Jan 9, 2025
90036b3
ui: breakdown title
loks0n Jan 9, 2025
760122d
feat: project level
loks0n Jan 9, 2025
af828c9
chore: remove service limit
loks0n Jan 9, 2025
6ecd259
Merge pull request #1154 from appwrite/fix-experimental-relationships
stnguyen90 Jan 9, 2025
f8712c3
fix(avatars): fall back to email if name is empty
stnguyen90 Jan 9, 2025
dff6ecd
address comments.
ItzNotABug Jan 10, 2025
be917bd
add: tooltip.
ItzNotABug Jan 10, 2025
8811fa1
chore: bump console sdk
loks0n Jan 10, 2025
5294517
address comments, fix styles.
ItzNotABug Jan 10, 2025
21bdfe8
chore: better semver
loks0n Jan 10, 2025
6d89719
Merge pull request #1603 from appwrite/feat-add-sms-to-usage
christyjacob4 Jan 10, 2025
a6438f4
Merge pull request #1606 from appwrite/fix-1598-fix-console-avatar
stnguyen90 Jan 10, 2025
7c56905
fix: docs link, card title
loks0n Jan 10, 2025
110285d
fix: terminology
loks0n Jan 10, 2025
c34c857
Merge pull request #1608 from appwrite/fix-typos-sms-usage
stnguyen90 Jan 10, 2025
ebcdc11
fix: perplexity template crash.
ItzNotABug Jan 11, 2025
026ffcd
fix: comment.
ItzNotABug Jan 11, 2025
09ed06e
Merge pull request #1599 from appwrite/fix-filesize-in-upload-wizard
stnguyen90 Jan 11, 2025
0b404df
address comments, fix styles.
ItzNotABug Jan 13, 2025
6a719aa
fix: layout shift.
ItzNotABug Jan 13, 2025
e892ff2
Merge pull request #1610 from appwrite/fix-layout
ernstmul Jan 13, 2025
71bc639
fix: tag dimensions on button and anchor.
ItzNotABug Jan 13, 2025
b35661a
Merge pull request #1609 from appwrite/fix-template-permissions
ItzNotABug Jan 13, 2025
ce24c5b
address comments.
ItzNotABug Jan 13, 2025
17894b5
Merge pull request #1552 from ItzNotABug/billing-ui-changes
ItzNotABug Jan 13, 2025
9c2154b
address comments.
ItzNotABug Jan 13, 2025
3c6f2eb
update: color tokens.
ItzNotABug Jan 13, 2025
c75db74
address comment: `add a comment explaining why we need this workaround`.
ItzNotABug Jan 14, 2025
f632082
Merge pull request #1611 from appwrite/fix-support-tags
ItzNotABug Jan 14, 2025
d141ef0
Merge pull request #1564 from ItzNotABug/fix-support
ItzNotABug Jan 14, 2025
2c9ff65
hotfix: add a default value until I can test multi-region instance.
ItzNotABug Jan 17, 2025
b416032
ran: formatter.
ItzNotABug Jan 18, 2025
1ff9cdb
ci: empty commit
ItzNotABug Jan 18, 2025
78b61da
run: formatter again!
ItzNotABug Jan 19, 2025
7f9c5d4
Merge pull request #1614 from appwrite/fix-columns-error
ItzNotABug Jan 20, 2025
cca4a81
fix: error during attribute creation.
ItzNotABug Jan 20, 2025
63c896b
Merge pull request #1617 from appwrite/fix-attribute-creation-issue
ItzNotABug Jan 20, 2025
860cc5e
Show only the size limit for the bucket
ernstmul Jan 20, 2025
d898d91
new copy
ernstmul Jan 21, 2025
adc7712
new copy
ernstmul Jan 21, 2025
f708530
Merge pull request #1618 from appwrite/fix-show-only-bucket-size-limit
ernstmul Jan 21, 2025
6608d05
Update Console SDK Version
PineappleIOnic Jan 22, 2025
f9b0014
Merge pull request #1622 from appwrite/chore-update-sdk
ItzNotABug Jan 22, 2025
19e5235
Fix github secrets
PineappleIOnic Jan 22, 2025
403744e
Use vars for username instead of secret
PineappleIOnic Jan 22, 2025
3fa83d3
Merge pull request #1623 from appwrite/chore-update-sdk
abnegate Jan 22, 2025
1234691
ci: fix docker hub credentials
TorstenDittmann Jan 22, 2025
5a5b4d4
Merge branch 'main' of https://github.com/appwrite/console into fix-s…
TorstenDittmann Jan 22, 2025
9af0556
fix: realtime using project namespace
TorstenDittmann Jan 22, 2025
f7aca88
Merge pull request #1626 from appwrite/fix-realtime-endpoint
TorstenDittmann Jan 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 6 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"e2e:ui": "playwright test tests/e2e --ui"
},
"dependencies": {
"@appwrite.io/console": "1.4.4",
"@appwrite.io/console": "1.4.7",
"@appwrite.io/pink": "0.25.0",
"@appwrite.io/pink-icons": "0.25.0",
"@popperjs/core": "^2.11.8",
Expand All @@ -36,6 +36,7 @@
"plausible-tracker": "^0.3.9",
"pretty-bytes": "^6.1.1",
"prismjs": "^1.29.0",
"remarkable": "^2.0.1",
"svelte-confetti": "^1.4.0",
"tippy.js": "^6.3.7"
},
Expand All @@ -52,6 +53,7 @@
"@testing-library/user-event": "^14.5.2",
"@types/deep-equal": "^1.0.4",
"@types/prismjs": "^1.26.5",
"@types/remarkable": "^2.0.8",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitest/ui": "^1.6.0",
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.appwrite.org/v1',
PUBLIC_APPWRITE_ENDPOINT: 'https://console-testing-2.appwrite.org/v1',
PUBLIC_CONSOLE_MODE: 'cloud',
PUBLIC_STRIPE_KEY:
'pk_test_51LT5nsGYD1ySxNCyd7b304wPD8Y1XKKWR6hqo6cu3GIRwgvcVNzoZv4vKt5DfYXL1gRGw4JOqE19afwkJYJq1g3K004eVfpdWn'
Expand Down
38 changes: 33 additions & 5 deletions pnpm-lock.yaml

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

3 changes: 1 addition & 2 deletions src/hooks.client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ Sentry.init({
dsn: 'https://[email protected]/4504158071422976',
tracesSampleRate: 1,
replaysSessionSampleRate: 0,
replaysOnErrorSampleRate: 1,
integrations: [Sentry.replayIntegration()]
replaysOnErrorSampleRate: 0
});

export const handleError: HandleClientError = Sentry.handleErrorWithSentry(
Expand Down
59 changes: 53 additions & 6 deletions src/lib/commandCenter/panels/ai.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<script lang="ts">
import { Remarkable } from 'remarkable';
import Template from './template.svelte';

const markdownInstance = new Remarkable();

import { Alert, AvatarInitials, Code, LoadingDots, SvgIcon } from '$lib/components';
import { user } from '$lib/stores/user';
import { useCompletion } from 'ai/svelte';
Expand All @@ -19,8 +22,6 @@
credentials: 'include'
});

let question = $input;

const examples = [
'How to add platform in the console?',
'How can I manage users, permissions, and access control in Appwrite?',
Expand Down Expand Up @@ -87,10 +88,47 @@

$: answer = parseCompletion($completion);

function renderMarkdown(answer: string): string {
const trimmedAnswer = answer
.trim()
.replace(/[ \t]+/g, ' ')
.replace(/\n[ \t]+/g, '\n')
.replace(/\n+/g, '\n');

// targeting links in plain text.
const processedAnswer = trimmedAnswer
.replace(/(\[(.*?)]\((.*?)\))|https?:\/\/\S+/g, (match, fullMarkdownLink, _, __) =>
fullMarkdownLink ? match : `[${match}](${match})`
)
.replace(/https?:\/\/\S+##/g, (url) => url.replace(/##/, '#'));

const formattedAnswer = processedAnswer.replace(
/(^|\n)Sources:/g,
(_, prefix) => `${prefix}\nSources:`
);

let renderedHTML = markdownInstance.render(formattedAnswer);

// add target blank to open links in a new tab.
renderedHTML = renderedHTML.replace(/<a\s+href="([^"]+)"/g, '<a href="$1" target="_blank"');

return renderedHTML;
}

function getInitials(name: string) {
const [first, last] = name.split(' ');
return `${first?.[0] ?? ''}${last?.[0] ?? ''}`;
}

let previousQuestion = '';
$: if ($input) {
previousQuestion = $input;
}

$: if (!$isLoading && answer) {
// reset input if answer received.
$input = '';
}
</script>

<Template
Expand Down Expand Up @@ -142,7 +180,7 @@
<div class="content">
<div class="u-flex u-gap-8 u-cross-center">
<div class="avatar is-size-x-small">{getInitials($user.name)}</div>
<p class="u-opacity-75">{question}</p>
<p class="u-opacity-75">{previousQuestion}</p>
</div>
<div class="u-flex u-gap-8 u-margin-block-start-24">
<div class="logo">
Expand All @@ -154,7 +192,7 @@
{:else}
{#each answer as part}
{#if part.type === 'text'}
<p>{part.value.trimStart()}</p>
<p>{@html renderMarkdown(part.value.trim())}</p>
{:else if part.type === 'code'}
{#key part.value}
<div
Expand Down Expand Up @@ -196,7 +234,6 @@
class="input-text-wrapper u-width-full-line"
style="--amount-of-buttons: 1;"
on:submit|preventDefault={(e) => {
question = $input;
handleSubmit(e);
}}>
<!-- svelte-ignore a11y-autofocus -->
Expand Down Expand Up @@ -269,10 +306,20 @@
.answer {
overflow: hidden;

p {
p:first-of-type {
white-space: pre-wrap;
}
}

:global(.answer ul),
:global(.answer ol) {
gap: 1rem;
display: grid;
}

:global(.answer a) {
text-decoration: underline;
}
}

.footer {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/commandCenter/panels/createAttribute.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<script lang="ts">
import { initCreateAttribute } from '$routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/+layout.svelte';
import { attributeOptions } from '$routes/(console)/project-[project]/databases/database-[database]/collection-[collection]/attributes/store';
import { initCreateAttribute } from '$routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/+layout.svelte';
import { attributeOptions } from '$routes/(console)/project-[region]-[project]/databases/database-[database]/collection-[collection]/attributes/store';
import Template from './template.svelte';

let search = '';
Expand Down
8 changes: 4 additions & 4 deletions src/lib/commandCenter/panels/createMessage.svelte
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
<script lang="ts">
import { providers } from '$routes/(console)/project-[project]/messaging/providers/store';
import { providers } from '$routes/(console)/project-[region]-[project]/messaging/providers/store';
import {
messageParams,
providerType,
targetsById
} from '$routes/(console)/project-[project]/messaging/wizard/store';
} from '$routes/(console)/project-[region]-[project]/messaging/wizard/store';
import { MessagingProviderType } from '@appwrite.io/console';
import Template from './template.svelte';
import { wizard } from '$lib/stores/wizard';
import Create from '$routes/(console)/project-[project]/messaging/create.svelte';
import { topicsById } from '$routes/(console)/project-[project]/messaging/store';
import Create from '$routes/(console)/project-[region]-[project]/messaging/create.svelte';
import { topicsById } from '$routes/(console)/project-[region]-[project]/messaging/store';

let search = '';

Expand Down
2 changes: 1 addition & 1 deletion src/lib/commandCenter/panels/platforms.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import {
Platform,
addPlatform
} from '$routes/(console)/project-[project]/overview/platforms/+page.svelte';
} from '$routes/(console)/project-[region]-[project]/overview/platforms/+page.svelte';
import Template from './template.svelte';

let search = '';
Expand Down
Loading
Loading