Repository navigation
fix(client): align api_create_user IPC argument casing between frontend and tauri backend - #127
Open
markusbrand wants to merge 1 commit into
Open
markusbrand wants to merge 1 commit into
markusbrand wants to merge 1 commit into
Conversation
…nd and tauri backend - Pass camelCase parameters (firstName, lastName) in handleCreateUser within Settings.tsx to satisfy Tauri's IPC deserializer. - Preserve snake_case parameters for backwards and forward compatibility. - Add OpenSpec change artifacts tracking proposal, delta specs, design, and verified tasks.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes a reproducible IPC argument deserialization bug in the desktop client (
client-tauri) where creating a user from the Settings UI consistently fails with:command api_create_user missing required key firstNameRoot Cause
In
client-tauri/src/Settings.tsx,handleCreateUserinvokes Tauri commandapi_create_userusing snake_case arguments:However, Tauri v2's
#[tauri::command]procedural macro converts Rust parameter names (email,first_name,last_name) tolowerCamelCase(email,firstName,lastName) for IPC argument deserialization. BecauseSettings.tsxsuppliedfirst_nameandlast_name, Tauri rejected the call at runtime before invoking the backend.Changes
client-tauri/src/Settings.tsxto includefirstName: newUserFirstandlastName: newUserLast, while also retainingfirst_nameandlast_namefor defense-in-depth compatibility.openspec/changes/fix-client-create-user-ipc-arguments/tracking proposal, delta specs, design, and verified tasks.Verification
(cd client-tauri && npm run build): TypeScript compilation and Vite packaging passed cleanly.(cd client-tauri/src-tauri && cargo test): All 21 unit tests passed.