Skip to content

Conversation

@raghavyuva
Copy link
Owner

@raghavyuva raghavyuva commented Aug 29, 2025

Summary by CodeRabbit

  • New Features
    • Added Activities page with search, filtering, and pagination.
    • Enhanced Recent Activity in Teams with human-readable messages and “View All” link.
  • Refactor
    • Containers list redesigned to a table view; per-item start/stop/remove actions removed.
    • Audit logging applied per route with richer activity data.
    • Terminal now appears only with proper permissions.
    • Auto-update controls removed from General settings and dashboard.
  • Documentation
    • Simplified installation instructions; added IP:port deployment note; removed extra CLI commands.
  • Style
    • Domains table styling simplified (lighter headers/background).
  • Chores
    • Expanded audit resource types and updated release metadata.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 29, 2025

Note

Reviews paused

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Caution

Review failed

The pull request is closed.

Walkthrough

Introduces an organization-wide Activities feature with backend activity message generation and pagination, updates audit middleware to be per-route and async, adds new audit resource types and DB enum values, refactors containers UI to a table, adjusts settings UI and layout guards, updates API version date, and revises README install section.

Changes

Cohort / File(s) Summary of edits
Docs
README.md
Renamed install section, added IP-based quick-start note, removed “Additional CLI Commands” list.
API Version Metadata
api/api/versions.json
Updated v1.release_date timestamp.
Audit Backend: Controller & Service
api/internal/features/audit/controller/init.go, api/internal/features/audit/service/init.go
Controller now returns human-readable activities with pagination, search, and resource-type filter. Service adds ActivityMessage type, new listing methods, message generation helpers, and action color mapping.
Audit Middleware & Routing
api/internal/middleware/audit.go, api/internal/routes.go
Middleware signature adds resourceType, switches to typed actions/resource types, captures request bodies for new values, logs asynchronously, derives endpoint/resource IDs, and is applied per-route group.
Audit Types & Migration
api/internal/types/audit.go, api/migrations/audit/022_add_additional_resource_types_up.sql
Added seven audit resource types; migration extends Postgres enum accordingly.
Activities Frontend: Pages & Redux
view/app/activities/page.tsx, view/app/settings/teams/components/RecentActivity.tsx, view/redux/services/audit.ts, view/redux/types/audit.ts
New Activities page with search/sort/filter and client-side pagination; Teams recent activity switched to activity messages; Redux adds getActivities, updates recent logs to activities, introduces activity types and pagination metadata.
Containers UI Refactor
view/app/containers/components/actions.tsx, view/app/containers/components/card.tsx, view/app/containers/components/info.tsx, view/app/containers/components/table.tsx, view/app/containers/page.tsx
Added container actions/info/card/table components; containers page switches from cards to table, adjusts header/actions, retains delete/prune flows.
Settings & Layout
view/app/settings/domains/components/domainsTable.tsx, view/app/settings/domains/page.tsx, view/app/settings/general/components/AccountSection.tsx, view/app/settings/general/page.tsx, view/components/layout/dashboard-layout.tsx
Domains table styling tweaks; removed unused import; commented out auto-update UI and handler; layout adds RBAC/permission guards and removes update checks/button.
i18n
view/lib/i18n/locales/en.json, .../es.json, .../fr.json, .../kn.json
Added “activities” section and “View All” label for recent team activity across locales.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant C as Client
  participant R as Route Group
  participant AM as AuditMiddleware (per-route)
  participant H as Handler
  participant S as AuditService
  participant DB as DB

  rect rgb(240,248,255)
    note right of R: Per-group middleware with resourceType
    C->>R: HTTP Request
    R->>AM: Request (resourceType)
    AM->>AM: Capture method/path/body, derive endpoint/resourceId
    AM-->>H: Forward request (body restored)
    H->>S: Handle domain logic
    AM-->>AM: Async: LogAction(newValues, action, resourceType, endpoint)
    AM->>DB: (async) Insert AuditLog
    DB-->>AM: Ack
    H-->>C: Response
  end
Loading
sequenceDiagram
  autonumber
  participant UI as Activities Page
  participant API as GET /audit/activities
  participant CRTL as Audit Controller
  participant SRV as AuditService
  participant DB as DB

  UI->>API: page, pageSize, search, resource_type
  API->>CRTL: Request
  CRTL->>SRV: GetActivitiesByOrganization(...)
  SRV->>DB: Query audit logs (filters, pagination)
  DB-->>SRV: Logs, totalCount
  SRV->>SRV: Map to ActivityMessage + colors/messages
  SRV-->>CRTL: activities, totalCount
  CRTL-->>UI: { activities, pagination }
  UI->>UI: Render list, client-side paging/sort
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~75 minutes

Possibly related PRs

Suggested labels

nixopus-api, nixopus-view, nixopus-documentation

Poem

A bunny taps the audit logs—tap tap, hooray!
New trails of footprints, colored all the way.
Containers line in tidy rows, no fuss, no fight.
Domains glow softly, borders clean and light.
I twitch my whiskers—activities in view—
Hop, sort, filter… and ship it, too! 🐇✨

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 details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between b07ce4c and 9674ad0.

📒 Files selected for processing (26)
  • README.md (1 hunks)
  • api/api/versions.json (1 hunks)
  • api/internal/features/audit/controller/init.go (3 hunks)
  • api/internal/features/audit/service/init.go (3 hunks)
  • api/internal/middleware/audit.go (4 hunks)
  • api/internal/routes.go (7 hunks)
  • api/internal/types/audit.go (1 hunks)
  • api/migrations/audit/022_add_additional_resource_types_up.sql (1 hunks)
  • view/app/activities/page.tsx (1 hunks)
  • view/app/containers/components/actions.tsx (1 hunks)
  • view/app/containers/components/card.tsx (1 hunks)
  • view/app/containers/components/info.tsx (1 hunks)
  • view/app/containers/components/table.tsx (1 hunks)
  • view/app/containers/page.tsx (4 hunks)
  • view/app/settings/domains/components/domainsTable.tsx (1 hunks)
  • view/app/settings/domains/page.tsx (0 hunks)
  • view/app/settings/general/components/AccountSection.tsx (5 hunks)
  • view/app/settings/general/page.tsx (2 hunks)
  • view/app/settings/teams/components/RecentActivity.tsx (2 hunks)
  • view/components/layout/dashboard-layout.tsx (1 hunks)
  • view/lib/i18n/locales/en.json (2 hunks)
  • view/lib/i18n/locales/es.json (2 hunks)
  • view/lib/i18n/locales/fr.json (2 hunks)
  • view/lib/i18n/locales/kn.json (2 hunks)
  • view/redux/services/audit.ts (1 hunks)
  • view/redux/types/audit.ts (2 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/develop

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore or @coderabbit ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@raghavyuva
Copy link
Owner Author

@coderabbitai pause

@raghavyuva raghavyuva merged commit 2e23db4 into master Aug 29, 2025
7 of 10 checks passed
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 29, 2025

✅ Actions performed

Reviews paused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants