AWStats icon indicating copy to clipboard operation
AWStats copied to clipboard

Modernizing the AWStats Interface

Open IGLOU-EU opened this issue 2 years ago • 31 comments

Hello AWStats team,

First of all, I would like to express my admiration for the excellent work that you have done with AWStats. It's a fantastic software for statistics that has been very useful for many years.

However, as technology has evolved, the AWStats interface has become somewhat outdated. The use of iframes in the interface is no longer necessary and can increase the number of requests, leading to slower loading times.

Therefore, I would like to propose some changes to modernize the AWStats interface while maintaining its excellent functionality. These changes would include updating the design to make it more user-friendly and intuitive, removing unnecessary iframes, and implementing a responsive layout that adapts to different screen sizes.

I understand that this will require significant effort and resources, but I believe that it will be worth it in the long run. A more modern and user-friendly interface will help to attract new users and ensure that AWStats remains relevant in today's fast-paced digital landscape.

Thank you for your consideration, and I look forward to hearing your thoughts on this matter. Best regards

IGLOU-EU avatar Apr 28 '23 11:04 IGLOU-EU

I found a somewhat modern design (has darkmode) https://www.hackitu.de/awstats_theme/

JMcrafter26 avatar May 01 '24 18:05 JMcrafter26

Hi @IGLOU-EU.

I totally agree. It's a great useful software, but really a 1995 feeling. 🥲

I've just made a pull request with few modernizing. Mainly remove the png images like stats color-bars and hours-clocks, defining icons in css. No more blurry images, less requests, less code... They can be redefined in stylesheet ( and, why not, put images bg for those who like images 😝 ). Also changed font to system-ui, convert font-size in em.

It needs to move all visual theming in css with well defined classes. And, BEFORE ALL, remove all those 90's tables that are not tabular datas. I would die for this. 😄 And the brs... 😄 Maybe moving to flex.

Hope it will be merged.

https://github.com/eldy/AWStats/pull/256

bouks avatar Jul 23 '24 18:07 bouks

I agree 😄

But have you considered making it mobile friendly?

JMcrafter26 avatar Jul 23 '24 18:07 JMcrafter26

Congrats @bouks, it was definitively needed. I wanted to know if AWStats are open to it, before working on it. You're taking a risk :laughing:

Hope, you will be merged.

IGLOU-EU avatar Jul 23 '24 21:07 IGLOU-EU

@JMcrafter26 i was thinking of it. But i was asking myself if these "datas" are easily readable on tiny screens, and also considering the need of "big buttons" for fingers and the number of devices (different resolutions, different dpi, etc.). I'm not hot for this at the moment. :) I prefer stay on pc, play a little with flex and see.

@IGLOU-EU I just did some few things around few hours. Not much risks. But yeah, some things should be done. I think removing the frame system, using space better in the page, redesigning header and blocks.

I played around with css, but it's very limited, because the lack of identifiers (id, class...) on elements. image

bouks avatar Jul 24 '24 00:07 bouks

lack of identifiers ... 🤕

Matomo and goaccess have a very nice design if you need some inspiration

IGLOU-EU avatar Jul 24 '24 07:07 IGLOU-EU

I'd like to remove the bars table and include the bars in the data table. Like this example in the 3 visitors cells : image

I think this is cleaner, keep space, and remove a bunch of lines of code.

What do you think ?

@eldy @IGLOU-EU @JMcrafter26

bouks avatar Jul 24 '24 12:07 bouks

I prefer it too, but you'll have to ask the big boss @eldy . I haven't had a chance to participate in AWStats project yet. :slightly_frowning_face:

IGLOU-EU avatar Jul 24 '24 16:07 IGLOU-EU

@IGLOU-EU

The month table image

Without stylesheet file added. There's a tiny animation when hovering a line consisting of zooming, and darkening the background.

bouks avatar Jul 25 '24 05:07 bouks

Flags in utf8, best rendering. No need for images. image

bouks avatar Jul 25 '24 09:07 bouks

@bouks I LOVE UTF-8 flags, but it can be a problem. It depends on the user's font and the web client. Not so long, Chromium based used grayscale.

IGLOU-EU avatar Jul 25 '24 10:07 IGLOU-EU

Days and nights image

bouks avatar Jul 25 '24 10:07 bouks

Everything looks great. PR are welcome, even if project is no more very active...

eldy avatar Jul 25 '24 14:07 eldy

@eldy 👍

bouks avatar Jul 25 '24 17:07 bouks

Updated the countries table.

Saw in issues that actual map not functionning anymore, so there's a new worldmap.

image

bouks avatar Jul 26 '24 00:07 bouks

A window to the world image

bouks avatar Jul 26 '24 04:07 bouks

1920 screen image

bouks avatar Jul 26 '24 04:07 bouks

awstats.webm

bouks avatar Jul 27 '24 05:07 bouks

A window to the world image

For this one, i prefer the previous one when areay with text and value is on white background.

eldy avatar Jul 27 '24 08:07 eldy

@eldy Done :)

bouks avatar Jul 27 '24 09:07 bouks

:clap:

IGLOU-EU avatar Jul 27 '24 09:07 IGLOU-EU

image

image

image

image

bouks avatar Jul 28 '24 07:07 bouks

I think it's enjoyable. Emails reports work as well. I think few things to fix. If someone want to test it.

Need to add options in conf file:

DirImgs="/yourpath" (like icon) (conf also in Apache) ShowBars=1 (if you want vertical bars) BarHeight=75 (best) (will disappear)

The colors are in awstats.model.conf for the moment.

StylesheetMode="herited" (maybe not mandatory)

The quality of the video is bad due to the 10MB github limitation. awstats20240730.webm

bouks avatar Jul 29 '24 23:07 bouks

The page navigation menu image

bouks avatar Jul 30 '24 03:07 bouks

New colors to map.

  • gray : no visit
  • brown : visit
  • orange : much visit (top xx according to config)
  • yellow : hovering

Full list of countries directly accessible in the page by a button on the head table (first row) image

bouks avatar Jul 30 '24 18:07 bouks

Ratios table image

bouks avatar Jul 31 '24 00:07 bouks

Dark mode dedicated to the creatures of the night. image

bouks avatar Aug 01 '24 00:08 bouks

Some screens and pdf about the actual state of my old school coding summer. 😉

1920x1200 screen - Dark Mode - section "when" image

1920x1200 screen - Dark Mode - section "navigation" image

1920x1200 screen - Dark Mode - section "who" image

1920x1200 screen - Dark Mode - section "referer", "status", and footer image

Printing (pdf) the main report page (A4, 100%, printing backgrounds, 0.2 inches page margin in printing window) cococolocompany-main.pdf

bouks avatar Aug 06 '24 17:08 bouks

@bouks I LOVE UTF-8 flags, but it can be a problem. It depends on the user's font and the web client. Not so long, Chromium based used grayscale.

I set an option in conf file to choose utf8/png version. :)

https://github.com/eldy/AWStats/pull/256/commits/6b10841020d0c396f709ed9a53070a40fd01f7bc

bouks avatar Aug 07 '24 10:08 bouks

Link to PR changelog : https://github.com/eldy/AWStats/pull/256#issue-2422965976

bouks avatar Aug 07 '24 12:08 bouks