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

Feature excel replace table name with template name #586

Merged
merged 23 commits into from
Dec 16, 2024

Conversation

Etschbeijer
Copy link
Collaborator

@Etschbeijer Etschbeijer commented Dec 5, 2024

Enables the takeover of the template that has been added to the table

@Etschbeijer
Copy link
Collaborator Author

Swate Alpha:
grafik

@Etschbeijer
Copy link
Collaborator Author

Swate Excel:
grafik

@Etschbeijer Etschbeijer self-assigned this Dec 9, 2024
@Freymaurer Freymaurer marked this pull request as ready for review December 16, 2024 13:08
@@ -121,6 +123,11 @@ let throttleAndDebounce(fn: 'a -> unit, timespan: int) =
timespan
id <- Some timeoutId

let charsToRemove = " -/\()[]{}"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Regex.Replace with "\s"

@@ -212,6 +215,13 @@ type Widget =
static member Templates (model: Model, dispatch, rmv: MouseEvent -> unit) =
let templates, setTemplates = React.useState(model.ProtocolState.Templates)
let config, setConfig = React.useState(TemplateFilterConfig.init)
let selectedColumnsLength =
if model.ProtocolState.TemplateSelected.IsSome then
Copy link
Collaborator

Choose a reason for hiding this comment

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

Option.map |> Option.defaltValue

|> Option.defaultValue ""

module TableImport =
Copy link
Collaborator

Choose a reason for hiding this comment

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

replace as simple bool array

@Freymaurer Freymaurer merged commit c29c546 into main Dec 16, 2024
2 checks passed
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.

2 participants