Closed gitriley closed 5 years ago
I went ahead and moved the editModel() function into audio-player and photo-video-viewer, rather than passing them in, in commit 19741627c67015f4dd1fccccb42ee0b45a75319e. If you don't want this commit, we can move back to the previous commit.
Hi Riley,
Nice work. Some quick functionality notes:
Photos & Video:
Audio:
Regarding your editModel questions: sounds fine to me!
Ok, I can remove auth + name if we just want caption, but I'll wait on Cynthia's word.
For the dots and caption placement, are you referring to the normal photo carousel that we use throughout the app? I think I remember us having a specific decision to move the captions below the dots about a year ago. I can't remember why, but I know we decided it after some deliberation. Do you remember?
Ok, I will add the audio player.
Audio player formatting: Are you just referring to the placement of play button? I can fix that, but let me know if you're referring to something else so I know what to fix.
@cynthiamah @gitriley : What do you think of deprecating the dots and doing a X of Y in the upper left-hand corner (like screenshot below)?
Yes -- just placement of the play button
X of Y in the upper left-hand corner: I like it, and it's definitely seems preferable if a user has ~10+ images. But I also don't have any problem with the dots, so I guess I don't feel too strongly either way.
@vanwars Sarah, for some reason the last Travis build failed after my last commit. It looks like one backend test failed, which is confusing because I don't think any backend files have changed in this branch.
Also (possibly related): I was getting the error 'This relationship already exists in the system' when trying to add videos to the data-detail today.
Confused.
Hey Riley,
I already took a look -- for some reason, the 'rotate photo right' and 'rotate photo left' intermittently fail on Travis (but not locally). Just ignore it -- not you.
Re: "Also (possibly related): I was getting the error 'This relationship already exists in the system' when trying to add videos to the data-detail today." -- that's just the server telling you that you can't add a video to the record because that video already belongs to the record. Is it possible something is posting twice?
On Tue, Aug 28, 2018 at 9:49 PM Riley Flynn notifications@github.com wrote:
@vanwars https://github.com/vanwars Sarah, for some reason the last Travis build failed after my last commit. It looks like one backend test failed, which is confusing because I don't think any backend files have changed in this branch.
Also (possibly related): I was getting the error 'This relationship already exists in the system' when trying to add videos to the data-detail today.
Confused.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/LocalGround/localground/pull/221#issuecomment-416806168, or mute the thread https://github.com/notifications/unsubscribe-auth/ABKGw9pTU1ikeqhgBNAyCtGfOeDsKK_Iks5uVgFVgaJpZM4WKXoL .
Hey @gitr,
I already took a look -- for some reason, the 'rotate photo right' and 'rotate photo left' intermittently fail on Travis (but not locally). Just ignore it -- not you.
"Also (possibly related): I was getting the error 'This relationship already exists in the system' when trying to add videos to the data-detail today."
That's just the server telling you that you can't add a video to the record because that video already belongs to the record. Is it possible something is posting twice?
"That's just the server telling you that you can't add a video to the record because that video already belongs to the record. Is it possible something is posting twice?"
What's weird is it's happening even when the record doesn't have anything attached to it at all. Here's the network panel.
Two final enhancements needed:
@vanwars This branch is complete now
Looks great! Merging.
Caption editing should work from the edit-title-card view, data-detail view, and the spreadsheet.
PHOTO![screen shot 2018-08-23 at 2 10 42 pm](https://user-images.githubusercontent.com/20868615/44552216-6e671500-a6de-11e8-81f2-0f63378a8ba4.png)
VIDEO![screen shot 2018-08-23 at 2 10 33 pm](https://user-images.githubusercontent.com/20868615/44552231-7f178b00-a6de-11e8-85f1-bb5dbaa65925.png)
AUDIO![screen shot 2018-08-23 at 2 10 54 pm](https://user-images.githubusercontent.com/20868615/44552261-935b8800-a6de-11e8-8ab9-2f7fba0826df.png)
As you can see, I display the photo and video when such an item is being edited, but not for audio. It just seemed like a bit of extra work to get an audio player worker in there, and I wasn't sure if it was really necessary. However, if you want the audio player too, I can get it working in there, no problem.
One other thing: Right now, the editModel() function is created separately in the edit-title-card view, data-detail view, and the spreadsheet, and passed into the EditMediaInfoView each time. Since it's the same function every time, I think we can move it into the EditMediaInfoView, right? I haven't done this yet, but let me know what you think.
Also created some tests for the EditMediaInfoView.