Skip to content

Conversation

@luisina-santos
Copy link
Contributor

@luisina-santos luisina-santos commented Sep 23, 2025

Summary by CodeRabbit

  • New Features

    • Added a help link for the Tableau connector, providing quick access to relevant documentation from the UI.
    • Introduced a Tableau connector icon, improving visual identification across the interface.
  • Documentation

    • Embedded direct link to Tableau connector docs within the configuration UI for easier guidance.

@coderabbitai
Copy link

coderabbitai bot commented Sep 23, 2025

Walkthrough

Adds help and icon URLs to the Tableau connector configuration by including field.WithHelpUrl("/docs/baton/tableau") and field.WithIconUrl("/static/app-icons/tableau.svg") in NewConfiguration within pkg/config/config.go. No data handling or validation logic changed.

Changes

Cohort / File(s) Summary
Tableau config metadata additions
pkg/config/config.go
Added configuration metadata: help URL and icon URL via field.WithHelpUrl(...) and field.WithIconUrl(...) in NewConfiguration. No public API signature changes.

Sequence Diagram(s)

sequenceDiagram
  autonumber
  participant App
  participant Config as Config.NewConfiguration
  participant Field as Field Options

  App->>Config: Initialize Tableau configuration
  activate Config
  Config->>Field: Set standard fields
  Note over Field: Existing behavior unchanged
  Config->>Field: Apply WithHelpUrl("/docs/baton/tableau")
  Config->>Field: Apply WithIconUrl("/static/app-icons/tableau.svg")
  deactivate Config
  Config-->>App: Configuration with help/icon metadata
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Poem

I nibbled the configs, hop-hop, hooray!
A help path to follow, an icon to display.
Little SVG shines, docs guide the way—
Carrot-shaped pointers for users at play.
Thump-thump: metadata saves the day! 🥕✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title accurately reflects the main change—updating config.go to add an icon and help URL—so it summarizes the changeset; however it contains a minor spelling error ("inlude") and could be clearer if phrased to mention the added fields rather than the filename.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch luisina-santos/update-config

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

Copy link

@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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
pkg/config/config.go (1)

30-31: Incomplete/misleading Site ID description

The sentence trails off and may confuse users.

Apply:

-        field.WithDescription("On Tableau Server, this is referred to as Site ID. On Tableau Cloud"),
+        field.WithDescription("On Tableau Server, this is referred to as Site ID. On Tableau Cloud, this is the site content URL (short name)."),
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 144f865 and 74e7718.

📒 Files selected for processing (1)
  • pkg/config/config.go (1 hunks)

Comment on lines +58 to +59
field.WithHelpUrl("/docs/baton/tableau"),
field.WithIconUrl("/static/app-icons/tableau.svg"),
Copy link

Choose a reason for hiding this comment

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

⚠️ Potential issue

🧩 Analysis chain

Verify SDK method names and URL paths

Double-check the SDK uses WithHelpURL/WithIconURL (URL all-caps). If so, these won’t compile as written. Also confirm the paths resolve correctly in the product (some UIs expect absolute URLs).

If needed, apply:

-    field.WithHelpUrl("/docs/baton/tableau"),
-    field.WithIconUrl("/static/app-icons/tableau.svg"),
+    field.WithHelpURL("/docs/baton/tableau"),
+    field.WithIconURL("/static/app-icons/tableau.svg"),

Optionally verify the method names via web search:


🌐 Web query:

Does the ConductorOne baton SDK use WithHelpURL/WithIconURL (URL all-caps) or WithHelpUrl/WithIconUrl?

💡 Result:

I can look that up — which repository/file or language (Go/TypeScript/etc.) do you mean?


🏁 Script executed:

#!/bin/bash
set -euo pipefail
echo "=== show pkg/config/config.go (first 200 lines) ==="
sed -n '1,200p' pkg/config/config.go || true

echo
echo "=== search for WithHelpUrl/WithHelpURL/WithIconUrl/WithIconURL in repository ==="
rg -n --hidden -S 'WithHelpUrl|WithHelpURL|WithIconUrl|WithIconURL' -C3 || true

echo
echo "=== show go.mod ==="
sed -n '1,200p' go.mod || true

Length of output: 8511


🌐 Web query:

conductorone baton-sdk WithHelpUrl WithHelpURL WithIconUrl WithIconURL site:github.com

💡 Result:

I searched GitHub for those identifiers in the ConductorOne/Baton codebase. I found the baton-sdk repository and many baton-* connector repos (examples: baton-sdk, baton, baton-demo, baton-aws, baton-github, baton-box). I did not find any exact hits for the symbols "WithHelpUrl", "WithHelpURL", "WithIconUrl", or "WithIconURL" in top-level repo listings returned by the search. Sources inspected: baton-sdk and several connector repos. [1][2][3]

If you want, I can:

  • run a GitHub code search (searching file contents) across the ConductorOne org for those exact symbols and return file links, or
  • clone and grep the baton-sdk repo and connectors and report exact matches.

Which option do you prefer?

Sources:
[1] https://github.com/ConductorOne/baton-sdk
[2] https://github.com/ConductorOne/baton
[3] https://github.com/ConductorOne/baton-demo


🏁 Script executed:

#!/bin/bash
set -euo pipefail
REPO_DIR=baton-sdk

if [ -d "$REPO_DIR" ]; then
  echo "Using existing $REPO_DIR"
else
  git clone --depth 1 https://github.com/ConductorOne/baton-sdk.git "$REPO_DIR"
fi

echo
echo "=== Search for WithHelp / WithIcon identifiers in baton-sdk ==="
rg -n --hidden -S 'WithHelp|WithIcon|HelpUrl|HelpURL|IconUrl|IconURL' "$REPO_DIR" -C3 || true

echo
echo "=== List files under pkg/field in baton-sdk ==="
ls -la "$REPO_DIR"/pkg/field || true

echo
echo "=== Show Go files in pkg/field ==="
rg -n --hidden -g "$REPO_DIR/pkg/field/**.go" -S '' || true

echo
echo "=== Show definitions in pkg/field (first 300 lines of any file that looks relevant) ==="
for f in "$REPO_DIR"/pkg/field/*.go; do
  echo "----- $f -----"
  sed -n '1,300p' "$f" || true
done

Length of output: 266240


Don't change SDK method names; use absolute HTTPS URLs for help/icon
field.WithHelpUrl and field.WithIconUrl are correct (baton-sdk defines WithHelpUrl/WithIconUrl). The SDK/proto validation expects absolute https:// URLs, so update pkg/config/config.go (lines 58–59) to use full HTTPS URLs instead of "/docs/baton/tableau" and "/static/app-icons/tableau.svg".

🤖 Prompt for AI Agents
In pkg/config/config.go around lines 58 to 59, the help and icon URLs are
currently relative ("/docs/baton/tableau" and "/static/app-icons/tableau.svg");
change them to absolute HTTPS URLs (e.g.
"https://<your-domain>/docs/baton/tableau" and
"https://<your-domain>/static/app-icons/tableau.svg") while keeping the same SDK
method names field.WithHelpUrl and field.WithIconUrl so they satisfy the
SDK/proto validation expecting absolute https:// links.

@luisina-santos luisina-santos merged commit e76eeb9 into main Sep 24, 2025
4 checks passed
@luisina-santos luisina-santos deleted the luisina-santos/update-config branch September 24, 2025 12:04
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.

3 participants