mirror of
https://github.com/donpat1to/Schichtenplaner.git
synced 2025-12-01 15:05:45 +01:00
fixed role naming instandhalter -> maintenance
This commit is contained in:
@@ -80,134 +80,6 @@ const Help: React.FC = () => {
|
||||
<div style={{ padding: '20px', maxWidth: '1200px', margin: '0 auto' }}>
|
||||
<h1>❓ Hilfe & Support - Scheduling Algorithmus</h1>
|
||||
|
||||
{/* Algorithm Visualization */}
|
||||
<div style={{
|
||||
backgroundColor: 'white',
|
||||
borderRadius: '12px',
|
||||
padding: '30px',
|
||||
marginTop: '20px',
|
||||
boxShadow: '0 4px 6px rgba(0,0,0,0.1)',
|
||||
border: '1px solid #e0e0e0'
|
||||
}}>
|
||||
<div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'center', marginBottom: '20px' }}>
|
||||
<h2 style={{ margin: 0, color: '#2c3e50' }}>🧠 Algorithmus Visualisierung</h2>
|
||||
<button
|
||||
onClick={toggleAnimation}
|
||||
style={{
|
||||
padding: '8px 16px',
|
||||
backgroundColor: isAnimating ? '#e74c3c' : '#2ecc71',
|
||||
color: 'white',
|
||||
border: 'none',
|
||||
borderRadius: '20px',
|
||||
cursor: 'pointer',
|
||||
fontWeight: 'bold'
|
||||
}}
|
||||
>
|
||||
{isAnimating ? '⏸️ Animation pausieren' : '▶️ Animation starten'}
|
||||
</button>
|
||||
</div>
|
||||
|
||||
{/* Stage Indicators */}
|
||||
<div style={{
|
||||
display: 'flex',
|
||||
justifyContent: 'space-between',
|
||||
marginBottom: '30px',
|
||||
position: 'relative'
|
||||
}}>
|
||||
{algorithmStages.map((stage, index) => (
|
||||
<React.Fragment key={index}>
|
||||
<div
|
||||
style={{
|
||||
display: 'flex',
|
||||
flexDirection: 'column',
|
||||
alignItems: 'center',
|
||||
flex: 1
|
||||
}}
|
||||
>
|
||||
<div
|
||||
style={{
|
||||
width: '60px',
|
||||
height: '60px',
|
||||
borderRadius: '50%',
|
||||
backgroundColor: currentStage === index ? stage.color : '#ecf0f1',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
color: currentStage === index ? 'white' : '#7f8c8d',
|
||||
fontWeight: 'bold',
|
||||
fontSize: '18px',
|
||||
transition: 'all 0.5s ease',
|
||||
boxShadow: currentStage === index ? `0 0 20px ${stage.color}80` : 'none',
|
||||
border: `3px solid ${stage.color}`
|
||||
}}
|
||||
>
|
||||
{index + 1}
|
||||
</div>
|
||||
<div style={{
|
||||
textAlign: 'center',
|
||||
marginTop: '10px',
|
||||
fontWeight: currentStage === index ? 'bold' : 'normal',
|
||||
color: currentStage === index ? stage.color : '#7f8c8d'
|
||||
}}>
|
||||
{stage.title.split(':')[0]}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{index < algorithmStages.length - 1 && (
|
||||
<div style={{
|
||||
flex: 1,
|
||||
height: '3px',
|
||||
backgroundColor: currentStage > index ? stage.color : '#ecf0f1',
|
||||
alignSelf: 'center',
|
||||
margin: '0 10px',
|
||||
transition: 'all 0.5s ease'
|
||||
}} />
|
||||
)}
|
||||
</React.Fragment>
|
||||
))}
|
||||
</div>
|
||||
|
||||
{/* Current Stage Details */}
|
||||
<div style={{
|
||||
backgroundColor: algorithmStages[currentStage].color + '15',
|
||||
border: `2px solid ${algorithmStages[currentStage].color}30`,
|
||||
borderRadius: '8px',
|
||||
padding: '20px',
|
||||
marginBottom: '20px',
|
||||
transition: 'all 0.5s ease'
|
||||
}}>
|
||||
<h3 style={{ color: algorithmStages[currentStage].color, marginTop: 0 }}>
|
||||
{algorithmStages[currentStage].title}
|
||||
</h3>
|
||||
<p style={{ color: '#2c3e50', fontSize: '16px', marginBottom: '15px' }}>
|
||||
{algorithmStages[currentStage].description}
|
||||
</p>
|
||||
<div style={{ display: 'grid', gap: '8px' }}>
|
||||
{algorithmStages[currentStage].steps.map((step, stepIndex) => (
|
||||
<div
|
||||
key={stepIndex}
|
||||
style={{
|
||||
padding: '10px 15px',
|
||||
backgroundColor: 'white',
|
||||
borderRadius: '6px',
|
||||
borderLeft: `4px solid ${algorithmStages[currentStage].color}`,
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
animation: isAnimating ? 'pulse 2s infinite' : 'none'
|
||||
}}
|
||||
>
|
||||
<span style={{
|
||||
marginRight: '10px',
|
||||
color: algorithmStages[currentStage].color,
|
||||
fontWeight: 'bold'
|
||||
}}>•</span>
|
||||
{step}
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* Business Rules */}
|
||||
<div style={{
|
||||
backgroundColor: 'white',
|
||||
@@ -271,24 +143,7 @@ const Help: React.FC = () => {
|
||||
<h4 style={{ color: '#3498db' }}>🏗️ Phasen-basierter Ansatz</h4>
|
||||
<p>Der Algorithmus arbeitet in klar definierten Phasen, um komplexe Probleme schrittweise zu lösen und Stabilität zu gewährleisten.</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4 style={{ color: '#e74c3c' }}>⚖️ Wert-basierte Entscheidungen</h4>
|
||||
<p>Jede Zuweisung wird anhand eines Wertesystems bewertet, das Verfügbarkeit, Erfahrung und aktuelle Auslastung berücksichtigt.</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4 style={{ color: '#2ecc71' }}>🔧 Automatische Reparatur</h4>
|
||||
<p>Probleme werden automatisch erkannt und durch intelligente Tausch- und Bewegungsoperationen behoben.</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<h4 style={{ color: '#f39c12' }}>📊 Transparente Berichterstattung</h4>
|
||||
<p>Detaillierte Berichte zeigen genau, welche Probleme behoben wurden und welche verbleiben.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div style={{
|
||||
|
||||
Reference in New Issue
Block a user