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

Display rule template after submitting #107

Closed
cdupont opened this issue Oct 26, 2015 · 3 comments
Closed

Display rule template after submitting #107

cdupont opened this issue Oct 26, 2015 · 3 comments

Comments

@cdupont
Copy link
Collaborator

cdupont commented Oct 26, 2015

After new rule template has been submitted, there are several possibilities:

  • the rule compiles,
  • the rule doesn't compiles.

If the rule compiled, we need to come back to the newly created rule template, without edit.
If the rule didn't compile, we need to come back to the edit pane with the appropriate error message.

The error message on the last rule submitted is included in the player's profile.

To display the infos in the edit pane of a rule:
   If player's profile contain last rule && rule name == rule template's name
      -> take the infos from the player's last rule
   otherwise take the infos from the current rule 
@cdupont
Copy link
Collaborator Author

cdupont commented Oct 26, 2015

See #108. There should be a mechanism so we know the current name of the rule being edited. We should come back on:

  • old rule name empty:
    • it compiles: point back to the new rule created.
    • it doesn't compiles: add an entry in the templates section and point to it, edit pane activated.
  • the old rule name is not empty:
    • it compiles: point to the new rule.
    • it doesn't compiles: point to the old rule but with LastRule informations in the edit panel.

@cdupont
Copy link
Collaborator Author

cdupont commented Oct 26, 2015

Wouldn't it be better to add an temporary entry in the template list for the currently edited rule?
We could display the LastRule structure as a separate rule dubbed "New Rule".
The profile rule would always link to this one. If no profile, default template is displayed.

@cdupont
Copy link
Collaborator Author

cdupont commented Jan 1, 2017

Obsolete

@cdupont cdupont closed this as completed Jan 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant