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

Feature/merge 1.15.0 #5

Merged
merged 274 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
274 commits
Select commit Hold shift + click to select a range
18dfcda
chore(schemas): renaming
darcyYe Mar 6, 2024
5d8e685
refactor(core): refactor code
darcyYe Mar 6, 2024
0f0247c
refactor(core): overload function interface
darcyYe Mar 6, 2024
f4a812a
refactor(core): refactor
darcyYe Mar 6, 2024
118de63
feat(core): add GET /configs/jwt-customizer API
darcyYe Mar 4, 2024
754d425
chore(core,test): update tests and refactor getJwtCustomizer query
darcyYe Mar 6, 2024
e327754
fix(test): fix tests
darcyYe Mar 6, 2024
5d55776
refactor(core): refactor
darcyYe Mar 6, 2024
038733e
Merge pull request #5453 from logto-io/yemq-log-8281-update-logto-con…
darcyYe Mar 7, 2024
81eb022
Merge pull request #5461 from logto-io/yemq-log-8282-add-POST-configs…
darcyYe Mar 7, 2024
ce2abe7
Merge pull request #5465 from logto-io/yemq-log-8283-add-GET-configs-…
darcyYe Mar 7, 2024
74a70c0
feat(core): add GET /configs/jwt-customizer API
darcyYe Mar 4, 2024
29d7642
feat(core): add DELETE /configs/jwt-customizer API
darcyYe Mar 4, 2024
57a9cfa
fix(core): fix rebase
darcyYe Mar 7, 2024
a00badc
Merge pull request #5467 from logto-io/yemq-log-8285-add-DELETE-confi…
darcyYe Mar 7, 2024
fa3577e
refactor(console): implement environment variables input field (1/2) …
simeng-li Mar 7, 2024
4e27e34
feat(console,phrases): implement environment variables input field (2…
simeng-li Mar 7, 2024
2d98982
feat(console,phrases): add test sample code editor (#5475)
simeng-li Mar 7, 2024
f44ba31
feat(console,phrases): add test result component (#5479)
simeng-li Mar 8, 2024
1724119
feat(core): create user with avatar and custom data (#5476)
wangsijie Mar 8, 2024
95f4ba1
feat(core): add password algorithm transition (#5481)
wangsijie Mar 8, 2024
bab50fc
chore(console): component rename (#5480)
simeng-li Mar 11, 2024
df5d2a2
fix(console): fix input field background color (#5478)
charIeszhao Mar 11, 2024
56a6c5a
feat(console, phrases): implement the copy, clear and reset button (#…
simeng-li Mar 11, 2024
9eb1c4a
feat(core,schemas): update jwt customizer user info context
darcyYe Mar 8, 2024
c8eaa45
Merge pull request #5487 from logto-io/yemq-log-8357-prepare-jwt-user…
darcyYe Mar 12, 2024
213d6f9
feat(console): add change alert and save changes footer (#5492)
simeng-li Mar 12, 2024
5a72045
refactor(experience): skip non-object messages in native (#5491)
gao-sun Mar 12, 2024
733f092
chore(schemas): add cloud scope, service log type and API guard
darcyYe Mar 12, 2024
2c7acb2
Merge pull request #5494 from logto-io/yemq-log-8395-update-logto-sch…
darcyYe Mar 12, 2024
1965633
refactor(core): update organization invitation apis (#5474)
gao-sun Mar 12, 2024
2c5a449
refactor(core,console): align the jwt token path enum (#5493)
simeng-li Mar 13, 2024
f11e95e
feat(console,phrases): integrate jwt customizer api (#5495)
simeng-li Mar 13, 2024
2a358bf
refactor(console,core,schemas): rename the jwtCustomizer related type…
simeng-li Mar 13, 2024
431c202
feat(phrases): add i18n phrases for cloud collaboration
charIeszhao Mar 13, 2024
e8ac64c
Merge pull request #5500 from logto-io/charles-log-8404-add-i18n-phra…
charIeszhao Mar 14, 2024
abb2c9f
feat(console): add global loading skeleton (#5498)
simeng-li Mar 14, 2024
e95a046
fix(console): fix code edtior set undefined value bug (#5499)
simeng-li Mar 14, 2024
58885b3
fix(core): the koa response status guard missing 422 in sso integrati…
darcyYe Mar 15, 2024
2908c81
chore(schemas): export custom JWT API request body type (#5510)
darcyYe Mar 15, 2024
e22eb3a
refactor: remove slonik from shared
gao-sun Mar 15, 2024
54c2b1d
refactor: fix errors
gao-sun Mar 16, 2024
fbbe767
refactor: use silverhand slonik
gao-sun Mar 16, 2024
82408b6
Merge pull request #5512 from logto-io/gao-shared-default-universal
gao-sun Mar 18, 2024
0a5226c
chore: upgrade slonik
gao-sun Mar 18, 2024
feaca53
refactor: remove unused files
gao-sun Mar 18, 2024
7c22c50
chore: add changeset for the bug fix PR (#5507)
simeng-li Mar 18, 2024
2f388c0
feat(core): set oidc issuer to custom domain (#5509)
wangsijie Mar 18, 2024
b40a347
Merge pull request #5513 from logto-io/gao-use-svhd-slonik
gao-sun Mar 19, 2024
9aa07bf
test(core): mock crypto functions in password tests (#5522)
wangsijie Mar 19, 2024
2c10c24
refactor: update invitation apis
gao-sun Mar 19, 2024
98ca0a7
feat: allow get invitations by invitee
gao-sun Mar 19, 2024
23bc5cd
Merge pull request #5521 from logto-io/gao-allow-unknown-keys-in-mess…
gao-sun Mar 19, 2024
08acdf7
refactor(console): refactor the code editor type definition (#5516)
simeng-li Mar 19, 2024
d3d0f51
refactor(console): replace the field table with type definition code …
simeng-li Mar 19, 2024
57d97a4
feat: return and store connector raw data
gao-sun Mar 19, 2024
5d692e3
chore: add exception for connector template
gao-sun Mar 19, 2024
348124b
refactor(core): update user context type
darcyYe Mar 19, 2024
beff82a
feat: add oidc standard claims to user
gao-sun Mar 19, 2024
8f5baac
refactor(core,schemas): refactor to improve lib method performance
darcyYe Mar 19, 2024
8ac95a1
fix(console): fix some user related type in console
darcyYe Mar 19, 2024
f638c8e
refactor(console,phrases): refactor the jwt customizer content (#5527)
simeng-li Mar 20, 2024
b994f1e
refactor(core): refactor oidc sso connector (#5528)
simeng-li Mar 20, 2024
1bc40fa
refactor: fix type issues
gao-sun Mar 20, 2024
bc11084
Merge pull request #5523 from logto-io/gao-allow-filter-invitation-by…
gao-sun Mar 20, 2024
d597681
refactor: fix tests
gao-sun Mar 20, 2024
e5e378d
chore: remove org role scopes field since it relies on pagination setup
darcyYe Mar 20, 2024
6feb531
feat: add profile api, update api and database, add tests
gao-sun Mar 20, 2024
abffb9f
chore: add changeset and api doc
gao-sun Mar 20, 2024
0cb3116
ci: bump workflow version (#5533)
gao-sun Mar 20, 2024
9518658
fix(schemas): fix the get interation/consent api bug (#5503)
simeng-li Mar 20, 2024
a2f20df
chore: add comments
darcyYe Mar 20, 2024
f727ef8
Merge pull request #5529 from logto-io/yemq-log-8446-update-user-cont…
darcyYe Mar 21, 2024
5fbee28
feat(core): add POST /configs/jwt-customizer/test API
darcyYe Mar 19, 2024
ef7e8e1
refactor(core): use discriminate union for custom jwt test API
darcyYe Mar 19, 2024
aac7a7b
chore: update core dependency
darcyYe Mar 19, 2024
e72e927
chore: add todo
darcyYe Mar 20, 2024
ed710b0
chore: remove 500 status guard
darcyYe Mar 20, 2024
9c7956d
refactor: refactor
darcyYe Mar 20, 2024
77b67fb
refactor(core): add cloud-only API prune for API docs
darcyYe Mar 20, 2024
45a7ee1
refactor: remove cloud only operations when needed
gao-sun Mar 20, 2024
b2e00df
refactor: keep origin customJwtFetcherGuard
darcyYe Mar 20, 2024
239c17f
refactor: adopt suggestion
darcyYe Mar 21, 2024
d913c8d
chore(schemas): remove deprecated `prune:logs` scope (#5524)
xiaoyijun Mar 21, 2024
88f759c
chore: add status 403 for custom jwt test API
darcyYe Mar 21, 2024
5c6af38
Merge pull request #5525 from logto-io/yemq-log-8444-add-jwt-customiz…
darcyYe Mar 21, 2024
f1f6b1c
feat(console): integrate jwt customizer test api (#5532)
simeng-li Mar 21, 2024
37cd6cc
feat(console): add tenant member and invitation lists (#5501)
charIeszhao Mar 21, 2024
bc119b5
Update README.md (#5535)
Julian-Hackenberg Mar 21, 2024
f60e641
Merge pull request #5526 from logto-io/gao-store-raw-data-social
gao-sun Mar 21, 2024
3cb9b89
refactor: fix test and ci
gao-sun Mar 21, 2024
a98bc3d
Merge pull request #5530 from logto-io/gao-add-oidc-standard-claims
gao-sun Mar 21, 2024
084ced1
feat(core): add the support on custom JWT feature
darcyYe Mar 11, 2024
18fb88e
fix: cloud connection should bypass custom JWT flow
darcyYe Mar 18, 2024
89ba8a1
chore: update cloud dependency
darcyYe Mar 18, 2024
ddd93dc
refactor(core): add cache for cloud connection data
darcyYe Mar 19, 2024
8513dae
refactor: block admin tenant from using creating jwt-customizer API
darcyYe Mar 20, 2024
210bb29
refactor: remove credentials cache
darcyYe Mar 21, 2024
8ea166a
refactor: try catch extraTokenClaims function to avoid breaking the a…
darcyYe Mar 21, 2024
3ff97d4
style(console): fix the jwt test panel layout (#5538)
simeng-li Mar 22, 2024
ea796c1
chore: fix
darcyYe Mar 22, 2024
5ea8c49
chore: fix
darcyYe Mar 22, 2024
ecd3db2
refactor(core): remove unused mark mfa skip function (#5517)
wangsijie Mar 25, 2024
cec57e3
chore(schemas): add comments for `ReservedPlanId` (#5542)
xiaoyijun Mar 25, 2024
a538a1c
refactor(console): extract shared quota between featured plan and com…
xiaoyijun Mar 25, 2024
7d86bf3
refactor(console): avoid nested modal content for role creation (#5544)
xiaoyijun Mar 25, 2024
55e04cc
refactor: reorder code
darcyYe Mar 25, 2024
0f35538
refactor: not update console cloud dependency
darcyYe Mar 25, 2024
9e67b67
refactor(phrases,core,console): update API and console error handling…
darcyYe Mar 24, 2024
618c38f
Merge pull request #5508 from logto-io/yemq-log-8338-update-extra-tok…
darcyYe Mar 25, 2024
6143755
chore: add comments
darcyYe Mar 25, 2024
a387bf2
refactor(schemas,core,console): skip onboarding if user has pending i…
charIeszhao Mar 25, 2024
62bd784
Merge pull request #5546 from logto-io/yemq-log-8470-update-custom-jw…
darcyYe Mar 25, 2024
a9b9279
fix(core): fix the post domains api error status code (#5552)
simeng-li Mar 25, 2024
8d14c87
chore: bump @logto dependencies (#5548)
charIeszhao Mar 25, 2024
4766d22
chore(phrases): add i18n phrases for console invitation interim pages…
charIeszhao Mar 25, 2024
af53be8
refactor(console): reorg sidebar menu items (#5550)
xiaoyijun Mar 25, 2024
1f0ae00
fix(core,phrases): fix custom JWT PUT API block admin tenant logic
darcyYe Mar 25, 2024
80487fa
Merge pull request #5555 from logto-io/yemq-fix-custom-jwt-put-api-ea…
darcyYe Mar 26, 2024
2cbc591
feat: support direct sign-in (#5536)
gao-sun Mar 26, 2024
bca0ce9
chore(deps): update softprops/action-gh-release action to v2 (#5486)
renovate[bot] Mar 26, 2024
0c4ba5b
chore(schemas): update customJwtFetcherGuard to specify custom jwt us…
darcyYe Mar 26, 2024
c7a23df
feat(console): invite members dialog (#5531)
charIeszhao Mar 26, 2024
2961b53
feat(console): add console landing page to accept user invitation (#5…
charIeszhao Mar 26, 2024
3f59461
chore(deps): update packges (#5545)
gao-sun Mar 27, 2024
592d467
feat(core,schemas): add new Azure OIDC SSO connector (#5540)
simeng-li Mar 27, 2024
92d45f2
refactor(core,schemas): refactor the sso connector factory type (#5541)
simeng-li Mar 27, 2024
affcecd
refactor(console): refactor useApi (#5549)
simeng-li Mar 27, 2024
ba16d1c
refactor(console): refactor sso detail pages (#5551)
simeng-li Mar 27, 2024
d91e3e7
style(console): fix the color code white css (#5564)
simeng-li Mar 27, 2024
5758f84
feat(console): support signing-key rotation for oss version (#5559)
xiaoyijun Mar 27, 2024
746483c
fix(console,phrases): api resource indicator should be a valid absolu…
charIeszhao Mar 27, 2024
2ccc54a
Merge pull request #5557 from logto-io/yemq-log-8481-update-custom-jw…
darcyYe Mar 27, 2024
d45cd37
refactor: use vitest for connectors (#5562)
gao-sun Mar 28, 2024
d1b1985
fix(console): fix jwt test context code editor bug (#5563)
simeng-li Mar 28, 2024
6990a3e
fix(console): fix the zod-to-ts type infer bug (#5566)
simeng-li Mar 28, 2024
f83e85b
feat(console): implement interim landing page for new users to join i…
charIeszhao Mar 28, 2024
ba966fd
feat(console): support permission editing (#5567)
xiaoyijun Mar 28, 2024
e0123fd
chore(schemas,core): update custom JWT sample token payload guard
darcyYe Mar 26, 2024
afda22e
feat(console): add quick join options in tenant selector dropdown (#5…
charIeszhao Mar 28, 2024
18041a6
chore(console): update the default user context as well
darcyYe Mar 28, 2024
412a3df
refactor: remove jest
gao-sun Mar 28, 2024
664c67d
Merge pull request #5558 from logto-io/yemq-log-8448-update-sample-to…
darcyYe Mar 28, 2024
340d562
refactor: remove jest
gao-sun Mar 28, 2024
f549841
refactor: add back `build:test` for other packages
gao-sun Mar 28, 2024
02833b0
chore: add test coverage pacakge
gao-sun Mar 28, 2024
3f152a8
refactor: remove jest
gao-sun Mar 28, 2024
0ade301
test: wait 0ms after each test
gao-sun Mar 28, 2024
a2899a8
refactor(console): update tenant settings access per user tenant scop…
charIeszhao Mar 28, 2024
113221e
Merge pull request #5574 from logto-io/gao-remove-jest
gao-sun Mar 28, 2024
80a3808
test: add integration tests for jwt (#5565)
wangsijie Mar 28, 2024
2ae8c11
test: improve integration tests (#5577)
gao-sun Mar 28, 2024
3cc6d4b
refactor(schemas): remove invite member scope from tenant member role…
charIeszhao Mar 28, 2024
961fd8e
fix(deps): update dependency snakecase-keys to v7 (#5556)
renovate[bot] Mar 28, 2024
dcb5eba
fix(deps): update dependency snake-case to v4 (#5534)
renovate[bot] Mar 28, 2024
a279fb4
chore: add comments for cloud seed data (#5583)
gao-sun Mar 28, 2024
7e33eae
feat(schemas): add new scope read:member to both tenant admin and mem…
charIeszhao Mar 28, 2024
48cfdf5
chore: update cloud version and the way to call cloud custom JWT API
darcyYe Mar 28, 2024
03144ae
fix(console,phrases): should check duplicated emails when inviting me…
charIeszhao Mar 29, 2024
867e114
fix(console): revert the custom jwt forms overflow hidden (#5573)
simeng-li Mar 29, 2024
a77fd3f
Merge pull request #5585 from logto-io/yemq-log-8483-update-cloud-cli…
darcyYe Mar 29, 2024
eb4c6c4
feat(schemas): add util method to convert admin tenant org id to user…
charIeszhao Mar 29, 2024
6d56434
refactor: use ky in integration tests (#5584)
gao-sun Mar 29, 2024
7756f50
feat: support direct sign-in for sso (#5589)
gao-sun Mar 29, 2024
e34cfd8
chore(core): update GET /configs/jwt-customizer/:tokenPath API error …
darcyYe Mar 30, 2024
c1722c8
refactor(core): reorg and separate logto-config APIs into files
darcyYe Mar 28, 2024
ceeeeb0
Merge pull request #5575 from logto-io/yemq-log-8507-add-GET-configs-…
darcyYe Mar 31, 2024
39cacf4
chore(cli): update translate CLI configs
darcyYe Mar 31, 2024
0438a2e
fix(console): refresh invitation list after inviting members (#5593)
charIeszhao Mar 31, 2024
982aa91
test: add tests for username case sensitive (#5597)
wangsijie Mar 31, 2024
9bf9f07
refactor(console): move organization template into a single page (#5590)
xiaoyijun Apr 1, 2024
2f67dde
feat(console): implement custom jwt landing page
simeng-li Mar 28, 2024
8115944
refactor(console): relocalte the component files
simeng-li Mar 28, 2024
e3e8b14
refactor(console): rename the jwtClaims page
simeng-li Mar 28, 2024
777ef0e
refactor(console,phrases): refactor the customize jwt details page
simeng-li Mar 29, 2024
59ffb43
refactor(console): remove unused element
simeng-li Mar 29, 2024
c6b19a5
refactor(console): redesign the jwt details page
simeng-li Mar 29, 2024
eed52df
feat(console): update jwt create page button text
simeng-li Mar 29, 2024
a0f7b1c
Merge pull request #5579 from logto-io/simeng-prd-690-ac-flow-iteration
darcyYe Apr 1, 2024
5bfd917
chore(console): align custom JWT path and hide the entrance for OSS
darcyYe Apr 1, 2024
2c6f4b7
style(console): refine the SSO connector create model (#5594)
simeng-li Apr 1, 2024
39868d5
Merge pull request #5587 from logto-io/simeng-log-8525-ac-flow-iterat…
darcyYe Apr 1, 2024
48a4da0
Merge pull request #5591 from logto-io/simeng-log-8560-customize-jwt-…
darcyYe Apr 1, 2024
77fc940
Merge pull request #5599 from logto-io/yemq-update-translate-cli-conf…
darcyYe Apr 1, 2024
add78b7
fix(console): only pending invitations can be resent (#5601)
charIeszhao Apr 1, 2024
2b5e6d6
fix(core): update expired invitation to expired before inserting a ne…
charIeszhao Apr 1, 2024
4e59064
feat(console): add leave tenant button in tenant settings (#5600)
charIeszhao Apr 1, 2024
eeb095f
fix(console): joining tenant should navigate user to the new tenant (…
charIeszhao Apr 1, 2024
977776d
chore(core,console): update error handling of testing custom JWT
darcyYe Apr 1, 2024
21560f9
Merge pull request #5611 from logto-io/yemq-log-8493-update-custom-jw…
darcyYe Apr 2, 2024
bea7d8e
feat(core): add PATCH /configs/jwt-customizer API
darcyYe Mar 4, 2024
6cc5dd0
Merge pull request #5468 from logto-io/yemq-log-8284-add-PATCH-config…
darcyYe Apr 2, 2024
866c58e
fix(console): reset form as soon as JWT customizer is created (#5612)
darcyYe Apr 2, 2024
e09318d
feat(core,schemas): log extraTokenClaims exception (#5539)
darcyYe Apr 2, 2024
d1c41a2
refactor(console): improve invitation email input field (#5615)
charIeszhao Apr 2, 2024
e38e3c1
refactor(schemas): rename tenant member role to collaborator (#5616)
charIeszhao Apr 2, 2024
a4f8199
fix(console,phrases): fix a batch of organization invitation console …
charIeszhao Apr 2, 2024
e035957
feat(console): support org permission management on new org template …
xiaoyijun Apr 2, 2024
0f5347b
feat(console): add org role details general settings page (#5610)
xiaoyijun Apr 2, 2024
fca4f9b
chore(console,phrases): update content and fix console
darcyYe Apr 2, 2024
7f3cd97
chore(console,toolkit): update custom JWT details page code editor ac…
darcyYe Apr 2, 2024
b484798
Merge pull request #5621 from logto-io/yemq-log-8592-prd-697-prd-699-…
darcyYe Apr 3, 2024
2368cf0
refactor(console,phrases): rename tenant member role to collaborator …
charIeszhao Apr 3, 2024
4a60bf4
chore(console,toolkit): update custom JWT details page code editor ac…
darcyYe Apr 3, 2024
7fecc0f
Merge pull request #5623 from logto-io/yemq-prd-700-prd-701-fix-code-…
darcyYe Apr 3, 2024
bde2abe
chore(core,console,schemas): update variable name and field name
darcyYe Apr 2, 2024
8e1713f
Merge pull request #5617 from logto-io/yemq-log-8449-log-8489-update-…
darcyYe Apr 3, 2024
d8c39aa
refactor(experience): fix sso callback page style (#5624)
gao-sun Apr 3, 2024
caaad69
refactor(phrases): add zh-cn phrases in OIDC consent page (#5606)
the-pawn-2017 Apr 3, 2024
cfbceb6
chore(console): update style
darcyYe Apr 3, 2024
316c111
refactor(console,phrases): display inviter name on tenant invitations…
charIeszhao Apr 3, 2024
de70abe
refactor: update dependency on @logto/cloud and update legacy JWT cus…
darcyYe Apr 3, 2024
0596279
fix(console): temporarily fix pro plan cannot invite members issue (#…
charIeszhao Apr 3, 2024
6414632
Merge pull request #5625 from logto-io/yemq-log-8589-log-8603-prd-698…
darcyYe Apr 3, 2024
d6cd67b
Merge pull request #5628 from logto-io/yemq-update-cloud-dependency-a…
darcyYe Apr 3, 2024
6ed7ab5
feat(console): create organization role (#5630)
xiaoyijun Apr 3, 2024
11c974c
feat(console): add permissions page for org role details page (#5631)
xiaoyijun Apr 7, 2024
cb4ef9f
refactor(console): reorg resource details page (#5634)
xiaoyijun Apr 7, 2024
4685587
feat(core): search organization roles (#5627)
wangsijie Apr 7, 2024
94ccbaf
feat(core,schemas): add organization resource scope relations (#5608)
wangsijie Apr 7, 2024
1030b66
feat(console): add azure OIDC guide (#5592)
simeng-li Apr 7, 2024
3160b40
feat(core,schemas): edit and query resource scopes for org role (#5613)
wangsijie Apr 7, 2024
3e51ab1
fix(console,phrases): update the jwt test section content (#5641)
simeng-li Apr 8, 2024
a6a32c5
style(console): fix the jwt details page style (#5642)
simeng-li Apr 8, 2024
cfeb98c
feat(console,core,phrases): add quota guard for cloud collaboration i…
charIeszhao Apr 8, 2024
66abc50
fix(console): fix test result panel overflow bug (#5643)
simeng-li Apr 8, 2024
bf471e1
chore(schemas): fix alteration timestamp (#5645)
wangsijie Apr 8, 2024
756c2f4
feat(console): support searching for organization roles (#5646)
xiaoyijun Apr 8, 2024
ad9f34e
chore(schemas): fix alteration down (#5648)
wangsijie Apr 8, 2024
79645d7
refactor(console): show confirm box when inviting a member as admin (…
charIeszhao Apr 8, 2024
77db939
fix(console): should stop requesting invitations api for collaborator…
charIeszhao Apr 8, 2024
d90b615
feat(console): add guide for organization template page (#5647)
xiaoyijun Apr 9, 2024
9482a9c
refactor(console): collaborator can see tenant domain settings in rea…
charIeszhao Apr 9, 2024
557f955
refactor(console): hide switching tabs and invite button for collabor…
charIeszhao Apr 9, 2024
919fd8b
refactor(console): improve switch button styles (#5655)
charIeszhao Apr 9, 2024
2c97cd6
fix(console): user should switch account and accept invitation proper…
charIeszhao Apr 9, 2024
0608329
refactor(console): improve tenant member role related experience (#5659)
charIeszhao Apr 9, 2024
6e980b3
refactor(console,phrases): improve invite email input (#5661)
charIeszhao Apr 9, 2024
5987540
fix(console): go to onboarding process on clicking create new tenant …
charIeszhao Apr 9, 2024
5131cf7
fix(connector): fix microsoft social connector readme (#5658)
simeng-li Apr 9, 2024
e1d4df4
fix(experience): fix the terms of use not clickable bug (#5670)
simeng-li Apr 10, 2024
2a839ec
chore(console): remove dev feature flags for cloud collaboration (#5666)
charIeszhao Apr 10, 2024
637c971
chore(console): update pricing plan items for jwt claims (#5672)
charIeszhao Apr 10, 2024
b33de02
refactor(console): redirect to sign-up page on clicking invitation li…
charIeszhao Apr 10, 2024
5cde35e
chore: add changeset (#5668)
simeng-li Apr 10, 2024
1ade7a3
refactor(experience): fall back to sign-in page when error (#5673)
gao-sun Apr 10, 2024
fb55249
release: version packages (#5463)
silverhand-bot Apr 10, 2024
dbd2d15
Merge branch 'dev' into feature/merge-1.15.0
SamSalvatico Apr 11, 2024
e368e7c
Merge branch 'dev' into feature/merge-1.15.0
SamSalvatico Apr 11, 2024
f07de33
feat(cli): updated references to slonik lib
SamSalvatico Apr 11, 2024
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
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
env:
INTEGRATION_TEST: true
steps:
- uses: logto-io/actions-package-logto-artifact@v1.1.0
- uses: logto-io/actions-package-logto-artifact@v2
with:
artifact-name: alteration-integration-test-${{ github.sha }}
branch: ${{github.base_ref}}
Expand All @@ -68,7 +68,7 @@ jobs:
DB_URL: postgres://postgres:postgres@localhost:5432/postgres

steps:
- uses: logto-io/actions-run-logto-integration-tests@v1.1.0
- uses: logto-io/actions-run-logto-integration-tests@v2
with:
branch: ${{github.base_ref}}
logto_artifact: alteration-integration-test-${{ github.sha }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/commitlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ jobs:
uses: silverhand-io/actions-node-pnpm-run-steps@v4

- name: Commitlint
run: npx commitlint --from HEAD~${{ github.event.pull_request.commits }} --to HEAD
# Credit to https://stackoverflow.com/a/67365254/12514940
run: npx commitlint --from ${{ github.event.pull_request.base.sha }} --to ${{ github.event.pull_request.head.sha }} --verbose

- name: Commitlint on PR title
run: echo '${{ github.event.pull_request.title }}' | npx commitlint
4 changes: 2 additions & 2 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
INTEGRATION_TEST: true

steps:
- uses: logto-io/actions-package-logto-artifact@v1.1.0
- uses: logto-io/actions-package-logto-artifact@v2
with:
artifact-name: integration-test-${{ github.sha }}

Expand All @@ -34,7 +34,7 @@ jobs:
DB_URL: postgres://postgres:postgres@localhost:5432/postgres

steps:
- uses: logto-io/actions-run-logto-integration-tests@v1.1.0
- uses: logto-io/actions-run-logto-integration-tests@v2
with:
logto_artifact: integration-test-${{ github.sha }}
test_target: ${{ matrix.target }}
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ jobs:
run: ./.scripts/package.sh

- name: Release
uses: softprops/action-gh-release@v1
uses: softprops/action-gh-release@v2
with:
token: ${{ secrets.BOT_PAT }}
body: ""
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,6 @@ dump.rdb

# connectors
/packages/core/connectors

# console auto generated files
/packages/console/src/consts/jwt-customizer-type-definition.ts
2 changes: 1 addition & 1 deletion .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ tasks:
cd packages/core
pnpm build
cd -
pnpm connectors:build
pnpm connectors build
pnpm cli connector link
command: |
gp ports await 5432
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ Logto uses the [default browserslist config](https://github.com/browserslist/bro
- About other bug reports, feature requests, and feedback, you can:
- Directly 🙋 [open an issue](https://github.com/logto-io/logto/issues/new) on GitHub;
- 💬 [join our Discord server](https://discord.gg/vRvwuwgpVX) to have a live chat;
- Engage in our 📍 [public roadmap](https://github.com/logto-io/logto/issues/1937).

## Licensing

Expand Down
10 changes: 6 additions & 4 deletions commitlint.config.cjs → commitlint.config.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
const { rules } = require('@commitlint/config-conventional');
import conventional from '@commitlint/config-conventional';
import { UserConfig } from '@commitlint/types';

const isCi = process.env.CI === 'true';

/** @type {import('@commitlint/types').UserConfig} **/
module.exports = {
const config: UserConfig = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', [...rules['type-enum'][2], 'api', 'release']],
'type-enum': [2, 'always', [...conventional.rules['type-enum'][2], 'api', 'release']],
'scope-enum': [2, 'always', ['connector', 'console', 'core', 'demo-app', 'test', 'phrases', 'schemas', 'shared', 'experience', 'deps', 'deps-dev', 'cli', 'toolkit', 'cloud', 'app-insights']],
// Slightly increase the tolerance to allow the appending PR number
...(isCi && { 'header-max-length': [2, 'always', 110] }),
'body-max-line-length': [2, 'always', 110],
},
};

export default config;
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"cli": "logto",
"changeset": "changeset",
"alteration": "logto db alt",
"connectors:build": "pnpm -r --filter \"./packages/connectors/connector-*\" build",
"connectors": "pnpm -r --filter \"./packages/connectors/connector-*\"",
"//": "# `changeset version` won't run version lifecycle scripts, see https://github.com/changesets/changesets/issues/860",
"ci:version": "changeset version && pnpm -r version",
"ci:build": "pnpm -r build",
Expand All @@ -25,9 +25,9 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@commitlint/cli": "^18.0.0",
"@commitlint/config-conventional": "^18.0.0",
"@commitlint/types": "^18.0.0",
"@commitlint/cli": "^19.0.0",
"@commitlint/config-conventional": "^19.0.0",
"@commitlint/types": "^19.0.0",
"@types/pg": "^8.6.6",
"husky": "^9.0.0",
"pg": "^8.8.0",
Expand Down
13 changes: 0 additions & 13 deletions packages/app-insights/jest.config.js

This file was deleted.

13 changes: 6 additions & 7 deletions packages/app-insights/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,29 @@
"scripts": {
"precommit": "lint-staged",
"build": "rm -rf lib/ && tsc -p tsconfig.build.json",
"build:test": "rm -rf lib/ && tsc -p tsconfig.test.json --sourcemap",
"build:test": "pnpm build",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json",
"test:only": "NODE_OPTIONS=--experimental-vm-modules jest",
"test": "pnpm build:test && pnpm test:only",
"test": "vitest src",
"test:ci": "pnpm run test --silent --coverage",
"prepack": "pnpm build"
},
"devDependencies": {
"@silverhand/eslint-config": "5.0.0",
"@silverhand/eslint-config-react": "5.0.0",
"@silverhand/ts-config": "5.0.0",
"@silverhand/ts-config-react": "5.0.0",
"@types/jest": "^29.4.0",
"@types/node": "^20.9.5",
"@types/react": "^18.0.31",
"@vitest/coverage-v8": "^1.4.0",
"eslint": "^8.44.0",
"history": "^5.3.0",
"jest": "^29.7.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"react": "^18.0.0",
"tslib": "^2.4.1",
"typescript": "^5.3.3"
"typescript": "^5.3.3",
"vitest": "^1.4.0"
},
"engines": {
"node": "^20.9.0"
Expand Down
2 changes: 2 additions & 0 deletions packages/app-insights/src/normalize-error.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { describe, expect, it } from 'vitest';

import { normalizeError } from './normalize-error.js';

describe('normalizeError()', () => {
Expand Down
2 changes: 1 addition & 1 deletion packages/app-insights/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "@silverhand/ts-config-react/tsconfig.base",
"compilerOptions": {
"outDir": "lib",
"types": ["node", "jest"],
"types": ["node"],
},
"include": [
"src"
Expand Down
8 changes: 0 additions & 8 deletions packages/app-insights/tsconfig.test.json

This file was deleted.

21 changes: 21 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
# Change Log

## 1.15.0

### Patch Changes

- Updated dependencies [5758f84f5]
- Updated dependencies [57d97a4df]
- Updated dependencies [abffb9f95]
- Updated dependencies [746483c49]
- Updated dependencies [2cbc591ff]
- Updated dependencies [57d97a4df]
- Updated dependencies [cc01acbd0]
- Updated dependencies [951865859]
- Updated dependencies [57d97a4df]
- Updated dependencies [2c10c2423]
- @logto/[email protected]
- @logto/[email protected]
- @logto/[email protected]
- @logto/[email protected]
- @logto/[email protected]
- @logto/[email protected]

## 1.14.0

### Patch Changes
Expand Down
13 changes: 0 additions & 13 deletions packages/cli/jest.config.js

This file was deleted.

31 changes: 14 additions & 17 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@logto/cli",
"version": "1.14.0",
"version": "1.15.0",
"description": "Logto CLI.",
"author": "Silverhand Inc. <[email protected]>",
"homepage": "https://github.com/logto-io/logto#readme",
Expand All @@ -25,15 +25,14 @@
"precommit": "lint-staged",
"prepare:package-json": "node -p \"'export const packageJson = ' + JSON.stringify(require('./package.json'), undefined, 2) + ';'\" > src/package-json.ts",
"build": "rm -rf lib && pnpm prepare:package-json && tsc -p tsconfig.build.json",
"build:test": "rm -rf lib/ && pnpm prepare:package-json && tsc -p tsconfig.test.json --sourcemap",
"build:test": "pnpm build",
"dev": "tsc -p tsconfig.build.json --watch --preserveWatchOutput --incremental",
"start": "node .",
"start:dev": "pnpm build && node .",
"lint": "eslint --ext .ts src",
"lint:report": "pnpm lint --format json --output-file report.json",
"test:only": "NODE_OPTIONS=--experimental-vm-modules jest",
"test": "pnpm build:test && pnpm test:only",
"test:ci": "pnpm test:only",
"test": "vitest src",
"test:ci": "pnpm run test --silent --coverage",
"prepack": "pnpm build"
},
"engines": {
Expand All @@ -43,14 +42,15 @@
"url": "https://github.com/logto-io/logto/issues"
},
"dependencies": {
"@logto/connector-kit": "workspace:^2.1.0",
"@logto/core-kit": "workspace:^2.3.0",
"@logto/connector-kit": "workspace:^3.0.0",
"@logto/core-kit": "workspace:^2.4.0",
"@logto/language-kit": "workspace:^1.1.0",
"@logto/phrases": "workspace:^1.9.0",
"@logto/phrases-experience": "workspace:^1.6.0",
"@logto/schemas": "workspace:1.14.0",
"@logto/phrases": "workspace:^1.10.0",
"@logto/phrases-experience": "workspace:^1.6.1",
"@logto/schemas": "workspace:1.15.0",
"@logto/shared": "workspace:^3.1.0",
"@silverhand/essentials": "^2.9.0",
"@silverhand/slonik": "31.0.0-beta.2",
"chalk": "^5.0.0",
"decamelize": "^6.0.0",
"dotenv": "^16.0.0",
Expand All @@ -65,9 +65,6 @@
"pg-protocol": "^1.6.0",
"roarr": "^7.11.0",
"semver": "^7.3.8",
"slonik": "^30.0.0",
"slonik-interceptor-preset": "^1.2.10",
"slonik-sql-tag-raw": "^1.1.4",
"tar": "^6.1.11",
"typescript": "^5.3.3",
"yargs": "^17.6.0",
Expand All @@ -76,19 +73,19 @@
"devDependencies": {
"@silverhand/eslint-config": "5.0.0",
"@silverhand/ts-config": "5.0.0",
"@withtyped/server": "^0.12.9",
"@types/inquirer": "^9.0.0",
"@types/jest": "^29.4.0",
"@types/node": "^20.9.5",
"@types/semver": "^7.3.12",
"@types/sinon": "^17.0.0",
"@types/tar": "^6.1.2",
"@types/yargs": "^17.0.13",
"@vitest/coverage-v8": "^1.4.0",
"@withtyped/server": "^0.13.3",
"eslint": "^8.44.0",
"jest": "^29.7.0",
"lint-staged": "^15.0.0",
"prettier": "^3.0.0",
"sinon": "^17.0.0"
"sinon": "^17.0.0",
"vitest": "^1.4.0"
},
"eslintConfig": {
"extends": "@silverhand",
Expand Down
26 changes: 13 additions & 13 deletions packages/cli/src/commands/database/alteration/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
import { createMockUtils } from '@logto/shared/esm';
import { createMockPool } from '@silverhand/slonik';
import Sinon from 'sinon';
import { createMockPool } from 'slonik';
import { vi, expect, afterAll, describe, it } from 'vitest';

import { chooseAlterationsByVersion } from './version.js';

const { jest } = import.meta;
const { mockEsmWithActual } = createMockUtils(jest);

const pool = createMockPool({
query: jest.fn(),
query: vi.fn(),
});

const files = Object.freeze([
Expand All @@ -17,16 +14,19 @@ const files = Object.freeze([
{ filename: '1.0.0-1663923772-c.js', path: '/alterations-js/1.0.0-1663923772-c.js' },
]);

await mockEsmWithActual('./utils.js', () => ({
vi.mock('./utils.js', async (importOriginal) => ({
// eslint-disable-next-line @typescript-eslint/ban-types
...(await importOriginal<object>()),
getAlterationFiles: async () => files,
}));

const { getCurrentDatabaseAlterationTimestamp } = await mockEsmWithActual(
'../../../queries/system.js',
() => ({
getCurrentDatabaseAlterationTimestamp: jest.fn(),
})
);
const getCurrentDatabaseAlterationTimestamp = vi.fn();

vi.doMock('../../../queries/system.js', async (importOriginal) => ({
// eslint-disable-next-line @typescript-eslint/ban-types
...(await importOriginal<object>()),
getCurrentDatabaseAlterationTimestamp,
}));

const { getAvailableAlterations } = await import('./index.js');

Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/database/alteration/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { AlterationScript } from '@logto/schemas/lib/types/alteration.js';
import { conditionalString } from '@silverhand/essentials';
import type { DatabasePool } from '@silverhand/slonik';
import chalk from 'chalk';
import type { DatabasePool } from 'slonik';
import type { CommandModule } from 'yargs';

import { createPoolFromConfig } from '../../../database.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/database/ogcio/applications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* eslint-disable @silverhand/fp/no-mutation */
import { ApplicationType } from '@logto/schemas';
import { generateStandardSecret } from '@logto/shared';
import { sql, type DatabaseTransactionConnection } from 'slonik';
import { sql, type DatabaseTransactionConnection } from '@silverhand/slonik';

import { type OgcioParams } from './index.js';
import { createItem } from './queries.js';
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/commands/database/ogcio/ogcio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* eslint-disable @silverhand/fp/no-let */

import { defaultTenantId } from '@logto/schemas';
import type { CommonQueryMethods, DatabaseTransactionConnection } from 'slonik';
import type { CommonQueryMethods, DatabaseTransactionConnection } from '@silverhand/slonik';

import { seedApplications } from './applications.js';
import { type OgcioParams } from './index.js';
Expand Down
Loading