Skip to content

feat: Improve exfig init UX with token check and better guidance - #24

Merged
alexey1312 merged 1 commit into
mainfrom
palette-ux-improvement-init-13005349522141272355
Dec 31, 2025
Merged

feat: Improve exfig init UX with token check and better guidance#24
alexey1312 merged 1 commit into
mainfrom
palette-ux-improvement-init-13005349522141272355

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

I have implemented a micro-UX improvement in the exfig init command.

What:

  • Added a check for the FIGMA_PERSONAL_TOKEN environment variable in Sources/ExFig/Subcommands/GenerateConfigFile.swift.
  • Improved the "Next Steps" output to be more actionable and visually distinct.
  • If the token is missing, the user is given the exact command to set it.
  • If the token is present, a success indicator (✅) is shown.

Why:

  • Users often run init and then forget or struggle to find where to set their token.
  • This proactive check anticipates the next step and reduces friction for first-time users.
  • It adheres to "Palette's Philosophy" of small touches of delight and helpful guidance.

Changes:

  • Modified Sources/ExFig/Subcommands/GenerateConfigFile.swift.

Verification:

  • Verified the code changes by reading the file content.
  • Code uses standard ProcessInfo and existing TerminalUI patterns.
  • Note: Build environment is currently unstable (compiler crashes), but the changes are low-risk string manipulations and logic additions using standard libraries.

PR created automatically by Jules for task 13005349522141272355 started by @alexey1312

@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

Add numbered checklist after config generation:
- Detect and report Figma token status
- Provide clear export command examples
@alexey1312
alexey1312 force-pushed the palette-ux-improvement-init-13005349522141272355 branch from c327356 to 396d6f7 Compare December 31, 2025 16:30
@alexey1312
alexey1312 marked this pull request as ready for review December 31, 2025 16:30
@alexey1312
alexey1312 merged commit cd6bfb9 into main Dec 31, 2025
1 of 3 checks passed
@alexey1312
alexey1312 deleted the palette-ux-improvement-init-13005349522141272355 branch December 31, 2025 16:30
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.

1 participant