-
-
Notifications
You must be signed in to change notification settings - Fork 742
Change plan feedback modal #1393
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
Changes from 15 commits
e3398dd
ac81a9c
d8c1872
22efefa
4bae709
a0071b9
1d014af
51b437b
431eafb
fd01de8
049d126
ac2c6d7
9adffd1
b837b5a
c976813
cc9615d
61cb4a7
5e9f241
db7bf32
255af74
0877a70
300f14a
64b08db
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
[submodule "packages/otlp-importer/protos"] | ||
path = packages/otlp-importer/protos | ||
[submodule "internal-packages/otlp-importer/protos"] | ||
path = internal-packages/otlp-importer/protos | ||
url = https://github.com/open-telemetry/opentelemetry-proto.git |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
export function TimedOutIcon({ className }: { className?: string }) { | ||
return ( | ||
<svg | ||
className={className} | ||
width="20" | ||
height="20" | ||
viewBox="0 0 20 20" | ||
fill="none" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<path | ||
fillRule="evenodd" | ||
clipRule="evenodd" | ||
d="M9 2H8V3H9V4.07089C5.60771 4.55612 3 7.47353 3 11C3 14.866 6.13401 18 10 18C13.866 18 17 14.866 17 11C17 7.47353 14.3923 4.55612 11 4.07089V3H12V2H11H9ZM13.7603 3.36575C14.7218 2.40422 16.2807 2.40422 17.2422 3.36575C18.2038 4.32727 18.2038 5.8862 17.2422 6.84772L17.1462 6.94375C17.1251 6.96488 17.0908 6.96488 17.0697 6.94375L13.6642 3.53831C13.6431 3.51717 13.6431 3.4829 13.6642 3.46177L13.7603 3.36575ZM6.28876 3.58524C6.33584 3.53816 6.33584 3.46184 6.28876 3.41476L6.23971 3.36571C5.27819 2.40419 3.71925 2.40419 2.75773 3.36571C1.79621 4.32723 1.79621 5.88616 2.75773 6.84769L2.80678 6.89674C2.85386 6.94382 2.93019 6.94381 2.97726 6.89674L6.28876 3.58524ZM14.5858 17L16 15.5858L16.7071 16.2929C17.0976 16.6834 17.0976 17.3166 16.7071 17.7071C16.3166 18.0976 15.6834 18.0976 15.2929 17.7071L14.5858 17ZM5.42297 17L4.00875 15.5858L3.30165 16.2929C2.91112 16.6834 2.91112 17.3166 3.30165 17.7071C3.69217 18.0977 4.32534 18.0977 4.71586 17.7071L5.42297 17ZM6.29289 7.29289C6.68342 6.90237 7.31658 6.90237 7.70711 7.29289L10 9.58579L12.2929 7.29289C12.6834 6.90237 13.3166 6.90237 13.7071 7.29289C14.0976 7.68342 14.0976 8.31658 13.7071 8.70711L11.4142 11L13.7071 13.2929C14.0976 13.6834 14.0976 14.3166 13.7071 14.7071C13.3166 15.0976 12.6834 15.0976 12.2929 14.7071L10 12.4142L7.70711 14.7071C7.31658 15.0976 6.68342 15.0976 6.29289 14.7071C5.90237 14.3166 5.90237 13.6834 6.29289 13.2929L8.58579 11L6.29289 8.70711C5.90237 8.31658 5.90237 7.68342 6.29289 7.29289Z" | ||
fill="currentColor" | ||
/> | ||
</svg> | ||
); | ||
} |
matt-aitken marked this conversation as resolved.
Show resolved
Hide resolved
matt-aitken marked this conversation as resolved.
Show resolved
Hide resolved
|
matt-aitken marked this conversation as resolved.
Show resolved
Hide resolved
matt-aitken marked this conversation as resolved.
Show resolved
Hide resolved
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -235,9 +235,11 @@ export function useTree<TData, TFilterValue>({ | |||||||||||||||||||||||||||
getItemKey: (index) => state.visibleNodeIds[index], | ||||||||||||||||||||||||||||
getScrollElement: () => parentRef.current, | ||||||||||||||||||||||||||||
estimateSize: (index: number) => { | ||||||||||||||||||||||||||||
const treeItem = tree[index]; | ||||||||||||||||||||||||||||
if (!treeItem) return 0; | ||||||||||||||||||||||||||||
return estimatedRowHeight({ | ||||||||||||||||||||||||||||
node: tree[index], | ||||||||||||||||||||||||||||
state: state.nodes[tree[index].id], | ||||||||||||||||||||||||||||
node: treeItem, | ||||||||||||||||||||||||||||
state: state.nodes[treeItem.id], | ||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix incorrect tree item retrieval in The index in the To correctly retrieve the tree item, use the ID from Apply this diff to fix the issue: -const treeItem = tree[index];
+const nodeId = state.visibleNodeIds[index];
+const treeItem = tree.find((item) => item.id === nodeId);
if (!treeItem) return 0; 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||
index, | ||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||
}, | ||||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,11 +9,13 @@ import { BeakerIcon, BookOpenIcon, CheckIcon } from "@heroicons/react/24/solid"; | |
import { useLocation } from "@remix-run/react"; | ||
import { formatDuration, formatDurationMilliseconds } from "@trigger.dev/core/v3"; | ||
import { useCallback, useRef } from "react"; | ||
import { Badge } from "~/components/primitives/Badge"; | ||
import { Button, LinkButton } from "~/components/primitives/Buttons"; | ||
import { Checkbox } from "~/components/primitives/Checkbox"; | ||
import { Dialog, DialogTrigger } from "~/components/primitives/Dialog"; | ||
import { Header3 } from "~/components/primitives/Headers"; | ||
import { useSelectedItems } from "~/components/primitives/SelectedItemsProvider"; | ||
import { SimpleTooltip } from "~/components/primitives/Tooltip"; | ||
import { useEnvironments } from "~/hooks/useEnvironments"; | ||
import { useFeatures } from "~/hooks/useFeatures"; | ||
import { useOrganization } from "~/hooks/useOrganizations"; | ||
|
@@ -39,9 +41,12 @@ import { | |
import { CancelRunDialog } from "./CancelRunDialog"; | ||
import { LiveTimer } from "./LiveTimer"; | ||
import { ReplayRunDialog } from "./ReplayRunDialog"; | ||
import { TaskRunStatusCombo } from "./TaskRunStatus"; | ||
import { RunTag } from "./RunTag"; | ||
import { Badge } from "~/components/primitives/Badge"; | ||
import { | ||
descriptionForTaskRunStatus, | ||
filterableTaskRunStatuses, | ||
TaskRunStatusCombo, | ||
} from "./TaskRunStatus"; | ||
|
||
type RunsTableProps = { | ||
total: number; | ||
|
@@ -126,7 +131,27 @@ export function TaskRunsTable({ | |
<TableHeaderCell>Env</TableHeaderCell> | ||
<TableHeaderCell>Task</TableHeaderCell> | ||
<TableHeaderCell>Version</TableHeaderCell> | ||
<TableHeaderCell>Status</TableHeaderCell> | ||
<TableHeaderCell | ||
tooltip={ | ||
<div className="flex flex-col divide-y divide-grid-dimmed"> | ||
{filterableTaskRunStatuses.map((status) => ( | ||
<div | ||
key={status} | ||
className="grid grid-cols-[8rem_1fr] gap-x-2 py-2 first:pt-1 last:pb-1" | ||
> | ||
<div className="mb-0.5 flex items-center gap-1.5 whitespace-nowrap"> | ||
<TaskRunStatusCombo status={status} /> | ||
</div> | ||
<Paragraph variant="extra-small" className="!text-wrap text-text-dimmed"> | ||
{descriptionForTaskRunStatus(status)} | ||
</Paragraph> | ||
</div> | ||
))} | ||
</div> | ||
} | ||
> | ||
Status | ||
</TableHeaderCell> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Consider extracting the tooltip content into a separate component for better maintainability. The You could create a new component like import { StatusColumnTooltip } from "./StatusColumnTooltip";
// ...
<TableHeaderCell tooltip={<StatusColumnTooltip />}>
Status
</TableHeaderCell> This refactor promotes reusability and keeps the |
||
<TableHeaderCell>Started</TableHeaderCell> | ||
<TableHeaderCell | ||
colSpan={3} | ||
|
@@ -287,7 +312,11 @@ export function TaskRunsTable({ | |
</TableCell> | ||
<TableCell to={path}>{run.version ?? "–"}</TableCell> | ||
<TableCell to={path}> | ||
<TaskRunStatusCombo status={run.status} /> | ||
<SimpleTooltip | ||
content={descriptionForTaskRunStatus(run.status)} | ||
disableHoverableContent | ||
button={<TaskRunStatusCombo status={run.status} />} | ||
/> | ||
</TableCell> | ||
<TableCell to={path}> | ||
{run.startedAt ? <DateTime date={run.startedAt} /> : "–"} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codebase verification
Packages removed from the
ignore
array are present in the project.The packages
"emails"
,"@trigger.dev/database"
, and"@trigger.dev/otlp-importer"
still exist in the project directories. Removing them from theignore
array means they will now be included in the changeset process, which could impact versioning and changelog generation.🔗 Analysis chain
Please clarify the removal of entries from the
ignore
array.The
ignore
array has been modified to remove several entries:"emails"
,"@trigger.dev/database"
, and"@trigger.dev/otlp-importer"
. This change means that these packages will now be included in the changeset process, potentially affecting versioning and changelog generation.Could you please explain the rationale behind this change? It's important to understand:
To help assess the impact, let's check if these packages are still present in the project:
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 689