-
Notifications
You must be signed in to change notification settings - Fork 33
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
Refactored issues, project images browsing, added branching support and other minor improvements #292
Refactored issues, project images browsing, added branching support and other minor improvements #292
Conversation
I think you are talking about
I think what you changed was show the comment form first and then the actual comments. Also you changed rendering of comments to
+1 but hey, I was working on improvement of comment section in #254, you could have told me. |
687cef5
to
c771cb7
Compare
This was one of the things yeah... I didn't notice that, removed it now. It wasn't the only cause though, I needed to turn project into
this is not what I meant by the line you quoted. There was a style applied only to the comments on the log page. You can try master now to see the difference between how comments are shown in the logs page and on other pages.
Well. It wasn't consistent actually.. Some pages showed them reversed and others did not. I made them all show newest comments first. IMHO, it fits the nature of GlitterGallery, when you see an image, you'd want to look at the most recent comments instead of having to click the link of the last page and seeing last comment. Anyways, this is something that we could ask potential users for their opinions about and we should make it configurable by the user.
Newest first :)
sorry, just as I was testing, I saw the issue of comments and traced it. I didn't really improve the comments section, I just fixed the issues that it had but I didn't introduce anything new... As I said, everything was already there but just not connected :) |
That is definitely debatable. When I think of comments, I think of them as feedback to current work and comments which would follow would be that of owner replying to comment previously made or other users commenting (in context of comments already made). So newest last and then the comment form makes more sense. I think thats how it is done in most places? (github, google groups, emails, stackoverflow?) Lets see what others has to say.
yeah, we needed to make consistent.
That was the first commit in my PR #254 made project as instance variable |
I forgot this one:
I don't think there would be that many comments that we would pagination. Github didn't need any. If we ever have to deal with really long series of comments then we can use folding of comments. I don't think that issue can be reason for putting newest comment first and compromising with flow of comment and replies to them. |
That is intentional and expected, have a look at #119 |
Why expected? Whats wrong with replying to comments one after other? http://next-fedoragallery.rhcloud.com/sarupbanskota/New%20gg%20mockups/e97fc8f9d67aca0557cf6ca522929a9f/master/Screenshot%20from%202014-03-29%2007:24:06.png doesn't really work :p I agree that replying to comments would be nice plus but until then I think it should be newest last and then the comment form(thats what the posted picture seems to convey). Most places have comments as newest last/bottom and it works. That link might be one case where it didn't work. Besides how does posting newest comment first solves the ambiguity of who is replying to what? EDIT: Here is a relevant discussion: Which comment sorting order makes more sense on blogs?, |
89d115f
to
073a504
Compare
@rohitpaulk ok.. I returned it back. I didn't use reverse though. See, reverse would only reverse the currently fetched comments which would normally be the latest 10 comments if there's more. I instead changed the default scope to show comments in ASC order instead of DESC. Remaining issue is when a new comment is posted, which page should I show? What I did was to not paginate comments when you post a new comment and just return all comments. I'm thinking of disabling pagination in the whole comments system till we have our better commenting system. |
073a504
to
38dfea9
Compare
f204acf
to
e79c162
Compare
Hello, I've added more commits to this PR and it's no longer targetting issues alone. These commits include some critical changes and I've changed and removed some stuff based on how I thought the best is. Feel free to suggest me to change anything you don't like.(Don't worry, I've spent a lot of time with that code now and I can add and remove stuff pretty easily.) Here are some of the changes introduced in the new commits:
Some other minor improvements in the styles, for example:
Other small bugfixes. I can't really recall everything... As I was refactoring, I just fixed anything I felt wrong. use these to login: You can view this project for an overview of features and changes: Feel free to create a new project and play with it as well. Let me know if you have any suggestions please :) |
e79c162
to
2ef08e0
Compare
Fixed Comments JS response. Some other improvements.
Getting ready to support branching and directories.
2ef08e0
to
731297b
Compare
Some other minor improvements.
6419316
to
7b4d625
Compare
Other minor improvements.
7b4d625
to
341284e
Compare
Hello, I've added one additional commit to this PR :) We now have full directory support. Again, I've taken some big steps and removed some of the stuff and made large edits(There were lots of choices and lots of ideas and I had to take some decisions counting on the fact that you can tell me to change something if you don't like it). Please feel free to ask me to return something or do something in a different way. List of modifications that I recall:
Please try the demo and give me some feedback :) http://glittergallerynew-themonster.rhcloud.com/Alwa/test%20project |
Refactored issues, project images browsing, added branching support and other minor improvements
awesome stuff, thanks! it's begging for design work now, so let's see when I can whip up some time :) |
i'm wondering if the sketchily tag problem is a known issue - if we do end up supporting SVG edit eventually, that will bite us.. should look around. |
Thanks @sarupbanskota :)
I guessed that this problem only happens with non-svg images. I confirmed that now by putting both codes and trying to upload some SVG. Surprisingly, the |
Hi @Alwahsh,
|
@mecyborg Thanks a lot for pointing those issues out.
Done :)
Actually the warning message existed. The error was not because of the empty files but due to redirection into a page that does not exist anymore (newfile page since I removed it but forgot to change those redirects, Sorry.)
Yeah, you're right. Fixed it and added tests to make sure we don't have that error again :) See #296 . |
I've refactored the issues part and done some modifications, following is what I recall:
I can't remember a lot but as I browsed the files, I fixed whatever I felt wrong :)
Note that in this I have REMOVED the merge button from issues as noted above. If you want me to put it back please let me know... Also, there was a commented "Star" option for projects. I REMOVED that part completely. I think the "Follow" for projects does what "Star" was made for.
Also, I recognize there's #267 which improves the issues... I didn't want to duplicate the work there but I modified the issues model a little bit so that my tests would pass when #267 gets merged.
I didn't edit any authorization issue till now. Waiting for #244 to get merged to be able to have well defined abilities as any work done now would be overwritten later.