After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 766216 - Responsive design for Damned Lies
Responsive design for Damned Lies
Status: RESOLVED FIXED
Product: damned-lies
Classification: Infrastructure
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: damned-lies Maintainer(s)
damned-lies Maintainer(s)
Depends on: 766232
Blocks:
 
 
Reported: 2016-05-10 10:20 UTC by Tom Tryfonidis
Modified: 2016-05-18 17:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Responsive design patch (362.22 KB, patch)
2016-05-10 10:20 UTC, Tom Tryfonidis
none Details | Review
Source for damned-lies logo (12.05 KB, patch)
2016-05-10 10:21 UTC, Tom Tryfonidis
none Details | Review
Responsive templates for Damned Lies (68.18 KB, patch)
2016-05-14 08:40 UTC, Tom Tryfonidis
none Details | Review
Make theme templates repsonsive (52.85 KB, patch)
2016-05-14 11:12 UTC, Tom Tryfonidis
none Details | Review
Make theme responsive (54.35 KB, patch)
2016-05-14 11:50 UTC, Tom Tryfonidis
committed Details | Review
Damned lies logo (8.81 KB, image/svg+xml)
2016-05-17 18:50 UTC, Tom Tryfonidis
  Details

Description Tom Tryfonidis 2016-05-10 10:20:10 UTC
Created attachment 327570 [details] [review]
Responsive design patch

It is based on a customized Bootstrap [1] with some of it's components left out. Some of the main changes are:

- Damned Lies logo is now an image (this allow us to reduce the CSS hacks for smartphone/tablet view)
- Cleaner layout for vertimus detail page on mobile. Action time is hidden and replaced with an icon that show/hide the time. But there's room for improvement mostly for the "Used in releases" and Statistics sections.
- Updated JQuery version to 1.9.1  (minimun requirement for Bootstrap to work).
- Added jquery-migrate 1.3.0 as a requirement of JQuery 1.9.1
- General template and CSS cleanup


And some known bugs (only for smartphones)

- Diff page isn't responsive. Can we edit the html generated from difflib's make_table?
- Textarea and some elements overflow from the edit forms (branch and team details) and vertimus detail form.

[1] http://getbootstrap.com/customize/?id=bb0d43209f900282fe5436df33801648
Comment 1 Tom Tryfonidis 2016-05-10 10:21:20 UTC
Created attachment 327571 [details] [review]
Source for damned-lies logo
Comment 2 Claude Paroz 2016-05-10 11:23:20 UTC
I would like to upgrade jQuery in a separate patch. I'm fine to upgrade to 2.2.3 as I don't care for old IE versions. Is it OK for you? Do you think jQuery migrate is really useful?
Comment 3 Tom Tryfonidis 2016-05-10 15:04:18 UTC
(In reply to Claude Paroz from comment #2)
> I would like to upgrade jQuery in a separate patch.

OK. Do you want all JS related changes in one patch?

> I'm fine to upgrade to 2.2.3 as I don't care for old IE versions. Is it OK for you?

I'm ok with this! I've tested JQuery 2.x and some things are broken:

1. Sort functionality for tables
Original plugin[1] doesn't work, so i'll use this fork [2]. It also has a "saveSort" function, which might be handy to use.

[1] https://github.com/christianbach/tablesorter
[2] https://github.com/Mottie/tablesorter

2. Modal windows for reduced_po and vertimus_workflow pages
We can replace them with Bootstrap's modal dialogs and remove overlayhelpers.js and jquery-tools.js plugins.

Apparently the following are also broken with 1.9.1 version,

3. Growfield2 plugin doesn't work
I can't find a new version of growfield plugin. A good alternative is https://github.com/jackmoore/autosize

4. JS code on vertimus_detail page that un/check radio button doesn't work
Some methods are deprecated so i'll update them.

> Do you think jQuery migrate is really useful?
Yes it is, If we stick with 1.9.1 version, as it provides some deprecated features/methods for our JQuery plugins (overlayhelpers.js, jquery-tools.js).
Comment 4 Claude Paroz 2016-05-10 15:11:32 UTC
I've created a separate report for jQuery version issues: https://bugzilla.gnome.org/show_bug.cgi?id=766232
Comment 5 Claude Paroz 2016-05-13 15:15:26 UTC
Tom, can you rebase your patch on top of current master?
Comment 6 Tom Tryfonidis 2016-05-13 15:23:14 UTC
Of course, i'm working on it.
Comment 7 Tom Tryfonidis 2016-05-14 08:40:54 UTC
Created attachment 327860 [details] [review]
Responsive templates for Damned Lies
Comment 8 Tom Tryfonidis 2016-05-14 08:48:09 UTC
Claude, i noticed that vertumus workflow links on "About page" return a 404 error. Is it expected with the latest changes?
Comment 9 Claude Paroz 2016-05-14 09:45:46 UTC
Thanks for noticing, I fixed that.

I also committed the changes about the http to https links. Sorry, You'll have to rebase again :-(

Could you also keep the "<div class="mainpage">" in your patch? Even if we don't assign specific styles to this div, it might be useful at some point. It doesn't harm to let the class name to the div.
Comment 10 Tom Tryfonidis 2016-05-14 11:12:10 UTC
Created attachment 327869 [details] [review]
Make theme templates repsonsive
Comment 11 Tom Tryfonidis 2016-05-14 11:50:25 UTC
Created attachment 327873 [details] [review]
Make theme responsive

Sorry for this. I forgot to add some changes to the patch before.
Comment 12 Claude Paroz 2016-05-17 18:18:38 UTC
Comment on attachment 327571 [details] [review]
Source for damned-lies logo

I'm seeing several references to your local filesystem in the SVG source. Could you please clean that? I guess that most inkspace-prefixed properties are not useful for web display.
Comment 13 Tom Tryfonidis 2016-05-17 18:50:39 UTC
Created attachment 328100 [details]
Damned lies logo

Removed personal data from svg file
Comment 14 Claude Paroz 2016-05-18 17:53:55 UTC
Comment on attachment 327873 [details] [review]
Make theme responsive

Thanks so much Tom!