Граф коммитов

64 Коммитов

Автор SHA1 Сообщение Дата
Cameron Dawson 3ba10ee22d
Bug 1600626 - Add progress status to Push Health (#5755) 2019-12-16 13:36:58 -08:00
Mellina Yonashiro e6aebc191a Bug 1600757 - Dropdown menu screen reader keyboard support (#5725) 2019-12-16 12:20:33 -08:00
Sarah Clements afca0ae09b
Bug 1596297 - Support legacy task inspector links (#5643)
Refactor getInspectTaskUrl to check date for creation of task links
2019-11-18 09:33:55 -08:00
Musa Talluzi fbdb71d41c Reenable camelCase eslint rule and fix all violations 2019-11-12 10:36:55 -05:00
Sarah Clements fd19ee836d
Bug 1566190 - Implement Taskcluster login change (#5543)
* remove taskcluster credentials from WebAuth audience and scope
* create set up separate tc auth callback component and route
2019-11-09 11:25:27 -08:00
Armen Zambrano G 4e108855b6 Bug 1593869 - Land UI code in preparation for Taskcluster migration
I do not know why I suggested landing the complete PR #5604.
I wanted the UI code to be landed in advance so we can notice any edges cases
on the day before the downtime. This change only includes the UI changes from
the original PR.
2019-11-08 12:21:38 -05:00
Armen Zambrano G 62f953625f Revert "Bug 1593869 - prep for Taskcluster migration (#5604)"
This reverts commit 2ccfe7f6da.
2019-11-08 10:51:00 -05:00
Sarah Clements 2ccfe7f6da
Bug 1593869 - prep for Taskcluster migration (#5604)
- update repositories fixture with new tc_root_urls for firefox-ci and community-ci

- update getRunnableJobsUrl and RunnableJobModel to access currentRepo and tc_root_url;
refactor getInspectTaskUrl and JobInfo component to have currentRepo prop

- add new rooturls to connect-src, update rooturl for seta, update docs and
remove header in make_request,
2019-11-07 13:58:47 -08:00
Cameron Dawson b774521fb8 Disable per file: eslint jsx-a11y/no-noninteractive-element-interactions 2019-10-01 11:53:47 -07:00
Sarah Clements 59737af771
Bug 1539232 - Switch Perfherder to react-router (#5379)
Switch Perfherder to react-router
Use top-level of app as a cache for projects, frameworks, alerts data and compare data
Cleanup files and move constants to dedicated perfherder file
Remove angular-related libraries and bump up the neutrino entry and asset limits
2019-09-25 15:15:37 -07:00
Cameron Dawson aff331f3d3
Bug 1566077 - Improve getting decision task ID (#5360) 2019-09-17 14:42:57 -07:00
Sarah Clements 47b53c157a
Bug 1519995 - Perfherder graphs react conversion part 3 (#5286)
Create components to handle graph controls, legend and graph container
Convert graph functionalty to react and replace jquery.flot with Victory
2019-09-09 13:19:04 -07:00
Cameron Dawson 1300d3927e Bug 1572521 - Improve click target size of job actions ellipses 2019-09-06 14:39:11 -07:00
Armen Zambrano G 31990b982d Few linting exceptions 2019-08-21 21:00:59 -04:00
Cameron Dawson 37949edf4f Bug 1572117 - Show the "minutes" text next to duration in job details 2019-08-08 12:36:27 -07:00
Cameron Dawson 069c1ecaf1 Bug 1572283 - Fix filtering link by job data
This was breaking add new jobs and filtering
2019-08-08 12:36:27 -07:00
Cameron Dawson 5d4ca44e7d
Rename details selectedJob to selectedJobFull (#5230)
* Rename details panel ``selectedJob`` to ``selectedJobFull``

The job that's passed in the DetailsPanel has a bunch of extra fields
that are not in the normal downloaded list of jobs.  So I wanted to
depict that ``selectedJob`` is not the same thing as what you see
in the DetailsPanel.

* Stop using Redux where not necessary

I was using Redux to assign the selectedJob in a few details
classes when I should have just passed it where it was needed.

* New addAggregateFields function

Instead of using a more heavy weight JobModel for each job,
we just persist some fields that were getting constantly calculated
over and over.  This was especially true during filtering and re-rendering.

* Remove some cruft leftover from Buildbot.
2019-08-06 12:10:33 -07:00
Cameron Dawson 06ea7634a4 Bug 1568334 - Remove AutoclassifyTab code from UI 2019-07-24 09:53:26 -07:00
Sarah Clements 0cab1eafcc
Bug 1519991 - Convert graphs chooser controller to React (#5053)
Create TestDataModal component with redesigned layout; refactor FilterInput to use debounce for on-the-go filtering.
2019-06-15 17:16:32 -07:00
Cameron Dawson 0ddd5a80e1
Bug 1510280 - Convert Notifications to Redux (#5030)
This introduces Redux back into Treeherder.  While redux is often considered
unnecessary for simple apps in favor of Context, Treeherder is not simple.

Using Redux here allows us to abstract out certain functionality into
libraries that can be self-contained.  And it does a better job of managing
the functions needed to modify the state in these areas.  This is the first
context I am converting and will likely have minimal (if any) noticeable
performance gain.  But converting SelectedJob and Pusehs should end up having
a larger impact.
2019-06-06 14:39:50 -07:00
Sarah Clements cfde588e43
Bug 1523710 - Convert alerts view to react (#5005)
replace all angular partials and controllers with react components;
write tests for filters and different alert functionality
2019-06-03 11:53:44 -07:00
fqueze 4257c61305 Show 'open in Firefox Profiler' links for profiles with a .json extension. (#4987) 2019-05-20 13:17:17 -07:00
Cameron Dawson 3d1524118d
Bug 1549556 - Add Push Health badge to PushHeader (#4957) 2019-05-10 15:51:14 -07:00
Cameron Dawson e5fb5d61af
Fix titles for FontAwesomeIcon (#4838) 2019-04-09 10:24:47 -07:00
Sarah Clements 1f6809a751
Bug 1509216 - Convert Perfherder compare and comparesubtests views to react (#4811)
Move compare files to new directory, set up validation HOC and
create components for compare view and compare subtests views
2019-03-25 18:54:53 -07:00
Cameron Dawson 0c7be612de Bug 1531243 - Fix ESLint jsx--a11y/label-has-associated-control 2019-03-06 10:32:26 -08:00
Cameron Dawson 4ea717c9b6 Bug 1531243 - Fix a11y issues with aria-label and button roles 2019-03-06 10:32:26 -08:00
Cameron Dawson 840b0d37a9
Bug 1531245 - Add some a11y regions to job-view details area (#4734) 2019-03-06 08:17:55 -08:00
ionutgoldan 54ed00a305
Bug 1519290 - Convert compare replicates view to React 2019-03-06 11:40:52 +02:00
Sarah Clements 7245a93d32
Bug 1527824 - refactor and replace usage of PushModel.getList (#4713)
update usage in SelectorCard and in other components
2019-02-27 10:26:50 -08:00
Ed Morley 8aa5d30cad
Bug 1506805 - Convert job-view and userguide to react-fontawesome (#4710)
This is the second part to the Font Awesome conversion started in #4556.

After this PR, all that is left is the Perfherder parts, which can be
converted from the inline HTML style SVG+JS to using
`@fortawesome/react-fontawesome` as part of the React conversion.
2019-02-27 17:58:55 +00:00
Ed Morley ca99c3cca8 Bug 1529223 - Auth: Rename `IdToken` header to `Id-Token`
For consistency with the other headers (and seeing as we already have
to have a fallback for `ExpiresAt`, we can remove both later at the
same time).
2019-02-25 20:16:59 +00:00
Ed Morley e643b8e4e7 Bug 1529223 - Auth: Use seconds not milliseconds for expiration handling
Previously the frontend would calculate the access token expiry timestamp
in milliseconds and pass it to the `/login/` API via an `ExpiresAt` header.
The backend would then convert both the Id Token's `exp` and current time
to milliseconds, when calculating the earliest expiry. The result then
had to be converted back to seconds for use with Django's session
`.set_expiry()`.

It is instead much simpler to leave everything in seconds, since none of
the Auth0-provided inputs were in milliseconds to start with, so there is
no loss of precision, just fewer conversions required. Timestamps are also
more commonly in seconds, so use of seconds is less surprising.

After this is deployed there will initially be users who have old frontend
pages open that are still sending the expiry as milliseconds. In order to
be able to differentiate between new and old clients, the header has been
renamed to `Access-Token-Expires-At` (which also makes it clearer as to
what the expiry is for, given there is also an Id Token expiry), and a
temporary fall-back added to the backend that can be removed after a few
days has passed.
2019-02-25 20:16:59 +00:00
Sarah Clements 289057732a
Bug 1509214 - Convert Perfherder phCompareComponent (#4538)
Create table and filters components
2019-02-07 10:47:45 -08:00
Ed Morley f0abef42c0
Bug 1506805 - Upgrade to modern Font Awesome (Part 1) (#4556)
* Convert Perfherder to Font Awesome v5
* Convert legacy react-fontawesome to the new version
* Convert logviewer to react-fontawesome
2019-02-05 08:44:49 +00:00
Cameron Dawson 5352266b49
Bug 1521157 - Create /push/health API for Push Health view (#4520)
This API returns fake/canned data in the format that the Push Health
view expects.
2019-02-01 09:58:20 -08:00
Cameron Dawson 660200ecbc
Fix login button dark on hover (#4531)
Also removed some dead CSS classes related to login.
2019-01-31 08:52:50 -08:00
Cameron Dawson d2e83bdb90
Bug 1521157 - Create a prototype for the Push Health View (#4475) 2019-01-24 08:15:46 -08:00
Cameron Dawson 7a48bbc575
Bug 1493833 - Fix ESLint errors with import/no-cycle (#4451) 2019-01-14 08:30:51 -08:00
Cameron Dawson 33921b52fd
Bug 1514668 - Use shared LogoMenu across IFV and Perfherder (#4435)
Also convert LogoMenu.jsx to Reactstrap dropdown and use it in IFV navbar
2019-01-10 10:15:56 -08:00
Cameron Dawson 4ce36e762e
Bug 1499559 - Fix notifications not auto-expiring (#4420) 2019-01-04 10:26:06 -08:00
Cameron Dawson 6eeff4bafe
Bug 1513601 - Fix/enable ESLint 'react/button-has-type' (#4377)
Also make tests less brittle
2018-12-18 14:22:32 -08:00
Cameron Dawson 2885a9a1e3
Bug 1480166 - Use class fields to avoid bind() calls in the rest (#4370) 2018-12-13 10:31:30 -08:00
Sarah Clements a0482c50e7
Bug 1506671 - Convert perf compareChooser view to react (#4297)
Remove compareChooser angular partial and controller and create react components
2018-11-29 13:44:12 -08:00
Cameron Dawson 964d81f8ac Bug 1499551 - Cleanup add/remove event listeners and binding (#4312)
And also clear server update interval on App unmount.
2018-11-27 11:09:13 +00:00
Ed Morley 65b7f4ab45
Bug 1507172 - Use Prettier for formatting JS/JSX (#4276)
Since it's more reliable (and strict) at code formatting than ESLint.
We use it via an ESLint plugin, and so disable the style-related AirBnB
preset rules, leaving the AirBnB guide to handle only correctness and
best practices rules.

It's highly encouraged to use an IDE integration or Git commit hook
to run Prettier (or `yarn lint --fix`) automatically. See:
* https://prettier.io/docs/en/editors.html
* https://prettier.io/docs/en/precommit.html

We may consider enabling a git commit hook out of the box (using eg
Husky) in the future, however they have previously been known to
interfere with partial-staging workflows, so would need to test the
fixes they have made for them thoroughly first.

In future PRs we may also want to start formatting JSON/CSS/Markdown
using Prettier too.
2018-11-16 08:28:34 +00:00
Ed Morley 4db0cfa973
Bug 1507406 - ESLint: Enforce more strict import style (#4279)
Imports must now be grouped like so (with newlines between each):

```
// "external" modules
import _ from 'lodash';
import chalk from 'chalk';

// modules from a "parent" directory
import foo from '../foo';
import qux from '../../foo/qux';

// "sibling" modules from the same or a sibling's directory
import bar from './bar';
import baz from './bar/baz';
```

The `import/order` rule has auto-fix support, so any errors can be
resolved using `yarn lint --fix`.

See:
https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/order.md
2018-11-16 08:07:49 +00:00
Ed Morley 84072ff42c
Bug 1507449 - Remove link to WPT viewer since it doesn't work (#4282)
The WPT viewer no longer seems to load correctly, so the link has
been removed to prevent end-user confusion.
2018-11-15 12:59:39 +00:00
Cameron Dawson fdb48d0aa2
Bug 1505336 - Make notifications clear-able (#4254) 2018-11-14 08:36:18 -08:00
Cameron Dawson 7f3db4090f
Bug 1506633 - Fix Logviewer links to original job in Treeherder (#4270) 2018-11-14 08:26:57 -08:00