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

List multi level #1181

Open
wants to merge 42 commits into
base: doryphore-dev
Choose a base branch
from
Open

List multi level #1181

wants to merge 42 commits into from

Conversation

seballot
Copy link
Contributor

@seballot seballot commented Jul 2, 2024

Et voilà la grosse PR ! miam !

Elle inclut les deux changements que tu as déjà validé en parralèle (no more checkbocListList et petit refactor sur les assets de bazar). Désolé les commits sur le refacto des assets "pollue" pas mal la revue. Mais en gros faut surtout que tu regardes les classes php changées (EnumField, ListManager) et les nouveaux rendu twig checkbox-tree.twig

A priori le gros de la fonctionnalité est validé par les utilisateurs qui ont testés. Y'aura peut etre des correctifs mineurs et/ou améliorations en suivant

Bise !

seballot and others added 30 commits July 2, 2024 18:39
+ remove uneeded charset transformations
Consider all filter options as nodes (i.e. potentially as a tree) even if most of the time it will be flatten
@seballot seballot requested a review from mrflos July 2, 2024 18:47
Comment on lines +93 to +95
resultimportlist.html(`<div class="alert alert-danger">
${listtranslations.notvalidurl} : ${url}
</div>`)

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
Copy link
Contributor

@mrflos mrflos left a comment

Choose a reason for hiding this comment

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

ok i read everything (just not the vuejs parts), that was long, but I did not test it for now.
For the code side, it seems goods, legacy code gets down, hurra!

Will test the branch on a local wiki asap.

Copy link
Contributor

Choose a reason for hiding this comment

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

i definitely prefer jquery and vanilla css transitions 🧓


$listeId = $this->listManager->create($_POST['titre_liste'], $values);
if (isset($_POST['submit'])) {
$listeId = $this->listManager->create($_POST['title'], json_decode($_POST['nodes'], true));
Copy link
Contributor

Choose a reason for hiding this comment

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

should we check if user has the rights to create a list ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the list creation is currently only disabled when wiki is "hibernated"
Do you want to change that? (the check is made in ListController->displayAll and ListManager->create

Copy link
Contributor

Choose a reason for hiding this comment

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

if it's checked in the manager, it's ok, i suppose i just thought that COntroller should control :D

In any case, we can change it later, while opening to non admins users

@@ -108,11 +108,11 @@
</div>
<div class="form-group">
<label>Latitude</label>
<input type="number" min="-90" max="90" v-model="latmodel" class="form-control">
<input type="text" min="-90" max="90" v-model="latmodel" class="form-control">
Copy link
Contributor

@mrflos mrflos Jul 2, 2024

Choose a reason for hiding this comment

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

will the attributes min and max work on type="text"?
why change the type?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

quand j'ia testé chez moi, le input était invalide et montré comme tel (entouré de rouge) parce que la valeur fournie (en js j'imagine) est une string avec des virgules

Mais oui si on passe en text on peut enlever min et max, tu valides?

Copy link
Contributor

Choose a reason for hiding this comment

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

oui c'est un détail, juste je suis curieux pourquoi il invalide? il lui fallait un value="" peut etre?

En tout cas c'est pas très important, fais comme ca t'arrange

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.

None yet

2 participants