Skip to content

💡 Improve Metadata Validation Approach for Faster Content Loading #3247

@bosko-m

Description

@bosko-m

Area

Other

Is there new design needed?

Yes

What?

Adjust the metadata validation approach in the following sections:

  • DRep Directory
  • Live Governance Actions
  • Governance Outcomes

Instead of validating each item before displaying content in the browser, items should be listed as quickly as possible, while validation occurs asynchronously in the background. Items still undergoing validation should display a clear visual indicator to signal their "in-progress" status.

Why?

  • Significantly improves the initial load time, especially in production where the initial list query takes approximately 3 seconds.
  • Ensures the majority of items are displayed promptly, enhancing user experience.
  • Provides a clear visual cue to distinguish between validated and unvalidated items, maintaining transparency for users.

How?

  • Modify the current logic to:
    • List all items immediately after the initial query completes.
    • Perform asynchronous metadata validation for each item in the background.
    • Introduce a visual indicator (e.g., spinner, icon, or label) to denote items still undergoing validation.
  • Ensure the visual indicator is replaced with confirmation (e.g., checkmark) once validation is completed.
  • Make sure that the current error handling is retained.

(Optional) User Story with acceptance criteria

  • Items in the DRep Directory, Live Governance Actions, and Governance Outcomes are listed immediately upon the initial query completion.
  • Metadata validation occurs asynchronously in the background.
  • Items still undergoing validation display a clear visual indicator.
  • Successfully validated items are marked accordingly (e.g., checkmark or status change).
  • Items that fail validation display an appropriate error indicator or message.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions