Commit Graph

92 Commits

Author SHA1 Message Date
Aurora Lahtela f66ed6344a
Fix perm level 2 redirect 2023-05-27 06:43:39 +03:00
Aurora Lahtela 9a250d4f3a
Fix logged in player head image 2023-05-09 17:11:52 +03:00
Aurora Lahtela 5060ad25d8 Fix networkMetadata read before it is loaded 2023-05-05 15:34:59 +03:00
Aurora Lahtela f2cb56d04c Implement support for HTML and COMPONENT extension value types
Affects issues:
- Fixed #2950
2023-04-22 18:49:53 +03:00
Aurora Lahtela f7cec19372
Multi proxy support (#2968)
- Change proxy server info storage to allow multiple proxies to exist in the database
- Allow naming Proxies with Server.Name config setting
- Server.IP is no longer required to be set during installation
- Change logic reliant on single proxy server to consider multiple proxies
  - If multiple proxies have webserver or export enabled, the address given by commands can be any of them.
- Network players online graph now stacks if redisbungee is not used. Individual players online graphs for different proxies can be viewed from Performance tab.
- Last Peak and All Time Peak are not given for multi-proxy networks without redisbungee since it would be expensive to calculate.
- Improved network performance tab considerably
- /plan info displays the Server UUID of the current server
- /plan server link goes to /server/UUID instead of /server/Name
- Fix join address graphs not loading if strict GROUP BY is enabled in MySQL

Affects issues:
- Close #1454
2023-04-09 10:10:28 +03:00
Aurora Lahtela f43d8f89fb Fix some sonar smells in frontend code 2023-04-08 09:13:38 +03:00
Aurora Lahtela e40793d2b8 Add warning to server list if server hasn't sent data for over 24h
The warning is demoted if data doesn't arrive in 7 days to a grey warning
And again after 30 days it changes to an archive to signify the server might be gone for good.

Affects issues:
- Close #2595
2023-04-06 19:57:45 +03:00
dependabot[bot] 399b9c1525
Bump react-router-dom from 6.7.0 to 6.10.0 in /Plan/react/dashboard (#2953)
* Bump react-router-dom from 6.7.0 to 6.10.0 in /Plan/react/dashboard

Bumps [react-router-dom](https://github.com/remix-run/react-router/tree/HEAD/packages/react-router-dom) from 6.7.0 to 6.10.0.
- [Release notes](https://github.com/remix-run/react-router/releases)
- [Changelog](https://github.com/remix-run/react-router/blob/main/packages/react-router-dom/CHANGELOG.md)
- [Commits](https://github.com/remix-run/react-router/commits/react-router-dom@6.10.0/packages/react-router-dom)

---
updated-dependencies:
- dependency-name: react-router-dom
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* Fix Open URI redirect with login redirect

Affects issues:
- Fixed #2747

* Tested open redirection and fixed addresses that bypassed the protection

---------

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>
2023-04-01 11:19:39 +03:00
Aurora Lahtela d7aab58aa1 Improve player head display on mobile
Affects issues:
- Fixed #2087
2023-03-26 11:35:22 +03:00
Aurora Lahtela e4a32a2902 Make it possible to sort extension tables 2023-03-26 11:00:33 +03:00
Aurora Lahtela c20a746bd6
Add player retention analysis graph (#2917)
Adds a graph to network and server pages that has options to:
- Draw graphs at different time resolutions
- Limit input data by time
- Group players by register date or join address
- Visualize retention in different ways
  - Time since registration date
  - Playtime
  - Date
  - Cumulative player gain
  - Percentage / Player count / Stacked player count

Any and all combinations are allowed which allows extensive analysis of player retention. Help sections attempt to make the data understandable and show examples.

Affects issues:
- Close #2159
2023-03-17 18:25:38 +02:00
Aurora Lahtela c1684a55df Fix Network > Servers Overview Quick View players online graph
Affects issues:
- Fixed #2908
2023-03-10 07:28:24 +02:00
Aurora Lahtela 3569034dc4 Translate the retention help prompt 2023-03-05 09:11:33 +02:00
Aurora Lahtela d27af20774 Added help modal for new player retention 2023-03-05 09:06:14 +02:00
Aurora Lahtela b3a8fee22d Add information modal about activity index 2023-03-04 19:13:35 +02:00
Aurora Lahtela 31d6fb1cb1 Allow switching between same page for different servers
This should make it easier to compare different servers quickly
2023-03-04 13:56:19 +02:00
Aurora Lahtela e736055898 Fix page extension api not loading scripts 2023-03-04 10:56:56 +02:00
Aurora Lahtela 5654710ed6 Fix GroupTable breaking when there were more groups than colors 2023-03-04 10:12:28 +02:00
Aurora Lahtela e9496e924f Fix page breaking after login
Navigation button broke the page due to requiring network metadata,
which was fetched when login page was loaded. Unfortunately
the endpoint required permissions so nothing was actually loaded.

- Load metadata after login
- Remove auth requirement from networkMetadata and serverIdentity endpoints
2023-03-04 10:10:20 +02:00
Aurora Lahtela 274d99b54d Remove unnecessary useCallback dependencies 2023-02-28 20:15:27 +02:00
Aurora Lahtela 6b2486f80d Catch component level errors at high level 2023-02-27 17:41:32 +02:00
Aurora Lahtela b92e886a39
React PageExtension Javascript APIs (#2894)
* Page extension api javascript file
* Add support for extending rows with pageExtensionApi
Tested it
* Support javascript snippets in react index.html
* Add context to pageExtensionApi calls
* Fix redirect text overlapping with sidebar
* Add new API for registering custom javascript and css
2023-02-25 13:57:12 +02:00
Aurora Lahtela a2d92a34cb Update to React 18 and react-bootstrap 2 2023-02-06 19:01:33 +02:00
Aurora Lahtela 413e087c4d Improved navigation significantly on mobile
Affects issues:
- Close #2228
2023-02-03 20:29:03 +02:00
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 b26678b3dc Fix a couple issues in the react frontend
- Fix card tabs not working with the new react router
- Fix server list card showing "No servers installed" while loading
2023-01-21 12:59:57 +02:00
Aurora Lahtela a773c4c46e Wrote a test for exported react pages
Affects issues:
- Close #2767
2022-12-13 19:33:00 +02:00
Aurora Lahtela 155910554f Fixed exported page constantly updating data in the background 2022-12-11 21:35:31 +02:00
Aurora Lahtela b3ef8e5a51 Fix onSetExtremes is undefined error 2022-12-10 10:20:12 +02:00
Aurora Lahtela 34318be5c3 Add missing timezone offset to line graphs
Affects issues:
- Fixed #2780
2022-12-10 10:16:27 +02:00
Aurora Lahtela 6ed2404040 Correct playerbase trends table
- now and then were flipped wrong way around

Affects issues:
- Fixed #2772
2022-12-08 16:34:43 +02:00
Aurora Lahtela f7176b3d47 Export redirection index.html files in case someone refreshes browser 2022-12-05 17:10:51 +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 059d4553aa Implemented react side of export for frontend BETA 2022-11-27 09:48:55 +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 ac88a57afe Implemented query page loader 2022-11-20 20:44:44 +02:00
Aurora Lahtela 838f362e30 Implemented rest of query result cards 2022-11-20 20:35:57 +02:00
Aurora Lahtela a4a1001a8d Display new player name as light green in kills tables
Affects issues:
- Close #1262
2022-11-13 15:49:32 +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 4f3e94024d Fixed incorrectly used translation labels 2022-10-22 11:32:45 +03:00
Aurora Lahtela f4bd580840 Implemented Query page filter options 2022-10-22 11:18:24 +03:00
Aurora Lahtela 8c1a357323 Add missing dependency to LineGraph useEffect 2022-10-16 14:23:40 +03:00
Aurora Lahtela 18801a4757 Add missing dependency to LineGraph useEffect 2022-10-16 14:18:07 +03:00
Aurora Lahtela 900ce7c49c Implemented query page server selector 2022-10-16 11:07:11 +03:00
Aurora Lahtela 1c3cfbfe4b Implemented query page graph selector
The range selector on the graph was quite quirky
so functionality in LineGraph needed to be expanded a lot
2022-10-16 10:47:18 +03: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 027c63fd84 Trigger window resize on datatable changes
- Also removed extension table pagination Previous and Next buttons
  to avoid overflowing if card is not wide enough

Affects issues:
- Possibly fixed #2637
2022-10-15 14:25:49 +03:00
Aurora Lahtela 5c9e0deed4 Fix player list routing to wrong player url
Affects issues:
- Fixed #2609
2022-09-25 09:20:39 +03:00