Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Updates to history page #3281

Closed
wants to merge 1 commit into from
Closed

Updates to history page #3281

wants to merge 1 commit into from

Conversation

bsclifton
Copy link
Member

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Ran git rebase -i to squash commits if needed.

There is a bare-bones history page in place. This PR updates the styles to make it look more "Brave-like" (borrowing from about:preferences), adds the ability to search history, and groups
history items by date. All strings are localized and ready for translation.

cc: @bradleyrichter @bbondy

Specific changes from commit log:

  • Style refresh
  • Page now breaks history items down by date (sorted desc)
  • shortened location shown to "domain.tld"
  • page is now localized (including formatting dates)
  • Added working "Clear browsing data button"
  • History is now searchable

Fixes #441

@bsclifton
Copy link
Member Author

Now for some screenshots 😄

Please review and give me feedback; I can update the styles and take care of any asks you may have.

Here's a shot of the regular screen:
screen shot 2016-08-20 at 1 39 05 pm

When you click clear browsing data, it pops up the modal:
screen shot 2016-08-20 at 1 39 19 pm

You can search the results; one thing to note, it shows the time next to each entry, but does NOT group it by day. I need to fix this and would like to hear recommendations about how to show results. For sure, we'd want to say "X results found" (which is not currently shown)
screen shot 2016-08-20 at 1 39 40 pm

Highlight color is no longer BLUE (like the bookmarks page). Instead, it borrows from SortableTable (see preferences > search for an example).
screen shot 2016-08-20 at 1 40 12 pm

Context menu works great. Anything else we'd like to see here?
screen shot 2016-08-20 at 1 40 30 pm

@bsclifton
Copy link
Member Author

bsclifton commented Aug 22, 2016

Still working through some look and feel updates per the proposed mockup from @bradleyrichter:
image

This PR is fairly close to that look and feel right now. The content for each day is now stored in SortableTable control. This control is also used for the default search engines in preferences, so we need to confirm that still works as expected.

Here's a live shot:
screen shot 2016-08-21 at 12 23 32 pm

My next step: look into creating tests for this new functionality.

The remaining work before it matches 100% (which can be broken out to separate issues):

  • delete icon needs to be added to table header (for time column)
  • hover style needs to be updated to match spec
  • hover style needs to show the X to delete history entries
  • style updates for SortableTable header (gradient, orange column stripe, up/down arrow)
  • "jump" functionality (shown on the day view)

@bsclifton
Copy link
Member Author

Ready for re-review 😄

@bradleyrichter
Copy link
Contributor

Of course, styles can be refined. I'll poke around a bit. But looking good so far!

The one question I have for now is if we can live with only one column header at the top? This would become the "sort captain" and all sub-tables would follow. This should cut down the redundancy and still provide the intended function.

- Style refresh (fairly close to mockup)
- changed color of about:history tab
- Page now breaks history items down by date (sorted desc)
- shortened location shown to "domain.tld"
- page is now localized (including formatting dates)
- added working "Clear browsing data button"
- history is now searchable (also broken down by date)
- updated page to use SortableTable

Fixes #441

Updates to SortableTable control:
- renamed hoverCallback and isHover, giving a more clear name
- extended to allow optional classnames per column
- can process onClick, onDoubleClick, and onContextMenu
- new `rowObjects` property, useful for mapping a row to the raw object
@bsclifton
Copy link
Member Author

@bradleyrichter a single table header... that's an interesting idea. It would take some extra work, but I think it's feasible

@bbondy
Copy link
Member

bbondy commented Aug 23, 2016

going to open off of a shared branch

@bbondy bbondy closed this Aug 23, 2016
@bsclifton bsclifton deleted the history-page branch August 26, 2016 19:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants