Skip to content

Conversation

@effie-ms
Copy link
Contributor

@effie-ms effie-ms commented Jan 21, 2026

Which Jira task is linked to this PR?

https://lifi.atlassian.net/browse/LF-17289

Why was it implemented this way?

This PR aligns the widget with new SDK status manager: lifinance/sdk#340

Process array-based structure is now replaced with a simpler Execution + Transaction model:

  • Replaced step.execution.process[] array with step.execution object + step.execution.transactions[]
  • Only current status and substatus are stored - directly on execution instead of individual process items
  • Events such as RouteExecutionUpdate now pass execution instead of process.

Visual showcase (Screenshots or Videos)

Visually, this part of the execution page is affected:
image
Now, instead of the list of processes, we show successfully completed step.execution.transactions[] (previously processes with status "DONE") and current status and message recorded instep.execution.

Checklist before requesting a review

  • I have performed a self-review and testing of my code.
  • This pull request is focused and addresses a single problem.

@effie-ms effie-ms self-assigned this Jan 21, 2026
@effie-ms effie-ms added the v4 label Jan 21, 2026
@effie-ms effie-ms force-pushed the status-manager-v4-old-ui branch from 9bdacb5 to 0a57dd2 Compare January 21, 2026 15:29
async getWalletAdapter() {
return currentWallet?.adapter as SignerWalletAdapter
async getWallet() {
return currentWallet?.adapter as SignerWalletAdapter as any
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Needed for latest SDK - hotfix, possibly requires more updates

sdkConfig: {
apiUrl: 'https://li.quest/v1',
preloadChains: false,
preloadChains: true,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Locally linked SDK does not preserve SDK client storage chains -> revert before merging.

chainId,
skipReady,
}: {
client?: Client
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hotfix for latest SDK

})

const lastActiveStep = route?.steps.findLast((step) => step.execution)
const lastActiveProcess = lastActiveStep?.execution?.process.at(-1)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Execution now stores the last active process type and status

import { useExecutionMessage } from '../../hooks/useExecutionMessage.js'
import { CircularProgress } from './CircularProgress.js'

export const StepExecution: React.FC<{
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Similar to StepTransaction (or previously StepProcess) , but without links.

step.execution.status is marked as "DONE" only on the very last step (when all the processes would be "DONE"). We don't want to show it in this case since the last transaction in step.execution.transactions would correspond to it.

"zod": ">=4.1.11"
"zod": ">=4.1.11",
"@reown/appkit": ">=1.8.15",
"@lifi/sdk": "link:../../Library/pnpm/global/5/node_modules/@lifi/sdk",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: Remove before merging - needed for local linking.

return { title }
}

export function getTransactionMessage(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same as getExecutionMessage(), shows transactions of "DONE" processes.

@effie-ms
Copy link
Contributor Author

Closing since different changes are to be applied to SDK.

@effie-ms effie-ms closed this Jan 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants