Author Topic: Filtered updates lists  (Read 4102 times)

0 Members and 1 Guest are viewing this topic.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Today at 02:09:10 pm
Filtered updates lists
« on: December 19, 2016, 01:37:09 pm »
I decided that limiting the number of updates displayed was a quick and easy enhancement to tackle this morning.  I originally thought date ranges, but this was easier and I think it's already a nice improvement.

http://tmtest.teresco.org/devel/updates.php

If I don't hear any major negative feedback soon, I'll get this into GitHub and onto the production site.
« Last Edit: December 19, 2016, 01:57:30 pm by Jim »

Offline mapcat

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 1627
  • Last Login:Today at 04:37:32 pm
Re: Filtered updates lists
« Reply #1 on: December 19, 2016, 01:54:44 pm »
Great solution!
Clinched:

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Today at 02:09:10 pm
Re: Filtered updates lists
« Reply #2 on: December 19, 2016, 01:58:59 pm »
Thanks.  I'm thinking 10 as the default number of entries to list for system updates, 20 or 25 as the default for highway data updates.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4555
  • Last Login:Today at 04:44:01 pm
Re: Filtered updates lists
« Reply #3 on: December 19, 2016, 04:42:33 pm »
Great idea! Link it :)

I think 10 for systems and 20 for hwy data should be default.

There seems to be a typo in updates.csv though: 2105-12-06 (USA) Ohio ;)

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Today at 02:09:10 pm
Re: Filtered updates lists
« Reply #4 on: December 19, 2016, 08:38:14 pm »
OK, good.  I'll make this go live tonight.

As part of this, I'm also going to sort the actual updates.csv file by region so each of us can safely put in our own updates entries and commit them without much risk of introducing conflicts.  Each person would be putting entries in different parts of the file, meaning git could handle the merging.

Offline Jim

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 2732
  • Last Login:Today at 02:09:10 pm
Re: Filtered updates lists
« Reply #5 on: December 19, 2016, 09:57:08 pm »
Live now with the defaults of 10 for system updates, 20 for highway data updates.  Thoughts on whether we still need the "quick links" at the top of the page anymore?

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4555
  • Last Login:Today at 04:44:01 pm
Re: Filtered updates lists
« Reply #6 on: December 19, 2016, 10:30:19 pm »
Thoughts on whether we still need the "quick links" at the top of the page anymore?

Keep it.

Offline michih

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4555
  • Last Login:Today at 04:44:01 pm
Re: Filtered updates lists
« Reply #7 on: December 19, 2016, 10:45:43 pm »
I'd like to hide system (or hwy data) entries. E.g. "Show 0 Entries"?
Doesn't make much sense but I think it would be consequent.

However, good job so far :)

Offline yakra

  • TM Collaborator
  • Hero Member
  • *****
  • Posts: 4234
  • Last Login:February 13, 2024, 07:19:36 pm
  • I like C++
Re: Filtered updates lists
« Reply #8 on: December 19, 2016, 11:57:23 pm »
Thoughts on whether we still need the "quick links" at the top of the page anymore?

Keep it.
Yes, keep it.
Sri Syadasti Syadavaktavya Syadasti Syannasti Syadasti Cavaktavyasca Syadasti Syannasti Syadavatavyasca Syadasti Syannasti Syadavaktavyasca