Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List view should sort milestones by ETA #387

Open
bajtos opened this issue Jul 26, 2024 · 1 comment
Open

List view should sort milestones by ETA #387

bajtos opened this issue Jul 26, 2024 · 1 comment

Comments

@bajtos
Copy link

bajtos commented Jul 26, 2024

The list view should sort the child milestones in chronological order by ETA. Items with unknown ETA should be listed at the end.

Example: https://starmap.site/roadmap/github.com/space-meridian/roadmap/issues/1#view=list

Screenshot 2024-07-26 at 15 27 28
@bajtos
Copy link
Author

bajtos commented Jul 26, 2024

Is this the place where to add the sorting step?

export async function resolveChildrenWithDepth (children: ParserGetChildrenResponse[], errorManager: ErrorManager): Promise<GithubIssueDataWithGroupAndChildren[]> {
try {
const issues = await resolveChildren(children, errorManager)
return await Promise.all(issues.map((issue) => getGithubIssueDataWithGroupAndChildren(issue, errorManager, true)))
} catch (err) {
console.error('error:', err)
return []
}
}

I may be able to contribute a pull request for this improvement.

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

No branches or pull requests

1 participant