Skip to content
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

Merged
merged 2 commits into from
Jan 23, 2025
Merged

refactor: workspace ui & form #373

merged 2 commits into from
Jan 23, 2025

Conversation

ShubhranshuSanjeev
Copy link
Collaborator

@ShubhranshuSanjeev ShubhranshuSanjeev requested a review from a team as a code owner January 21, 2025 13:16
@ShubhranshuSanjeev ShubhranshuSanjeev linked an issue Jan 21, 2025 that may be closed by this pull request
@@ -1,4 +1,5 @@
#![deny(unused_crate_dependencies)]
pub mod api;
Copy link
Collaborator

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
Copy link
Collaborator

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(());
Copy link
Collaborator

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 ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes

Comment on lines +1 to +17
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>>,
}
Copy link
Collaborator

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

@ayushjain17 ayushjain17 merged commit 7eb8ee5 into saas Jan 23, 2025
4 checks passed
@ayushjain17 ayushjain17 deleted the refactor/workspace-ui branch January 23, 2025 09:59
Datron pushed a commit that referenced this pull request Jan 23, 2025
* refactor: workspace ui & form

* refactor: moved api types behind  feature flag
Datron pushed a commit that referenced this pull request Jan 23, 2025
* refactor: workspace ui & form

* refactor: moved api types behind  feature flag
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.

Workspace form refactor
3 participants