Skip to content

feat: setup session list with tests#261

Merged
cpb8010 merged 18 commits intomainfrom
session-list
Jan 22, 2026
Merged

feat: setup session list with tests#261
cpb8010 merged 18 commits intomainfrom
session-list

Conversation

@cpb8010
Copy link
Contributor

@cpb8010 cpb8010 commented Jan 15, 2026

Description

connecting session list with rust sdk

Additional context

has some e2e test coverage

@cpb8010 cpb8010 self-assigned this Jan 15, 2026
@github-actions
Copy link

github-actions bot commented Jan 15, 2026

Visit the preview URL for this PR (updated for commit 90596ef):

https://zksync-auth-server-staging--pr261-session-list-k1dfkdrv.web.app

(expires Wed, 28 Jan 2026 17:20:30 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 509a9c9ea42583076f531c53cf2979c544d5d0b7

have partially passing tests
they run and it's hard to tell if the tests are broken or if the list
table is broken in actually getting sessions
still filtering
just required changing how it looks for sessions
also cleanup
@cpb8010 cpb8010 marked this pull request as ready for review January 16, 2026 18:16
Copilot AI review requested due to automatic review settings January 16, 2026 18:16
@cpb8010 cpb8010 added the enhancement New feature or request label Jan 16, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR connects the session list functionality with the Rust SDK by implementing active session retrieval and displaying them in the auth-server UI.

Changes:

  • Added get_active_sessions_wasm function in Rust to query active sessions from blockchain events
  • Implemented listActiveSessions action in TypeScript SDK to call the WASM function
  • Updated auth-server sessions page to use the new API and display session data with proper type conversions
  • Added E2E tests to verify sessions page loads correctly

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 8 comments.

Show a summary per file
File Description
packages/sdk-platforms/web/src/bundler.ts Exports the new get_active_sessions_wasm function from WASM module
packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-erc4337-ffi-web/src/lib.rs Re-exports the session list function for WASM bindings
packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-erc4337-ffi-web/src/account/modular_smart_account/session/list.rs Implements WASM wrapper for querying active sessions from blockchain
packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-erc4337-ffi-web/src/account/modular_smart_account/session.rs Declares the session list module
packages/sdk-platforms/rust/zksync-sso-erc4337/crates/zksync-sso-erc4337-ffi-web/src/account/modular_smart_account.rs Adds session module to modular smart account structure
packages/sdk-4337/src/client/actions/sessions.ts Implements listActiveSessions function with types and documentation
packages/sdk-4337/src/client/actions/index.ts Exports the new session list types and function
packages/auth-server/tests/sessions.spec.ts Adds E2E test to verify sessions page UI loads correctly
packages/auth-server/project.json Adds e2e:session task to run session tests
packages/auth-server/pages/dashboard/sessions.vue Refactors to use new API, adds WASM data conversion logic, and updates error handling
packages/auth-server/composables/useAsync.ts Improves error handling with better error messages and logging
packages/auth-server/components/session/row/Row.vue Updates to work with new session data structure (sessionHash and sessionSpec)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

cpb8010 and others added 6 commits January 17, 2026 17:09
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
ran non-nightly before, so this is the diff
crossing fingers on this one
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 14 out of 14 changed files in this pull request and generated 10 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

cpb8010 and others added 3 commits January 18, 2026 22:29
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 17 out of 17 changed files in this pull request and generated 4 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@jackpooleyml jackpooleyml left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a few tiny nits

@cpb8010 cpb8010 requested a review from jackpooleyml January 21, 2026 08:53
I can't even test this locally, so this is guess and check
debugging via ci is my favorite
@cpb8010 cpb8010 enabled auto-merge (squash) January 22, 2026 07:45
@cpb8010 cpb8010 merged commit ae7ad11 into main Jan 22, 2026
17 of 19 checks passed
@cpb8010 cpb8010 deleted the session-list branch January 22, 2026 11:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants