Skip to content

Clean up ENG-1405 follow-ups#150

Merged
Aaron1924 merged 1 commit into
devfrom
chore/clean-up-1405
May 14, 2026
Merged

Clean up ENG-1405 follow-ups#150
Aaron1924 merged 1 commit into
devfrom
chore/clean-up-1405

Conversation

@ducnmm

@ducnmm ducnmm commented May 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Restore round-robin wallet key selection for upload retries and make Enoki direct-sign fallback opt-in.
  • Improve responsive landing/dashboard navigation and CTA layouts for mobile and optional single-button states.
  • Document the Enoki fallback behavior and server key pool routing.

Tests

  • cargo test
  • npm test (services/server/scripts)
  • npm run build (apps/app)

@Aaron1924 Aaron1924 requested review from Aaron1924 and Copilot May 14, 2026 07:29
@Aaron1924 Aaron1924 merged commit 0c1f0d9 into dev May 14, 2026
11 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

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 cleans up follow-ups around server wallet routing, Enoki fallback behavior, and responsive UI layout for landing/dashboard pages.

Changes:

  • Restores round-robin wallet key selection and updates related server comments/tests/logging.
  • Makes Enoki direct-sign fallback default to disabled and documents the environment variable.
  • Refactors landing/dashboard CTA and navigation styling for responsive layouts.

Reviewed changes

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

Show a summary per file
File Description
services/server/src/types.rs Adds atomic cursor-based round-robin behavior to KeyPool and updates tests.
services/server/src/routes/mod.rs Updates wallet job enqueue documentation for execution-time wallet selection.
services/server/src/main.rs Updates startup logging/comments for round-robin wallet pool behavior.
services/server/src/jobs.rs Reassigns upload jobs to a fresh wallet at execution and updates error classification/docs.
services/server/scripts/sidecar-server.ts Defaults Enoki direct-sign fallback to disabled and gates missing-key fallback.
services/server/.env.example Documents ENOKI_FALLBACK_TO_DIRECT_SIGN=false.
docs/reference/environment-variables.md Adds Enoki fallback documentation and wallet pool routing notes.
apps/app/src/pages/LandingPage.tsx Adds login-specific classes for landing page login dropdown styling.
apps/app/src/pages/Dashboard.tsx Moves dashboard CTA/header action layout from inline styles to CSS classes.
apps/app/src/index.css Adds responsive landing/dashboard navigation, CTA, and action layout styles.

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

const ENOKI_FALLBACK_TO_DIRECT_SIGN = (() => {
const raw = (process.env.ENOKI_FALLBACK_TO_DIRECT_SIGN || "true").trim().toLowerCase();
const raw = (process.env.ENOKI_FALLBACK_TO_DIRECT_SIGN || "false").trim().toLowerCase();
return raw !== "0" && raw !== "false" && raw !== "no";
Comment on lines 282 to +285
tracing::warn!(
target: "wallet_job.permanent",
"permanent failure for wallet_index={} (will mark Dead): {}",
wallet_index,
enqueued_wallet_index,
Comment on lines +232 to +238
let wallet_index = state.key_pool.next_index().ok_or_else(|| {
WalletJobError::Permanent(
"No Sui keys configured (set SERVER_SUI_PRIVATE_KEYS or SERVER_SUI_PRIVATE_KEY)"
.into(),
)
.into_apalis_error()
})?;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants