Spaces:
Runtime error
Runtime error
Mathias Claude Opus 4.5 commited on
Commit ยท
9d8ad88
1
Parent(s): 9f92ded
Make progress bar text always black + add sdr-feature skill + update metadata
Browse files- Changed progress bar text color from white/dynamic to always black (#000)
- Removed text-shadow from progress text for better readability
- Removed unused --progress-text CSS variables
- Removed theme-specific progress text color overrides
- Added sdr-feature skill for implementing features and deploying to HF
- Updated HuggingFace metadata: title and colors to match SDR Status Tracker branding
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- README.md +4 -4
- index.html +2 -5
- sdr-feature/SKILL.md +91 -0
README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
emoji: ๐
|
| 4 |
-
colorFrom:
|
| 5 |
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
-
short_description: Interactive
|
| 10 |
---
|
| 11 |
|
| 12 |
-
#
|
| 13 |
|
| 14 |
Interactive dashboard for tracking sales development case progress with real-time editing and persistent data storage.
|
| 15 |
|
|
|
|
| 1 |
---
|
| 2 |
+
title: SDR Status Tracker
|
| 3 |
emoji: ๐
|
| 4 |
+
colorFrom: purple
|
| 5 |
colorTo: green
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
license: mit
|
| 9 |
+
short_description: Interactive SDR performance tracking dashboard
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# SDR Status Tracker
|
| 13 |
|
| 14 |
Interactive dashboard for tracking sales development case progress with real-time editing and persistent data storage.
|
| 15 |
|
index.html
CHANGED
|
@@ -61,7 +61,6 @@
|
|
| 61 |
--chart-grid: rgba(255,255,255,0.1);
|
| 62 |
--chart-text: var(--base-400);
|
| 63 |
--input-bg: rgba(255,255,255,0.08);
|
| 64 |
-
--progress-text: #fff;
|
| 65 |
--modal-bg: var(--base-600);
|
| 66 |
}
|
| 67 |
|
|
@@ -82,7 +81,6 @@
|
|
| 82 |
--chart-grid: rgba(0,0,0,0.08);
|
| 83 |
--chart-text: var(--base-500);
|
| 84 |
--input-bg: var(--base-200);
|
| 85 |
-
--progress-text: var(--base-600);
|
| 86 |
--modal-bg: var(--base-100);
|
| 87 |
}
|
| 88 |
|
|
@@ -164,7 +162,7 @@
|
|
| 164 |
display: flex; align-items: center; padding-left: 6px;
|
| 165 |
box-shadow: 0 1px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
|
| 166 |
}
|
| 167 |
-
.progress-text { font-size: 0.85rem; font-weight: 800; color: #
|
| 168 |
|
| 169 |
/* Progress bar color classes with gradients */
|
| 170 |
.progress-success { background: linear-gradient(90deg, #70E0B1 0%, #ABECFA 100%); } /* Victory gradient: green to cyan */
|
|
@@ -174,8 +172,7 @@
|
|
| 174 |
.progress-danger { background: linear-gradient(135deg, #FF5C47 0%, #E04535 50%, #FF5C47 100%); } /* Red - low */
|
| 175 |
|
| 176 |
[data-theme="dark"] .progress-bar { background: rgba(255,255,255,0.1); }
|
| 177 |
-
|
| 178 |
-
[data-theme="light"] .progress-good .progress-text { color: var(--base-600); text-shadow: none; }
|
| 179 |
|
| 180 |
/* Progress text */
|
| 181 |
.progress-text { display: inline-block; }
|
|
|
|
| 61 |
--chart-grid: rgba(255,255,255,0.1);
|
| 62 |
--chart-text: var(--base-400);
|
| 63 |
--input-bg: rgba(255,255,255,0.08);
|
|
|
|
| 64 |
--modal-bg: var(--base-600);
|
| 65 |
}
|
| 66 |
|
|
|
|
| 81 |
--chart-grid: rgba(0,0,0,0.08);
|
| 82 |
--chart-text: var(--base-500);
|
| 83 |
--input-bg: var(--base-200);
|
|
|
|
| 84 |
--modal-bg: var(--base-100);
|
| 85 |
}
|
| 86 |
|
|
|
|
| 162 |
display: flex; align-items: center; padding-left: 6px;
|
| 163 |
box-shadow: 0 1px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
|
| 164 |
}
|
| 165 |
+
.progress-text { font-size: 0.85rem; font-weight: 800; color: #000; white-space: nowrap; text-shadow: none; }
|
| 166 |
|
| 167 |
/* Progress bar color classes with gradients */
|
| 168 |
.progress-success { background: linear-gradient(90deg, #70E0B1 0%, #ABECFA 100%); } /* Victory gradient: green to cyan */
|
|
|
|
| 172 |
.progress-danger { background: linear-gradient(135deg, #FF5C47 0%, #E04535 50%, #FF5C47 100%); } /* Red - low */
|
| 173 |
|
| 174 |
[data-theme="dark"] .progress-bar { background: rgba(255,255,255,0.1); }
|
| 175 |
+
/* Progress text is always black - no theme-specific overrides needed */
|
|
|
|
| 176 |
|
| 177 |
/* Progress text */
|
| 178 |
.progress-text { display: inline-block; }
|
sdr-feature/SKILL.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
name: sdr-feature
|
| 3 |
+
description: |
|
| 4 |
+
SDR Status Tracker feature implementation and deployment skill. Use when the user asks to:
|
| 5 |
+
- Implement a new feature in the SDR tracker
|
| 6 |
+
- Fix a bug in the dashboard
|
| 7 |
+
- Make UI/UX changes to the tracker
|
| 8 |
+
- Push changes to Hugging Face
|
| 9 |
+
- Deploy updates to the live site
|
| 10 |
+
MANDATORY TRIGGERS: feature, implement, fix, push to HF, deploy, dashboard change, UI change, tracker update
|
| 11 |
+
---
|
| 12 |
+
|
| 13 |
+
# SDR Feature Implementation Skill
|
| 14 |
+
|
| 15 |
+
Implements features for the SDR Status Tracker dashboard and deploys to Hugging Face Spaces.
|
| 16 |
+
|
| 17 |
+
## Project Context
|
| 18 |
+
|
| 19 |
+
- **Location**: This folder (sdr-status-tracker)
|
| 20 |
+
- **Main file**: `index.html` (single-file dashboard with embedded JS/CSS)
|
| 21 |
+
- **Remote**: `hf` โ `https://huggingface.co/spaces/MathiasAESandnes/sdr-status-tracker`
|
| 22 |
+
- **Brand**: ScaleupXQ (see `BRAND_GUIDELINES.md`)
|
| 23 |
+
|
| 24 |
+
## Implementation Workflow
|
| 25 |
+
|
| 26 |
+
### 1. Understand the Request
|
| 27 |
+
|
| 28 |
+
Read relevant files to understand context:
|
| 29 |
+
- `index.html` - Main dashboard code
|
| 30 |
+
- `BRAND_GUIDELINES.md` - Color palette, fonts, styling rules
|
| 31 |
+
- `CLAUDE.md` - Project overview and data structure
|
| 32 |
+
|
| 33 |
+
### 2. Implement the Feature
|
| 34 |
+
|
| 35 |
+
Make changes to `index.html`. Key sections:
|
| 36 |
+
- **Lines 1-300**: CSS styles (`:root` variables, themes, components)
|
| 37 |
+
- **Lines 300-450**: HTML structure (theme toggle, table, leaderboards, modals)
|
| 38 |
+
- **Lines 450+**: JavaScript (data, rendering, calculations)
|
| 39 |
+
|
| 40 |
+
### 3. Commit and Push to HF
|
| 41 |
+
|
| 42 |
+
After implementing:
|
| 43 |
+
|
| 44 |
+
```bash
|
| 45 |
+
cd <project-folder>
|
| 46 |
+
git add .
|
| 47 |
+
git status
|
| 48 |
+
git commit -m "$(cat <<'EOF'
|
| 49 |
+
<descriptive commit message>
|
| 50 |
+
|
| 51 |
+
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
| 52 |
+
EOF
|
| 53 |
+
)"
|
| 54 |
+
git push hf main
|
| 55 |
+
```
|
| 56 |
+
|
| 57 |
+
## Key Code Patterns
|
| 58 |
+
|
| 59 |
+
### CSS Variables (Themes)
|
| 60 |
+
```css
|
| 61 |
+
[data-theme="dark"] { --some-var: #fff; }
|
| 62 |
+
[data-theme="light"] { --some-var: var(--base-600); }
|
| 63 |
+
```
|
| 64 |
+
|
| 65 |
+
### Progress Bars
|
| 66 |
+
```javascript
|
| 67 |
+
function getProgressClass(progress) {
|
| 68 |
+
if (progress >= 100) return 'progress-success';
|
| 69 |
+
// ... color logic based on percentage
|
| 70 |
+
}
|
| 71 |
+
```
|
| 72 |
+
|
| 73 |
+
### Leaderboard Scoring
|
| 74 |
+
60% SQL + 40% Activity, capped per-case until all targets met.
|
| 75 |
+
|
| 76 |
+
## Brand Colors Reference
|
| 77 |
+
|
| 78 |
+
| Name | Hex | Usage |
|
| 79 |
+
|------|-----|-------|
|
| 80 |
+
| Primary | `#6D3EF3` | Headers, highlights |
|
| 81 |
+
| Emerald 300 | `#70E0B1` | Success states |
|
| 82 |
+
| Marigold 300 | `#FFF09B` | Warning/good states |
|
| 83 |
+
| Tangerine 300 | `#FF8474` | Danger/caution |
|
| 84 |
+
| Base 600 | `#0D0B13` | Dark text/backgrounds |
|
| 85 |
+
|
| 86 |
+
## Verification
|
| 87 |
+
|
| 88 |
+
After pushing, verify deployment at:
|
| 89 |
+
`https://huggingface.co/spaces/MathiasAESandnes/sdr-status-tracker`
|
| 90 |
+
|
| 91 |
+
Build typically takes 1-2 minutes after push.
|