-
Notifications
You must be signed in to change notification settings - Fork 7
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
Luko/offer req card user profile #180
base: develop
Are you sure you want to change the base?
Conversation
class OfferRequestCard: UIStackView { | ||
|
||
var headerStack = HeaderOfferRequestCard(postedDate: "Posted 14hrs ago", | ||
offer: "Offers", | ||
supplyType: "Medical Supplies") | ||
|
||
var subHeaderStack = SubHeaderOfferRequestCard(initials: "AM", | ||
name: "Ana Muller", | ||
location: "Berlin, Germany") | ||
|
||
var bodyStack = BodyOfferRequestCard(tit: "I have 100 face Masks to give away", | ||
message: "I have a small store and I would like to give away 100 mask but I don’t know where, please contact me if you need them. I have a small store and I would like to give away 100 mask but I don’t know where, please contact me if you need them. please contact m ...") | ||
|
||
var footerStack = FooterOfferRequestCard(numOfLikes: 4, | ||
numOfComments: 7) | ||
|
||
override init(frame _: CGRect) { | ||
super.init(frame: .zero) | ||
} | ||
|
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, nice work. only one point.
Is this the final class for the feed? if so can you also provide an initializer that takes all the required parameters (title body text, offer/request, ....), so that we can use them as a card in one place.
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.
Great, I am going to fix that and then I will send the PR again 🤙
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.
Done
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.
the tag is smaller on height on design
view more text is smaller on design
numbers near the heart icon/share icon/etc on design are smaller and are grey instead of black
Great, I am going to fix that. Thanks.
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, good work.
Please don't forget to make the changes that was requested (by others), before merging
@stavares843 the new PR is ready |
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.
- blue dot is not the same color as the design, also is less rounder on the app
- on design theres less spacing between the view more copy and the icons section
- seems theres less spacing between the numbers and the icons on the design compared with the app
Great, tomorrow I will send the new PR, thanks! |
let feedOfferRequestTime = FeedOfferReqTime(offerReq: .offers, timeStamp: "Posted 14hrs Ago") | ||
let feedCategoryTag = FeedCatTag(categoryTagTxt: "Medical Supplies") | ||
|
||
init(postedDate _: String, reqOrOffer _: String, supplyType _: String) { |
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.
The parameters in this initializer seem redundant, any special reason why we have them here?
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.
Ok, I am going to work on this issue tomorrow.
Thanks a lot for your comments @OnyekachiSamuel !
// The Offer Request Card (Feed) | ||
let offerReqCard = OfferRequestCard(headerData: .init(postedDate: "P", reqOrOffer: "O", supplyType: "M"), subHeaderData: .init(initials: "AM", name: "Ana Muller", location: "Berlin, Germany"), bodyData: .init(tit: "I", message: "E"), footerData: .init(numOfLikes: 4, numOfComments: 7)) | ||
|
||
let postCardTableView = UITableView() |
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.
This tableView appears not used, we need to populate this tableView with list of offers, requests, or all as the case maybe. Let me know if you don't understand so that I can explain more.
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.
Yes, I understand.
But I think that this implementation maybe should be in another ticket. What do you think?
.top(to: \.topAnchor, constant: 20) | ||
.left(to: \.leftAnchor, constant: 20) | ||
.right(to: \.rightAnchor, constant: -20) | ||
.width(UIScreen.main.bounds.width) |
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.
You don't actually need this width constraint since you have already constrained the view to the left and right by some margin.
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.
Ok, I have remove it.
@lucianoschillagi @OnyekachiSamuel would appreciate it if you guys can meetup and resolve this. |
Yes, I need some help to resolve this. I am available for a meet... @OnyekachiSamuel are you available some of this days? Thanks |
What this PR does:
Creates Offer Request Card User Profile
Checklist
Which issue(s) this PR fixes:
Resolves #171 #172 #173
Special notes for reviewers:
I had to limit the OfferRequestCard initializer (SwiftLint requirements - 300 characters max)
Additional comments: