From 0c7d43bb2f77897c4aa0e3c6ffa5a5298c84b87c Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Thu, 12 Feb 2026 05:41:45 -0500 Subject: [PATCH 1/4] restruct --- backend/server.js | 2 +- backend/services/clustering.service.js | 2 +- frontend/src/components/navbar.tsx | 15 +++++++++++++++ frontend/src/pages/Home.tsx | 10 +++------- 4 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 frontend/src/components/navbar.tsx diff --git a/backend/server.js b/backend/server.js index 814741d..67fd595 100644 --- a/backend/server.js +++ b/backend/server.js @@ -4,5 +4,5 @@ import config from './config/index.js'; const PORT = config.port || 3001; app.listen(PORT, () => { - console.log(`Envision backend running on port ${PORT}`); + console.log(`Backend running on port ${PORT}`); }); \ No newline at end of file diff --git a/backend/services/clustering.service.js b/backend/services/clustering.service.js index c73ab2d..249daed 100644 --- a/backend/services/clustering.service.js +++ b/backend/services/clustering.service.js @@ -34,7 +34,7 @@ ${notesJson}`; export const clusterNotes = async (notes) => { const response = await client.messages.create({ - model: "claude-sonnet-4-20250514", + model: "claude-opus-4-6", max_tokens: 4096, messages: [ { role: "user", content: buildPrompt(notes) }, diff --git a/frontend/src/components/navbar.tsx b/frontend/src/components/navbar.tsx new file mode 100644 index 0000000..3e7934f --- /dev/null +++ b/frontend/src/components/navbar.tsx @@ -0,0 +1,15 @@ +const Navbar = () => { + + return ( +
+
+

kohngrüti

+
+
+ recenter +
+
+ ) +} + +export default Navbar; \ No newline at end of file diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index 9235f2e..97e7a3e 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -1,16 +1,12 @@ import Stickies from '../components/stickies'; +import Navbar from '../components/navbar' import '../styles/home.css' const Home = () => { return (
-
-
-

kohngrüti

-
-
- recenter -
+
+
From 80027424e1b04cbab380067dca127a0e7a404734 Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Thu, 12 Feb 2026 05:58:56 -0500 Subject: [PATCH 2/4] clean --- frontend/src/components/button.tsx | 6 +++--- frontend/src/components/navbar.tsx | 19 +++++++++---------- frontend/src/pages/Home.tsx | 20 ++++++++++---------- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/frontend/src/components/button.tsx b/frontend/src/components/button.tsx index bc08c78..106d6a2 100644 --- a/frontend/src/components/button.tsx +++ b/frontend/src/components/button.tsx @@ -8,9 +8,9 @@ type ButtonProps = { const Button = ({ onClick, isLoading, label }: ButtonProps) => { return ( - + ); }; diff --git a/frontend/src/components/navbar.tsx b/frontend/src/components/navbar.tsx index 3e7934f..aea759d 100644 --- a/frontend/src/components/navbar.tsx +++ b/frontend/src/components/navbar.tsx @@ -1,15 +1,14 @@ const Navbar = () => { - - return ( -
-
-

kohngrüti

+ return ( +
+
+

kohngrüti

+
+
+ recenter +
-
- recenter -
-
- ) + ) } export default Navbar; \ No newline at end of file diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index 97e7a3e..e6f91ce 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -3,16 +3,16 @@ import Navbar from '../components/navbar' import '../styles/home.css' const Home = () => { - return ( -
-
- -
-
- -
-
- ); + return ( +
+
+ +
+
+ +
+
+ ); }; export default Home; \ No newline at end of file From 814e008b217fb7f5387eea31ee67d26fb68853f7 Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Thu, 12 Feb 2026 06:03:21 -0500 Subject: [PATCH 3/4] style --- frontend/src/styles/button.css | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/styles/button.css b/frontend/src/styles/button.css index 5c398a1..9064b85 100644 --- a/frontend/src/styles/button.css +++ b/frontend/src/styles/button.css @@ -2,6 +2,7 @@ font-family: "Sulphur Point", sans-serif; font-size: 1.1rem; color: #6dd6f4; + border: 1px solid rgb(92, 0, 91); width: 16rem; height: 2.5rem; margin-top: 14px; From 33f62522b74728eb6cbb6147b186ac7e47908d7b Mon Sep 17 00:00:00 2001 From: KS Jannette Date: Thu, 12 Feb 2026 06:20:29 -0500 Subject: [PATCH 4/4] 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; }