From e297ec72458fb63f2457f772b428ac52e7070d30 Mon Sep 17 00:00:00 2001 From: Sinan Date: Sun, 18 Jan 2026 13:24:49 +0100 Subject: [PATCH] feat: Update AI model, remove contribution documentation, and enhance DM channel naming and message data in the chat store. --- CONTRIBUTING.md | 44 --------------------------------------- README.md | 17 --------------- client/src/stores/chat.js | 10 ++++++++- server/index.js | 2 +- 4 files changed, 10 insertions(+), 63 deletions(-) delete mode 100644 CONTRIBUTING.md diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md deleted file mode 100644 index 094aa5c..0000000 --- a/CONTRIBUTING.md +++ /dev/null @@ -1,44 +0,0 @@ -# 🤝 Contributing to Plexus - -We maintain high standards for code quality and documentation. Please follow this workflow for all contributions. - -## 🔄 Development Workflow - -### 1. Pick a Task -Before coding, ensure you are working on an assigned task. -- List tasks: `make task-list` -- Add a task: `make task-add title="Your Task"` -- Mark as in-progress: (Update manually in `tasks/tasks.duckdb` or via CLI if implemented). - -### 2. Implementation -- Write clean, modular code. -- Follow the existing design patterns (Vue 3 Composition API, Pinia, Socket.io). -- Ensure UI changes are mobile-friendly and follow the Discord-inspired aesthetic. - -### 3. Verification -Before committing, you **must** verify your changes: -- Run linting: `make lint` -- Run tests: `make test` -- Manual check: Verify the feature in the browser. - -### 4. Commit -We use **Husky** and **lint-staged** to enforce quality. -- Your commit will fail if linting or tests do not pass. -- Use descriptive commit messages (e.g., `feat: add user profiles`, `fix: message alignment`). - -### 5. Documentation -If your change affects the architecture, data model, or API: -- Update the relevant file in `docs/`. -- Ensure the root `README.md` is still accurate. - -### 6. Finalize Task -Mark the task as done: -- `make task-done id=X` - -## 🛠 Tooling -- **Linting**: ESLint for JS/Vue, Ruff for Python. -- **Testing**: Mocha for backend integration tests. -- **Automation**: Use the `Makefile` for all common operations. - ---- -Thank you for helping make Plexus better! diff --git a/README.md b/README.md index 87c3917..33f3715 100644 --- a/README.md +++ b/README.md @@ -48,21 +48,4 @@ make install ```bash # Start the dev environment (Docker) make dev - -# Or run locally -cd server && npm run dev -cd client && npm run dev ``` - -## 🤝 Contributing - -We follow a strict development workflow. Please read [CONTRIBUTING.md](./CONTRIBUTING.md) before starting. - -1. **Pick a Task**: Use `make task-list` to find something to work on. -2. **Code**: Implement your changes. -3. **Verify**: Run `make lint test` to ensure quality. -4. **Commit**: Pre-commit hooks will automatically run linting and tests. -5. **Document**: Update relevant docs if you add new features. - ---- -Built with ❤️ by the Plexus Team. diff --git a/client/src/stores/chat.js b/client/src/stores/chat.js index 004fd61..5850a2b 100644 --- a/client/src/stores/chat.js +++ b/client/src/stores/chat.js @@ -313,11 +313,17 @@ export const useChatStore = defineStore('chat', () => { const [addr1, addr2] = [walletAddress.value, targetWallet].sort(); const dmChannelId = `dm:${addr1}:${addr2}`; + // Find the other user's name + const otherUser = users.value.find(u => u.wallet_address === targetWallet); + const otherName = otherUser?.username || targetWallet.slice(0, 6) + '...'; + // Add to channels list if not exists if (!channels.value.find(c => c.id === dmChannelId)) { channels.value.push({ id: dmChannelId, - name: `DM: ${targetWallet.slice(0, 4)}...` + name: otherName, + isDM: true, + targetWallet }); } @@ -351,7 +357,9 @@ export const useChatStore = defineStore('chat', () => { // Map snake_case to camelCase and set status messages.value[channelId] = data.map(m => ({ ...m, + walletAddress: m.wallet_address, txId: m.tx_id, + channelId: m.channel_id, status: 'validated' // Messages from DB are confirmed })); } catch (e) { diff --git a/server/index.js b/server/index.js index 6964bd3..203493c 100644 --- a/server/index.js +++ b/server/index.js @@ -629,7 +629,7 @@ app.post('/api/summary', async (req, res) => { "X-Title": "Plexus Social" }, body: JSON.stringify({ - "model": "google/learnlm-1.5-pro-experimental:free", + "model": "xiaomi/mimo-v2-flash:free", "messages": [ { "role": "system",