Please review the change
- Queries
- All Stories
- Search
- Advanced Search
- Transactions
- Transaction Logs
Advanced Search
Jun 18 2019
Jun 17 2019
Fix failing tests
Sidebar tests fail.
Use Bootstrap breakpoint constant
- Split tests into two files
- Rebase with master
- Update commit summary
- Minor correction: md screen >=BREAKPOINT_MD rather than >BREAKPOINT_MD
Jun 14 2019
- Add bootstrap breakpoints constants
In D1583#35787, @vlorentz wrote:In D1583#35783, @kalpitk wrote:bootstrap breakpoint
Below 992px means sm, xs devices.Oh, right!
Can we/should we import the constant from bootstrap instead of hardcoding it here?
In D1577#35773, @vlorentz wrote:Could you rename the file to cypress/integration/sidebar.spec.js?
In D1583#35782, @vlorentz wrote:Where is the value "992" coming from?
Jun 13 2019
- Test sidebar widths
While working on the tests, I found that for non-lg devices (width<992), first time you press the push-menu, it doesn't toggle. Instead it adds 'sidebar-collapse' first time. I think there is some conflict between webapp-utils.js:5 and the bootstrap defaults. I couldn't find the exact cause to it.
- refactor sidebar test
- refactor sidebar test
Jun 12 2019
I plan to add the following e2e tests-
- Test basic webapp functionalities like 'sidebar', 'back-to-top'
- Test home page displays positive stats for directories, authors,...
- Test the origin-search with different combinations of checkboxes
- Test basic functionality of directory view.
- Test file being displayed (for some known format, maybe .txt)
- Test error being displayed when invalid sha1 or unknown origin url
Jun 11 2019
Update commit message
rebase with master
revert last commit
- Add tests
Jun 9 2019
Jun 7 2019
Abandon in favor of e2e testing with cypress
amend commit messages and rebase
Jun 6 2019
- increase z-index and move popover left
Jun 5 2019
Rebase with master
Rebase with master and squash reordered commits
Jun 4 2019
@anlambert made all the changes.
- Made required changes
- Remove div-item css
May 31 2019
First of all, I think, we need to run the docker (with overridden swh-web) manually. And then run the selenium test cases. (I couldn't find a better approach). However, Jenkins may be configured to run these tests after running the docker-compose.
May 30 2019
Only admin deposit table is left. I am not sure about what priority order should I keep for the columns.
May 29 2019
- add width 100% to api table
- update more datatables
May 28 2019
- Redesign mobile directory view
May 27 2019
May 25 2019
May 24 2019
moved js to webapp-utils.js
May 23 2019
- Decrease beta ribbon size for small screens
- Hide donate button for small screens
By mistake pushed a new diff.
Changes made in D1510.
In D1505#33653, @anlambert wrote:Instead of hiding the ribbon, we should make it smaller in order that it does not overflow the main page content.
After thoughts, the fact that the the archive website is an ongoing development should remain visible to the users.
Can you try that approach ?Also can you hide the 'Donate button' for smaller display ?
May 22 2019
May 21 2019
I propose changes to the following to improve the mobile website -
In the directory view, 'Mode' can be removed for mobile website. It would look cleaner.In the mobile view, 'Beta version' obstructs the view. I think it would be better to hide this too.The menu in browse, doesn't look nice. I think this would require some rework.'Donate' button overlaps on most of devices. For mobile devices, either remove the button or maybe remove class swh-position-right.hide 'go to top' button when already on top (for desktop view also)DataTable headers don't scroll currently in mobile view. Either make the headers scroll too or make it mobile responsive (it will appear in form of dropdown in mobile view)
May 8 2019
May 7 2019
- fix failing tests and make minor changes
- Fix XSS in web API interface
@anlambert I think, I have added escape wherever it was vulnerable.
- Add escape for request.META
- Add escaping for BadInputExc
- Add character escaping at more places
- Merge branch 'master' of https://forge.softwareheritage.org/source/swh-web into xss
@anlambert We need to remember to use 'escape' unsafe things, whenever marking some html as safe.
- move mark_safe to _generate_error_page
- use mark_safe with escape
May 6 2019
@anlambert
Ok. Will need to rework this, to keep the links working.
But,
1- if we filter out directly while saving, it may cause some valid links being rejected.
2- if I use filterXSS, other html tags will still work.
May 4 2019
May 3 2019
Apr 27 2019
Apr 13 2019
I can confirm, all the 4 codes below work with your commit and xss is too not working.