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

[Draft] Dashboard: Variable Referencing in Lattice Configuration #829

Open
wants to merge 12 commits into
base: development
Choose a base branch
from

Conversation

proy30
Copy link
Member

@proy30 proy30 commented Feb 7, 2025

Allows dashboard users to define variable names, assign numeric values, and reference these variables in lattice configurations.

Variable Naming Requirements:

  • The variable name must begin with an alphabetical character

Variable Value Requirements:

  • The value must be numeric.

To Do:

  • Implement core functionality
  • Resolve UI reactivity issues
    • The current nested structure severely affects reactivity.

@proy30 proy30 assigned proy30 and unassigned proy30 Feb 7, 2025
@proy30 proy30 added the component: dashboard our browser based trame dashboard label Feb 7, 2025
return duplicates

@staticmethod
def validate_variable_name(new_name, index) -> None:

Check notice

Code scanning / CodeQL

Explicit returns mixed with implicit (fall through) returns Note

Mixing implicit and explicit returns may indicate an error as implicit returns always return None.
duplicate_indexes = LatticeVariableHandler.get_duplicate_indexes(
new_name, index
)
send_error = set_var_error_message("error")

Check warning

Code scanning / CodeQL

Use of the return value of a procedure Warning

The result of
LatticeVariableHandler.validate_variable_name.set_var_error_message
is used even though it is always None.
send_error = set_var_error_message("error")

if not alpha:
send_error

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.
state.dirty("variables")
return True
elif duplicate_indexes:
for index in duplicate_indexes:

Check failure

Code scanning / CodeQL

Suspicious unused loop iteration variable Error

For loop variable 'index' is not used in the loop body.
return True
elif duplicate_indexes:
for index in duplicate_indexes:
send_error

Check notice

Code scanning / CodeQL

Statement has no effect Note

This statement has no effect.
@proy30
Copy link
Member Author

proy30 commented Feb 7, 2025

chrome_aIPMvPf8Za

@proy30 proy30 changed the title [WIP] Dashboard: Variable Referencing in Lattice Configuration [Draft] Dashboard: Variable Referencing in Lattice Configuration Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: dashboard our browser based trame dashboard
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant