Closed Bug 485703 Opened 15 years ago Closed 15 years ago

Hide date containers not containing additional entries compared to previous ones.

Categories

(Firefox :: Bookmarks & History, defect)

3.5 Branch
defect
Not set
normal

Tracking

()

VERIFIED FIXED
Firefox 3.6a1

People

(Reporter: zeniko, Assigned: mak)

References

Details

(Keywords: verified1.9.1)

Attachments

(1 file, 1 obsolete file)

On a clean profile, I get three buckets after visiting a single page:

* Today
* Last 7 days
* This month

The second and third bucket don't contain additional information, even though their presence implies to me that there's more history available than just today's (which there isn't).

On another profile I've limited history to 5 days. There, the "This month" bucket will always just be UI-noise (being equal to the "Last 7 days" bucket).

So why not just hide the "Last 7 days" bucket when there are no pages older than yesterday and the "This month" bucket when there are no pages older than 7 days?
that's by design, see discussion in the original bug, overlapping was requested expliticly
(In reply to comment #1)
This bug isn't about the fact that the buckets overlap, but that it's possible for several buckets to be identical, which IMO just makes the UI noisier and gives a slightly wrong impression (that there are history entries older than in the bucket above).
Keywords: uiwanted
we can do that eventually, leave them overlapped but don't show if there are not additional entries.
Assignee: nobody → mak77
Summary: Hide buckets not containing additional entries → Hide date containers not containing additional entries compared to previous ones.
Attached patch patch v1.0 (obsolete) — Splinter Review
So with this patch:
"last 7 days" is visible only if there are visits older than 2 days but younger than 7 days
"this month" is visible only if there are visits older than 7 days but younger than month's start (so first 7 days of the month it will be always hidden)
Attachment #370382 - Flags: ui-review?(beltzner)
Attachment #370382 - Flags: review?(dietrich)
ps: contents of the containers do not change with this patch, they are simply hidden in above cases, but "last 7 days" will always contain everything from 7 days ago to now.
Flags: wanted-firefox3.5?
Flags: in-testsuite?
Attachment #370382 - Flags: review?(dietrich) → review+
Comment on attachment 370382 [details] [diff] [review]
patch v1.0

r=me, with tests for each of the containers that this change affects.
Flags: wanted-firefox3.5? → wanted-firefox3.5+
Attached patch patch v1.1Splinter Review
with a somehow deeper test, Dietrich, do you think this is enough or should i create a completely new unit test just for this?
Attachment #370382 - Attachment is obsolete: true
Attachment #370532 - Flags: ui-review?(beltzner)
Attachment #370532 - Flags: review?(dietrich)
Attachment #370382 - Flags: ui-review?(beltzner)
Comment on attachment 370532 [details] [diff] [review]
patch v1.1

thanks, that's great, r=me
Attachment #370532 - Flags: review?(dietrich) → review+
Attachment #370532 - Flags: ui-review?(beltzner) → ui-review+
Comment on attachment 370532 [details] [diff] [review]
patch v1.1

Please land on trunk for baking ASAP.
http://hg.mozilla.org/mozilla-central/rev/f0507c4d0abb
Status: NEW → RESOLVED
Closed: 15 years ago
Flags: in-testsuite? → in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.6a1
Whiteboard: [baking on trunk]
Keywords: uiwanted
Attachment #370532 - Flags: approval1.9.1?
Comment on attachment 370532 [details] [diff] [review]
patch v1.1

asking approval after 2 days of baking, this makes the sidebar experience better not showing useless date containers, and is automatically tested.
Comment on attachment 370532 [details] [diff] [review]
patch v1.1

a191=beltzner
Attachment #370532 - Flags: approval1.9.1? → approval1.9.1+
verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b4pre)
Gecko/20090414 Shiretoko/3.5b4pre
Status: RESOLVED → VERIFIED
Bug 451915 - move Firefox/Places bugs to Firefox/Bookmarks and History. Remove all bugspam from this move by filtering for the string "places-to-b-and-h".

In Thunderbird 3.0b, you do that as follows:
Tools | Message Filters
Make sure the correct account is selected. Click "New"
Conditions: Body   contains   places-to-b-and-h
Change the action to "Delete Message".
Select "Manually Run" from the dropdown at the top.
Click OK.

Select the filter in the list, make sure "Inbox" is selected at the bottom, and click "Run Now". This should delete all the bugspam. You can then delete the filter.

Gerv
Component: Places → Bookmarks & History
QA Contact: places → bookmarks
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: