1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00
Commit Graph

14514 Commits

Author SHA1 Message Date
FredrikOseberg
dc5d7a89b3
refactor: consolidated progression changes 2025-10-22 10:42:31 +02:00
FredrikOseberg
cb9fa72de1
refactor: separate component 2025-10-22 10:39:38 +02:00
FredrikOseberg
8e612e47f4
fix: revert to working version 2025-10-22 10:32:22 +02:00
FredrikOseberg
3b75ad4e72
refactor: remove uneccesary type 2025-10-22 09:21:06 +02:00
FredrikOseberg
2dcd818e31
refactor: badge composition 2025-10-22 08:56:20 +02:00
FredrikOseberg
7d0f09ead7
refactor: rm uneccesary condition 2025-10-22 08:51:24 +02:00
FredrikOseberg
ecb85a8a45
refactor: release plan change 2025-10-21 14:59:35 +02:00
FredrikOseberg
64d5727c45
fix: simplify pending changes 2025-10-21 14:48:33 +02:00
FredrikOseberg
dcd191298c
refactor: milestone automation 2025-10-21 14:39:29 +02:00
FredrikOseberg
f19df22fd6
refactor: white space 2025-10-21 14:34:03 +02:00
FredrikOseberg
0bdf2d3d1c
refactor: simplify 2025-10-21 14:30:04 +02:00
FredrikOseberg
bc13e919a8
fix: param names 2025-10-21 14:12:02 +02:00
FredrikOseberg
19b04e8223
fix: lint 2025-10-21 14:07:57 +02:00
FredrikOseberg
5869c7e04f
refactor: simplify components 2025-10-21 14:07:19 +02:00
FredrikOseberg
d9503de15c
refactor: remove ReleasePlanContext in favor of props
Completed migration from context-based to props-based architecture by removing ReleasePlanContext and ReleasePlanProvider.

Changes:
- Deleted ReleasePlanContext.tsx (no longer needed)
- Removed ReleasePlanProvider wrapper from ReleasePlan.tsx
- Removed ReleasePlanProvider wrappers from ReleasePlanChange.tsx (3 instances)
- All pending progression change data now passed explicitly via props

Benefits:
- Simpler architecture with explicit data flow
- No hidden dependencies via context
- Easier to understand and maintain
- TypeScript compilation passes 

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-10-21 13:23:34 +02:00
FredrikOseberg
39c1a963b5
refactor: composition 2025-10-21 13:12:31 +02:00
FredrikOseberg
244f6fbd43
feat: inital implementation 2025-10-21 12:52:49 +02:00
Mateusz Kwasniewski
0fda3e7cf1
feat: delete milestone progression with CR (#10828) 2025-10-17 14:49:03 +02:00
Jaanus Sellin
c8ca11aebb
feat: add billing invoices skeletons (#10827)
Since we load directly from Stripe, it takes a little time. Good to have
skeletons.

<img width="2151" height="1587" alt="Screenshot from 2025-10-17
15-32-10"
src="https://github.com/user-attachments/assets/be767ea1-b95f-4ef3-abf6-e8302e7092fd"
/>
2025-10-17 15:40:36 +03:00
Jaanus Sellin
faad097915
feat: overages should be rouned down to nearest integer (#10826) 2025-10-17 15:09:52 +03:00
Jaanus Sellin
adb1d200ea
feat: only show detailed billing for consumption and payg (#10825) 2025-10-17 14:11:19 +03:00
Jaanus Sellin
3f9a726db6
refactor: move invoice logic into separate file/function (#10824)
Extract calculateEstimateTotals and some utility functions.
2025-10-17 14:11:14 +03:00
Jaanus Sellin
aec793ddc7
feat: calculate the esimtate invoice numbers (#10823) 2025-10-17 13:24:09 +03:00
Gastón Fournier
91ecf2fabd
chore: remove uuid from the frontend (#10808)
Frontend only of: https://github.com/Unleash/unleash/pull/10806

## About the changes
This PR drops the uuid package from node modules and replaces it with
standard randomUUID usage that is available from 14.17 onwards, and we
have a minimum requirement of node 20 at Unleash.

[Node.js
crypto](https://nodejs.org/api/crypto.html#cryptorandomuuidoptions)
[Web
crypto](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID)

Co-authored-by: Anastasiia Hladina <anastasiia.hladina@gmail.com>
2025-10-17 10:31:48 +02:00
Jaanus Sellin
e9d2b30603
feat: add taxes to invoices (#10821) 2025-10-17 09:49:09 +03:00
Github Actions Bot
f22144de2a 7.2.3 2025-10-16 15:04:47 +00:00
Github Actions Bot
dfd3a65f22 docs: Update CHANGELOG.md 2025-10-16 15:04:36 +00:00
Fredrik Strand Oseberg
795b674133
feat: add change request support for updating milestone progressions (#10819) 2025-10-16 16:52:02 +02:00
Jaanus Sellin
022226dd43
chore: generate orval (#10820) 2025-10-16 16:11:39 +03:00
Mateusz Kwasniewski
902c4cd7b8
chore: expose fake change request access read model (#10818) 2025-10-16 14:31:43 +02:00
Tymoteusz Czech
b81691b89e
feat: invoices ui improvements (#10813) 2025-10-16 12:30:01 +00:00
Fredrik Strand Oseberg
045ef5a20e
refactor: consolidate release plan change request dialogs (#10817) 2025-10-16 13:55:52 +02:00
Thomas Heartman
9096340afb
refactor: split the stat card widget into its own component (#10815)
Prepares it for being shared between the new flags in production and the
archived to created ration sections.

The card in question is this one: 
<img width="310" height="177" alt="image"
src="https://github.com/user-attachments/assets/66549601-36cd-4ccc-b175-79bd049ed1d4"
/>
2025-10-16 13:53:32 +02:00
Nuno Góis
2a60508998
chore: fix search results page in our docs (#10816)
https://linear.app/unleash/issue/2-3982/fix-search-results-page-in-our-docs

Fixes the search results page in our docs.

### Before

<img width="1699" height="634" alt="image"
src="https://github.com/user-attachments/assets/341c086c-7a1e-4d10-87c7-d24e8afa43d2"
/>

### After

<img width="1360" height="1261" alt="image"
src="https://github.com/user-attachments/assets/4a74f2c5-6914-436b-96cf-8fa1691b84f4"
/>
2025-10-16 11:25:11 +01:00
Fredrik Strand Oseberg
154dc6f5eb
feat: add change request support for milestone progressions (#10814) 2025-10-16 11:57:28 +02:00
Jaanus Sellin
224b842b5b
fix: now showing either payg or consumption (#10812)
1. Show only PAYG or Consumption, not both
2. Add paid label.
2025-10-16 08:38:10 +00:00
Thomas Heartman
2cc1bf978b
chore: add todo note with flag to remember a refactor (#10811)
So that we remember to revisit this line when we remove the flag.
2025-10-16 09:53:58 +02:00
Thomas Heartman
07c947949e
fix: populate all weeks in charts (#10800)
When selecting a date range, the chart now shows you the entire range,
even if there's only data for parts of it.

This ensures that both the new flags in production chart and the created
vs archived chart show the same period and not two different ones (other
charts can be updated later).

Before:
<img width="2356" height="1536" alt="image"
src="https://github.com/user-attachments/assets/11912a2f-7a68-4405-acfa-d98d0eb69cf8"
/>

After: 
<img width="1294" height="963" alt="image"
src="https://github.com/user-attachments/assets/e932665c-9f7c-4b4e-9e14-34a1e6e71a69"
/>

It also ensures that the 4 week batching works the same for both charts.

For line charts, only the dates with data will be rendered as a line.
For the bar chart, dates without data can still be hovered and show
empty (zero) data.

<img width="1341" height="447" alt="image"
src="https://github.com/user-attachments/assets/531266ca-02e3-4402-9b29-ce4259274e0c"
/>


<img width="1304" height="448" alt="image"
src="https://github.com/user-attachments/assets/42a0bbe9-c701-4f3f-8b10-9ef7017a9b9f"
/>

Also prevents us from showing the wrong period if there is no data for
the selected project

Before:
<img width="1292" height="960" alt="image"
src="https://github.com/user-attachments/assets/6d61a653-7bee-43d9-9c25-5d5bdb29a803"
/>


After:
<img width="1295" height="507" alt="image"
src="https://github.com/user-attachments/assets/91994094-cd0d-495e-a41f-f92b6b7d72c9"
/>

Finally, it happily graphs multiple projects at their individual data
points in time:

<img width="1314" height="537" alt="image"
src="https://github.com/user-attachments/assets/d382d919-fda4-4c35-8d8e-2e66dd3bed66"
/>
2025-10-16 09:52:33 +02:00
renovate[bot]
0bc04f9966
fix(deps): update dependency slug to v11 (#10194) 2025-10-15 16:50:58 +02:00
Gastón Fournier
653b67b172
chore: remove uuid from the backend (#10807)
Backend only of: https://github.com/Unleash/unleash/pull/10806

This PR drops the uuid package from node modules and replaces it with
standard randomUUID usage that is available from 14.17 onwards, and we
have a minimum requirement of node 20 at Unleash.

[Node.js crypto](https://nodejs.org/api/crypto.html#cryptorandomuuidoptions)
[Web crypto](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/randomUUID)

Co-authored-by: Anastasiia Hladina <anastasiia.hladina@gmail.com>
2025-10-15 16:48:08 +02:00
Nuno Góis
4ff41fa6a9
chore: add warning about release plans in import-export (#10805)
https://linear.app/unleash/issue/2-3965/add-a-note-if-were-exporting-that-we-dont-understand-release-plans-in

Adds a warning about release plans in import/export.

It's not trivial to know every flag that will be exported in every
scenario, and whether they have release plans, so our logic here is
"have you configured release templates?"

<img width="706" height="516" alt="image"
src="https://github.com/user-attachments/assets/68ba8618-9887-491c-b46e-256b45700d74"
/>

<img width="732" height="503" alt="image"
src="https://github.com/user-attachments/assets/086e37d4-78ae-4647-93a2-5d1845c2758a"
/>
2025-10-15 14:44:30 +01:00
Nuno Góis
f3ab70aeca
chore: add alert about release plans when cloning flag (#10802)
https://linear.app/unleash/issue/2-3966/cloning-a-feature-will-not-clone-release-plans

Adds an alert when cloning a feature flag with a release plan.

Requires the `featureReleasePlans` feature flag.

<img width="1162" height="568" alt="image"
src="https://github.com/user-attachments/assets/325db586-14b9-4ce4-9d7c-6f680017c6ac"
/>
2025-10-15 14:17:34 +01:00
Mateusz Kwasniewski
10c30751d3
feat: improve permission messaging (#10804) 2025-10-15 14:33:53 +02:00
Jaanus Sellin
e83d92975c
fix: now showing either payg or consumption (#10803)
1. Make it show either payg or consumption.
2. Add paid tag.
2025-10-15 10:32:51 +00:00
Jaanus Sellin
bffec9bc4d
feat: align billing page design with figma (#10801)
1. Splitting main row and usage row, as they have so much different
logic already now.
2. Main lines, keep only included, remove quantity
3. Add correct headers for usage lines
4. Add current consumption also as number


Old design
<img width="1502" height="906" alt="image"
src="https://github.com/user-attachments/assets/ab4fdca9-1a04-4381-88a6-9ce643f71d78"
/>

New design
<img width="1502" height="906" alt="Screenshot from 2025-10-15 10-36-16"
src="https://github.com/user-attachments/assets/2607a91d-22de-4f72-9e59-d2212b1f5888"
/>
2025-10-15 08:28:51 +00:00
Nuno Góis
715119741b
fix: hide enable strategy dialog when there are release plans (#10796)
https://linear.app/unleash/issue/2-3953/fix-enable-environment-modal-when-there-are-release-plans

Prevents the "environment needs at least one enabled strategy" dialog
from showing up if you have added a release plan.

This relies on the new `featureReleasePlans` feature flag.

PS: Maybe we should revisit this dialog in the future. We don't usually
see it, and maybe it should trigger the new "add strategy" modal?

<img width="684" height="399" alt="image"
src="https://github.com/user-attachments/assets/2f8213db-22b4-4618-b8e2-15eca096d465"
/>
2025-10-15 09:21:23 +01:00
Tymoteusz Czech
38bb9b3bfc
feat: enhance billing invoice components (#10799)
## About the changes
- Hide "included usage" column if an invoice doesn't have any items that
have lines with `limit`
- Minor component types refactors
- Only open (extend accordion) for the first invoice on the list
2025-10-15 10:00:59 +03:00
Mateusz Kwasniewski
f9ed38ca98
feat: milestone progression events more data (#10798) 2025-10-14 16:50:01 +02:00
Mateusz Kwasniewski
712943ed29
feat: milestone progression events (#10797) 2025-10-14 16:29:57 +02:00
Mateusz Kwasniewski
61a82673e9
feat: changing milestone progression url (#10795) 2025-10-14 15:57:28 +02:00