Skip to content

Conversation

jasugun
Copy link

@jasugun jasugun commented Feb 16, 2024

It sometimes happen that some submits/commits are not polled properly, just try to handle those cases.
Display basic info (rev + date) when possible.
Tells that there is no change to be found when hovering info.

I think we want to broaden what we poll to minimize the issue though.

Here is an example (left uses pr, right is vanilla)
image

Display basic info (rev + date) when possible.
setShowDetails={(show: boolean) => changeIsExpandedByChangeId.set(change.changeid, show)}
/>
: "ChangeNotFound"
: changeid.length !=0 && builds.length != 0 // The change wasn't polled, pull what we can from earliest build
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe this could be handled in DNEGridChangeNotFound?

import {observer, useLocalObservable} from "mobx-react";
import {Link, useSearchParams} from "react-router-dom";
import {Form} from "react-bootstrap";
import {Form, OverlayTrigger, Popover} from "react-bootstrap";
Copy link
Contributor

Choose a reason for hiding this comment

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

Unused imports?

placement="top"
overlay={popoverWithText("date-" + changeid, dateFormat(timestamp))}
>
<span><br/>{durationFromNowFormat(timestamp, now)}</span>
Copy link
Contributor

Choose a reason for hiding this comment

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

the <br/> should probably be between the two OverlayTrigger?

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.

2 participants