Skip to content

Feature/144 brainstorm mode#184

Merged
felix-schultz merged 5 commits intodevfrom
feature/144-brainstorm-mode
Aug 16, 2025
Merged

Feature/144 brainstorm mode#184
felix-schultz merged 5 commits intodevfrom
feature/144-brainstorm-mode

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

This pull request refactors conditional logic throughout the codebase to use Rust's new if let ... && ... syntax, simplifying nested conditionals and improving readability. The changes touch multiple files across backend, desktop, API, and catalog modules, and also include some minor code cleanups and documentation updates.

Refactoring conditional logic for improved readability

  • Replaced nested if let and if statements with single if let ... && ... expressions in S3 bucket setup logic (apps/backend/aws/api/src/main.rs, apps/backend/local/api/src/main.rs). [1] [2]
  • Updated event emission and error handling logic in several desktop functions to use the new conditional syntax, reducing nesting (apps/desktop/src-tauri/src/functions/ai/invoke.rs, apps/desktop/src-tauri/src/functions/bit.rs, apps/desktop/src-tauri/src/functions/flow/run.rs). [1] [2] [3]
  • Refactored middleware authentication header parsing in the API to use the new syntax for cleaner code (packages/api/src/middleware/jwt.rs). [1] [2] [3] [4]
  • Simplified logic in user info and update routes, template loading, and app import functions using the new syntax (packages/api/src/routes/user/info.rs, packages/api/src/routes/user/upsert_info.rs, apps/desktop/src-tauri/src/functions/app/sharing.rs, apps/desktop/src-tauri/src/functions/app.rs, apps/desktop/src-tauri/src/functions/flow/template.rs). [1] [2] [3] [4] [5] [6] [7] [8]
  • Applied similar refactoring in catalog logic, including ONNX input shape determination and Docling node cache access (packages/catalog/src/ai/ml/onnx/load.rs, packages/catalog/src/ai/processing/docling.rs, packages/catalog/src/ai/generative/llm/history/set_response_format.rs). [1] [2] [3]

Minor code cleanups and documentation improvements

  • Cleaned up imports and formatting in apps/desktop/src-tauri/src/functions/file.rs. [1] [2]
  • Updated blog post documentation to clarify new features and models (apps/website/src/content/blog/2025-08-10-alpha-0-0-2.mdx).
  • Removed unused import in packages/catalog/src/control/par_execution.rs.
  • Improved template language matching logic in API routes (packages/api/src/routes/app/template/get_templates.rs).
  • Streamlined OIDC flow event emission in desktop app initialization (apps/desktop/src-tauri/src/lib.rs). [1] [2]

felix-schultz and others added 5 commits August 16, 2025 12:15
feat: add LayerInnerNode component with context menu and editing capa…
- Integrated LayerEditMenu into LayerNode for improved pin management.
- Removed unused functions and types from LayerNode to streamline code.
- Updated Variable component to use ValueTypeIcon instead of VariableIcon for better clarity.
…lity and performance

- Removed unused imports and cleaned up code in layer-inner-node.tsx and layer-node.tsx.
- Simplified the rendering logic in LayerInnerNode by removing the ContextMenu and directly rendering the node structure.
- Enhanced the handling of pin types and connections in flow-board-utils.tsx.
- Updated viewport-db.ts and index.ts to ensure consistent export structure.
- Improved the parsing logic in parseBoard function to streamline node and edge creation.
@felix-schultz felix-schultz merged commit 3ab109b into dev Aug 16, 2025
2 of 3 checks passed
@felix-schultz felix-schultz deleted the feature/144-brainstorm-mode branch August 16, 2025 16:59
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.

1 participant