About page (localized) + README live-demo link + framed OG card
About page: new HELP → About nav item and #/about view (viewAbout). Plain-language, non-technical intro — what it is, how it works, why teams use it — plus an Apache-2.0 license summary that links to the full text. Fully localized: every string has an I18N.pl entry. Verified in the demo build: renders in PL (auto-detected), the EN toggle restores English losslessly, and dark-mode tokens apply (cards on --surface, light headings); no console errors. README: point the live-demo badge + links at the real Netlify URL (super-lamington-4749f7.netlify.app) and fix a stale "GitHub Pages" mention to Netlify. OG card: add a subtle frame so it reads as a card on both light and dark chat backgrounds. (The image is static — crawlers fetch one PNG regardless of the viewer's theme — so this is the right way to make it theme-robust.) CLAUDE.md: note the HELP/About page. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -90,9 +90,11 @@ Frontend (`frontend/index.html`) — keep all of these when editing:
|
||||
## Frontend design system
|
||||
|
||||
One static file, no framework/build. Hash-routed admin SPA: grouped sidebar nav
|
||||
(OVERVIEW / DIRECTORY / QUESTIONNAIRES / EVALUATIONS / REVIEW / ADMIN) → data tables with
|
||||
(OVERVIEW / DIRECTORY / QUESTIONNAIRES / EVALUATIONS / REVIEW / ADMIN / HELP) → data tables with
|
||||
row menus → full-page create forms + edit modals; dashboard widgets; cycle-detail rankings;
|
||||
command palette (Ctrl/⌘K) backed by the `/search` FTS endpoint; toast; request-log slideover.
|
||||
The HELP group holds an **About** page (`#/about`, `viewAbout`) — plain-language intro + Apache-2.0
|
||||
license summary, fully localized like the rest (every string has an `I18N.pl` entry).
|
||||
|
||||
- **Palette:** Open Color (https://yeun.github.io/open-color, MIT), light + dark via
|
||||
`[data-theme]`. `gray` ramp for neutrals — primary `#212529` (→ `#dee2e6` in dark); `indigo`
|
||||
|
||||
@@ -12,13 +12,13 @@
|
||||
> composite score per firm, turning relationship-based panel management into a measurable,
|
||||
> auditable, defensible process.
|
||||
|
||||
[](https://counselscorecard.netlify.app/)
|
||||
[](https://super-lamington-4749f7.netlify.app/)
|
||||
[](https://github.com/Alpaq92/CounselScorecard/actions/workflows/ci.yml)
|
||||

|
||||

|
||||
[](LICENSE)
|
||||
|
||||
**License:** Apache-2.0 · **Status:** MVP-0 (qualitative core loop) · ▶ **[Live demo](https://counselscorecard.netlify.app/)** · 📸 **[Screenshots](SHOWCASE.md)**
|
||||
**License:** Apache-2.0 · **Status:** MVP-0 (qualitative core loop) · ▶ **[Live demo](https://super-lamington-4749f7.netlify.app/)** · 📸 **[Screenshots](SHOWCASE.md)**
|
||||
|
||||
Built from the product/architecture spec in `../Counsel-Scorecard/`.
|
||||
|
||||
@@ -61,9 +61,9 @@ bootstrap admin from your `.env`. Full walkthrough, observability, and local-dev
|
||||
|
||||
## Live demo
|
||||
|
||||
A seeded, **backend-free** build of the admin console runs in the browser on **GitHub Pages** — no install, no login:
|
||||
A seeded, **backend-free** build of the admin console runs in the browser, served by **Netlify** — no install, no login:
|
||||
|
||||
> **▶ Live demo:** **<https://counselscorecard.netlify.app/>**
|
||||
> **▶ Live demo:** **<https://super-lamington-4749f7.netlify.app/>**
|
||||
|
||||
It's the real [`frontend/index.html`](frontend/index.html) with a mock API layer injected by [`scripts/build_demo.py`](scripts/build_demo.py), built and served by **Netlify** (see [`netlify.toml`](netlify.toml)). Try the **EN/PL** and **system / light / dark** toggles (top-right) — it follows your OS theme by default.
|
||||
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 60 KiB After Width: | Height: | Size: 60 KiB |
+64
-1
@@ -186,6 +186,17 @@ table.dt .sub{display:block;color:var(--text-muted);font-size:12.5px;font-weight
|
||||
.kv{display:flex;justify-content:space-between;padding:7px 0;border-top:1px solid var(--border);font-size:13px;}
|
||||
.kv:first-of-type{border-top:0;} .kv .k{color:var(--text-muted);}
|
||||
|
||||
/* ── about page ── */
|
||||
.about{max-width:720px;}
|
||||
.about .card2{border:1px solid var(--border);border-radius:10px;padding:18px 20px;background:var(--surface);box-shadow:var(--shadow-card);margin-bottom:14px;}
|
||||
.about h3{margin:0 0 8px;font:600 15px/1.3 var(--font-sans);color:var(--text-heading);}
|
||||
.about p{margin:0 0 10px;color:var(--text-secondary);line-height:1.6;}
|
||||
.about p:last-child{margin-bottom:0;}
|
||||
.about ol,.about ul{margin:0;padding-left:20px;color:var(--text-secondary);line-height:1.6;}
|
||||
.about li{margin:5px 0;}
|
||||
.about a{color:var(--accent-blue);text-decoration:none;}
|
||||
.about a:hover{text-decoration:underline;}
|
||||
|
||||
/* ── kanban ── */
|
||||
.lanes{display:flex;gap:16px;overflow-x:auto;padding-bottom:8px;}
|
||||
.lane{flex:0 0 280px;border:1px solid var(--border);border-radius:10px;background:var(--surface-subtle);}
|
||||
@@ -406,6 +417,7 @@ const ICN = {
|
||||
plus:'<path d="M12 5l0 14"/> <path d="M5 12l14 0"/>',
|
||||
save:'<path d="M6 4h10l4 4v10a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2"/> <path d="M10 14a2 2 0 1 0 4 0a2 2 0 1 0 -4 0"/> <path d="M14 4l0 4l-6 0l0 -4"/>',
|
||||
filter:'<path d="M4 4h16v2.172a2 2 0 0 1 -.586 1.414l-4.414 4.414v7l-6 2v-8.5l-4.48 -4.928a2 2 0 0 1 -.52 -1.345v-2.227"/>',
|
||||
info:'<path d="M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"/> <path d="M12 9h.01"/> <path d="M11 12h1v4h1"/>',
|
||||
refresh:'<path d="M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4"/> <path d="M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/>'};
|
||||
function svg(p,w){ return `<svg viewBox="0 0 24 24" width="${w||16}" height="${w||16}" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${p}</svg>`; }
|
||||
function btn(label,{cls='ghost',icon,onclick,attrs=''}={}){ return `<button class="btn ${cls}" ${onclick?`onclick="${onclick}"`:''} ${attrs}>${icon?svg(icon):''}${label?esc(label):''}</button>`; }
|
||||
@@ -492,6 +504,7 @@ const NAV = [
|
||||
{ group:'EVALUATIONS', items:[ {id:'responses',label:'Submit evaluation',icon:ICN.resp} ] },
|
||||
{ group:'REVIEW', items:[ {id:'cycles',label:'Review cycles',icon:ICN.cycle} ] },
|
||||
{ group:'ADMIN', items:[ {id:'users',label:'Users',icon:ICN.user,admin:true}, {id:'dictionaries',label:'Dictionaries',icon:ICN.book} ] },
|
||||
{ group:'HELP', items:[ {id:'about',label:'About',icon:ICN.info} ] },
|
||||
];
|
||||
function curRoute(){ return (location.hash||'#/').replace(/^#\/?/,'').split('/'); }
|
||||
let navFilter='';
|
||||
@@ -516,7 +529,7 @@ function router(){
|
||||
renderNav();
|
||||
const r=curRoute(); const v=r[0]||'';
|
||||
const C=$('content');
|
||||
const views={ '':viewDashboard, firms:viewFirms, matters:viewMatters, questionnaires:viewQuestionnaires,
|
||||
const views={ '':viewDashboard, about:viewAbout, firms:viewFirms, matters:viewMatters, questionnaires:viewQuestionnaires,
|
||||
questions:viewQuestions, responses:viewResponses, cycles:viewCycles, users:viewUsers, dictionaries:viewDictionaries };
|
||||
if(v==='firms'&&r[1]==='new') return formFirm(C);
|
||||
if(v==='matters'&&r[1]==='new') return formMatter(C);
|
||||
@@ -547,6 +560,39 @@ function viewDashboard(C){
|
||||
</div></div>`;
|
||||
}
|
||||
|
||||
function viewAbout(C){
|
||||
setCrumb(['Dashboard','About']);
|
||||
C.innerHTML = `<div class="page"><div class="about">
|
||||
${pageHead('About','What Counsel Scorecard is and how it helps.')}
|
||||
<div class="card2">
|
||||
<h3>What is Counsel Scorecard?</h3>
|
||||
<p>Counsel Scorecard helps legal teams keep track of how well their outside law firms perform — and turn scattered opinions into a clear, fair score for every firm.</p>
|
||||
</div>
|
||||
<div class="card2">
|
||||
<h3>How it works</h3>
|
||||
<ol>
|
||||
<li>Decide what matters — choose the questions you want to ask, such as responsiveness, quality of work, and value for money.</li>
|
||||
<li>Group those questions into a scorecard and give each one a weight.</li>
|
||||
<li>After every piece of work, the person who ran it fills in a short evaluation.</li>
|
||||
<li>At the end of a review period, the answers are combined into a single score and a ranking for each firm.</li>
|
||||
</ol>
|
||||
</div>
|
||||
<div class="card2">
|
||||
<h3>Why teams use it</h3>
|
||||
<ul>
|
||||
<li>Fair and consistent — every firm is judged against the same questions.</li>
|
||||
<li>Transparent — each score can be traced back to the answers behind it.</li>
|
||||
<li>Private by design — it runs on your own systems, and your data never leaves them.</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="card2">
|
||||
<h3>License</h3>
|
||||
<p>Counsel Scorecard is free and open-source software, released under the Apache License 2.0.</p>
|
||||
<p>You are free to use, change, and share it — including for commercial use — at no cost. In short: keep the original copyright and license notice, and state any significant changes you make. The software is provided as-is, without warranty.</p>
|
||||
<p><a href="https://www.apache.org/licenses/LICENSE-2.0" target="_blank" rel="noopener">Read the full license</a></p>
|
||||
</div>
|
||||
</div></div>`;
|
||||
}
|
||||
function viewFirms(C){
|
||||
setCrumb(['Dashboard','Firms']);
|
||||
C.innerHTML = `<div class="page">${pageHead('Firms','Law firms evaluated in review cycles.')}
|
||||
@@ -894,6 +940,23 @@ const I18N = { pl: {
|
||||
'scale':'skala','boolean':'tak/nie','lt_50k':'< 50 tys.','50k_250k':'50–250 tys.','250k_1m':'250 tys. – 1 mln','1m_10m':'1 – 10 mln','gt_10m':'> 10 mln','in_progress':'w toku','at_risk':'zagrożony','top_performer':'najlepszy','remove_candidate':'kandydat do usunięcia',
|
||||
// dictionaries enum group names + pager
|
||||
'firm_status':'status kancelarii','matter_status':'status sprawy','matter_type':'typ sprawy','complexity_band':'poziom złożoności','value_band':'przedział wartości','user_role':'rola użytkownika','ranking_status':'status rankingu','questionnaire_status':'status kwestionariusza','response_status':'status odpowiedzi','answer_type':'typ odpowiedzi','question_category':'kategoria pytania','Page':'Strona',
|
||||
// about page (nav group + item + prose)
|
||||
'HELP':'POMOC','About':'O programie','What Counsel Scorecard is and how it helps.':'Czym jest Counsel Scorecard i jak pomaga.',
|
||||
'What is Counsel Scorecard?':'Czym jest Counsel Scorecard?',
|
||||
'Counsel Scorecard helps legal teams keep track of how well their outside law firms perform — and turn scattered opinions into a clear, fair score for every firm.':'Counsel Scorecard pomaga zespołom prawnym śledzić, jak dobrze radzą sobie współpracujące z nimi kancelarie zewnętrzne — i zamienia rozproszone opinie w przejrzysty, sprawiedliwy wynik dla każdej kancelarii.',
|
||||
'How it works':'Jak to działa',
|
||||
'Decide what matters — choose the questions you want to ask, such as responsiveness, quality of work, and value for money.':'Zdecyduj, co się liczy — wybierz pytania, które chcesz zadać, takie jak szybkość reakcji, jakość pracy i stosunek jakości do ceny.',
|
||||
'Group those questions into a scorecard and give each one a weight.':'Pogrupuj te pytania w kartę oceny i nadaj każdemu z nich wagę.',
|
||||
'After every piece of work, the person who ran it fills in a short evaluation.':'Po każdym zleceniu osoba, która je prowadziła, wypełnia krótką ocenę.',
|
||||
'At the end of a review period, the answers are combined into a single score and a ranking for each firm.':'Na koniec okresu przeglądu odpowiedzi są łączone w jeden wynik i ranking dla każdej kancelarii.',
|
||||
'Why teams use it':'Dlaczego zespoły z tego korzystają',
|
||||
'Fair and consistent — every firm is judged against the same questions.':'Sprawiedliwie i spójnie — każda kancelaria jest oceniana według tych samych pytań.',
|
||||
'Transparent — each score can be traced back to the answers behind it.':'Przejrzyście — każdy wynik można prześledzić aż do odpowiedzi, które go tworzą.',
|
||||
'Private by design — it runs on your own systems, and your data never leaves them.':'Prywatnie z założenia — działa na Twoich własnych systemach, a Twoje dane nigdy ich nie opuszczają.',
|
||||
'License':'Licencja',
|
||||
'Counsel Scorecard is free and open-source software, released under the Apache License 2.0.':'Counsel Scorecard to bezpłatne oprogramowanie open source, udostępnione na licencji Apache License 2.0.',
|
||||
'You are free to use, change, and share it — including for commercial use — at no cost. In short: keep the original copyright and license notice, and state any significant changes you make. The software is provided as-is, without warranty.':'Możesz go bezpłatnie używać, zmieniać i udostępniać — również komercyjnie. W skrócie: zachowaj oryginalną informację o prawach autorskich i licencji oraz zaznacz istotne zmiany, które wprowadzisz. Oprogramowanie jest dostarczane „tak jak jest”, bez gwarancji.',
|
||||
'Read the full license':'Przeczytaj pełną treść licencji',
|
||||
}};
|
||||
let LANG = (function(){ try{ const s=localStorage.getItem('cs_lang'); if(s==='en'||s==='pl') return s; }catch{}
|
||||
const ls=(navigator.languages&&navigator.languages.length)?navigator.languages:[navigator.language||'en'];
|
||||
|
||||
Reference in New Issue
Block a user