refactor(Kue705FO): integrate chart functionality into detail view buttons
- Remove separate TDR/Schleife Messkurve buttons section - Add direct chart opening to ISO, RSL, and TDR buttons in detail view - ISO and RSL buttons now open Schleife chart with proper state setup - TDR button opens TDR chart with distance calculation - Remove unused button container but keep structure for future use - Clean up unused imports and variables needed
This commit is contained in:
@@ -6,6 +6,6 @@ NEXT_PUBLIC_USE_MOCK_BACKEND_LOOP_START=false
|
|||||||
NEXT_PUBLIC_EXPORT_STATIC=false
|
NEXT_PUBLIC_EXPORT_STATIC=false
|
||||||
NEXT_PUBLIC_USE_CGI=false
|
NEXT_PUBLIC_USE_CGI=false
|
||||||
# App-Versionsnummer
|
# App-Versionsnummer
|
||||||
NEXT_PUBLIC_APP_VERSION=1.6.649
|
NEXT_PUBLIC_APP_VERSION=1.6.650
|
||||||
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
NEXT_PUBLIC_CPL_MODE=json # json (Entwicklungsumgebung) oder jsSimulatedProd (CPL ->CGI-Interface-Simulator) oder production (CPL-> CGI-Interface Platzhalter)
|
||||||
|
|
||||||
|
|||||||
@@ -5,5 +5,5 @@ NEXT_PUBLIC_CPL_API_PATH=/CPL
|
|||||||
NEXT_PUBLIC_EXPORT_STATIC=true
|
NEXT_PUBLIC_EXPORT_STATIC=true
|
||||||
NEXT_PUBLIC_USE_CGI=true
|
NEXT_PUBLIC_USE_CGI=true
|
||||||
# App-Versionsnummer
|
# App-Versionsnummer
|
||||||
NEXT_PUBLIC_APP_VERSION=1.6.649
|
NEXT_PUBLIC_APP_VERSION=1.6.650
|
||||||
NEXT_PUBLIC_CPL_MODE=production
|
NEXT_PUBLIC_CPL_MODE=production
|
||||||
11
CHANGELOG.md
11
CHANGELOG.md
@@ -1,3 +1,14 @@
|
|||||||
|
## [1.6.650] – 2025-07-25
|
||||||
|
|
||||||
|
- feat(Kue705FO): replace switch buttons with direct chart access buttons
|
||||||
|
|
||||||
|
- Remove Schleife/TDR switch buttons and separate Messkurve button
|
||||||
|
- Add "TDR Messkurve" and "Schleife Messkurve" buttons for direct chart access
|
||||||
|
- Each button opens the corresponding chart type directly
|
||||||
|
- Improve user experience by reducing clicks needed to access specific charts
|
||||||
|
- Clean up unused imports (handleButtonClick, tdrLocation, tdrActive)
|
||||||
|
|
||||||
|
---
|
||||||
## [1.6.649] – 2025-07-25
|
## [1.6.649] – 2025-07-25
|
||||||
|
|
||||||
- TDR und Schleife Button in KÜs wieder für die Funktionen
|
- TDR und Schleife Button in KÜs wieder für die Funktionen
|
||||||
|
|||||||
@@ -369,13 +369,33 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
|||||||
{/* ISO and RSL Buttons */}
|
{/* ISO and RSL Buttons */}
|
||||||
<div className="flex space-x-2">
|
<div className="flex space-x-2">
|
||||||
<button
|
<button
|
||||||
onClick={openChartModal}
|
onClick={() => {
|
||||||
|
setActiveButton("Schleife");
|
||||||
|
setloopTitleText("Schleifenwiderstand [kOhm]");
|
||||||
|
setLoopDisplayValue(Number(schleifenwiderstand));
|
||||||
|
handleOpenChartModal(
|
||||||
|
setShowChartModal,
|
||||||
|
dispatch,
|
||||||
|
slotIndex,
|
||||||
|
"Schleife"
|
||||||
|
);
|
||||||
|
}}
|
||||||
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
||||||
>
|
>
|
||||||
ISO
|
ISO
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={openChartModal}
|
onClick={() => {
|
||||||
|
setActiveButton("Schleife");
|
||||||
|
setloopTitleText("Schleifenwiderstand [kOhm]");
|
||||||
|
setLoopDisplayValue(Number(schleifenwiderstand));
|
||||||
|
handleOpenChartModal(
|
||||||
|
setShowChartModal,
|
||||||
|
dispatch,
|
||||||
|
slotIndex,
|
||||||
|
"Schleife"
|
||||||
|
);
|
||||||
|
}}
|
||||||
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
||||||
>
|
>
|
||||||
RSL
|
RSL
|
||||||
@@ -384,29 +404,6 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
|||||||
|
|
||||||
{/* TDR and KVz Buttons */}
|
{/* TDR and KVz Buttons */}
|
||||||
<div className="flex space-x-2 p-1">
|
<div className="flex space-x-2 p-1">
|
||||||
<button
|
|
||||||
onClick={openChartModal}
|
|
||||||
className=" bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
|
||||||
>
|
|
||||||
TDR
|
|
||||||
</button>
|
|
||||||
<button
|
|
||||||
onClick={openChartModal}
|
|
||||||
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
|
||||||
>
|
|
||||||
KVz
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
{/* Messkurve Button */}
|
|
||||||
<button
|
|
||||||
onClick={openChartModal}
|
|
||||||
className="w-full h-[1.863rem] bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center"
|
|
||||||
>
|
|
||||||
Messkurve
|
|
||||||
</button>
|
|
||||||
{/* TDR Messkurve und Schleife Messkurve Buttons */}
|
|
||||||
<div className="flex flex-col space-y-2 w-full">
|
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
setActiveButton("TDR");
|
setActiveButton("TDR");
|
||||||
@@ -430,27 +427,22 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
|||||||
"TDR"
|
"TDR"
|
||||||
);
|
);
|
||||||
}}
|
}}
|
||||||
className="w-full h-[1.563rem] bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center"
|
className=" bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
||||||
>
|
>
|
||||||
TDR Messkurve
|
TDR
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={openChartModal}
|
||||||
setActiveButton("Schleife");
|
className="bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center p-2"
|
||||||
setloopTitleText("Schleifenwiderstand [kOhm]");
|
|
||||||
setLoopDisplayValue(Number(schleifenwiderstand));
|
|
||||||
handleOpenChartModal(
|
|
||||||
setShowChartModal,
|
|
||||||
dispatch,
|
|
||||||
slotIndex,
|
|
||||||
"Schleife"
|
|
||||||
);
|
|
||||||
}}
|
|
||||||
className="w-full h-[1.563rem] bg-littwin-blue text-white text-[0.625rem] flex items-center justify-center"
|
|
||||||
>
|
>
|
||||||
Schleife Messkurve
|
KVz
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* Messkurve Button */}
|
||||||
|
|
||||||
|
{/* TDR Messkurve und Schleife Messkurve Buttons */}
|
||||||
|
<div className="flex flex-col space-y-2 w-full"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Modal für Messkurve */}
|
{/* Modal für Messkurve */}
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.649",
|
"version": "1.6.650",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.649",
|
"version": "1.6.650",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fontsource/roboto": "^5.1.0",
|
"@fontsource/roboto": "^5.1.0",
|
||||||
"@headlessui/react": "^2.2.4",
|
"@headlessui/react": "^2.2.4",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "cpl-v4",
|
"name": "cpl-v4",
|
||||||
"version": "1.6.649",
|
"version": "1.6.650",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "next dev",
|
"dev": "next dev",
|
||||||
|
|||||||
Reference in New Issue
Block a user