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

History fixes and misc about page fixes #5559

Closed
wants to merge 4 commits into from
Closed

History fixes and misc about page fixes #5559

wants to merge 4 commits into from

Conversation

bsclifton
Copy link
Member

@bsclifton bsclifton commented Nov 11, 2016

  • Submitted a ticket for my issue if one did not already exist.
  • Used Github auto-closing keywords in the commit message.
  • Added/updated tests for this change (for new code or code which already has tests).
  • Ran git rebase -i to squash commits (if needed).

The big history-fixer-upper

Auditors: @cezaraugusto, @darkdh

Test Plan:

  1. Launch Brave and go to about:history
  2. With history open, open a new tab and visit a site you have never been to before (hint: just append #1234567 to the end of URL)
  3. Switch back to history tab and confirm entry shows
  4. Open another new tab; in the URL bar, type an entry for a site you HAVE been to before (which shows in the autocomplete)
  5. Instead of hitting enter, pick the URL from the autocomplete drop down (use arrow keys and press enter, OR click)
  6. Visit about:history again and confirm this entry shows
  7. On about:history, click some of the entries. They should show their selection status in a faster manner than before

Advanced test notes:

  • After exiting Brave, you can view the session file to confirm the details used in about:history and about:brave are removed and NOT stored to disk

Remove unnecessary/broken/useless context menu items for about pages

Fixes #4812

Update icon for about pages to fa-list (except for about:newtab)

Fixes #5497

Auditors: @bradleyrichter

Test Plan:

  1. Launch Brave and visit about:about
  2. Open each of the links and confirm it's the fa-list icon

Screenshots

Here's one showing:

  • fixing the casing on component names in about:brave
  • new "fa-list" urlbar icon
  • context menu has items removed from about pages
    • save as
    • print
    • view source
    • inspect element

screen shot 2016-11-11 at 5 13 56 pm

@bsclifton
Copy link
Member Author

bsclifton commented Nov 11, 2016

NOTE: This PR is going to conflict with #5531 and will need a rebase (since that PR will be accepted first)

Also, tests are included and it appears all relevant ones passed when run locally (some of the pending tests are tracked with #5389; not all of the tests are triaged yet)

696 passing (19m)
18 pending
10 failing

- History code was refactored
  - one step forward with regard to #3502
  - session helper created for aboutHistory (tests added)
  - history specific methods broke out into historyUtil (tests added)
  - history stores it's data in AppStore.about.history (similar structure to new tab code)

- about:history is only updated when something changed
  - # calls to render on about:history is drastically reduced (should fix #5382; please reopen if not)
  - entries are added on visit (as expected) and show on about:history instantly
    - Fixes #5542
    - Fixes #4794
    - Fixes #5072

- about:brave text update
Implements followup feedback for #5436 (comment)

Auditors: @cezaraugusto, @darkdh

Test Plan:
1. Launch Brave and go to about:history
2. With history open, open a new tab and visit a site you have never been to before (hint: just append #1234567 to the end of URL)
3. Switch back to history tab and confirm entry shows
4. Open another new tab; in the URL bar, type an entry for a site you HAVE been to before (which shows in the autocomplete)
5. Instead of hitting enter, pick the URL from the autocomplete drop down (use arrow keys and press enter,  OR  click)
6. Visit about:history again and confirm this entry shows
7. On about:history, click some of the entries. They should show their selection status in a faster manner than before

Advanced test notes:
- After exiting Brave, you can view the session file to confirm the details used in about:history and about:brave are removed and NOT stored to disk
Fixes #5497

Auditors: @bradleyrichter

Test Plan:
1. Launch Brave and visit about:about
2. Open each of the links and confirm it's the `fa-list` icon
@bsclifton
Copy link
Member Author

@cezaraugusto noticed that during his testing that the history issue is not resolved. I tried after rebasing and was able to repro. Will be looking into that (please don't merge yet)

.sort(sortTimeDescending)
.slice(-aboutHistoryMaxEntries)
sites = makeImmutable(sites) || new Immutable.Map()
return sites.toList()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

++

@bsclifton
Copy link
Member Author

@bradleyrichter screenshot (with description) added 😄

@bsclifton
Copy link
Member Author

Closing this for now so that it doesn't accidentally get merged. Will either reopen or submit a new PR once it's ready for review again 😄

@bsclifton bsclifton closed this Nov 12, 2016
@bradleyrichter
Copy link
Contributor

It looks like our icons are riding high for some reason. But this will look nice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.