Skip to content

Dev#114

Merged
felix-schultz merged 94 commits intomainfrom
dev
Jul 18, 2025
Merged

Dev#114
felix-schultz merged 94 commits intomainfrom
dev

Conversation

@felix-schultz
Copy link
Copy Markdown
Member

This pull request introduces several significant updates, including a new AWS Lambda function (file-tracker), enhancements to project configuration and dependencies, and the addition of coding standards documentation. Below is a breakdown of the most important changes:

New Feature: file-tracker Lambda Function

  • Added a new AWS Lambda function in apps/backend/aws/file-tracker to handle S3 and SQS events, update DynamoDB and PostgreSQL, and manage object deletions in S3. Includes main logic in src/event_handler.rs and src/main.rs. [1] [2]
  • Configured the new Lambda function with a Cargo.toml file, specifying dependencies like aws-sdk-dynamodb, aws-sdk-s3, and lambda_runtime.
  • Added a README.md for file-tracker with instructions for building, testing, and deploying the Lambda function.
  • Updated the workspace to include file-tracker in the Cargo.toml members section.

Dependency Updates

  • Upgraded lambda_http from 0.14.0 to 0.15.1 and sentry dependencies from 0.38.1 to 0.40.0. [1] [2]
  • Added new dependencies like aws-sdk-dynamodb, aws-sdk-s3, and tokio to support AWS Lambda functionality.

Project Configuration

  • Added a .cargo/fast-compile.toml file to optimize Rust builds with native CPU optimizations and linker configurations for specific targets.
  • Updated .taurignore to exclude packages/api/ and apps/backend/.

Documentation

  • Added coding standards documentation for TypeScript, React, and general coding practices in .github/instructions/. These include guidelines for functional programming, React hooks, immutability, and DRY principles. [1] [2] [3]

Miscellaneous

  • Updated README.md to include a call-to-action for starring the repository.
  • Disabled incremental compilation for the apps/backend/aws/api project to optimize builds.

- Bump sentry and sentry-tracing versions to 0.40.0 in Cargo.toml files.
- Enable PHProvider in the RootLayout component of the desktop app.
- Refactor next.config.mjs to use withSentryConfig for better Sentry integration.
- Modify flow-like dependency in src-tauri/Cargo.toml to include Tauri features.
- Add new icon files for the desktop application.
- Update sidecar function in execute.rs to accept an optional with_bash parameter for improved command execution.
- Enhance sign function in FlowLikeStore to support Tauri environment detection and URL encoding.
- Add urlencoding dependency in storage package for URL encoding functionality.
- Introduced a new module `file-tracker` in the backend for handling S3 and SQS events.
- Implemented event handler to process S3 events triggered by SQS messages.
- Added necessary dependencies in `Cargo.toml` for AWS SDK and Lambda runtime.
- Created README.md with build, test, and deployment instructions for the new module.
- Updated media-transformer to use the latest version of AWS Lambda events and runtime.
- Enhanced error handling and logging in the event processing logic.
- Modified user and app models in the database schema to include total size tracking.
- Refactored cache directory handling to support user-specific contexts.
…space in addition to percent-encoded characters
…ger logging

- Added an optional `id` parameter to the `create_app` function for better app identification.
- Improved logging in the `init_downloads` function to indicate the number of items resumed in the download manager.
- Updated Sentry tracing initialization to only occur in non-debug builds.
- Added new dependencies `dexie` and `dexie-react-hooks` to the project.
- Modified the `upsert_app` function to include membership creation upon app updates.
- Adjusted connection pool settings in the state management to improve performance.
- Refactored the `AppCard` component for better UI/UX, including improved layout and visibility indicators.
- Introduced new hooks for data injection and invalidation in the React Query client.
- Updated backend state interface to include an `online` status for apps.
- Set incremental compilation to false in backend AWS and local API configurations for optimized builds.
- Adjusted development profile settings in local and desktop API Cargo.toml files for improved debugging and performance.
- Cleaned up dependencies in the API and catalog Cargo.toml files by removing unused workspace references.
- Removed unnecessary dependencies in core Cargo.toml and updated relevant configurations.
- Fixed formatting issues in state.rs by removing trailing whitespace.
refactor: change return type of create_app function to App

fix: update bun.lock to use compatible versions for plugin-log and bun-types

refactor: change app route nesting from /app to /apps for consistency

feat: add new routes for app metadata management and roles

fix: update board routes to use /apps/{app_id}/board path

feat: implement get_app and get_meta routes for fetching application details

feat: add role management routes including get_roles and upsert_role

chore: add team management routes for user invitations and role assignments

fix: update template routes to use /apps/{app_id}/template path

refactor: update upsert_app route to use /apps/{app_id} for consistency

feat: add cache invalidation method to state management

fix: enhance useInvoke hook to bind backend context for function calls
…tting

- Changed the "Edit profile" dropdown item to a link that navigates to the profile settings page.
- Cleaned up constructor formatting in OIDCTokenProvider and TauriBackend classes.
- Improved conditional rendering in DesktopAuthProvider for loading state.
- Enhanced code readability by adding missing semicolons and consistent formatting in various components.
- Introduced ThemeLoader component to manage theme loading based on user profile.
- Removed unused tauriUseAuth function.
- Updated apps-db to use type imports for better clarity.
- Cleaned up useApi hook by removing unnecessary line breaks.
- Enhanced dev-with-config script for better readability.
- Updated get_current_profile function to set execution settings from the profile.
- Adjusted GPU layer setting in LocalModel based on execution settings.
- Modified FlowBoard to use the correct profile fetching method and updated connection mode handling.
- Refactored AppCard component for improved readability and structure.
- Updated Card component to use a shadow-md class for better visual consistency.
- Added new CSS variables for theme management in globals.css.
- Improved use-invoke hook by ensuring consistent backend usage.
- Added theme management functionality with a new theme loader and JSON theme definitions.
- Updated tailwind configuration to include new font and shadow utilities.
- Cleaned up types by removing unused interfaces and adding a new IThemes enum for theme management.
… and enhance remove_user function with permission checks
- Implemented `GET /apps/nodes` to retrieve nodes associated with the application.
- Added `GET /apps/search` for searching applications with various filters and sorting options.
- Created `PUT /apps/{app_id}` for upserting application details, including metadata and roles.
- Introduced `GET /apps/{app_id}/team` to fetch team members and their roles.
- Added functionality for inviting users to the team with `PUT /apps/{app_id}/team/invite`.
- Implemented join request management with `POST /apps/{app_id}/team/queue/{request_id}` for accepting and declining requests.
- Updated error handling to use `InternalError` for specific cases instead of `ApiError::App`.
- Refactored role management to prevent unauthorized role assignments.
- Enhanced caching mechanisms for search results and node retrieval.
- Improved logging for better traceability of actions and errors.
- Introduced a new `storage` module in `utils.rs` to handle storage operations.
- Implemented `construct_storage` function to create storage paths based on app ID and prefix.
- Updated JSON schemas to include new properties such as `execution_mode` in app schema and `multimodal` in preferences schema.
- Added `UserTier` definition in hub schema for user tier management.
- Enhanced LLM response schema to include `annotations` and `audio` fields.
- Created a new `storage-item.json` schema to define storage item structure.
- Updated storage file handling in the UI components to support file uploads and sharing.
- Improved upload progress tracking in the storage system UI.
- Refactored backend state to include storage-related operations for better management of storage items.
felix-schultz and others added 28 commits July 8, 2025 19:23
- Removed unnecessary imports and cleaned up entity usage in various route files.
- Replaced `.iter().next()` with `.first()` for better readability and performance in multiple instances.
- Simplified metadata retrieval logic in `get_meta` and `search_bits` routes.
- Consolidated error handling and improved clarity in user invitation and team management routes.
- Enhanced code consistency by standardizing the use of `Option` methods across different modules.
- Streamlined the `make_data_url` and `data_url_to_bytes` functions for better performance and readability.
- Updated event handling in the core flow to reduce redundancy and improve maintainability.
- Implement InviteManagement component for sending direct invites and managing invite links.
- Create TeamJoinManagement component to handle join requests and their approval/rejection.
- Develop TeamManagementPage to integrate team management functionalities including members, invites, and join requests.
- Add UserManagement component for managing team members and their roles.
…ports

- Introduced a new TextEditor component that supports Markdown and Plate.js for rich text editing.
- Updated the UI component exports to include the new TextEditor and restructured existing exports for clarity.
- Enhanced the setQueryParams function to handle undefined values gracefully.
- Added height to the scrollbar in globals.css for better UI consistency.
- Updated package.json to include new dependencies for the TextEditor and related functionalities.
- Updated CommentNode component to include relative positioning for better layout control.
- Introduced useProcessedAttachments hook to streamline attachment processing logic in chat interface.
- Refactored MessageComponent to utilize the new useProcessedAttachments hook for improved attachment handling.
- Added FullscreenEditDialog and FeedbackDialog components for editing messages and submitting feedback.
- Improved backend state management by ensuring proper type imports and interface definitions for AI state.
- Implemented CreationProgress component to display the app creation steps.
- Added ModelCard component for displaying individual model details.
- Created ModelModal for selecting models with search and filter options.
- Introduced ModelSection to manage model selection and skipping functionality.
- Developed AppTemplateFolder and TemplateCard for template selection UI.
- Added TemplateModal for browsing and selecting templates with search and filter capabilities.
- Implemented TemplateSection to manage template selection and skipping.
- Created useTemplateFolders hook to organize templates by application.
- Updated app-state and board-state to support optional template parameter.
- Implemented `push_template_data` function in the template module to allow pushing template data with optional versioning.
- Updated the Tauri command registration to include the new `push_template_data` function.
- Enhanced error handling in the API error module by renaming `Internal` to `InternalError` and adding a `BadRequest` variant.
- Introduced new role permissions for reading and writing courses.
- Updated API routes to reflect changes in template handling, including renaming routes from `/template` to `/templates`.
- Refactored various API endpoints to utilize the new error handling structure and ensure consistency in error responses.
- Added a new user route for fetching templates associated with the user.
- Enhanced the core application logic to support pushing template data and overwriting template versions.
- Updated UI hooks to improve data fetching and handling.
- upgraded @sentry/nextjs from ^8.48.0 to ^9.39.0
- upgraded i18next from ^24.2.1 to ^25.3.2
- upgraded next from ^15.3.2 to ^15.4.1
- upgraded next-themes from ^0.4.4 to ^0.4.6
chore: update dependencies in package.json
…screens

feat: redesign tutorial dialog with step-based onboarding experience
- Implemented TutorialDialog component with multiple steps (Welcome, Docs, Discord, GitHub) to guide users through the application.
- Added animated background and floating icons for visual appeal.
- Integrated local storage to track tutorial completion status.
- Updated index export to include home components.

refactor: Enhance BitCard component with dropdown menu and improved state management

- Refactored BitCard to use useCallback for download and toggle functions.
- Added dropdown menu for download and profile actions.
- Improved layout and styling for better user experience.
- Updated bit type handling and repository link opening.

style: Add scrollbar-hide utility class to global styles

- Introduced .scrollbar-hide class to hide scrollbars for a cleaner UI.

fix: Extend app state interface for enhanced app search functionality

- Updated IAppState interface to include searchApps method with additional parameters for improved app searching capabilities.
…e-swimlanes

Feature/109 implement landing page swimlanes
@deepsource-io
Copy link
Copy Markdown

deepsource-io bot commented Jul 18, 2025

Here's the code health analysis summary for commits 35e4685..26eda43. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Docker LogoDocker✅ SuccessView Check ↗
DeepSource Rust LogoRust❌ Failure
❗ 249 occurences introduced
🎯 93 occurences resolved
View Check ↗
DeepSource JavaScript LogoJavaScript❌ Failure
❗ 1918 occurences introduced
🎯 434 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@felix-schultz felix-schultz merged commit 4760a3e into main Jul 18, 2025
4 of 12 checks passed
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