Skip to content

Conversation

Smeds
Copy link
Collaborator

@Smeds Smeds commented Mar 6, 2025

Here's a first version of a viewer for ENA data:
view

There's still a bunch of improvements and formatting that can be done:

  • move component to "select data site" page
  • use databiosphere tables to display data instead
  • create nicer UI for Query build
    • improve look, make more modern, maybe everything on one row
    • use data from runReadFields.json to
      • show suggestion using field "description"
      • validate input using "type"
  • parameters that should be made configurable:
    • API url: http://127.0.0.1:3000/api/ena
    • number of allowed returned entries
    • return fields from run_reads:

should we have a search button to initiate search and validation instead of triggering on every input event?

} from "app/apis/catalog/brc-analytics-catalog/common/entities";
import { NextResponse } from "next/server";

const items_limit = 10000;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

max allowed items return, should maybe be configurable

setStatistics: React.Dispatch<React.SetStateAction<ReadRunStatistics>>
): Promise<{ status: number }> => {
try {
const response = await fetch(`http://127.0.0.1:3000/api/ena`, {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

url to api should be configurable

@Smeds
Copy link
Collaborator Author

Smeds commented Mar 6, 2025

@NoopDog here's a first version of the view. If possible I would like to get some help to move it into the data selector page and also to get your input of how to make it more configurable. I will be away next week due to the kids having spring break.

@Smeds
Copy link
Collaborator Author

Smeds commented Mar 7, 2025

I can fix the stuff If I get some guidance of where to put stuff:

  • best config options
  • where to move the component
  • how to a table from databiosphere

@Smeds
Copy link
Collaborator Author

Smeds commented Mar 18, 2025

Here's a new prototype of the Editor
view20250318

I will upload the changes tomorrow, new to clean up the code

@Smeds Smeds marked this pull request as draft March 19, 2025 18:37
@Smeds
Copy link
Collaborator Author

Smeds commented Mar 19, 2025

I have started submitting smaller pull-request to introduce these changes:
1 - #402

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

1 participant