Skip to content

Commit

Permalink
clean up css, fix trees/group mess, update todos
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrien Guichard committed Jun 28, 2024
1 parent ccdbf1c commit ed2f3ff
Show file tree
Hide file tree
Showing 14 changed files with 70 additions and 5,587 deletions.
2 changes: 1 addition & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
- ~~Hook to register form field (view, update, remove, secure)~~
- ~~Improve restore state~~
- ~~Reduce CSS and JS~~
- Fix table grouping / trees with pagination, rework grouping to be trees (do an iterateOnGroup)
- ~~rework grouping to be trees~~
- ~~Improve form layout, add row in DSL~~
- ~~More coherent button style in forms~~
- ~~More restrictive DSL~~
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class TableRow(val parent: Table, val r: HTMLTableRowElement) :
companion object {
fun getSiblingRows(p: Table): List<TableRow> {
val elements: List<Node>?
elements = p.t.querySelectorAll("tr.taackTableRow").asList()
elements = p.t.querySelectorAll("tr[taacktag]").asList()
return elements.map {
TableRow(p, it as HTMLTableRowElement)
}
Expand Down
24 changes: 1 addition & 23 deletions taack-ui-test/grails-app/controllers/crew/CrewController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ class CrewController implements WebAttributes {

private UiTableSpecifier buildUserTableHierarchy(final User u) {

def groups = taackFilterService.getBuilder(User).build().listGroup()

boolean hasActions = crewSecurityService.admin

new UiTableSpecifier().ui {
Expand Down Expand Up @@ -105,27 +103,7 @@ class CrewController implements WebAttributes {
})
}

if (groups) {
User filterUser = new User(enabled: true)
for (def g : groups) {
int oldCount = count
row {
rowColumn(4) {
rowField g as String
}
}
rec(taackFilterService.getBuilder(User).build().listInGroup(g, new UiFilterSpecifier().sec(User, {
filterFieldExpressionBool new FilterExpression(true, Operator.EQ, filterUser.enabled_)
})).aValue, 0)
row {
rowColumn(4) {
rowField "Count: ${count - oldCount}"
}
}
}
} else {
rec(User.findAllByManagerIsNullAndEnabled(true), 0)
}
rec(User.findAllByManagerIsNullAndEnabled(true), 0)
}
}

Expand Down
48 changes: 0 additions & 48 deletions taack-ui/grails-app/assets/stylesheets/alert.css

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
*= require github-markdown
*= require grids-responsive-min
*= require wysiwyg
*= require taack
*= require taack.css
*= require custom.css
*= require_self
*/
Loading

0 comments on commit ed2f3ff

Please sign in to comment.