Skip to content

fix(domain): show renewal price consistently across available/quote/suggest (GDDEVPLAT-133)#125

Merged
jpage-godaddy merged 2 commits into
rust-portfrom
domain-avail-prices
Jul 17, 2026
Merged

fix(domain): show renewal price consistently across available/quote/suggest (GDDEVPLAT-133)#125
jpage-godaddy merged 2 commits into
rust-portfrom
domain-avail-prices

Conversation

@jpage-godaddy

Copy link
Copy Markdown
Collaborator

Summary

  • domain available and domain quote already computed renewalPrice (and available also computed period) via the same SimpleMoney/TermPrice types and common.rs helpers used by domain suggest, but omitted them from the default table view. Add them to each command's default_fields so the human view matches --output json, closing GDDEVPLAT-133.
  • Fill in the resolved domain in the domain available/domain quote next-action suggestions (domain quote <domain>, domain suggest <query>) so they render as copy/paste-ready commands instead of the raw placeholder.
  • Bump cli-engine to 0.4.6, which makes --fields/default_fields order drive both display order and column hide-priority for commands without a custom human view.
  • Set auth scopes's default_fields explicitly (scope,description,commands,default) so scope isn't pushed out of view by wider columns under the new ordering behavior.

Test plan

  • cargo build / cargo clippy --all-targets -- -D warnings / cargo fmt --check (from rust/)
  • cargo test --all-targets — 269 passed
  • Manually ran domain available, domain quote, domain suggest against the test environment with --human and --json, confirming renewalPrice/period now show by default and next-action commands are filled in with the resolved domain

…uggest (GDDEVPLAT-133)

`domain available` and `domain quote` already computed `renewalPrice`
(and `available` also computed `period`) but omitted them from the
default table view, unlike `domain suggest`. Add them to each
command's default fields so the human view matches what's already in
`--output json`, and fill in the resolved domain in the `domain
quote`/`domain suggest` next-action suggestions so they're
copy/paste-ready instead of showing the raw `<domain>`/`<query>`
placeholder.

Also bump cli-engine to 0.4.6, which makes `--fields`/`default_fields`
order drive both display order and column hide-priority for commands
without a custom human view. Set `auth scopes`'s default fields
explicitly so `scope` isn't pushed out of view by wider columns.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aligns the human-default table views for domain commands with their existing JSON output by surfacing renewalPrice (and period for availability), improves next-action suggestions by pre-filling resolved domain/query parameters, and updates cli-engine to 0.4.6 (with an explicit default field order for auth scopes to preserve visibility under the new ordering behavior).

Changes:

  • Add renewalPrice (and period where applicable) to default_fields for domain available and domain quote, plus regression tests.
  • Pre-fill domain quote / domain suggest next-action parameters using the resolved domain value.
  • Bump cli-engine to 0.4.6 and explicitly set auth scopes default field order.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
rust/src/scopes_cmd.rs Sets explicit default_fields ordering for auth scopes to keep key columns visible.
rust/src/domain/quote.rs Adds renewalPrice to default fields; pre-fills suggest next-action query; adds regression test.
rust/src/domain/available.rs Adds renewalPrice/period to default fields; pre-fills next-action params; adds regression test.
rust/Cargo.toml Bumps cli-engine dependency to 0.4.6.
rust/Cargo.lock Updates lockfile for cli-engine 0.4.6.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread rust/src/domain/available.rs
Comment thread rust/src/domain/available.rs Outdated
Comment thread rust/src/domain/quote.rs Outdated
…d match

Copilot review feedback: fields.contains("renewalPrice") would also
match a future field like renewalPrice1Year. Split on "," and compare
each field exactly instead.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated no new comments.

@jpage-godaddy
jpage-godaddy merged commit 71e4eea into rust-port Jul 17, 2026
2 checks passed
@jpage-godaddy
jpage-godaddy deleted the domain-avail-prices branch July 17, 2026 21:28
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