Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Surfaces the titles to the webUI and associates with the respective JSON and links for #178 #570

Merged
merged 2 commits into from
Sep 25, 2018

Conversation

machawk1
Copy link
Member

They are current associated with the li's title DOM attribute. We can change this in the future but having the data associated with the memento listing is a first step toward #178.

@machawk1 machawk1 requested a review from ibnesayeed September 25, 2018 14:20
@machawk1
Copy link
Member Author

Quick visual of resulting DOM source for reference:

screen shot 2018-09-25 at 10 22 03 am

@codecov
Copy link

codecov bot commented Sep 25, 2018

Codecov Report

Merging #570 into master will decrease coverage by 0.04%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #570      +/-   ##
==========================================
- Coverage   23.88%   23.84%   -0.05%     
==========================================
  Files           6        6              
  Lines        1189     1191       +2     
  Branches      178      179       +1     
==========================================
  Hits          284      284              
- Misses        885      887       +2     
  Partials       20       20
Impacted Files Coverage Δ
ipwb/replay.py 14.05% <0%> (-0.05%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 28c9cf6...8b866e6. Read the comment docs.

@@ -32,6 +32,9 @@ function addURIListToDOM () {

li.setAttribute('data-mime', memento['mime'])
li.setAttribute('data-status', memento['status'])
if ('title' in memento) {
li.setAttribute('title', memento['title'])
Copy link
Member

Choose a reason for hiding this comment

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

If we are planning to merge #566 (after title inclusion) then this change in the webui.js is not desired as it will cause unnecessary conflict. Making the title data available for usage should be good enough for this PR.

Copy link
Member Author

@machawk1 machawk1 Sep 25, 2018

Choose a reason for hiding this comment

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

@ibnesayeed This association is an effort to get #566 merged. #566 currently does not deal with titles. By associating it in the UI with the li, we can work toward including it in the listing.

Copy link
Member

Choose a reason for hiding this comment

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

@machawk1 #566 will be able to directly use the title attribute from the memento object. We don't need to add it to each li beforehand.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ibnesayeed Rm'd in 8b866e6. Once this PR is merged, we can prettify #566 a bit more before merging it in.

Copy link
Member

@ibnesayeed ibnesayeed left a comment

Choose a reason for hiding this comment

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

LGTM!

@machawk1 machawk1 merged commit 7558bc7 into master Sep 25, 2018
@machawk1 machawk1 deleted the issue-178 branch September 25, 2018 15:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants