feat: ability to create a project #9

Merged
matous-volf merged 50 commits from feat/project-create into main 2024-08-18 21:36:06 +00:00
Showing only changes of commit 81da7e58d8 - Show all commits

View File

@ -1,5 +1,4 @@
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

Consider adding error handling for the create_project call.

The create_project function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users.

onsubmit: move |title| {
    spawn(async move {
        if let Err(e) = create_project(title).await {
            // Handle the error, e.g., log it or display a message to the user
        }
    });
}
**Consider adding error handling for the `create_project` call.** The `create_project` function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users. ```rust onsubmit: move |title| { spawn(async move { if let Err(e) = create_project(title).await { // Handle the error, e.g., log it or display a message to the user } }); } ``` <!-- This is an auto-generated reply by CodeRabbit -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

Consider adding error handling for the create_project call.

The create_project function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users.

onsubmit: move |title| {
    spawn(async move {
        if let Err(e) = create_project(title).await {
            // Handle the error, e.g., log it or display a message to the user
        }
    });
}
**Consider adding error handling for the `create_project` call.** The `create_project` function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users. ```rust onsubmit: move |title| { spawn(async move { if let Err(e) = create_project(title).await { // Handle the error, e.g., log it or display a message to the user } }); } ``` <!-- This is an auto-generated reply by CodeRabbit -->
matous-volf commented 2024-08-17 08:11:10 +00:00 (Migrated from github.com)
Review

This will be addressed in a later development stage. The project creation should probably result in a redirect.

This will be addressed in a later development stage. The project creation should probably result in a redirect.
matous-volf commented 2024-08-17 08:11:10 +00:00 (Migrated from github.com)
Review

This will be addressed in a later development stage. The project creation should probably result in a redirect.

This will be addressed in a later development stage. The project creation should probably result in a redirect.
coderabbitai[bot] commented 2024-08-17 08:11:26 +00:00 (Migrated from github.com)
Review

@matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out.

<!-- [monologue] [observations] The user plans to handle error management and possibly implement a redirect after project creation in a future development stage. [analysis] Since the user has acknowledged the suggestion and plans to address it later, there's no immediate action required. It's important to acknowledge their plan and offer assistance if needed. [actions] Respond to the user acknowledging their plan and offering further assistance if required. --> @matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out. <!-- This is an auto-generated reply by CodeRabbit -->
coderabbitai[bot] commented 2024-08-17 08:11:26 +00:00 (Migrated from github.com)
Review

@matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out.

<!-- [monologue] [observations] The user plans to handle error management and possibly implement a redirect after project creation in a future development stage. [analysis] Since the user has acknowledged the suggestion and plans to address it later, there's no immediate action required. It's important to acknowledge their plan and offer assistance if needed. [actions] Respond to the user acknowledging their plan and offering further assistance if required. --> @matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out. <!-- This is an auto-generated reply by CodeRabbit -->
use crate::components::project_form::ProjectForm; use crate::components::project_form::ProjectForm;
use crate::server::projects::{create_project, testing};
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

Consider adding error handling for the create_project call.

The create_project function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users.

onsubmit: move |title| {
    spawn(async move {
        if let Err(e) = create_project(title).await {
            // Handle the error, e.g., log it or display a message to the user
        }
    });
}
**Consider adding error handling for the `create_project` call.** The `create_project` function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users. ```rust onsubmit: move |title| { spawn(async move { if let Err(e) = create_project(title).await { // Handle the error, e.g., log it or display a message to the user } }); } ``` <!-- This is an auto-generated reply by CodeRabbit -->
matous-volf commented 2024-08-17 08:11:10 +00:00 (Migrated from github.com)
Review

This will be addressed in a later development stage. The project creation should probably result in a redirect.

This will be addressed in a later development stage. The project creation should probably result in a redirect.
coderabbitai[bot] commented 2024-08-17 08:11:26 +00:00 (Migrated from github.com)
Review

@matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out.

<!-- [monologue] [observations] The user plans to handle error management and possibly implement a redirect after project creation in a future development stage. [analysis] Since the user has acknowledged the suggestion and plans to address it later, there's no immediate action required. It's important to acknowledge their plan and offer assistance if needed. [actions] Respond to the user acknowledging their plan and offering further assistance if required. --> @matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out. <!-- This is an auto-generated reply by CodeRabbit -->
use dioxus::core_macro::rsx; use dioxus::core_macro::rsx;
use dioxus::dioxus_core::Element; use dioxus::dioxus_core::Element;
use dioxus::prelude::*; use dioxus::prelude::*;

coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

Consider adding error handling for the create_project call.

The create_project function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users.

onsubmit: move |title| {
    spawn(async move {
        if let Err(e) = create_project(title).await {
            // Handle the error, e.g., log it or display a message to the user
        }
    });
}
**Consider adding error handling for the `create_project` call.** The `create_project` function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users. ```rust onsubmit: move |title| { spawn(async move { if let Err(e) = create_project(title).await { // Handle the error, e.g., log it or display a message to the user } }); } ``` <!-- This is an auto-generated reply by CodeRabbit -->
coderabbitai[bot] commented 2024-08-16 22:39:19 +00:00 (Migrated from github.com)
Review

Consider adding error handling for the create_project call.

The create_project function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users.

onsubmit: move |title| {
    spawn(async move {
        if let Err(e) = create_project(title).await {
            // Handle the error, e.g., log it or display a message to the user
        }
    });
}
**Consider adding error handling for the `create_project` call.** The `create_project` function is called asynchronously, but any potential errors are currently ignored. Consider handling errors to improve robustness and provide feedback to users. ```rust onsubmit: move |title| { spawn(async move { if let Err(e) = create_project(title).await { // Handle the error, e.g., log it or display a message to the user } }); } ``` <!-- This is an auto-generated reply by CodeRabbit -->
matous-volf commented 2024-08-17 08:11:10 +00:00 (Migrated from github.com)
Review

This will be addressed in a later development stage. The project creation should probably result in a redirect.

This will be addressed in a later development stage. The project creation should probably result in a redirect.
matous-volf commented 2024-08-17 08:11:10 +00:00 (Migrated from github.com)
Review

This will be addressed in a later development stage. The project creation should probably result in a redirect.

This will be addressed in a later development stage. The project creation should probably result in a redirect.
coderabbitai[bot] commented 2024-08-17 08:11:26 +00:00 (Migrated from github.com)
Review

@matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out.

<!-- [monologue] [observations] The user plans to handle error management and possibly implement a redirect after project creation in a future development stage. [analysis] Since the user has acknowledged the suggestion and plans to address it later, there's no immediate action required. It's important to acknowledge their plan and offer assistance if needed. [actions] Respond to the user acknowledging their plan and offering further assistance if required. --> @matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out. <!-- This is an auto-generated reply by CodeRabbit -->
coderabbitai[bot] commented 2024-08-17 08:11:26 +00:00 (Migrated from github.com)
Review

@matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out.

<!-- [monologue] [observations] The user plans to handle error management and possibly implement a redirect after project creation in a future development stage. [analysis] Since the user has acknowledged the suggestion and plans to address it later, there's no immediate action required. It's important to acknowledge their plan and offer assistance if needed. [actions] Respond to the user acknowledging their plan and offering further assistance if required. --> @matous-volf, that sounds like a good plan. If you need any assistance with implementing error handling or the redirect in the future, feel free to reach out. <!-- This is an auto-generated reply by CodeRabbit -->