Commit Graph

32 Commits

Author SHA1 Message Date
Aurora Lahtela 4e486032f3 Fix some issues with the new navigation button 2023-01-26 14:39:17 +02:00
Aurora Lahtela 362bb44aad Implement a page navigation button
Improve page loading and theme system
- The sidebar is visible while loading with css
  There was an apparent problem when switching pages with the new switcher
- css variables are now used
- Theme color is applied to several buttons and texts
  where previously Plan color was used

Affects issues:
- Implements #2357
2023-01-26 14:18:51 +02:00
Aurora Lahtela 155910554f Fixed exported page constantly updating data in the background 2022-12-11 21:35:31 +02:00
Aurora Lahtela ad6abacf7f Fix issues of the exported pages
- Fixed / opening "Redirecting.." view due to wrong whoAmI replacement
- Fixed page not opening because sidebar contained undefined items (static site can't have everything)
- Fixed some sidebar links being anchors instead of react-router links
- Fixed network page not opening due to missing extensionData json
- Fixed server page not opening due to missing extensionData and serverIdentifier json
- Added visual icon to the page when it is exported rather than dynamic for my own sanity
- Removed query page links from exported pages
2022-12-04 11:06:05 +02:00
Aurora Lahtela 1a24a9e11d Fix login and register redirects in Frontend BETA 2022-12-03 19:47:34 +02:00
Aurora Lahtela 059d4553aa Implemented react side of export for frontend BETA 2022-11-27 09:48:55 +02:00
Aurora Lahtela 1be786544c Add missing useEffect dependencies 2022-11-25 17:07:45 +02:00
Aurora Lahtela f36ed678a3 Implemented register page in react 2022-11-25 16:49:06 +02:00
Aurora Lahtela 19ef3b56e0 Fix query page header names 2022-11-22 10:27:42 +02:00
Aurora Lahtela 38774867f7 Made query page display some results
Fixed Activity group filter
2022-11-12 10:39:20 +02:00
Aurora Lahtela 428a0c5fde Began work on Query page
- Implemented the view time range selector input fields
- Fixed geolocation filter query returning more options than supposed to
2022-10-15 15:41:57 +03:00
Aurora Lahtela 8cdbebf191 Implemented Network performance tab in React
Affects issues:
- Implemented #2469
2022-09-11 19:30:57 +03:00
Aurora Lahtela 7a51633690 Implemented network page join address tab
- Made it possible to toggle stack/side-by-side join addresses
2022-09-10 10:45:03 +03:00
Aurora Lahtela 12ce145345 Fixed plugin icons not showing up for sidebar 2022-09-06 12:17:39 +03:00
Aurora Lahtela cb21c45ea9 Visualize join address / day in React server page
Join addresses were missing

- Implemented new group visualizer that allows viewing group data as column/bar/pie/table
- Implemented latest join address pie on server page (was missing)
- Implemented join addresses per day graph on new Join addresses tab
- Made playerbase overview use the group visualizer

Affects issues:
- Close #2362
2022-09-05 16:56:59 +03:00
Aurora Lahtela 6d9fcab656 Implement Network overview tab in React 2022-09-04 09:40:17 +03:00
Aurora Lahtela c24c1e0dbe Add server list to network page navigation 2022-09-03 19:39:56 +03:00
Aurora Lahtela 38ee84af67 Fixed some issues with DataTables and unmounting extensions
When using ServerWidePluginData component for two different plugins that had a DataTablesTable
React reused the component, which lead to issues of DataTables trying to remount on the same
component with a different ID, with both jQuery and React trying to remove elements from DOM.

- Added div around table in DataTablesTable to allow React properly unmount the element after
  jQuery already removed the table element
- Added extra layer in ServerWidePluginData that re-renders the tab when plugin changes
- Sorted extensions in the endpoints
- Added /v1/networkMetadata endpoint for implementing server list navigation later
- Added network page to App.js with plugins and players tabs already implemented
2022-09-03 14:01:15 +03:00
Aurora Lahtela 19df503888 Fix issue with sidebar closing right away on first click
Sidebar items not being rendered caused the currentTab to be undefined,
until the sidebar is opened, and then currentTab is set - which then
caused a useEffect that closes sidebar to fire.
This lead to the sidebar closing right away on the first click.

To fix this the sidebar item state was moved to navigationHook,
and changing the list of items on a sidebar updates currentTab
at the same time to prevent sidebar rendering setting it again.
2022-09-01 20:27:41 +03:00
Aurora Lahtela c607ef2869 Rewrite /errors page with React 2022-09-01 18:59:59 +03:00
Aurora Lahtela 019a3353ca Load server extension data in separate context to speed up loading time 2022-08-31 18:06:08 +03:00
Aurora Lahtela cc326ddb84 Fix login redirect on from parameter on React login page 2022-08-28 18:17:25 +03:00
Aurora Lahtela 4c53a9a406 Enabled React server page in Frontend BETA
Various fixes to React frontend

- Implemented Extension DataTables table support
- Fixed colors in night mode
- Fixed DataTables night mode
- Fixed chart opacity in night mode (HighCharts doesn't like hsl values)
- Fixed color selector buttons in night mode
- Translated Login button
- Added license to package.json
- Changed Extension endpoint table representation to objects to allow value formatting
2022-08-27 22:26:30 +03:00
dependabot[bot] c824994cb9
Bump highcharts from 9.3.3 to 10.2.0 in /Plan/react/dashboard (#2463)
* Bump highcharts from 9.3.3 to 10.2.0 in /Plan/react/dashboard

Bumps [highcharts](https://github.com/highcharts/highcharts-dist) from 9.3.3 to 10.2.0.
- [Release notes](https://github.com/highcharts/highcharts-dist/releases)
- [Commits](https://github.com/highcharts/highcharts-dist/compare/v9.3.3...v10.2.0)

---
updated-dependencies:
- dependency-name: highcharts
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Add highcharts accessibility module to all charts

* Add missing dependency to useCallback

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com>
2022-08-27 17:05:07 +03:00
Aurora Lahtela ea16adb13d Initial version of server extension cards
TODO: Extension DataTables mapping
2022-08-23 22:01:34 +03:00
Aurora Lahtela d39c377756 Fix server page server name
Server name came from metadata endpoint, but it is incorrect if viewing a server page on a network

Added a new endpoint /v1/serverIdentity?server=... to get the identifiable name of the server.
2022-08-20 09:46:24 +03:00
Aurora Lahtela f185870125 Added fadein animations to all existing views 2022-08-19 19:03:02 +03:00
Aurora Lahtela b5005afbc5 Implement Login page using react 2022-08-18 18:53:35 +03:00
Aurora Lahtela c7a7b60d91 Geolocations to React server page 2022-06-08 18:24:38 +03:00
Aurora Lahtela 576485d20c Fix players page title 2022-06-05 22:12:00 +03:00
Aurora Lahtela 56a3be1835 React players page and fix constant rerender 2022-06-05 22:09:46 +03:00
Aurora Lahtela 7e1bd7f4a6 Playerbase overview page layout
- Moved some files
2022-05-23 18:58:06 +03:00