fae93ac747
* Fix for “overridden” spelling mistake * Make the task function names grey instead of yellow * The task page now shows each task once * Blankline * WIP on activity bars * Correct size of the graphs * Add data for all days, even if there are no runs * Activity graph is working and has a tooltip * No activity label * Got the bar bg working * Activity chart now has a bg * Added a compound id to make the activity graphs appear faster * Improvements to the activity graph * Tried to disable the bg from animating * Added read replica support to the app, using Nick’s code from his batching PR * Added the read replica to BasePresenter * Added the queued and running columns to the Tasks list * Added avg duration column * Included completed but failed runs in the average duration * Get rid of the old useDevEnvironment hook and remove API keys from the projects query * Unified getting environment info to using a function and doing it in presenters * Removed the path from the tasks table * Onboarding for dev for 2nd+ user. Improved environment sorting. * Removed log * Improved the spacing * Enable staging for new v3 projects
13 lines
386 B
TypeScript
13 lines
386 B
TypeScript
import { UIMatch } from "@remix-run/react";
|
|
import { MatchedProject, useOptionalProject } from "./useProject";
|
|
import { useUser } from "./useUser";
|
|
|
|
export type ProjectJobEnvironment = MatchedProject["environments"][number];
|
|
|
|
export function useEnvironments(matches?: UIMatch[]) {
|
|
const project = useOptionalProject(matches);
|
|
if (!project) return;
|
|
|
|
return project.environments;
|
|
}
|