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

Ms2/config editor layout overhaul #400

Merged
merged 21 commits into from
Jan 20, 2025
Merged

Conversation

canptura
Copy link
Contributor

Summary

This aims to improve the styling and readability of the config editor.

Details

  • capitalization of displayed keys removed

config-content

  • improved show/hide ID button
  • improved card styling for parameters and nested parameters
  • display of nested parameters now row-wise to save horizontal space

config-editor

  • improved panel styling
  • machine configs are now displayed as expanded by default
  • improved card styling for target and machine configs
  • delete button added to target configs

create-parameter-modal

  • displayname is no longer a required field
    • default value added
  • fields for the new entry are now visually separated and displayed in a card

configuration-helper

  • defaultparameter() now receive an additional parameter disName to set the display name
    • key now defines the new parameters key - not the display name anymore
  • defaultParentConfiguration() was added
    • Parameters: name: string, description: string, folderId: string - similar to defaultMachineConfiguration() & defaultTargetConfiguration()

action-buttons

  • copy & edit buttons are now also only shown while editable === true

Schemas & Types

  • key: string added to ParameterZod Schema
  • refactoring of machine-config-schema.ts
  • ParentConfigMetadata is now ParentConfig
     
  • Types that are not longer exported:
    • AbstractConfigServerInput
    • StoredAbstractConfigServerInput
    • StoredAbstractConfigMetadata
  • removed Schemas:
    • StoredAbstractConfigInputSchema
  • removed Types:
    • StoredAbstractConfigInput
    • AbstractConfigMetadata
    • StoredAbstractConfig
    • ParentConfigMetadata
    • StoredParentConfigMetadata
    • MachineConfigMetadata
    • StoredMachineConfigMetadata
    • TargetConfigMetadata
    • StoredTargetConfigMetadata

refactoring of names

  • MachineConfigModal is now ConfigModal
  • MachineConfigCreationButton is now ConfigCreationButton

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

@FelipeTrost FelipeTrost self-assigned this Nov 15, 2024

This comment has been minimized.

Copy link
Contributor

@FelipeTrost FelipeTrost left a comment

Choose a reason for hiding this comment

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

There are some minor issues that need addressing.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

This comment has been minimized.

Copy link

CLOUDRUN ACTIONS

✅ Successfully created Preview Deployment.

https://pr-400---ms-server-staging-c4f6qdpj7q-ew.a.run.app

@FelipeTrost FelipeTrost merged commit 878af1f into main Jan 20, 2025
15 checks passed
@FelipeTrost FelipeTrost deleted the ms2/config-editor-layout-overhaul branch January 20, 2025 12:01
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.

3 participants