-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor: workspace ui & form #373
Conversation
@@ -1,4 +1,5 @@ | |||
#![deny(unused_crate_dependencies)] | |||
pub mod api; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lets put this file behind a cfg
@@ -164,14 +159,15 @@ where | |||
<label class="label"> | |||
<span class="label-text">Workspace Status</span> | |||
</label> | |||
<BooleanToggle |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we remove BooleanToggle
altogether if its no longer meant to be used in any place ?
@@ -72,7 +67,7 @@ where | |||
|
|||
match result { | |||
Ok(_) => { | |||
handle_submit(); | |||
handle_submit.call(()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this change needed because the type is being changed from NF
to Callback
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes
use serde::{Deserialize, Serialize}; | ||
|
||
use crate::database::models::WorkspaceStatus; | ||
|
||
#[derive(Debug, Deserialize, Serialize)] | ||
pub struct CreateWorkspaceRequest { | ||
pub workspace_admin_email: String, | ||
pub workspace_name: String, | ||
pub workspace_status: Option<WorkspaceStatus>, | ||
} | ||
|
||
#[derive(Debug, Deserialize, Serialize)] | ||
pub struct UpdateWorkspaceRequest { | ||
pub workspace_admin_email: String, | ||
pub workspace_status: Option<WorkspaceStatus>, | ||
pub mandatory_dimensions: Option<Vec<String>>, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since this has been created, can we reuse it in context-aware-config
crate in this PR itself and remove the type repetition from that crate as well
2132cbe
to
a2cbafc
Compare
* refactor: workspace ui & form * refactor: moved api types behind feature flag
* refactor: workspace ui & form * refactor: moved api types behind feature flag
#368