Skip to content
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

Add Fan Art to snatchSelection.mako #806

Merged
merged 1 commit into from
Jul 30, 2016

Conversation

Thraxis
Copy link
Contributor

@Thraxis Thraxis commented Jul 22, 2016

  • Select Columns that can not be hidden
  • Add sorting on select columns? (optional)
  • Re-initialize the table every refresh or the search needs to be a proper ajax load of just table data (without it, while refreshing it shows the hidden columns) @p0psicles

image

@fernandog
Copy link
Contributor

fernandog commented Jul 23, 2016

@Thraxis can you rebase please?

columns that shouldn't be hidden: "release" and "snatch"
about sorting: i vote to not save to avoid not being able to recover the sql sorting

@Thraxis
Copy link
Contributor Author

Thraxis commented Jul 23, 2016

interesting fact... saveSort is enabled, but the query to load the search results over-rides it anyway. But there is a reset sort button now and it will reset the sort.

@fernandog
Copy link
Contributor

fernandog commented Jul 23, 2016

Working nice!

@Thraxis columns width changed. can we use the old width?

release column need to be a lot more wider. Seeds/peers dont need to be that wider.

@fernandog
Copy link
Contributor

fernandog commented Jul 23, 2016

@Thraxis are you having this issue too? maybe because of the refreshing

also when refresh is done, the sorting/filter and column selector are gone

@Thraxis
Copy link
Contributor Author

Thraxis commented Jul 23, 2016

The refresh issue I had fixed in my testing branch but forgot to fix in the PR branch... widths should be good now with this fix as well

@fernandog
Copy link
Contributor

@Thraxis do you know how to fix the last TODO (PR body) ? What about this codacy-bot issues?

@Thraxis
Copy link
Contributor Author

Thraxis commented Jul 26, 2016

The change to use ajax for only refreshing the table will probably need to be future work. The current code will re-initialize the tablesorter as soon as it can.

As for the codacy message, it's not an error so much as a "If you're doing this your CSS is getting too convoluted you should refactor it"

@Thraxis Thraxis force-pushed the snatchSelection-Fan-Art branch 2 times, most recently from 20e80a8 to 5cb2585 Compare July 27, 2016 08:56
@Thraxis
Copy link
Contributor Author

Thraxis commented Jul 27, 2016

Fixed a type-o that prevented the refresh in the last update... squashed to one commit and rebased to current development

@fernandog
Copy link
Contributor

@Thraxis your PRs will be merged after ui-rebased

@medario

@coveralls
Copy link

coveralls commented Jul 29, 2016

Coverage Status

Coverage remained the same at 28.518% when pulling 5d558ac57bd3e4fabb15ac01b60bc8449527d61b on Thraxis:snatchSelection-Fan-Art into e078985 on pymedusa:develop.

@@ -98,7 +103,7 @@
% endif
</ul>
</div><!-- #tags //-->
<div id="summary">
<div id="summary" ${"class=\"summaryFanArt\"" if bool(sickbeard.FANART_BACKGROUND) else ""}>
Copy link
Contributor

@fernandog fernandog Jul 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Thraxis need to remove all the bool. apart from that is there anything else that needs to be done?

@medariox

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope that should be all I have left to fix on this

* Adds FanArt and Banner to the snatchSelection.mako page.
* Adds Column Filter and Search
* Do not hide release or snatch columns
* Do not sort on snatch
* save sort, allow reset with button
@coveralls
Copy link

coveralls commented Jul 30, 2016

Coverage Status

Coverage decreased (-0.007%) to 28.614% when pulling 76e52b5 on Thraxis:snatchSelection-Fan-Art into 61d44d9 on pymedusa:develop.

@fernandog
Copy link
Contributor

fernandog commented Jul 30, 2016

Approved

Approved with PullApprove

@fernandog fernandog merged commit ceac8f2 into pymedusa:develop Jul 30, 2016
@fernandog
Copy link
Contributor

@Thraxis thanks!

If you want to re-work the AJAX feel free.

@fernandog
Copy link
Contributor

@Thraxis are you going to work in the snatchSelection AJAX fix?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants