Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v2.16.8 #2007

Merged
merged 16 commits into from
Apr 19, 2024
Merged

v2.16.8 #2007

Changes from 1 commit
Commits
Show all changes
16 commits
Select commit Hold shift + click to select a range
b6a0398
build: prepare hotfix release v2.16.8 (2024-04-19)
skamril Apr 19, 2024
dcd600d
fix(st-storages-ui): correction of incorrect wording between "withdra…
laurent-laporte-pro Mar 13, 2024
7eadeaf
fix(st-storages-ui): change matrix titles (#1994)
skamril Apr 2, 2024
2c52f37
feat(clusters): add new endpoint for clusters duplication (#1972)
MartinBelthle Mar 9, 2024
61d9fc8
fix(st-storages): use command when updating matrices (#1971)
MartinBelthle Mar 9, 2024
ec006b8
fix(variants): avoid Recursive error when creating big variant tree (…
MartinBelthle Mar 9, 2024
88d4930
fix(outputs): build outputs config even when using cache (#1958)
MartinBelthle Feb 29, 2024
d75138c
fix(comments): use a command to update comments on a variant (#1959)
MartinBelthle Mar 5, 2024
e6b282b
fix(outputs-ui): correct weekly data formatting to support 53-week years
hdinia Mar 11, 2024
3c1d64e
fix(configuration): add missing variables in Thematic Trimming for st…
laurent-laporte-pro Mar 28, 2024
7528adb
feat(configuration): turn Thematic Trimming variable names in upper case
laurent-laporte-pro Apr 11, 2024
02f773c
fix(configuration): version availability for "STS Cashflow By Cluster…
laurent-laporte-pro Apr 11, 2024
e812ae4
fix(launcher): upgrade the project dependencies to use Antares-Launch…
laurent-laporte-pro Apr 12, 2024
1833a0b
feat(config-ui): replace underscore with space in Thematic Trimming v…
laurent-laporte-pro Apr 16, 2024
0c47610
feat(clusters-ui): implement new duplication endpoint and optimistic …
skamril Apr 19, 2024
1a211fd
fix(synthesis): prevent 500 error during study synthesis parsing (#2011)
laurent-laporte-pro Apr 19, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(outputs-ui): correct weekly data formatting to support 53-week years
(cherry picked from commit 70bd975)
hdinia authored and skamril committed Apr 19, 2024
commit e6b282b6ab4e9bc03baad134a6402c22aaaeef7b
1 change: 1 addition & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -16,6 +16,7 @@ v2.16.8 (2024-04-19)
* **variants:** avoid recursive error when creating big variant tree [`#1967`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/1967)
* **outputs:** build outputs config even when using cache [`#1958`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/1958)
* **comments:** use a command to update comments on a variant [`#1959`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/1959)
* **outputs (ui):** correct weekly data formatting to support 53-week years [`#1975`](https://github.com/AntaresSimulatorTeam/AntaREST/pull/1975)


v2.16.7 (2024-03-05)
Original file line number Diff line number Diff line change
@@ -158,19 +158,23 @@ function ResultDetails() {
return ["Annual"];
}

// Directly use API's week index (handles 53 weeks) as no formatting is required.
// !NOTE: Suboptimal: Assumes API consistency, lacks flexibility.
if (timestep === Timestep.Weekly) {
return matrixRes.data.index.map((weekNumber) => weekNumber.toString());
}

// Original date/time format mapping for moment parsing
const parseFormat = {
[Timestep.Hourly]: "MM/DD HH:mm",
[Timestep.Daily]: "MM/DD",
[Timestep.Weekly]: "WW",
[Timestep.Monthly]: "MM",
}[timestep];

// Output formats for each timestep to match legacy UI requirements
const outputFormat = {
[Timestep.Hourly]: "DD MMM HH:mm I",
[Timestep.Daily]: "DD MMM I",
[Timestep.Weekly]: "WW",
[Timestep.Monthly]: "MMM",
}[timestep];