Skip to content

fix(APP-1126): show missing metadata warning only when title and description are both missing - #1357

Merged
milosh86 merged 3 commits into
mainfrom
app-1126-missing-metadata-warning
Sep 2, 2026
Merged

fix(APP-1126): show missing metadata warning only when title and description are both missing#1357
milosh86 merged 3 commits into
mainfrom
app-1126-missing-metadata-warning

Conversation

@harryburger

Copy link
Copy Markdown
Contributor

Description

The missing metadata warning was shown whenever the proposal title is null, even when the description resolved fine and is rendered right below the alert.

getMetadataStatus now treats the metadata as standard when either title or description is set, so the warning only shows when both are missing. Updated the util and component tests for the new rule.

Linear: https://linear.app/aragon/issue/APP-1126/missing-metadata-warning-shows-even-when-the-content-is-there

Type of Change

  • Patch: Bug fix (non-breaking change which fixes an issue)

Developer Checklist:

  • Manually smoke tested the functionality in a preview or locally — not done yet, verified with unit tests only
  • Confirmed there are no new warnings or errors in the browser console — not verified, app not run locally
  • Confirmed there are no new warnings on automated tests
  • Merged and published any dependent changes in downstream modules — n/a
  • Selected the correct base branch
  • Commented the code in hard-to-understand areas
  • Followed the code style guidelines of this project
  • Reviewed that the Files Changed in Github's UI reflect my intended changes
  • Confirmed the pipeline checks are not failing — waiting for CI

Review Checklist:

  • (For User Stories only) Tested in a preview or locally that all Acceptance Criteria are satisfied
  • Confirmed that changes follow the code style guidelines of this project

Copilot AI lite review requested due to automatic review settings August 31, 2026 19:14
@harryburger
harryburger requested a review from a team as a code owner August 31, 2026 19:14
@linear-code

linear-code Bot commented Aug 31, 2026

Copy link
Copy Markdown

APP-1126

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 change is narrow, aligns with the described bug/acceptance criteria, and is covered by updated unit/component tests.

Pull request overview

Adjusts governance proposal “missing metadata” detection so the warning is only shown when both title and description are absent, preventing false warnings when the description is available and rendered.

Changes:

  • Update proposalUtils.getMetadataStatus to treat metadata as STANDARD when either title or description is present.
  • Extend/adjust unit tests for getMetadataStatus to cover “description-only” metadata.
  • Update component tests to ensure the warning expectations reflect the new “title + description both missing” rule.
File summaries
File Description
apps/app/src/modules/governance/utils/proposalUtils/proposalUtils.ts Changes metadata status logic to consider description presence (not just title).
apps/app/src/modules/governance/utils/proposalUtils/proposalUtils.test.ts Updates/extends util tests for the revised metadata rule.
apps/app/src/modules/governance/pages/daoProposalDetailsPage/daoProposalDetailsPageClient.test.tsx Adjusts details page tests to align warning behavior with the updated status logic.
apps/app/src/modules/governance/components/daoProposalList/daoProposalListDefaultItem.test.tsx Adjusts list item tests to align warning behavior with the updated status logic.
Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0
  • Review effort level: Lite

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

@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

🚀 Preview Deployment: View Here

@github-actions

github-actions Bot commented Aug 31, 2026

Copy link
Copy Markdown

E2E results (preview)

Smoke

Base URL https://app-next-ozrwpzvjp-aragon-app.vercel.app
Suite smoke
Playwright result ✅ passed
Summary 82 passed
HTML report View report
GitHub job ✅ completed

View run #5098

@milosh86 milosh86 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.

looks good 👍

@milosh86
milosh86 merged commit 7c717cf into main Sep 2, 2026
20 checks passed
@milosh86
milosh86 deleted the app-1126-missing-metadata-warning branch September 2, 2026 07:40
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