Skip to content
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

Simplify windows setup instructions #2114

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

nblock
Copy link
Contributor

@nblock nblock commented Sep 9, 2024

  • Simplify /windows to the bare minimum. Also remove the /windows/tailscale.reg endpoint as its generated file is no longer valid for current Tailscale versions.
  • Update and simplify the windows documentation accordingly.
  • Add a "Unattended mode" section to the troubleshooting section explaining how to enable "Unattended mode" in the via the Tailscale tray icon.
  • Add infobox about /windows to the docs

Tested on Windows 10, 22H2 with Tailscale 1.72.0

Fixes: #1995
See: #2096

  • have read the CONTRIBUTING.md file
  • raised a GitHub issue or discussed it on the projects chat beforehand
  • added unit tests
  • added integration tests
  • updated documentation if needed
  • updated CHANGELOG.md

Summary by CodeRabbit

  • New Features

    • Streamlined documentation for the Windows Tailscale client, focusing on command-line instructions for configuration.
    • New "Unattended mode" guidance added to the Troubleshooting section for continuous operation.
  • Bug Fixes

    • Removed outdated registry configuration instructions to prevent user confusion.
  • Documentation

    • Restructured sections for improved clarity and usability, including a direct download link for Tailscale for Windows.
  • Chores

    • Updated copyright year in project documentation.

Copy link
Contributor

coderabbitai bot commented Sep 9, 2024

Walkthrough

The pull request introduces significant changes to the documentation and routing configuration for the Windows Tailscale client. Key modifications include the removal of registry-related content, the integration of command-line instructions for configuration, and the restructuring of documentation sections for improved clarity. Additionally, specific routing endpoints related to Windows registry configuration have been removed, reflecting a shift in focus away from this functionality.

Changes

File(s) Change Summary
docs/windows-client.md Restructured documentation; removed "Add registry keys" section, integrated content into "Configuring the headscale URL"; simplified instructions using command-line approach.
hscontrol/app.go Removed route handling for /windows/tailscale.reg, indicating the application will no longer respond to GET requests for this endpoint.
hscontrol/platform_config.go Removed WindowsRegConfig function and WindowsRegistryConfig struct, eliminating functionality related to Windows registry configuration.
hscontrol/templates/windows.html Streamlined template content; removed sections on Tailscale versions and registry configuration; added direct download link and simplified command-line instructions.
mkdocs.yml Updated copyright year from 2023 to 2024.

Assessment against linked issues

Objective Addressed Explanation
Update Windows client documentation (#1995)
Simplify installation instructions (#1995)
Remove outdated content (#1995)

Possibly related PRs

Poem

🐇 In the land of code where changes bloom,
A simpler path dispels the gloom.
Registry keys have hopped away,
Command lines now lead the way.
With clearer docs, we dance and cheer,
Tailscale's journey, bright and clear! 🌟

Tip

New features

Walkthrough comment now includes:

  • Possibly related PRs: A list of potentially related PRs to help you recall past context.
  • Suggested labels: CodeRabbit can now suggest labels by learning from your past PRs. You can also provide custom labeling instructions in the UI or configuration file.

Notes:

  • Please share any feedback in the discussion post on our Discord.
  • Possibly related PRs, automatic label suggestions based on past PRs, learnings, and possibly related issues require data opt-in (enabled by default).

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

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>.
    • Generate unit testing code for this file.
    • 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. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • 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 generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai 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.

Documentation and Community

  • 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.

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: 3

Outside diff range, codebase verification and nitpick comments (2)
docs/windows-client.md (1)

Line range hint 35-55: Comprehensive troubleshooting instructions for failing node registration.

The detailed steps provided in this section offer a clear guide for users to troubleshoot and resolve issues related to node registration. This is crucial for maintaining a reliable connection.

Consider adding links to additional resources or support pages that could provide further assistance to users facing complex issues.

Tools
LanguageTool

[grammar] ~55-~55: “Windows” (operating system by Microsoft) is a proper noun and needs to be capitalized.
Context: ... fresh setup) 4. Start Tailscale on the windows machine and retry the login.

(A_WINDOWS)

hscontrol/platform_config.go (1)

Lingering Reference to Removed Functionality

There is still a reference to "WindowsRegConfig" in the hscontrol/platform_config.go file. This suggests that the removal of the Windows registry configuration functionality might not be entirely complete. Please review the code to remove or update this lingering reference to ensure consistency and prevent potential confusion.

  • File: hscontrol/platform_config.go
    • Reference: Str("handler", "WindowsRegConfig")
Analysis chain

Line range hint 1-100: Approval of the removal of Windows registry configuration functionality.

The removal of this functionality simplifies the codebase and aligns with the PR's objectives to streamline the setup process. This change reduces maintenance and potential errors associated with registry modifications.

Verify that no other parts of the application rely on the removed functionality to ensure that this change does not introduce any unintended issues.

Run the following script to verify that no other parts of the application rely on the removed functionality:

Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Verify that no other parts of the application rely on the removed Windows registry configuration functionality.

# Test: Search for references to the removed functionality. Expect: No occurrences.
rg --type go 'WindowsRegConfig|WindowsRegistryConfig|windowsRegTemplate'

Length of output: 142

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 5597eda and 6859b72.

Files ignored due to path filters (1)
  • docs/images/windows-registry.png is excluded by !**/*.png
Files selected for processing (5)
  • docs/windows-client.md (2 hunks)
  • hscontrol/app.go (1 hunks)
  • hscontrol/platform_config.go (3 hunks)
  • hscontrol/templates/windows.html (1 hunks)
  • mkdocs.yml (1 hunks)
Files skipped from review due to trivial changes (2)
  • hscontrol/app.go
  • mkdocs.yml
Additional context used
Markdownlint
docs/windows-client.md

17-17: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)

LanguageTool
docs/windows-client.md

[grammar] ~55-~55: “Windows” (operating system by Microsoft) is a proper noun and needs to be capitalized.
Context: ... fresh setup) 4. Start Tailscale on the windows machine and retry the login.

(A_WINDOWS)

Additional comments not posted (3)
hscontrol/templates/windows.html (1)

29-36: Clear and concise download instructions.

The addition of a direct download link for Tailscale simplifies the user's journey by providing a straightforward method to obtain the software. This change enhances the clarity and usability of the instructions.

docs/windows-client.md (2)

7-9: Updated installation instructions are straightforward and user-friendly.

The direct link to download the official Windows client simplifies the installation process, making it easier for users to start with Tailscale. This change is well-aligned with the PR's objectives.


25-33: Valuable addition of 'Unattended mode' troubleshooting instructions.

The new subsection provides clear and practical steps for users who need to keep Tailscale running continuously. This addition enhances the document's utility by addressing a common operational need.

hscontrol/templates/windows.html Show resolved Hide resolved
docs/windows-client.md Outdated Show resolved Hide resolved
docs/windows-client.md Show resolved Hide resolved
@nblock
Copy link
Contributor Author

nblock commented Sep 9, 2024

Force-pushed and added the infobox about /windows to the docs.

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

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 6859b72 and b0d4c48.

Files ignored due to path filters (1)
  • docs/images/windows-registry.png is excluded by !**/*.png
Files selected for processing (5)
  • docs/windows-client.md (2 hunks)
  • hscontrol/app.go (1 hunks)
  • hscontrol/platform_config.go (3 hunks)
  • hscontrol/templates/windows.html (1 hunks)
  • mkdocs.yml (1 hunks)
Files skipped from review due to trivial changes (1)
  • mkdocs.yml
Files skipped from review as they are similar to previous changes (2)
  • hscontrol/app.go
  • hscontrol/platform_config.go
Additional context used
LanguageTool
docs/windows-client.md

[style] ~13-~13: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 1593 characters long)
Context: ...it. ## Configuring the headscale URL !!! info "Instructions on your headscale in...

(EN_EXCESSIVE_EXCLAMATION)

Markdownlint
docs/windows-client.md

23-23: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


23-23: Expected: indented; Actual: fenced
Code block style

(MD046, code-block-style)

Additional comments not posted (7)
hscontrol/templates/windows.html (2)

29-36: Streamlined download instructions are clear and concise.

The addition of a direct download link for Tailscale simplifies the initial setup process for users. This change makes it easier for users to find and install the necessary software without navigating through multiple pages or instructions.


40-43: Simplified command line instructions enhance usability.

The new command line instructions provide a clear and direct method for users to connect their Tailscale client with headscale. This approach is less error-prone and more maintainable than previous registry-based methods.

Consider adding a brief explanation or tooltip within the HTML to help less experienced users understand the purpose and usage of the command line.

docs/windows-client.md (5)

7-9: Clear installation instructions.

The direct link to download the official Windows client is a significant improvement, making it easier for users to start the installation process immediately. This change is aligned with the PR's objective to simplify the setup instructions.


12-17: Enhanced configuration instructions.

The new section on configuring the headscale URL is well-structured and informative, providing users with clear guidance on how to connect their Windows device. The use of an exclamation mark in the info box is appropriate here, drawing attention to important instructions.

Tools
LanguageTool

[style] ~13-~13: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 1593 characters long)
Context: ...it. ## Configuring the headscale URL !!! info "Instructions on your headscale in...

(EN_EXCESSIVE_EXCLAMATION)


20-25: Command line configuration instructions are clear and concise.

The shift from registry edits to a command line approach simplifies the configuration process and reduces potential errors. This change is beneficial for both new and experienced users.

Consider adding examples of common headscale URLs or scenarios to further assist users in understanding how to apply these instructions in their specific setups.

Tools
Markdownlint

23-23: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


23-23: Expected: indented; Actual: fenced
Code block style

(MD046, code-block-style)


31-37: Detailed instructions for enabling Unattended mode.

The addition of the "Unattended mode" section is a valuable update, providing users with steps to keep Tailscale running continuously. This is particularly useful for those who need constant connectivity without manual re-login.


58-61: Important troubleshooting steps outlined.

The detailed steps for resetting and reconnecting Tailscale are crucial for troubleshooting common issues. These instructions are clear and should help users effectively resolve connection problems.

@kradalby
Copy link
Collaborator

kradalby commented Sep 9, 2024

Looks like the prettier linter got a bit unhappy, could you fix that and then I'll merge it

* Simplify /windows to the bare minimum. Also remove the
  /windows/tailscale.reg endpoint as its generated file is no longer
  valid for current Tailscale versions.
* Update and simplify the windows documentation accordingly.
* Add a "Unattended mode" section to the troubleshooting section
  explaining how to enable "Unattended mode" in the via the Tailscale
  tray icon.
* Add infobox about /windows to the docs

Tested on Windows 10, 22H2 with Tailscale 1.72.0

Replaces: juanfont#1995
See: juanfont#2096
@nblock
Copy link
Contributor Author

nblock commented Sep 9, 2024

Looks like the prettier linter got a bit unhappy, could you fix that and then I'll merge it

pushed, thx for the hint.

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

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between b0d4c48 and 2a42af5.

Files ignored due to path filters (1)
  • docs/images/windows-registry.png is excluded by !**/*.png
Files selected for processing (5)
  • docs/windows-client.md (2 hunks)
  • hscontrol/app.go (1 hunks)
  • hscontrol/platform_config.go (3 hunks)
  • hscontrol/templates/windows.html (1 hunks)
  • mkdocs.yml (1 hunks)
Files skipped from review due to trivial changes (1)
  • mkdocs.yml
Files skipped from review as they are similar to previous changes (2)
  • hscontrol/app.go
  • hscontrol/templates/windows.html
Additional context used
LanguageTool
docs/windows-client.md

[style] ~12-~12: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 1593 characters long)
Context: ... it. ## Configuring the headscale URL !!! info "Instructions on your headscale in...

(EN_EXCESSIVE_EXCLAMATION)

Markdownlint
docs/windows-client.md

21-21: null
Fenced code blocks should have a language specified

(MD040, fenced-code-language)


21-21: Expected: indented; Actual: fenced
Code block style

(MD046, code-block-style)

Additional comments not posted (5)
docs/windows-client.md (4)

7-9: Installation instructions are clear.

The direct link to download the Windows client simplifies the user's initial setup process.


11-19: Command-line configuration is streamlined and effective.

The shift from registry edits to a command-line approach simplifies the configuration process and reduces potential errors. This change is beneficial for both new and experienced users.

Regarding the static analysis hint about exclamation marks, it appears to be a false positive as the exclamation mark usage here is minimal and appropriate for the context.

Tools
LanguageTool

[style] ~12-~12: Using many exclamation marks might seem excessive (in this case: 3 exclamation marks for a text that’s 1593 characters long)
Context: ... it. ## Configuring the headscale URL !!! info "Instructions on your headscale in...

(EN_EXCESSIVE_EXCLAMATION)


27-38: Troubleshooting section enhanced with 'Unattended mode'.

The addition of the 'Unattended mode' subsection is a significant improvement, providing clear instructions for users who require Tailscale to run continuously. This addresses a common user need and enhances the documentation's utility.


Line range hint 40-61: Detailed guidance provided for 'Failing node registration'.

The subsection offers comprehensive troubleshooting steps for common issues, enhancing the documentation's effectiveness in helping users resolve specific problems.

hscontrol/platform_config.go (1)

Line range hint 1-100: Simplification of Windows configuration aligns with PR objectives.

The removal of Windows registry-related functions and the simplification of the Windows configuration message are in line with the PR's aim to streamline the setup process. The remaining functions, related to Apple configurations, continue to function as intended, ensuring that platform-specific configurations are handled appropriately.

@kradalby kradalby merged commit bac7ea6 into juanfont:main Sep 9, 2024
115 of 117 checks passed
@nblock nblock deleted the windows branch September 9, 2024 12:29
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