feat: enhance filament management and UI improvements
- Update SpoolPresetRepository to include user_id in the update query. - Expand .gitignore to include various environment and temporary files. - Revise agent documentation for better clarity and formatting. - Implement pull-to-refresh functionality in the inventory list. - Integrate API calls for deleting and updating filaments, ensuring state synchronization. - Add custom color picker for filament color selection with hex validation. - Update AndroidManifest and Gradle files for improved configuration and permissions. - Refactor MainActivity and MainApplication for better splash screen handling. - Update styles and colors for a cohesive UI experience. - Replace splash screen logos and icons with new assets.
This commit is contained in:
@@ -69,12 +69,13 @@ impl SpoolPresetRepository for PostgresSpoolPresetRepository {
|
||||
let row = sqlx::query_as::<_, SpoolPresetRow>(
|
||||
r#"UPDATE spool_presets
|
||||
SET name = $2, spool_weight_g = $3
|
||||
WHERE id = $1 AND is_system = false
|
||||
WHERE id = $1 AND is_system = false AND user_id = $4
|
||||
RETURNING id, name, spool_weight_g, is_system, user_id, created_at"#,
|
||||
)
|
||||
.bind(preset.id)
|
||||
.bind(&preset.name)
|
||||
.bind(preset.spool_weight_g)
|
||||
.bind(preset.user_id)
|
||||
.fetch_one(self.db.as_ref())
|
||||
.await?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user