1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-07-26 13:48:33 +02:00
Commit Graph

13963 Commits

Author SHA1 Message Date
Github Actions Bot
d9d3958620 docs: Update CHANGELOG.md 2025-06-13 09:38:44 +00:00
Nuno Góis
3467dfbdb8
chore: remove flag newGettingStartedEmail (#10136)
https://linear.app/unleash/issue/2-3601/clean-up-flag-newgettingstartedemail

Removes
[newGettingStartedEmail](https://app.unleash-hosted.com/hosted/projects/eg/features/newGettingStartedEmail)

Related: 
 - https://github.com/Unleash/unleash/pull/9980
 - https://github.com/Unleash/unleash/pull/9997
 - https://github.com/Unleash/unleash/pull/9998
 - https://github.com/Unleash/unleash/pull/10029
2025-06-13 10:24:13 +01:00
Tymoteusz Czech
d34acb6999
fix: health to debt with ui-flag (#10131)
useFlag is only connected to unleash-frontend project - it's easier to
switch to `useUiFlag` then moving a flag to this project
2025-06-13 11:12:02 +02:00
Christopher Kolstad
b70f862f93
fix: md5 is deprecated and fails FEDRAMP. Replace with sha256 (#10125)
#10121 points out that we're using md5 functions still. This PR updates
our migrations to no longer use md5 at all (so if you haven't run the
migrations, you won't get email hashes until you get to the included
migration with this PR). If you've already run the migrations, we'll
drop the existing `email_hash varchar(32)` column and replace it with a
`email_hash TEXT` column.

We're also replacing the md5 function with `encode(sha256(email),
'hex')`. encode has been supported since PG10, sha256 came with PG11.

Do we want an index on the email_hash? I wasn't sure, but if we want to
do lookup we probably should have an index on it (though not a unique
one)
2025-06-13 09:41:40 +02:00
Gastón Fournier
37a125f0b5
feat: ability to query users with pagination (#10130)
Made a few QoL improvements:
- Don't use default export for class
- Move users store to a feature package (didn't move the interface as it
might be referenced elsewhere)
- Add types for query builders (and ts-expect-error when needed)
2025-06-12 17:43:22 +02:00
Tymoteusz Czech
4e48d90ed8
fix: use technicalDebt property from backend (#10111)
Frontend should load `technicaDebt` from backend instead of
re-calculating it.
2025-06-12 16:50:29 +02:00
Thomas Heartman
d7da5fe6a4
chore(ux): If there's only a single available filter, always show that filter (don't hide it beneath a filters button) (#10127)
This PR offers a little QoL upgrade in cases where you have only a
single available filter: Instead of having to first click "filters" and
then select the only option, we'll now always show the available filter,
whether it's marked as persistent or not.

The filter still gets a 'delete filter' button that clears the filter
(which is more convenient than having to deselect every one of the
options one by one), but the filter won't disappear when you clear it.

Additionally, because the `state` of the filter item will be undefined
if it has no value, I've added a `preventAutoOpen` prop to the
underlying Filter component.

~~I don't understand why we want to auto-open the filter, but it was
added by @kwasniew in https://github.com/Unleash/unleash/pull/5611, so
it appears to be deliberate.~~ The fact that we auto-open the filter
when state is undefined makes this a little tricky. I realized during
this that the reason we do it is that we want the filter to auto-open
when you select it from the dropdown. Maybe there's a better way to do
that than useEffect, but maybe not 🤷🏼

Further, the filter handling logic is quite complex (what filters to
show, ordering, etc), so I've moved as much of that into the multifilter
component, leaving the singlefilter as simple as possible.

I'm ... not particularly proud of the code here, so I'm happy to take
any suggestions for improvements. Happy to throw it all away if you have
a better way to achieve this goal.

## Rendered

The lifecycle insights use the persistent, single filter, the
performance insights do not:

<img width="1629" alt="image"
src="https://github.com/user-attachments/assets/b8599883-97dc-428e-a98f-ad59ad1c74ab"
/>

<img width="1556" alt="image"
src="https://github.com/user-attachments/assets/eacdc4bf-bc60-4e26-a88c-8be7dc5e31be"
/>
2025-06-12 12:25:58 +00:00
Thomas Heartman
e010f31a15
chore(1-3811): use real data for lifecycle trends (#10117)
Connects the lifecycle trends UI to the API and adds a functioning
projects filter. This PR also includes the generated orval models.

<img width="1534" alt="image"
src="https://github.com/user-attachments/assets/6da748d1-3625-4e36-86ee-295ab79e7ccb"
/>
2025-06-12 13:52:10 +02:00
Nuno Góis
75a8b49609
chore: update Slack App URL (#10129)
https://linear.app/unleash/issue/2-3600/update-slack-app-url-to-slack-appgetunleashio

Updates the Slack App URL to: https://slack-app.getunleash.io
2025-06-12 12:04:08 +01:00
Thomas Heartman
3034e94b20
Make headers smaller (#10128)
Makes headers a little smaller. the default h2 size is not the same as
in the theme, but Typography handles it for you.
2025-06-12 12:12:46 +02:00
Christopher Kolstad
bf67dea2f7
chore: Bumped Yarn to 4.9.2 (#10126) 2025-06-12 12:01:43 +02:00
Gastón Fournier
e4af0ae15d
fix(2-3599): docker compose file should use default command from the image (#10124)
Also remove the version which is deprecated

Fixes #10122
2025-06-12 07:33:16 +00:00
dependabot[bot]
907455fbff
chore(deps): bump brace-expansion from 1.1.11 to 1.1.12 in /website (#10123)
Bumps [brace-expansion](https://github.com/juliangruber/brace-expansion)
from 1.1.11 to 1.1.12.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/juliangruber/brace-expansion/releases">brace-expansion's
releases</a>.</em></p>
<blockquote>
<h2>v1.1.12</h2>
<ul>
<li>pkg: publish on tag 1.x  c460dbd</li>
<li>fmt  ccb8ac6</li>
<li>Fix potential ReDoS Vulnerability or Inefficient Regular Expression
(<a
href="https://redirect.github.com/juliangruber/brace-expansion/issues/65">#65</a>)
c3c73c8</li>
</ul>
<hr />
<p><a
href="https://github.com/juliangruber/brace-expansion/compare/v1.1.11...v1.1.12">https://github.com/juliangruber/brace-expansion/compare/v1.1.11...v1.1.12</a></p>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="c85b8ad3f5"><code>c85b8ad</code></a>
4.0.1</li>
<li><a
href="5a5cc176c0"><code>5a5cc17</code></a>
fmt</li>
<li><a
href="0b6a9781e1"><code>0b6a978</code></a>
Fix potential ReDoS Vulnerability or Inefficient Regular Expression (<a
href="https://redirect.github.com/juliangruber/brace-expansion/issues/65">#65</a>)</li>
<li><a
href="6a39bdddcf"><code>6a39bdd</code></a>
4.0.0</li>
<li><a
href="dd72a59047"><code>dd72a59</code></a>
fmt</li>
<li><a
href="278132b187"><code>278132b</code></a>
feat: use string replaces instead of splits (<a
href="https://redirect.github.com/juliangruber/brace-expansion/issues/64">#64</a>)</li>
<li><a
href="70e4c1baf9"><code>70e4c1b</code></a>
add <code>tea.yaml</code></li>
<li><a
href="b01a637b05"><code>b01a637</code></a>
3.0.0</li>
<li><a
href="9e781e913f"><code>9e781e9</code></a>
node 16 is EOL</li>
<li><a
href="6dad2093f8"><code>6dad209</code></a>
docs</li>
<li>Additional commits viewable in <a
href="https://github.com/juliangruber/brace-expansion/compare/1.1.11...v1.1.12">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=brace-expansion&package-manager=npm_and_yarn&previous-version=1.1.11&new-version=1.1.12)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the
[Security Alerts
page](https://github.com/Unleash/unleash/network/alerts).

</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-06-12 09:11:49 +02:00
Gastón Fournier
d68f17bb1c
docs: Unleash v7 upgrade docs (#10097)
This contains updates to the docs based on the changes done for V7

---------

Co-authored-by: melindafekete <melinda.fekete@getunleash.io>
2025-06-11 16:36:55 +02:00
Gastón Fournier
07998e5588
feat: ability to run npm release from branch (#10120)
This is to be able to release 7.0.0 from the branch 7.0, due to this
failed job
https://github.com/Unleash/unleash/actions/runs/15586992840/job/43895801674

Failure was because package.json already had 7.0.0 and I don't want to
use --force
2025-06-11 16:22:09 +02:00
Github Actions Bot
26791cbd66 7.0.0 2025-06-11 14:01:37 +00:00
Github Actions Bot
9131ab45f9 docs: Update CHANGELOG.md 2025-06-11 14:01:28 +00:00
Gastón Fournier
c658867fab
chore: change package version 2025-06-11 15:59:24 +02:00
Mateusz Kwasniewski
8ee43be6ca
feat: adjust feedback columns (#10119) 2025-06-11 15:50:26 +02:00
Gastón Fournier
4b459d3268
chore: ability to override NODE_ENV in dev (#10118)
Accidentally removed here:
ddb5ffb955 (diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519L43)
2025-06-11 13:26:41 +00:00
Thomas Heartman
0e818c54ad
chore: fix weird button styling (#10113) 2025-06-11 14:07:24 +02:00
Gastón Fournier
ddb5ffb955
chore: add brace-expansion to resolutions (#10116)
Should fix https://github.com/Unleash/unleash/security/dependabot/257
2025-06-11 14:05:10 +02:00
Thomas Heartman
c3dda01d53
delete legacy constraint accordion (#10110)
This PR continues the cleanup after removing the addEditStrategy flag
(part 2 of ???). The primary purpose of this PR is to delete and remove
all references to the LegacyConstraintAccordion.

I've gone and updated all references to the legacy files in external
components and verified manually that they still work.

Most of the files in this PR are changing references. I've extracted two
bits into more general constants/utils:
1. Constraint IDs are a symbol. it was exported as a const from the
previous createEmptyConstraint file. I've moved it into constants.
2. formatOperatorDescription was similarly used all over the place, so
I've placed it in the shared utils directory.

In reviewing this, you can ignore any changes in the legacy constraint
accordion folder, because that's all been deleted. Instead, focus on the
changes in the other files. It's primarily just import updates, but
would be good to get a second set of eyes, anyway.
2025-06-11 12:22:55 +02:00
Thomas Heartman
fa28ee2d6a
Fix invalid dom nesting error and remove redundant braces (#10115)
Fixes a console log about invalid dom nesting:

<img width="1256" alt="image"
src="https://github.com/user-attachments/assets/0849103c-6901-4b64-a124-00eaf8cc7dde"
/>

I've changed the offending div to a span. We set `display: flex` on it,
anyway, so it shouldn't make a difference.

I've also removed some redundant functions and braces that we don't
need.
2025-06-11 12:21:11 +02:00
Mateusz Kwasniewski
4e283dc579
feat: feedback score N/A (#10114) 2025-06-11 12:15:40 +02:00
Thomas Heartman
d2233bc71d
Remove margin right for cleanup box (#10112)
It was misaligned with the rest of the content with this margin. The
original author doesn't remember why it was there, so it's probably safe
to remove.

Before:

![image](https://github.com/user-attachments/assets/444a46c0-1f95-48c0-97a2-b3077a49dfb3)

After:

![image](https://github.com/user-attachments/assets/9d0f085d-437d-46bb-a167-4f9019589c8c)
2025-06-11 09:26:15 +00:00
Thomas Heartman
f299c2b652
chore: fix skeleton loading indicator colors for lifecycle trend tiles (#10109)
Updates the skeleton loading colors for the lifecycle trend tiles
because the previous color was invisible on the median stats section in
light mode. You also wouldn't see any movement in the total number of
flags.

I have not touched the original skeleton color assignment because that
might have unintended consequences throughout the app. Also, I'm not
aware of a way (at the moment) that would do this automatically when
necessary. As such, I have only touched the loading indicators in the
lifecycle tile.

## Before:

Light mode:

![image](https://github.com/user-attachments/assets/3731eb0b-4d63-4622-8b20-0518e6266611)

Dark mode:

![image](https://github.com/user-attachments/assets/6df0197f-7283-4709-b369-38025011c879)


## After:

Light mode:

![image](https://github.com/user-attachments/assets/09f33fa8-322c-4a55-a6e8-4ef384104d74)

Dark mode:

![image](https://github.com/user-attachments/assets/60499b46-c9c7-49cc-a210-50d330682075)
2025-06-11 10:15:59 +02:00
Thomas Heartman
7e61e0dd09
Chore(1-3807)/remove flag add edit strategy take2 (#10108)
Removes all usages of flag addEditStrategy and refactors code where
necessary.

This is only the first step of the cleanup. After this, there's still
lots of code to be removed. I've got a different PR that removes ~5k
lines of code (https://github.com/Unleash/unleash/pull/10105) that I
want to reach in pieces to make sure that everythnig works on the way
there.
2025-06-11 06:03:34 +00:00
Gastón Fournier
2d228eea76
chore: openapi-diff on PRs (#10100) 2025-06-10 16:51:12 +02:00
David Leek
7b0cae2b3e
chore!: remove project health report frontend (#10101) 2025-06-10 14:56:41 +02:00
Tymoteusz Czech
d5acbea711
chore: update frontend schema - technicalDebt (#10098)
generated with `api:gen`
2025-06-10 14:15:09 +02:00
Tymoteusz Czech
1e7d022b5a
chore: remove flag sideMenuCleanup (#10093)
- remove flag
- remove unused components
- adjust e2e test snapshots
2025-06-10 12:23:47 +02:00
David Leek
ffe40cab59
chore: hide/disallow new instances of deprecated integrations (#10104) 2025-06-10 12:19:37 +02:00
Thomas Heartman
45d48d12a9
Chore: add skeleton loaders for lifecycle trend numbers (#10103)
Adds skeleton loading indicators for the lifecycle trend tile numbers:
- total flag count
- median stats

In doing so, I have added the `data-loading` attribute to the
PrettifyLargeNumber component (to avoid having to wrap it in a separate
element for that alone), and have added refs to the InsightsSection
component.

The loading indicators look better in dark mode than in light mode,
because they use the same background color as the text box in light
mode, so only the big number is visible. There is a task in Linear to
look into fixing this.


<img width="1548" alt="image"
src="https://github.com/user-attachments/assets/9e58d681-724e-45cb-baa1-b824dda48008"
/>

<img width="1554" alt="image"
src="https://github.com/user-attachments/assets/7738fac0-5660-464f-8d10-1bf2eacc9ca0"
/>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-10 09:35:32 +00:00
Thomas Heartman
6d7a344ca3
chore: replace flags per user with total number of flags (#10102)
Switches the "flags per user" box with a "total number of flags" label
for the number in the box and an additional description available via
the help icon.

To accurately label the help text and link it to the figure, I've added
a tooltipId prop to the HelpIcon component.

<img width="551" alt="image"
src="https://github.com/user-attachments/assets/f3227e74-5976-454e-9b7d-db0d05927261"
/>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-06-10 10:02:50 +02:00
Thomas Heartman
f0c19af5a9
chore: rename insights -> analytics (#10095)
Update the title of the insights / analytics page when the menu item
changes

While the side menu item has already changed, this change also updates
the page header and title.

Also fixes an error with a prop that shouldn't have been forwarded.
2025-06-10 08:11:35 +02:00
Mateusz Kwasniewski
444d3ef705
feat: improve feedback UX (#10099) 2025-06-09 13:30:43 +02:00
Tymoteusz Czech
c8933cc8e6
feat: rename health insights to technical debt insights on dashboard (#10082) 2025-06-09 13:00:17 +02:00
Christopher Kolstad
7f14cc2c3d
task: bump minimum postgres version (#10096)
Co-authored-by: Gastón Fournier <gaston@getunleash.io>
2025-06-09 11:04:47 +02:00
Tymoteusz Czech
a5e5ea0436
feat: update backend to include technicalDebt field (#10088)
Deprecate `health` for a more descriptive `technicalDebt` in project-related services and schemas.
2025-06-06 16:27:41 +02:00
Thomas Heartman
c739ea71cf
Fix(1-3804)/store flag creation form state (#10089)
Adds caching via localstorage to the flag creation form, so that if you
(accidentally) close the form before submitting it, you'll retain (most)
of the same data when you reopen it.

Specifically, we'll store:
- name
- description
- type
- tags
- impression data

We can't store the project as it is now, because it gets overridden by
whatever is in the URL. However, this is probably a good thing. It means
that if you navigate to a different project and open the feature
creation form there, it'll retain everything from the last one, but
it'll use the current project.

The stored data is cleared when you successfully create a feature, so
that you don't get dangling data.

The data is also stored in a shared cache for all projects, so that you
don't have different caches per project.

The behavior of seeding the form is hidden behind a flag (that doesn't
exist yet). We'll still read and write to the cache if the flag is off,
but we won't use it to populate the feature form, so it has no
discernible impact on the user.

## Bug detected 🐛  ... and squashed

Working on this, I came to realize that there was a bug in how the
config button and use feature form hooks interacted. We (in this case
probably me) have assumed that it's fine to use a set for any option
checking in the config buttons. Also, we're using a set to store tags in
the feature form. But objects aren't compared by value in JS, so the set
will happily accept multiple instances of the same tag. Likewise, these
tags won't show up as selected in the dropdown because when the dropdown
checks if the set `has` the value, it's using reference equality.

To get around this, I have normalized the values of the Tags set to
strings (`<type>:<value>`), which are easily comparable.

We can iterate on this later if we need to.

## `useLocalStorageState`

In doing this, I have also made a change to the useLocalStorageState
hook:
the exposed "setState" function now writes to the localstorage
immediately. This is because the useEffect method might not have time to
save the data if the component unmounts (this was the case with the flag
dialog).

However, I have kept the useEffect because it gets run on component
mount and then only when it changes. This means that we will get double
saves to localstorage, but it'll be with the same data, so it's benign.


I've tried out two other uses of the hook (event timeline props and
environment columns in the project flags table) and see no discernible
difference in behavior.

## `useFeatureForm`

I have also made a change to the useFeatureForm hook and removed a
`useEffect` that would reset the name to whatever you passed in as the
initial name if you cleared it out. This essentially meant that you
couldn't clear the name completely, because it would just refill with
the initial name.

As far as I can tell, there is no need to have this sticking around
anymore. The hook is only used in two places: the flag creation dialog
and the flag edit page. The flag edit page doesn't allow you to change
the name anyway and it was causing issues in the dialog. It's likely a
holdover from the way something worked 3 years ago. Both the dialog and
the edit screen seem to work just fine with this change.

I have also changed the function parameters from ordered parameters to
an object. There's so many of them that even you don't think it's a good
idea to use objects when you have multiple params with the same type,
it's just nigh-impossible to remember the order by now.

## Minor changes

Additionally, I came across three issues that were causing react errors,
and have fixed them.
1. we'd forgotten to interpolate a variable and just used the variable
name in a string instead
2. an html attribute that doesn't exist (`aria-role` instead of `role`)
3. Providing a disabled button inside a tooltip. I've seen this one
around for ages and it prevented tooltips from working on disabled
buttons. The solution was wrapping it in a span.
2025-06-06 13:01:16 +02:00
Gastón Fournier
bdb763c9d5
chore!: remove deprecated default env from new installs (#10080)
**BREAKING CHANGE**: DEFAULT_ENV changed from `default` (should not be
used anymore) to `development`

## About the changes
- Only delete default env if the install is fresh new.
- Consider development the new default. The main consequence of this
change is that the default is no longer considered `type=production`
environment but also for frontend tokens due to this assumption:
724c4b78a2/src/lib/schema/api-token-schema.test.ts (L54-L59)
(I believe this is mostly due to the [support for admin
tokens](https://github.com/Unleash/unleash/pull/10080#discussion_r2126871567))
- `feature_toggle_update_total` metric reports `n/a` in environment and
environment type as it's not environment specific
2025-06-06 12:02:21 +02:00
Thomas Heartman
d6f76a098e
Chore/lifecycle tile layout (#10094)
Fixes a few lifecycle-related points:

- The layout for insights graphs now wraps when necessary
- Change the wording to be `X flags in <Stage>`
- Update the wording in the project health lifecycle boxes to match this
- Update the tooltips for the project health lifecycle to use new names
for stages instead of the old ones.

<img width="1145" alt="image"
src="https://github.com/user-attachments/assets/d1cfbf58-f79b-4751-b8b7-2ee7e31849ab"
/>

<img width="1075" alt="image"
src="https://github.com/user-attachments/assets/4a07b3ce-cf78-4009-82aa-1c276a2e9e5d"
/>
2025-06-06 11:56:20 +02:00
Gastón Fournier
fc25117d78
fix(docs): enterprise image zoom (#10081)
Co-authored-by: melindafekete <melinda.fekete@getunleash.io>
2025-06-06 11:17:44 +02:00
Thomas Heartman
e1cfd8e050
Feat(1-3801)/add more data to lifecycle tiles (#10092)
This is the first pass at the full lifecycle tiles. It adds the tile
header and current and historical median data.

I have also added large number handling to all the number instances in
the tile: in the header, the graph, and the median data. In doing so, I
exposed the algorithm we use in the PrettifyLargeNumber component.
Returning a react component isn't always a valid option (such as in the
chart). This does mean that you don't get a tooltip when you use the
function directly, but in things like the chart and the median
measurement that makes sense to me.

I've decided to return "No data" if the median days value is 0 or lower.

There's no data for historical medians yet, so I'm using the same number
for now.

<img width="1538" alt="image"
src="https://github.com/user-attachments/assets/72e6a90a-6b84-47ce-af02-59596a7ff91f"
/>
2025-06-06 10:12:02 +02:00
Gastón Fournier
f1c2706db7
chore: prepare to remove default env (#10087)
Use DEFAULT_ENV instead of just 'default'
2025-06-06 09:20:16 +02:00
Tymoteusz Czech
553ffc62b7
fix: orval for ESM (#10086)
updated Orval and configured it to be compatible with v7.

---------

Co-authored-by: Thomas Heartman <thomas@getunleash.io>
2025-06-05 10:40:58 +00:00
Thomas Heartman
385f4ab1ad
Updates lifecycle trend chart colors for dark mode. (#10085) 2025-06-05 10:04:48 +02:00
Thomas Heartman
5da7d50291
Chore(1-3800)/add aria content to charts (#10084)
Adds aria label and description to the lifecycle trend charts

The label explains that it's a bar chart, which stage it's describing,
and
the number of flags in each category.

The description provides more information about the split between new
flags this week and older flags.
2025-06-05 09:40:58 +02:00
Thomas Heartman
16df33b078
feat: add lifecycle trend graphs (#10077)
Adds lifecycle trend graphs to the insights page.

The graphs are each placed within their own boxes. The boxes do not have
any more information in them yet.

Also, because the data returned from the API is still all zeroes, I've
used mock data that matches the sketches.

Finally, the chart configuration and how it's split into a
LifecycleChart that lazy loads a LifecycleChartComponent is based on the
LineChart and LineChartComponent that we use elsewhere on the insights
page.

Light mode:

<img width="1562" alt="image"
src="https://github.com/user-attachments/assets/6dd11168-be24-42d4-aa97-a7a55651fa0e"
/>

We might want to tweak some colors in dark mode, but maybe not? 🤷🏼 

![image](https://github.com/user-attachments/assets/9647e6b8-d8ea-4eb5-b9fd-6f4a24692476)
2025-06-05 08:35:14 +02:00