[BUG]: Loading skeletons use hardcoded dark colors and appear as dark blocks in light mode on every page
I maintainer di solito rispondono entro 3 giorni
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 78/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- javascript, react, tailwindcss
- Ambito
- frontend
Direzione di ricerca
Inizia da src/components/Orgexplorerskeletons.jsx, dove gli helper Bar, Box, Circle e Pill hanno hardcoded bg-neutral-800, bg-neutral-900, bg-neutral-950 e border-neutral-800/divide-neutral-800. Cerca le variabili di tema corrispondenti in src/styles/global.css e sostituisci le classi con quelle. È completato quando la modalità chiara mostra segnaposto chiari su tutte e sei le pagine skeleton e la modalità scura resta invariata, verificato visivamente.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
The loading skeletons shown while a page is fetching data don't follow the active theme. In light mode, every page that uses a skeleton displays solid black / dark grey blocks on a white background, which looks broken and inconsistent with the rest of the light theme.
Root cause
All skeletons are defined in src/components/Orgexplorerskeletons.jsx and are built from four shared helper components (Bar, Box, Circle, Pill). These helpers use fixed dark-theme Tailwind classes instead of the theme variables used everywhere else in the app:
| Class used | Where |
|---|---|
bg-neutral-800 |
Bar, Circle, Pill (the pulsing placeholder bars) |
bg-neutral-900, border-neutral-800 |
Box (card containers) |
divide-neutral-800 |
Row dividers in the Repository and Contributor skeleton tables |
bg-neutral-950, border-neutral-800 |
Network graph placeholder canvas |
border-neutral-800 |
Tab underline row in the Governance skeleton |
Because these colors are hardcoded, they stay dark regardless of whether light or dark mode is active. The skeletons were introduced in #117.
Affected pages
I verified this on all six pages that render a skeleton, and all of them are affected:
| Page | Skeleton component | Affected in light mode |
|---|---|---|
| Overview | OverviewSkeleton |
Yes |
| Repositories | RepositorySkeleton |
Yes |
| Contributors | ContributorSkeleton |
Yes |
| Network | NetworkSkeleton |
Yes |
| Analytics | AnalyticsSkeleton |
Yes |
| Governance | GovernanceSkeleton |
Yes |
Impact
- Every light-mode user sees dark blocks each time a page loads, for example when re-running an analysis with a PAT.
- It makes light mode look unfinished, even though the rest of the UI themes correctly.
- Dark mode is not affected.
Proposed fix
Replace the hardcoded classes in Orgexplorerskeletons.jsx with the existing theme variables, using the same Tailwind CSS-variable syntax already used elsewhere in the codebase (e.g. hover:bg-(--bg), text-(--text2)):
- placeholder bars:
bg-neutral-800→bg-(--surface2) - card containers:
bg-neutral-900→bg-(--surface) - borders and dividers:
border-neutral-800/divide-neutral-800→border-(--border)/divide-(--border) - network canvas:
bg-neutral-950→bg-(--bg)
The exact variables can be matched against src/styles/global.css, so dark mode keeps its current look while light mode gets matching light placeholders.
Scope
- One file only:
src/components/Orgexplorerskeletons.jsx - No layout, logic or behavior changes, only color classes
- I'll verify the result visually in both light and dark mode on all six pages
I'd be happy to work on this if that's okay.
Steps to Reproduce:
- Run the app locally (
npm run dev) and explore any organization (e.g.AOSSIE-Org). - Switch to light mode using the theme toggle in the navbar.
- Trigger a page's loading state:
- Naturally: add a PAT in Settings, go to Overview, enable network throttling (DevTools → Network → Slow 4G) and click "Connect PAT & Run". The skeleton appears while the analysis reloads.
- Or, to keep it on screen for inspection: temporarily change
if (loading)toif (true)on the skeleton line of the page component (e.g.OverviewPage.jsx, line ~41), which is how I captured the screenshots.
- Observe that the skeleton is made of dark blocks on a white background.
- Repeat on Repositories, Contributors, Network, Analytics and Governance: same result.
Expected: Skeleton placeholders should use light colors in light mode and dark colors in dark mode, matching the active theme.
Actual: Skeleton placeholders are always dark, regardless of theme.
###Screenshots:
Overview skeleton (light mode): dark blocks on a white page
- Lingua principale
- JavaScript
- Stelle
- 44
- Fork
- 133
- Merge medio
- 5g 5h
- PR unite (30g)
- 27
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/OrgExplorer
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/OrgExplorer#366 ·
I maintainer di solito rispondono entro 3 giorni
-
[BUG]: computeHealthScore: NaN when repo.open_issues_count is missing and computeHealthScore: NaN when repo.pushed_at is missing or invalidForse già presa @PrithvijitBose l’ha presa 15 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/OrgExplorer#287 · 2 commenti ·
I maintainer di solito rispondono entro 3 giorni
-
[BUG]: Analytics page keeps the previous organization's pull request data after exploring a new orgForse già presa @amanbn8 l’ha presa 16 giorni fa. Apertabug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
AOSSIE-Org/OrgExplorer#272 · 5 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
[BUG]: Rate Limit Header Coercion to `0` / False Quota ExhaustionForse già presa @Devnil434 l’ha presa 24 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AOSSIE-Org/OrgExplorer#251 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
-
[BUG]: CSV exports produce malformed files when fields contain commas or quotesForse già presa @Dotify71 l’ha presa 26 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/OrgExplorer#245 · 2 commenti · 1 assegnatario ·
I maintainer di solito rispondono entro 3 giorni
Tutte le issue di AOSSIE-Org/OrgExplorer
Issue simili
-
release:v5.34
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
Jason-Vaughan/TangleClaw#2469 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
hacktoberfest help wanted skip-changelog
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
wassim-azi/agy-powerline#74 ·
I maintainer di solito rispondono entro 1 giorno
-
tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
smonn/validator-fns#741 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
I maintainer di solito rispondono entro 3 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 2 giorni