-
Notifications
You must be signed in to change notification settings - Fork 177
Conversation
… added it to *Detail pages
# Conflicts: # client/app/components/groupDetail/groupDetail.html # client/app/components/storeDetail/storeDetail.html
# Conflicts: # client/app/components/groupDetail/groupDetail.controller.js # client/app/components/groupDetail/groupDetail.html # client/app/components/userDetail/userDetail.html
Added tests
Added description component for mobile version
groupDetail -> store groupDetail -> group -> members / description / pickups / stores
I'll fix the tests later tonight :) |
I just have patchy online access, therefore I'll just dump my thoughts here while having a look at the code. Might do a more thorough review in the next days. ====== The route Duplicated template code in group.html and its child components Shouldn't the directory structure look more like this: (i.e. reflect the route)
We can have more than 1 component per module, that might make the module structure less bloated. GroupDetailController: can groupDetail.html: there's a call to groupDetail.js: why Route tests are missing or don't work (storeDetail.spec.js). BTW, also userDetail misses a route test. |
I discovered some things that could/should be changed:
I did a lot of changes already, but right now nothing works anymore... so maybe I need to go back and start with smaller changes. What do you think about the points above? |
Sounds good to me!
I think letting the group state resolve data for one specific group makes sense for URLs and data-wise (because both groupDetail and storeDetail need the data).
For me, group detail was more of a UI representation. So that:
Therefore
-> I'll look into that! |
@D0nPiano thanks for your quick reply :) It's ok for me to leave points 2-4 as they are and work on 1 and 5. I had a call with @nicksellen a few days a ago and we came to the conclusion that this PR is mostly about improving navigation (e.g. breadcrumbs and page titles), so we should only add as much hierarchy in the code as necessary. To me, the split between group and groupDetail is a bit confusing, but I could probably live with that. |
Amazing work @D0nPiano ! Can't wait to have this public! Just some more comments - they might be too nitpicky, so if it's too hard, no need to solve them right now. How to best navigate between stores on mobile view? Using the back button? The name of the group is mentioned 3 times close to the top bar (navbar, breadcrumbs, content title bar).. could we reduce that by merging the content title bar with the breadcrumbs? The store list in desktop view is quite prominent (good to have the map visible, but takes much space from the main content list). I wonder if it's better to move it to the right. |
Thank you, glad you like it 🙂
meh, I like any kind of feedback :)
I think so. At least I couldn't think of a "clean way" yet. Do you have any ideas?
Like a subtitle? But yes, agreed. I think it's also way too prominent still. And I don't like the linebreaks on mobile. I'll look into that!
Agreed, especially on small desktop screens. Do you think just making it smaller also works for you? I'd like to keep it on the left somehow (I think sidebars are mostly on the left, and I always think that content-changing-buttons should be on the left of the changing content) |
Re: store sidebar |
Conflicts: client/app/components/passwordreset/passwordreset.styl
…them again if they make more sense eventually)
could need some updates as well?
ToDos
General
/group/1/stores
Routes
Nice-to-have
-> what about editing the description?
Fixes