Skip to content

Conversation

@ChristophWurst
Copy link
Member

@ChristophWurst ChristophWurst commented Sep 19, 2016

TODO:

  • empty content view was apparently removed, hence empty folders are missing the approriate icon and text
  • folders can be expanded/collapsed even if they don't have sub-folders
  • scroll events to refresh and load more are broken

@ChristophWurst
Copy link
Member Author

Basic functionality seems to work 🚀

@Gomez @nextcloud/mail review please, so we can base the next PRs on the new Marionette features :-)

@ChristophWurst
Copy link
Member Author

@jancborchardt @tahaalibra @skjnldsv @Gomez would be great to get this in, so I can continue with the other PRs and use the new Mariontte APIs. Thanks :-)

@ChristophWurst
Copy link
Member Author

Btw. the client should be a bit faster now that we use onRender everywhere and the views are being generated in memory. In contrast, we've used onShow extensively before, which operated on DOM and therefore caused slower view rendering. 🚀

@jancborchardt
Copy link
Member

Only shows spinners and I get this in the console:

JQMIGRATE: Migrate is installed, version 1.4.0
require.js?v=366fed6…:1958 GET http://localhorst/nextcloud/apps/mail/js/notification.js req.load @ require.js?v=366fed6…:1958load @ require.js?v=366fed6…:1682load @ require.js?v=366fed6…:832fetch @ require.js?v=366fed6…:822check @ require.js?v=366fed6…:854enable @ require.js?v=366fed6…:1173enable @ require.js?v=366fed6…:1554(anonymous function) @ require.js?v=366fed6…:1158(anonymous function) @ require.js?v=366fed6…:134each @ require.js?v=366fed6…:59enable @ require.js?v=366fed6…:1110init @ require.js?v=366fed6…:786(anonymous function) @ require.js?v=366fed6…:1457
require.js?v=366fed6…:168 Uncaught Error: Script error for "notification"
http://requirejs.org/docs/errors.html#scripterrormakeError @ require.js?v=366fed6…:168onScriptError @ require.js?v=366fed6…:1735
appview.js:114 Uncaught TypeError: this.navigation.showChildView is not a function

@ChristophWurst
Copy link
Member Author

Ah, that's an error since #115, the fix for that is in #125.

appview.js:114 Uncaught TypeError: this.navigation.showChildView is not a function

That indicates that you did not actually pull the new Marionette version. Run bower install or the makefile to install it ;-)

@jancborchardt
Copy link
Member

jancborchardt commented Sep 28, 2016

Ahh, thanks! Of course that has to be said for testers ;)
Some issues:

  • loading by scrolling down doesn’t seem to work or is quite janky
  • while loading messages, the list sometimes lags
  • when reading and then deleting the top message, the bottom one (in this case the 20th) is opened. Instead deleting the first one when reading that should open the second one (now first one)

@ChristophWurst
Copy link
Member Author

Of course that has to be said for testers

I thought german computer programmers would figure that out themselves ;-)

@ChristophWurst
Copy link
Member Author

@jancborchardt regarding the first two issues it looks like Marionette is re-rendering the messages list for each element added to the collection, therefore the browser feels janky shortly.
To fix that we'll have to add messages to the collection in bulk, which will conflict with #127. So it would be great if you could review that other PR and then I'll rebase, fix and finish this one :-)

@ChristophWurst
Copy link
Member Author

ChristophWurst commented Sep 29, 2016

This was referenced Oct 3, 2016
@ChristophWurst
Copy link
Member Author

Might be worth to directly migrate to marionettejs/backbone.marionette#3192 🚀

@ChristophWurst
Copy link
Member Author

ChristophWurst commented Oct 15, 2016

  • BUG: load more causes the collection view to re-render and FF scrolls up all the way, which causes a refresh of the message list. Moreover, the load more spinner is not shown.

@jancborchardt
Copy link
Member

Again only spinners (even after making, and also in incognito window), and this error:

require.js?v=cf07c3a…:1958 Refused to load the script 'http://localhorst/nextcloud/apps/mail/js/init.js' because it violates the following Content Security Policy directive: "script-src 'nonce-Rm5JQUJRVXVGQnd6SlRjUEEyWXBHQkpoUDM0ck9URUxDRWNHT2pkZkJTMD06UDVkQzRPWEtYR2VLdVFwd0E0bEdPaXRsWnJldmVpNFlDNDg5aHhxK0hNOD0=' 'unsafe-eval'".
req.load @ require.js?v=cf07c3a…:1958
require.js?v=cf07c3a…:143 Uncaught Error: Script error for "init"
http://requirejs.org/docs/errors.html#scripterror

(This is with Chrome.)

@ChristophWurst
Copy link
Member Author

there was a fix for that in #169. I need to rebase this PR

@ChristophWurst
Copy link
Member Author

fixed the load-more spinner. Only issue left: FF jump scrolls when we add more messages to the list. This might be an issue that we had before already: FF always scrolled up when the message list was refreshed, whereas Chrome didn't.

@ChristophWurst
Copy link
Member Author

found a quick and dirty fix for the FF issue: remember and restore the scroll position when the list is re-rendered. Seems to work, although there might be a better solution.

@jancborchardt please give it another test run and let me know there's anything else that does not work

@jancborchardt
Copy link
Member

Seems good with Chrome at least 👍 couldn’t test with Firefox yet.

@jancborchardt
Copy link
Member

So @ChristophWurst I would say let’s get this in and fix things moving forward so it doesn’t diverge more. :)

@ChristophWurst
Copy link
Member Author

Agreed. Let me fix the code style issues and then we can merge 🙏

@ChristophWurst ChristophWurst merged commit 52810c7 into master Nov 4, 2016
@ChristophWurst ChristophWurst deleted the marionette3 branch November 4, 2016 14:23
@ChristophWurst
Copy link
Member Author

🚀 💃 🎆 🍾 it's in!

@jancborchardt
Copy link
Member

@ChristophWurst btw don’t remember if it’s related, but replying to emails from the unified inbox doesn’t put the »reply« icon ;)

@ChristophWurst
Copy link
Member Author

Unified inbox will hopefully die soon. I have found a way to paginate our APIs, which means I can finally re-implement it client side: less code, fewer hacks and definitely better performance. https://github.com/ChristophWurst/multi-source-pagination

@jancborchardt
Copy link
Member

Ok, but maybe just say »the current implementation of unified inbox« otherwise I’m afraid. ;D

@ChristophWurst
Copy link
Member Author

hehe, yes, that's what I meant ;-)

@lock
Copy link

lock bot commented Nov 21, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and questions.

@lock lock bot locked and limited conversation to collaborators Nov 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants