Sort dashboard attributes#2133
Conversation
b2ec977 to
92b1437
Compare
92b1437 to
a3fb4da
Compare
nickcharlton
left a comment
There was a problem hiding this comment.
Thanks for this!
I think if we're going to sort one of them, we should also sort the rest of the dashboard attributes. What do you think?
|
I feel that Anecdotically, at work there's an admin interface I often have to look at (not Administrate-based) where everything sorted alphabetically, and I often end up scrolling right for a while until I find the ids... |
|
Yeah, I like that. It felt weird having |
I'm happy to sort the attributes in
I agree that |
|
Good point! We should put |
|
Agreed: |
4f4841d to
0d311d9
Compare
0d311d9 to
c11bea1
Compare
|
@nickcharlton @pablobm mind taking another look? |
|
Ah hah, yeah, that works as I was hoping. I'm pondering how we can simplify the implementation, but I'm not getting anywhere today, any thoughts, @pablobm? |
3850cf2 to
ae67bc1
Compare
|
@nickcharlton @pablobm I've made your suggested improvements. Does this look good now? |
|
Nice, let's merge this bad boi! |
Sorting the fields listed in the
ATTRIBUTE_TYPEShash of the dashboard file will make these files easier to maintain. For dashboards that contain a large number of attributes, it can be time-consuming/inefficient to find the correct line when making a change.