From 33f62522b74728eb6cbb6147b186ac7e47908d7b Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Thu, 12 Feb 2026 06:20:29 -0500 Subject: [PATCH] touchy upy --- backend/routes/notes.routes.js | 1 + backend/services/clustering.service.js | 8 ++++---- frontend/src/components/stickies.tsx | 2 +- frontend/src/styles/button.css | 2 +- frontend/src/styles/stickies.css | 3 ++- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/backend/routes/notes.routes.js b/backend/routes/notes.routes.js index 13e8247..5fc6520 100644 --- a/backend/routes/notes.routes.js +++ b/backend/routes/notes.routes.js @@ -27,6 +27,7 @@ router.get('/', async (req, res) => { router.post('/cluster', async (req, res) => { try { const notes = await loadNotes(); + console.log('notes returned from loadNotes', notes) const clusters = await clusterNotes(notes); res.json(clusters); } catch (err) { diff --git a/backend/services/clustering.service.js b/backend/services/clustering.service.js index 249daed..f1e72d1 100644 --- a/backend/services/clustering.service.js +++ b/backend/services/clustering.service.js @@ -34,11 +34,11 @@ ${notesJson}`; export const clusterNotes = async (notes) => { const response = await client.messages.create({ - model: "claude-opus-4-6", - max_tokens: 4096, - messages: [ + model: "claude-sonnet-4-20250514", + max_tokens: 4096, + messages: [ { role: "user", content: buildPrompt(notes) }, - ], + ], }); const raw = response.content[0].text; diff --git a/frontend/src/components/stickies.tsx b/frontend/src/components/stickies.tsx index d87a0d6..958f038 100644 --- a/frontend/src/components/stickies.tsx +++ b/frontend/src/components/stickies.tsx @@ -49,7 +49,7 @@ const Stickies = () => { return (
-
{stickies?.map((sticky) => ( diff --git a/frontend/src/styles/button.css b/frontend/src/styles/button.css index 9064b85..703d0b4 100644 --- a/frontend/src/styles/button.css +++ b/frontend/src/styles/button.css @@ -4,6 +4,6 @@ color: #6dd6f4; border: 1px solid rgb(92, 0, 91); width: 16rem; - height: 2.5rem; + height: 3rem; margin-top: 14px; } \ No newline at end of file diff --git a/frontend/src/styles/stickies.css b/frontend/src/styles/stickies.css index 4b3d4e0..57fe1ff 100644 --- a/frontend/src/styles/stickies.css +++ b/frontend/src/styles/stickies.css @@ -9,6 +9,7 @@ .stickies-container { margin: 36px 0px 36px 0px; } + .clusters-container { display: flex; flex-direction: column; @@ -17,7 +18,7 @@ } .cluster-group { - border: 1px solid rgba(255, 255, 255, 0.1); + border: 1px solid #6dd6f4; border-radius: 8px; padding: 16px; }