Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamoutler
Copy link
Contributor

@adamoutler adamoutler commented Sep 7, 2025

While performing setup of SYNC I felt the descriptions were confusing. I ended up going to the documentation as the tips were confusing. This PR aims to improve clarity and remove my need to visit the docs in the future.

Summary by CodeRabbit

  • Documentation
    • Clarified sync configuration help text for the hub URL, including explicit guidance to use the target device’s GRAPHQL_PORT URL without a trailing slash and an illustrative example.
    • Corrected a typo (“trailig” → “trailing”).
    • Refined the description of the node name field to emphasize uniqueness and allowed characters.
    • These updates improve clarity for setup and reduce misconfiguration risk; no functional behavior changes.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 7, 2025

Walkthrough

Updated text in front/plugins/sync/config.json: clarified hub_url guidance (GraphQL port URL without trailing slash) and corrected a typo; reworded node_name description to be clearer without changing constraints.

Changes

Cohort / File(s) Summary
Sync plugin config text updates
front/plugins/sync/config.json
Revised descriptions for hub_url (clarified use of GRAPHQL_PORT and no trailing slash; fixed typo) and node_name (minor rewording). No schema or signature changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

I twitch an ear at wording’s call,
A trailing slash? Now none at all.
GraphQL ports, neat and tight,
Node names trimmed, just right for flight.
With gentle hops through fields of text,
This rabbit leaves the docs unvexed. 🐇✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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

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

Copy link
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: 0

Caution

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

⚠️ Outside diff range comments (2)
front/plugins/sync/config.json (2)

124-133: Broken HTML tags in localized descriptions (ES/DE).

Closing tags are malformed and will render incorrectly.

-          "string": "Solo está habilitado si selecciona <code>schedule</code> en la configuración <a href=\"#SYNC_RUN\"><code>SYNC_RUN</code></a>. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en <a href=\"https://crontab.guru/\" target=\"_blank\">crontab.guru</a>). Por ejemplo, ingresar <code>0 4 * * *</code> ejecutará el escaneo después de las 4 a.m. en el <a onclick=\"toggleAllSettings()\" href=\"#TIMEZONE\"><code>TIMEZONE</ código> que configuró arriba</a>. Se ejecutará la PRÓXIMA vez que pase el tiempo."
+          "string": "Solo está habilitado si selecciona <code>schedule</code> en la configuración <a href=\"#SYNC_RUN\"><code>SYNC_RUN</code></a>. Asegúrese de ingresar la programación en el formato similar a cron correcto (por ejemplo, valide en <a href=\"https://crontab.guru/\" target=\"_blank\">crontab.guru</a>). Por ejemplo, ingresar <code>0 4 * * *</code> ejecutará el escaneo después de las 4 a.m. en el <a onclick=\"toggleAllSettings()\" href=\"#TIMEZONE\"><code>TIMEZONE</code> que configuró arriba</a>. Se ejecutará la PRÓXIMA vez que pase el tiempo."
-          "string": "Nur aktiviert, wenn Sie <code>schedule</code> in der <a href=\"#SYNC_RUN\"><code>SYNC_RUN</code>-Einstellung</a> auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter <a href=\"https://crontab.guru/\" target=\"_blank\">crontab.guru</a>). Wenn Sie beispielsweise <code>0 4 * * *</code> eingeben, wird der Scan nach 4 Uhr morgens in der <a onclick=\"toggleAllSettings()\" href=\"#TIMEZONE\"><code>TIMEZONE</ ausgeführt. Code> den Sie oben festgelegt haben</a>. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."
+          "string": "Nur aktiviert, wenn Sie <code>schedule</code> in der <a href=\"#SYNC_RUN\"><code>SYNC_RUN</code>-Einstellung</a> auswählen. Stellen Sie sicher, dass Sie den Zeitplan im richtigen Cron-ähnlichen Format eingeben (z. B. validieren unter <a href=\"https://crontab.guru/\" target=\"_blank\">crontab.guru</a>). Wenn Sie beispielsweise <code>0 4 * * *</code> eingeben, wird der Scan nach 4 Uhr morgens in der <a onclick=\"toggleAllSettings()\" href=\"#TIMEZONE\"><code>TIMEZONE</code> den Sie oben festgelegt haben</a> ausgeführt. Wird das NÄCHSTE Mal ausgeführt, wenn die Zeit vergeht."

663-666: Close unmatched <div> in replacement string
The replacement opens <div style='text-align:center'> but ends with <div></div> instead of closing the outer <div>. Update to:

- "replacement": "<div style='text-align:center'><i class='fa-solid fa-square-check'></i><div></div>"
+ "replacement": "<div style='text-align:center'><i class='fa-solid fa-square-check'></i></div>"

Check other replacements for matching open/close tags.

🧹 Nitpick comments (2)
front/plugins/sync/config.json (2)

272-275: Polish tooltip: fix capitalization/punctuation and tighten phrasing.

Lowercase “Without”, add a final period, and clarify the instruction.

-          "string": "If specified, this node will push data to the <code>GRAPHQL_PORT</code> API of the target. Use the target device <code>GRAPHQL_PORT</code> URL Without a trailing slash, for example <code>http://192.168.1.82:20212</code>"
+          "string": "If set, this node pushes data to the target's GraphQL API on <code>GRAPHQL_PORT</code>. Enter the target device's base URL with that port, without a trailing slash (e.g., <code>http://192.168.1.82:20212</code>)."

Optional: consider raising maxLength above 50 to accommodate longer hostnames/IPv6 URLs.


297-300: Add terminal period; keep guidance concise.

Minor copy edit for consistency.

-          "string": "The unique name of this node, without spaces or special characters, such as <code>Node_Vlan01</code>"
+          "string": "The unique name of this node, without spaces or special characters (e.g., <code>Node_Vlan01</code>)."

Optional: add input validation (regex) to enforce allowed characters.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 60876b1 and f2151cd.

📒 Files selected for processing (1)
  • front/plugins/sync/config.json (2 hunks)
🔇 Additional comments (1)
front/plugins/sync/config.json (1)

336-340: Verify option key name “ordeable”.

Is this meant to be “orderable”/“reorderable”? If the UI expects a specific key, this typo will be ignored.

@jokob-sk
Copy link
Collaborator

jokob-sk commented Sep 7, 2025

Thanks a lot @adamoutler 🙏

@jokob-sk jokob-sk merged commit 296dd0d into netalertx:main Sep 7, 2025
2 checks passed
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