Tymoteusz Czech
6030900b40
refactor: replace IProjectCard with openapi type ( #8043 )
...
Makes type consistent between frontend and schema generated from backend.
2024-09-02 13:25:28 +00:00
Jaanus Sellin
fc86f5b2fe
feat: align insights charts ( #7984 )
...
Now the left widget will use the same that as the last data point on the
right chart.
With this change, flags/users object never needs to be passed in.
**Next step is to remove the flags/users from the endpoint.**
Previous
![image](https://github.com/user-attachments/assets/b938e568-e32e-4ae8-beb9-d8de8aa2c5ec )
Now
![image](https://github.com/user-attachments/assets/182dfbbb-bf2e-42f9-a024-0c545c604f74 )
2024-08-27 11:06:08 +03:00
Jaanus Sellin
08b0bfe291
chore: move flags widget 2 widgets down ( #7977 )
...
Moving flags 2 widgets down
2024-08-23 16:35:39 +03:00
gitar-bot[bot]
43100f9561
Cleaning up stale flag: insightsV2 with value true ( #7896 )
...
Co-authored-by: Gitar <noreply@gitar.co>
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
2024-08-21 12:01:35 +02:00
Thomas Heartman
245bdeae1e
chore: generate orval for event creators ( #7823 )
...
Updates our orval config to include event creator data
2024-08-12 15:07:26 +02:00
Tymoteusz Czech
e77bb1b2e7
Fix: time to production ( #7835 )
...
- filter out time to production data points of `0 days to production`
- allow for gathering data for quickly enabled feature flags
2024-08-12 09:47:06 +00:00
Tymoteusz Czech
11612931b9
fix: insights health info link placement ( #7750 )
...
Fixing link placement on smaller screens.
2024-08-05 10:39:48 +02:00
Mateusz Kwasniewski
21ab80b753
feat: health stats insights explanation ( #7690 )
2024-07-29 15:19:20 +02:00
Tymoteusz Czech
d825b49f43
fix: health stats number ( #7688 )
...
Prevent showing "undefined%" in new Health statistics.
2024-07-29 12:49:03 +02:00
Mateusz Kwasniewski
94588c12d4
feat: human readable project names in insight charts ( #7686 )
2024-07-29 11:52:14 +02:00
Tymoteusz Czech
242f59ba4e
New health stats component ( #7620 )
...
New style for widget
2024-07-18 15:48:47 +02:00
Tymoteusz Czech
19121f234e
Insights layout ( #7610 )
...
Refactored insights page - stats and charts relevant to the same metric
are now combined into a single widget.
2024-07-18 12:43:52 +02:00
Thomas Heartman
906edec1b6
feat: show info on healthy flags in health tooltip ( #7611 )
...
This PR updates the tooltips for the health chart to also include
information on how healthy flags there are. The user could make this
calculation themselves before, but it'd require them to subtract the sum
of stale and potentially stale flags from the total. This makes it so
that they don't have to do the calculation.
I've also included a bar for the healthy flags in the overview, so that
it's easier to see how large a portion it is compared to the others.
Also: clean up some uses of the now-deprecated VFC.
![image](https://github.com/user-attachments/assets/fa33b5ec-b5aa-472d-8ee3-329c5ed0d0c6 )
2024-07-18 10:24:58 +02:00
Mateusz Kwasniewski
06f5073fce
test: insights filtering ( #7612 )
2024-07-17 15:03:02 +02:00
Tymoteusz Czech
6e4e58aee8
fix: insights sticky header ( #7607 )
...
Insights header should show below banners in insights v2
2024-07-17 10:02:55 +00:00
Mateusz Kwasniewski
39f6cbd66c
feat: insights filters ( #7608 )
2024-07-17 11:30:58 +02:00
Mateusz Kwasniewski
d2ef9e27ed
refactor: insights actions container relaxed width ( #7603 )
2024-07-16 17:27:11 +02:00
Mateusz Kwasniewski
248f879553
chore: remove share insights button ( #7600 )
2024-07-16 15:10:34 +02:00
Tymoteusz Czech
7b2532ea4f
New insights layout - feature flag ( #7598 )
...
Preparing insights component for refactoring and enhancements.
2024-07-16 12:24:30 +00:00
Mateusz Kwasniewski
3ade609956
feat: user seats component ( #7583 )
2024-07-12 15:39:37 +02:00
Jaanus Sellin
3acb3ad2c2
feat: upgrade from react v17 to v18 ( #7265 )
...
**Upgrade to React v18 for Unleash v6. Here's why I think it's a good
time to do it:**
- Command Bar project: We've begun work on the command bar project, and
there's a fantastic library we want to use. However, it requires React
v18 support.
- Straightforward Upgrade: I took a look at the upgrade guide
https://react.dev/blog/2022/03/08/react-18-upgrade-guide and it seems
fairly straightforward. In fact, I was able to get React v18 running
with minimal changes in just 10 minutes!
- Dropping IE Support: React v18 no longer supports Internet Explorer
(IE), which is no longer supported by Microsoft as of June 15, 2022.
Upgrading to v18 in v6 would be a good way to align with this change.
TS updates:
* FC children has to be explicit:
https://stackoverflow.com/questions/71788254/react-18-typescript-children-fc
* forcing version 18 types in resolutions:
https://sentry.io/answers/type-is-not-assignable-to-type-reactnode/
Test updates:
* fixing SWR issue that we have always had but it manifests more in new
React (https://github.com/vercel/swr/issues/2373 )
---------
Co-authored-by: kwasniew <kwasniewski.mateusz@gmail.com>
2024-06-11 13:59:52 +03:00
Christopher Kolstad
0db5bc193f
task: upgraded semver dependency (and biome) ( #7272 )
...
Sorry for the extra noise here, but this seems to be the biome upgrade
altering formatting slightly.
2024-06-04 15:01:43 +02:00
Jaanus Sellin
88dda1987f
feat: project health chart now goes from 0 to 100 to give perspective ( #7249 )
...
![image](https://github.com/Unleash/unleash/assets/964450/ab56de69-bed5-4b2c-8ff9-b1cc3db8dd4b )
2024-06-04 10:18:20 +03:00
Jaanus Sellin
6c8b1d8904
fix: when finding median time to production, ignore 0s ( #7200 )
...
We have an issue that if you open up Insights, the Time to Production
chart was showing nothing because it was taking the median across all
projects. You might have many new or empty projects where the median was
0 (no data).
For example, the median from [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1.7, 50.3, 140] was 0.
Now, we will remove the 0 values to have a more reasonable median.
2024-05-29 14:17:31 +03:00
Jaanus Sellin
e79e36daae
fix: show 2 insights components to pro ( #7207 )
...
Currently it was showing only users. Now showing 2.
2024-05-29 12:42:53 +03:00
Jaanus Sellin
ef9f09b58c
feat: insights out of beta and expose 2 widgets to pro ( #7177 )
...
1. Remove beta badge
2. Remove exposure from oss
3. Expose 2 widgets to pro and rest to enterprise
2024-05-29 11:55:01 +03:00
Jaanus Sellin
8542cafc9f
chore: rename toggle to flag #2 ( #7097 )
2024-05-22 08:20:11 +03:00
Jaanus Sellin
3768331e9a
fix: make numbers in chart to locale string ( #7084 )
...
To get correct formatting to number, in our codebase we call
toLocaleString(). Added it also to this component.
From
![image
(20)](https://github.com/Unleash/unleash/assets/964450/f941a592-4b86-4b64-99c5-4e7e5d4ccaf2 )
To
![Screenshot from 2024-05-20
14-06-19](https://github.com/Unleash/unleash/assets/964450/abac4570-30be-4fa4-a6fd-24b3f70902e0 )
2024-05-20 14:27:53 +03:00
Tymoteusz Czech
e10ad7257f
Fix: insights loading ( #6834 )
...
Loading state for
- charts (placeholder data, animation)
- user stats - loading skeleton animation
- empty flags stats
- kept other "stat" widgets as-is, usually not visible
2024-04-15 09:46:56 +02:00
andreas-unleash
e4ece8bcaa
feat: ttp stat should show No data when exactly 0 ( #6823 )
...
Currently the TimeToProduction stat shows `Fast` for ttp = 0 which is
wrong. Absolute 0 will only happen when there are no data.
Closes
[1-2281](https://linear.app/unleash/issue/1-2281/timetoproduction-stat-should-not-say-fast-when-value-is-0 )
Before:
<img width="321" alt="Screenshot 2024-04-10 at 14 25 48"
src="https://github.com/Unleash/unleash/assets/104830839/f6d3c7af-1674-41c4-b187-ee3bf8df05ba ">
After:
<img width="360" alt="Screenshot 2024-04-10 at 14 25 38"
src="https://github.com/Unleash/unleash/assets/104830839/631ffbe5-475c-4c48-8790-47716e04887b ">
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-10 14:47:22 +03:00
andreas-unleash
68a1ba3dec
feat: fill metrics summary missing datapoints with 0 ( #6820 )
...
Fills missing datapoints with 0s so that all metrics chart lines have
data for all datapoints.
Closes #
[1-2278](https://linear.app/unleash/issue/1-2278/fill-the-metrics-data-with-0s-when-not-enough-data-to-fill-the-chart )
Before:
<img width="1547" alt="Screenshot 2024-04-10 at 12 48 22"
src="https://github.com/Unleash/unleash/assets/104830839/35885852-d986-4760-84e2-9e8ef61bedf0 ">
<img width="1550" alt="Screenshot 2024-04-10 at 12 48 44"
src="https://github.com/Unleash/unleash/assets/104830839/3385b8eb-08e2-4cc9-86b2-7b31b9fe81ef ">
After:
<img width="1582" alt="Screenshot 2024-04-10 at 13 43 10"
src="https://github.com/Unleash/unleash/assets/104830839/d3713df3-869b-48ba-b2ab-095027b37506 ">
<img width="1545" alt="Screenshot 2024-04-10 at 13 42 49"
src="https://github.com/Unleash/unleash/assets/104830839/44a6e662-2e9f-4fe8-8299-c15ab8f8e261 ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-10 14:38:45 +03:00
andreas-unleash
00d3490764
fix: Project select should not expand when selecting multiple projects ( #6811 )
...
Currently when you are selecting multiple projects, the autocomplete
expands indefinitely when focused.
This fixes that behaviour by limiting the project select to 1 visible
tag (even when focused) for Insights and 3 tags for Playground (same as
it was)
Closes
[1-2276](https://linear.app/unleash/issue/1-2276/limit-the-project-select-height-or-expand-its-length )
https://github.com/Unleash/unleash/assets/104830839/bf42a06e-8d30-49df-ac5b-a4a4f2685fa9
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-10 12:34:11 +03:00
andreas-unleash
fb9855c3fa
fix: Do not show the MetricsChartTooltip InfoSummary when all projects ( #6810 )
...
What it says on the tin
Closes #
[](https://linear.app/unleash/issue/1-2275/hide-bottom-part-of-metrics-tooltip-when-all-projects )
<img width="1677" alt="Screenshot 2024-04-09 at 16 57 13"
src="https://github.com/Unleash/unleash/assets/104830839/2369c6f4-a136-4635-b77b-63aa0087338e ">
<img width="1678" alt="Screenshot 2024-04-09 at 16 55 53"
src="https://github.com/Unleash/unleash/assets/104830839/b29ec13d-5611-40a2-8dc6-af4c5a4ec97a ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-09 17:48:04 +03:00
andreas-unleash
48b8df8f4e
fix: Health tooltip when all projects should show % ( #6809 )
...
What it says on the tin
Closes #
[1-2274](https://linear.app/unleash/issue/1-2274/health-tooltip-when-all-projects-should-show-percent-values )
<img width="945" alt="Screenshot 2024-04-09 at 16 09 34"
src="https://github.com/Unleash/unleash/assets/104830839/5c8fc8d3-bee6-4bf2-976d-de6f3e3013ca ">
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-09 16:20:32 +03:00
Tymoteusz Czech
2b3516dff1
refactor(insights): remove unused chart property ( #6806 )
2024-04-09 12:11:53 +02:00
Tymoteusz Czech
30336819f2
fix(insights): axis rendering after placeholder ( #6805 )
...
Chart options should change when it stops displaying a placeholder/cover. Without this we had axis missing on some renders.
2024-04-09 12:28:56 +03:00
andreas-unleash
2e0ca3150a
fix: fill the datasets with 0s when not enough data points ( #6793 )
...
Fills datasets that do not have all the datapoints with 0 so that every
line in the graph starts at the beginning and ends at the end of graph.
Closes #
[1-2256](https://linear.app/unleash/issue/1-2256/fill-the-data-with-0s-so-that-all-x-axis-labels-have-values )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
Co-authored-by: Tymoteusz Czech <2625371+Tymek@users.noreply.github.com>
2024-04-09 12:24:50 +03:00
andreas-unleash
60262e5d0b
fix: total flags and flags per user when all projects ( #6787 )
...
Fixes the flag stats flagsPerUser calculation and display value.
Previously the calculation depended on project data which might not be
there with the permission changes
Closes #
[1-2255](https://linear.app/unleash/issue/1-2255/unable-to-render-total-number-of-flags-when-there-are-no-project-data )
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-09 10:52:09 +03:00
andreas-unleash
e7a9f31eb4
fix: NotEnoughData hiding the header ( #6798 )
...
Before:
<img width="884" alt="Screenshot 2024-04-08 at 15 52 41"
src="https://github.com/Unleash/unleash/assets/104830839/3784a1db-83a8-4414-bda8-3eed698476a2 ">
After:
<img width="879" alt="Screenshot 2024-04-08 at 16 04 54"
src="https://github.com/Unleash/unleash/assets/104830839/117dec8e-6419-448d-89b7-9f6640e59500 ">
Closes #
[1-2267](https://linear.app/unleash/issue/1-2267/fix-zindex-of-notenoughdata-component )
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-09 10:29:23 +03:00
andreas-unleash
130bc20683
Fix: time to production showing NaN when no data ( #6799 )
...
Before:
<img width="1398" alt="Screenshot 2024-04-08 at 16 20 48"
src="https://github.com/Unleash/unleash/assets/104830839/892860f8-80de-4750-bad2-0e17ac221f1f ">
After:
<img width="1243" alt="Screenshot 2024-04-08 at 16 45 47"
src="https://github.com/Unleash/unleash/assets/104830839/3247c90a-f92f-4d4f-b407-275549b308bf ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-09 09:27:47 +03:00
andreas-unleash
717e541003
fix: make TTP stat show last week calculation ( #6766 )
...
Currently the median time to production stat is showing the aggregated
median across all dates.
This pr changes the calculation to only use the last week summary like
the rest of the stat widgets.
<img width="1665" alt="Screenshot 2024-04-03 at 11 25 31"
src="https://github.com/Unleash/unleash/assets/104830839/c6869b48-99bd-4f5b-a25e-7e0e3a2dc9ef ">
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-04-03 11:58:10 +03:00
andreas-unleash
9be15d4976
Chore/rename dashboard files to insights ( #6662 )
...
Renames everything related to `executive dashboard` to `insights`
Closes: # [1-2213](https://linear.app/unleash/issue/1-2213/rename-in-fe )
---------
Signed-off-by: andreas-unleash <andreas@getunleash.ai>
2024-03-21 16:39:03 +02:00