Skip to content

Feature/consistent viewstatestring usage - #232

Open
tom0334 wants to merge 5 commits into
mainfrom
feature/consistent-viewstatestring-usage
Open

tom0334 wants to merge 5 commits into
mainfrom
feature/consistent-viewstatestring-usage

Conversation

@tom0334

@tom0334 tom0334 commented Sep 18, 2026

Copy link
Copy Markdown
Collaborator

Why is this important?

To clarify our usage of viewStateString. This makes agents (and our colleages) use ViewStateString more consistently. Basically: only when needed. Resolve it to a basic string when possible.

Notes

I couldn't find cases in the template were the usage of viewStateString didn't correspond with our guidelines yet.

The only cases where it wasn't unwrapped at the highest level possible, were when it was part of a viewstate. Which we consider to be OK.

(Some previews create create ViewStateString.basic as well, because the composables they preview take a viewstate that has a viewstateString in them as param. Which I think is OK!

feature/consistent-viewstatestring-usage
feature/consistent-viewstatestring-usage
Copilot AI lite review requested due to automatic review settings September 18, 2026 12:03

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.

🟡 Changes recommended

The new guidance is ambiguous and conflicts with existing screen-generation instructions.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

This PR clarifies when ViewStateString should be used in ViewModels and UI code.

Changes:

  • Adds usage guidance to ViewStateString documentation.
  • Updates AGENTS.MD with the new guideline.
File summaries
File Description
core/ui/.../ViewStateString.kt Documents deferred string resolution guidance.
AGENTS.MD Updates agent guidance for ViewStateString usage.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 2
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread AGENTS.MD Outdated
feature/consistent-viewstatestring-usage

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.

🟢 Approval recommended

The changes are limited to documentation, with only a minor grammar correction noted.

Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

@tom0334
tom0334 enabled auto-merge September 18, 2026 15:54
@tom0334
tom0334 requested a review from a team as a code owner September 18, 2026 15:55
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