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/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..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-sonnet-4-20250514", - 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/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 new file mode 100644 index 0000000..aea759d --- /dev/null +++ b/frontend/src/components/navbar.tsx @@ -0,0 +1,14 @@ +const Navbar = () => { + return ( +
+
+

kohngrüti

+
+
+ recenter +
+
+ ) +} + +export default Navbar; \ No newline at end of file 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/pages/Home.tsx b/frontend/src/pages/Home.tsx index 9235f2e..e6f91ce 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -1,22 +1,18 @@ import Stickies from '../components/stickies'; +import Navbar from '../components/navbar' import '../styles/home.css' const Home = () => { - return ( -
-
-
-

kohngrüti

-
-
- recenter -
-
-
- -
-
- ); + return ( +
+
+ +
+
+ +
+
+ ); }; export default Home; \ No newline at end of file diff --git a/frontend/src/styles/button.css b/frontend/src/styles/button.css index 5c398a1..703d0b4 100644 --- a/frontend/src/styles/button.css +++ b/frontend/src/styles/button.css @@ -2,7 +2,8 @@ font-family: "Sulphur Point", sans-serif; font-size: 1.1rem; 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; }