Skip to content

feat: enhance Rollytics service output and configuration#204

Merged
Benzbeeb merged 2 commits into
mainfrom
fix-scan-notworking
Feb 12, 2026
Merged

feat: enhance Rollytics service output and configuration#204
Benzbeeb merged 2 commits into
mainfrom
fix-scan-notworking

Conversation

@Benzbeeb
Copy link
Copy Markdown
Collaborator

@Benzbeeb Benzbeeb commented Feb 9, 2026

  • Added styled output for Rollytics service address and Swagger documentation URL in the command line interface.
  • Introduced a new constant for the default indexer address in the Minitia model.
  • Updated ScanPayload to include an indexer field for better data handling.
  • Modified the terminal state view to inform users about the indexer status and its importance for data population.
  • Changed Docker Compose port mapping from 8088 to 6767 for the Rollytics service.

Description

Closes: #XXXX


Author Checklist

All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow-up issues.

I have...

  • included the correct type prefix in the PR title, you can find examples of the prefixes below:
  • confirmed ! in the type prefix if API or client breaking change
  • targeted the correct branch
  • provided a link to the relevant issue or specification
  • reviewed "Files changed" and left comments if necessary
  • included the necessary unit and integration tests
  • updated the relevant documentation or specification, including comments for documenting Go code
  • confirmed all CI checks have passed

Reviewers Checklist

All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.

I have...

  • confirmed the correct type prefix in the PR title
  • confirmed all author checklist items have been addressed
  • reviewed state machine logic, API design and naming, documentation is accurate, tests and test coverage

Summary by CodeRabbit

  • New Features

    • Service startup now displays access URLs for the app and Swagger docs.
    • Launch workflow includes indexer configuration so launched data can be populated once the indexer runs.
  • Changes

    • Rollytics API port mapping updated to 6767.
    • Terminal output enhanced with indexing status and guidance to start the indexer.

- Added styled output for Rollytics service address and Swagger documentation URL in the command line interface.
- Introduced a new constant for the default indexer address in the Minitia model.
- Updated ScanPayload to include an indexer field for better data handling.
- Modified the terminal state view to inform users about the indexer status and its importance for data population.
- Changed Docker Compose port mapping from 8088 to 6767 for the Rollytics service.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 9, 2026

Walkthrough

Adds indexer support and rollytics port/styling: new DefaultMinitiaIndexer constant and Indexer field on ScanPayload, rollytics Docker port changed to 6767, rollytics startup now prints styled URLs, and terminal UI text updated to mention starting the indexer. (46 words)

Changes

Cohort / File(s) Summary
Rollytics service & Docker
cmd/rollytics.go, service/docker_compose.go
After rollytics starts, print two styled URLs (Rollytics and Swagger). Change rollytics-api host port mapping from 8088:8080 to 6767:8080.
Minitia indexer support & launch UI
models/minitia/constants.go, models/minitia/launch.go
Add DefaultMinitiaIndexer = "http://localhost:6767". Add Indexer field to ScanPayload and populate it with the default. Extend terminal/TerminalState messaging to mention indexing and starting the indexer.

Sequence Diagram(s)

sequenceDiagram
    participant CLI as Launcher (CLI)
    participant R as Rollytics Service
    participant I as Indexer (Minitia)
    participant Docker as Docker Compose

    CLI->>Docker: create/start services (rollytics-api mapped 6767:8080)
    Docker-->>R: rollytics starts
    R-->>CLI: startup complete + styled URLs printed
    CLI->>I: launch scan payload (includes Indexer = http://localhost:6767)
    Note over CLI,I: Data becomes visible once indexer service is running
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

🐰 I hopped in with a constant so neat,
Ports now hum on six-seven-six-seven street,
Payloads carry an indexer beat,
Styled links sparkle — what a treat! 🎩✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main changes: enhancing Rollytics service output (styled URLs in CLI) and configuration (port mapping, new constants, and payload fields).

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix-scan-notworking

No actionable comments were generated in the recent review. 🎉


Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@models/minitia/launch.go`:
- Around line 3199-3205: Replace the awkward phrase in the return statement
where fmt.Sprintf builds the message (inside the styles.Text(...) used for the
Chrome recommendation) with clearer wording; locate the return that calls
m.WrapView(state.weave.Render()) + state.scanLink + fmt.Sprintf(...) and update
the third argument string (currently "Open this in Chrome is recommended
because...") to something concise like "Opening this in Chrome is recommended
because some browsers may not support localhost access from a different host;
alternatively, adjust your browser settings to allow it." Keep the rest of the
message (the indexer warning using "weave rollup indexer start") unchanged.
🧹 Nitpick comments (1)
cmd/rollytics.go (1)

55-56: Avoid duplicating the rollytics base URL literal.
Introduce a local constant to keep the two lines in sync and reduce future drift.

♻️ Suggested refactor
-			fmt.Println("Rollytics Address: ", styles.Text("http://localhost:6767", styles.Cyan))
-			fmt.Println("Swagger Docs:      ", styles.Text("http://localhost:6767/swagger", styles.Cyan))
+			const rollyticsBaseURL = "http://localhost:6767"
+			fmt.Println("Rollytics Address: ", styles.Text(rollyticsBaseURL, styles.Cyan))
+			fmt.Println("Swagger Docs:      ", styles.Text(rollyticsBaseURL+"/swagger", styles.Cyan))

Comment thread models/minitia/launch.go
- Updated the message in the terminal state view to recommend opening in Chrome for better compatibility with localhost access.
- Enhanced clarity by rephrasing the guidance on browser settings adjustments.
@Benzbeeb Benzbeeb merged commit e4add5c into main Feb 12, 2026
8 checks passed
@Benzbeeb Benzbeeb deleted the fix-scan-notworking branch February 12, 2026 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants