-
Notifications
You must be signed in to change notification settings - Fork 36
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
[7.11.24] Add contact list view #3007
Conversation
Code Climate has analyzed commit c637dbc and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 76.5% (50% is the threshold). This pull request will bring the total coverage in the repository to 82.8% (-0.1% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR 👍 Beside the suggestions in commets, I have two questions:
-
Do we need the "copy" functionality? I see the copy option is drawn in the design but we've never talked about it so far I remember 🤔 Of course it doesn't harm anything, but I'm asking for clarifying.
-
Currently URLs of websites are shown in the column "Phone number". Should we add another column for "Website" although this is not picted in the design?
integreat_cms/cms/templates/contacts/contact_list_archived_row.html
Outdated
Show resolved
Hide resolved
I asked @osmers, and the copy-functionality is still desired as it might make it easier for municipalities to create contacts.
Oh, good point! I added a website column and I'm showing the phone_number now too :) |
Or rather - I'm sure that if we don't add it, we'll have a municipality asking for it and since I don't see any harm in it (please correct me, if I'm overlooking something), I don't see why we shouldn't add it :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉 Looks good 😸
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks mostly good to me.
Don't worry about the high number of suggestions, most of them are just related to styling 🙈
Also looks like the archived contact list is missing the website column. Maybe it would make sense to deduplicate contact_list and contact_list_archived? Though we could also do that later if the time is too low now.
Oh, and it looks like pagination is not working. Could you please add some pagination code to |
@david-venhoff I think time shouldn't be the deciding factor, as it would improve the code quality. However, I was also thinking about this and decided against it out of consistency, as we have a separate template for all other models too. If you still prefer to merge them together, I can do so :) |
I think it would make sense if we would refactor all the other views at some point too, so consistency would not be a problem here imo. But I think it would be ok to either refactor the template in this pr or in another pr :) |
cc95d02
to
75be3f7
Compare
@david-venhoff Thank you for all your feedback! I think it should be all applied now (+ a few more changes)
Applied :) |
c00e78e
to
9828666
Compare
@david-venhoff I think this PR is ready for review again. A bit of back information:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1cd1f80
to
0806220
Compare
integreat_cms/cms/templates/pois/poi_form_sidebar/action_box.html
Outdated
Show resolved
Hide resolved
integreat_cms/cms/templates/pois/poi_form_sidebar/action_box.html
Outdated
Show resolved
Hide resolved
@david-venhoff this PR is ready to be reviewed again :) |
@MizukiTemma could you please check if you think that #3010 is also already resolved by this PR or if you had something different in mind when you created the issue? :) |
@JoeyStk Thank you so much for all the work, this is solving #3010 too 😸
I came to fix it while checking the codes and commited it. If the change doesn't look good, feel free to drop :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
2c18731
to
5435aee
Compare
Co-authored-by: David Venhoff <david.venhoff@tuerantuer.org>
5435aee
to
99ac297
Compare
Short description
Add list view for the new section "Contacts"
Proposed changes
Side effects
I think none?
Resolved issues
Fixes: #2952 #3010
Pull Request Review Guidelines