-
Notifications
You must be signed in to change notification settings - Fork 4
Fix/control panel button issue #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Caution Review failedThe pull request is closed. WalkthroughRefactors a crypto equality helper; updates control-panel to persist selections, validate before navigating, and gate monitoring UI on selections; tweaks an eID wallet settings label and Vite config; and secures polls listing with auth plus group/owner-based filtering via an updated PollService signature and controller usage. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor U as Client
participant API as API Router
participant AG as authGuard
participant PC as PollController
participant PS as PollService
participant GR as Group (model)
participant DB as DB
U->>API: GET /api/polls?page&limit&search&sort...
API->>AG: authGuard
AG-->>API: user (req.user) or 401
API->>PC: getAllPolls(req, res)
PC->>PS: getAllPolls(page, limit, search, sortField, sortDir, userId)
alt userId provided
PS->>GR: find groups by userId
GR-->>PS: userGroupIds
PS->>DB: query polls (search/sort)
PS->>PS: filter by public OR groupId∈userGroupIds OR creator=userId
else no userId
PS->>DB: query polls (search/sort) without group filtering
end
PS-->>PC: { polls, total, page, limit, totalPages }
PC-->>U: 200 JSON
sequenceDiagram
autonumber
actor User
participant Sel as +page.svelte (selection)
participant SS as sessionStorage
participant Lay as +layout.svelte (Start)
participant Nav as Router
participant Mon as monitoring/+page.svelte
participant Flow as SvelteFlow
User->>Sel: select EVaults/Platforms
Sel->>SS: set('selectedEVaults'/'selectedPlatforms', JSON)
User->>Lay: click "Start Monitoring"
Lay->>SS: get selections
alt none/empty
Lay-->>User: alert "Select items"
else valid
Lay->>Nav: goto('/monitoring')
Nav->>Mon: mount
Mon->>SS: read selections
alt selections empty
Mon-->>User: Empty-state UI
else selections exist
Mon->>Flow: init + render
Note over Mon,Flow: Event handlers log flow/sync events and map evault indices
end
end
Estimated code review effort🎯 4 (Complex) | ⏱️ ~60 minutes Possibly related PRs
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. 📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 💡 Knowledge Base configuration:
You can enable these sources in your CodeRabbit configuration. ⛔ Files ignored due to path filters (3)
📒 Files selected for processing (9)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Description of change
Issue Number
Type of change
How the change has been tested
Change checklist
Summary by CodeRabbit