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

Merging main #3243

Merged
merged 60 commits into from
Jul 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
60 commits
Select commit Hold shift + click to select a range
5a52a59
Merge pull request #2282 from voxel51/develop
brimoor Nov 10, 2022
09a808d
release v0.20.1
findtopher Apr 6, 2023
f19a74a
Merge remote-tracking branch 'origin/main' into release/v0.21.0
findtopher Jun 1, 2023
84d01e7
adding --all flags to plugin CLI methods
brimoor Jun 8, 2023
34b0899
Merge pull request #3177 from voxel51/feature/plugins-all
brimoor Jun 12, 2023
2c0417f
Merge pull request #3184 from voxel51/bugfix/select-labels
brimoor Jun 12, 2023
781df0a
add persistent and overwrite parms to dataset factory fns
swheaton May 22, 2023
945db08
adding missing args
brimoor Jun 12, 2023
1076810
using context manager for consistency
brimoor Jun 12, 2023
397485b
Merge pull request #3095 from voxel51/feature/addtl-options-to-fromdir
brimoor Jun 12, 2023
d51274d
adding disable_progress_bars to public interface
brimoor Jun 12, 2023
a06b641
fixing cell format bug
brimoor Jun 12, 2023
769518b
Sample and serialization IO optimizations (#3137)
benjaminpkane Jun 12, 2023
2b32a83
version bumps
benjaminpkane Jun 12, 2023
a767903
Add CVAT support for `frame_start`, `frame_stop`, and `frame_step` (#…
ehofesmann Jun 12, 2023
b1ff8f7
#3154 into release/v0.21.1 (#3193)
benjaminpkane Jun 12, 2023
d5f3d43
#3171 into release/v0.21.1 (#3194)
benjaminpkane Jun 12, 2023
72b430f
bumping compatibility version (#3182)
brimoor Jun 12, 2023
d8e8fe5
do not recognize list fields as label fields (#3196)
brimoor Jun 12, 2023
ff78303
removing tests for raw label field lists
brimoor Jun 13, 2023
121f4cd
cleaning up label list field usage
brimoor Jun 13, 2023
30dbdf4
fix annoying pcd selector disappearing bug
sashankaryal Jun 14, 2023
e2d77e0
Merge pull request #3200 from voxel51/bug/pcd-selector-refresh
sashankaryal Jun 14, 2023
639345b
adding URL to plugin metadata
brimoor Jun 14, 2023
2679ee1
linting
brimoor Jun 18, 2023
6e46a17
updating docstring
brimoor Jun 18, 2023
f1b1393
fixing beam utils
brimoor Jun 20, 2023
62e7b69
classes/mask targets are not automatically used
brimoor Jun 20, 2023
bf650d5
Dynamic groups modal updates (#3209)
benjaminpkane Jun 23, 2023
2ecd2f1
Looker grid tag fixes for custom classifications (#3141)
benjaminpkane Jun 23, 2023
807c634
fix readonly mode for operator io
imanjra Jun 26, 2023
4999514
include group indexes in defaults
brimoor Jun 26, 2023
c0e9610
embeddings modal atom fix
Jun 27, 2023
cac58ff
Merge pull request #3229 from voxel51/bug/embeddings-modal
brimoor Jun 27, 2023
fcaccba
don't always unwind
brimoor Jun 27, 2023
089e3fc
allow coloring embeddings plots by list fields
brimoor Jun 27, 2023
24c1f20
Resolve saved views when serializing datasets (#3231)
benjaminpkane Jun 27, 2023
6618eb3
Session proxy url (#3222)
benjaminpkane Jun 27, 2023
0049286
Merge pull request #3230 from voxel51/color-by-lists
brimoor Jun 28, 2023
829f6dc
Restricted supported App labels to match SDK (#3233)
benjaminpkane Jun 28, 2023
4a72782
fix modal
benjaminpkane Jun 29, 2023
2eae319
Merge branch 'release/v0.21.1' of github.com:voxel51/fiftyone into re…
benjaminpkane Jun 29, 2023
43d4a9c
rm unused mongo session
benjaminpkane Jun 29, 2023
c2998b2
fix paginator
benjaminpkane Jun 29, 2023
f5c5723
tweak
benjaminpkane Jun 29, 2023
98f16fe
adding release notes
brimoor Jun 29, 2023
fe7b4fa
disabled operator startup and placement fixes
imanjra Jun 8, 2023
986f71d
fix theme mainchannel token override
imanjra Jun 9, 2023
7c80cc1
fix active resize handle color
imanjra Jun 9, 2023
55229ba
Merge pull request #3234 from voxel51/release-notes
brimoor Jun 29, 2023
8a3800e
fix field info coloring link
benjaminpkane Jun 29, 2023
f6e0b81
Merge branch 'release/v0.21.1' of github.com:voxel51/fiftyone into re…
benjaminpkane Jun 29, 2023
3114a22
updating google analytics tag
brimoor Jun 29, 2023
2fa93de
bump
benjaminpkane Jun 29, 2023
c5dfd13
Merge branch 'release/v0.21.1' of github.com:voxel51/fiftyone into re…
benjaminpkane Jun 29, 2023
da1b464
Fix numeric fields display bug (#3240)
lanzhenw Jun 30, 2023
b0a4cc4
fix reset button for teams
lanzhenw Jun 29, 2023
310e414
fix ugliness
lanzhenw Jun 29, 2023
99dedba
Merge pull request #3242 from voxel51/release/v0.21.1
findtopher Jun 30, 2023
1c46fee
merge
benjaminpkane Jun 30, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Clone fiftyone
uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
with:
submodules: true
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
token: ${{ secrets.TEAMS_GITHUB_PAT }}
ref: main
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install pip dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-graphql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Clone fiftyone
uses: actions/checkout@v1
- name: Set up Python 3.9
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
with:
submodules: true
- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: 3.8
- name: Install dependencies
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
submodules: true

- name: Set up Python 3.8
uses: actions/setup-python@v2
uses: actions/setup-python@v4
id: pip-cache
with:
python-version: 3.8
Expand Down Expand Up @@ -72,13 +72,6 @@ jobs:
yarn start
working-directory: ./e2e

- name: Upload videos
if: always()
uses: actions/upload-artifact@v2
with:
name: videos
path: e2e/cypress/videos

- name: Upload snapshots
if: always()
uses: actions/upload-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Setup
uses: actions/setup-python@v2
uses: actions/setup-python@v4
id: pip-cache
with:
python-version: ${{ matrix.python }}
Expand Down
1 change: 1 addition & 0 deletions app/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ module.exports = {
],
},
],
"react/prop-types": 0,
},
settings: {
react: {
Expand Down
10 changes: 4 additions & 6 deletions app/packages/app/src/Network.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ const Network: React.FC<{
export const NetworkRenderer = ({ makeRoutes }) => {
const { context, environment } = fos.useRouter(makeRoutes, []);

const isModalActive = Boolean(useRecoilValue(fos.modal));
const isModalOpen = useRecoilValue(fos.isModalActive);

useEffect(() => {
document.body.classList.toggle("noscroll", isModalActive);
document
.getElementById("modal")
?.classList.toggle("modalon", isModalActive);
}, [isModalActive]);
document.body.classList.toggle("noscroll", isModalOpen);
document.getElementById("modal")?.classList.toggle("modalon", isModalOpen);
}, [isModalOpen]);

return <Network environment={environment} context={context} />;
};
Expand Down
2 changes: 2 additions & 0 deletions app/packages/app/src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,6 @@ button {

body {
overflow: hidden;
/* mainChannel override in ThemeProvider is not working for some reason */
--fo-palette-primary-mainChannel: 0 0 0;
}
22 changes: 10 additions & 12 deletions app/packages/app/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@ import { usePlugins } from "@fiftyone/plugins";
import {
BeforeScreenshotContext,
EventsContext,
State,
activeColorField,
getDatasetName,
modal,
getSavedViewName,
isModalActive,
screenshotCallbacks,
State,
stateSubscription,
useReset,
useClearModal,
useScreenshot,
useRouter,
useRefresh,
getSavedViewName,
activeColorField,
useReset,
useRouter,
useScreenshot,
} from "@fiftyone/state";
import { getEventSource, toCamelCase } from "@fiftyone/utilities";
import React, { useEffect, useRef, useState } from "react";
Expand Down Expand Up @@ -58,15 +58,13 @@ const App: React.FC = ({}) => {
new URLSearchParams(window.location.search).get("context")
);

const isModalActive = Boolean(useRecoilValue(modal));
const isModalOpen = useRecoilValue(isModalActive);
const isCustomizeColorModalActive = Boolean(useRecoilValue(activeColorField));
const handleError = useErrorHandler();

useEffect(() => {
document
.getElementById("modal")
?.classList.toggle("modalon", isModalActive);
}, [isModalActive]);
document.getElementById("modal")?.classList.toggle("modalon", isModalOpen);
}, [isModalOpen]);
useEffect(() => {
document
.getElementById("colorModal")
Expand Down
1 change: 1 addition & 0 deletions app/packages/app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export default defineConfig({
pluginRewriteAll(),
],
server: {
port: parseInt(process.env.FIFTYONE_DEFAULT_APP_PORT || "5173"),
proxy: {
"/plugins": {
target: `http://127.0.0.1:${
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ let theme = extendMuiTheme({
},
primary: {
main: "hsl(25, 100%, 51%)",
mainChannel: "0 0 0",
plainBorder: "hsl(200, 0%, 90%)",
plainColor: "hsl(25, 100%, 51%)",
softBg: "hsl(200, 0%, 85%, 0.7)",
Expand Down Expand Up @@ -130,7 +131,7 @@ let theme = extendMuiTheme({
},
primary: {
main: "hsl(25, 100%, 51%)",
mainChannel: "none",
mainChannel: "0 0 0",
plainColor: "hsl(25, 100%, 51%)",
plainBorder: "hsl(200, 0%, 5%)",
softBg: "hsl(200, 0%, 25%)",
Expand Down
1 change: 1 addition & 0 deletions app/packages/core/src/Dataset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ export const DatasetNodeQuery = graphql`
mediaType
defaultGroupSlice
groupField
groupSlice
groupMediaTypes {
name
mediaType
Expand Down
11 changes: 6 additions & 5 deletions app/packages/core/src/Root/Datasets/Dataset.tsx
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import * as fos from "@fiftyone/state";
import { NotFoundError } from "@fiftyone/utilities";
import React, { useContext } from "react";
import { usePreloadedQuery } from "react-relay";
import { useRecoilValue } from "recoil";
import DatasetComponent from "../../components/Dataset";
import * as fos from "@fiftyone/state";
import { DatasetQuery } from "../../__generated__/DatasetQuery.graphql";
import {
usePreLoadedDataset,
DatasetNodeQuery,
DatasetQueryRef,
usePreLoadedDataset,
} from "../../Dataset";
import { usePreloadedQuery } from "react-relay";
import { DatasetQuery } from "../../__generated__/DatasetQuery.graphql";
import DatasetComponent from "../../components/Dataset";

export const Dataset: fos.Route<DatasetQuery> = ({ prepared }) => {
const router = useContext(fos.RouterContext);
const [dataset, ready] = usePreLoadedDataset(prepared);
const queryRef = usePreloadedQuery<DatasetQuery>(DatasetNodeQuery, prepared);
const name = useRecoilValue(fos.datasetName);

if (!ready) return null;
if (dataset === null) {
throw new NotFoundError({
Expand Down
24 changes: 12 additions & 12 deletions app/packages/core/src/Root/Root.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AnimatePresence, motion } from "framer-motion";
import React, { Suspense, useContext, useEffect, useMemo } from "react";
import ReactDOM from "react-dom";
import ReactGA from "react-ga";
import { motion, AnimatePresence } from "framer-motion";
import {
PreloadedQuery,
useFragment,
Expand All @@ -24,26 +24,26 @@ import {
} from "@fiftyone/components";

// built in plugins
import "@fiftyone/map";
import "@fiftyone/looker-3d";
import "@fiftyone/embeddings";
import "@fiftyone/looker-3d";
import "@fiftyone/map";

import Teams from "../components/Teams/Teams";
import ViewBar from "../components/ViewBar/ViewBar";
import gaConfig from "../ga";
import style from "./Root.module.css";
import ViewBar from "../components/ViewBar/ViewBar";
import Teams from "../components/Teams/Teams";

import { RootQuery } from "./__generated__/RootQuery.graphql";
import * as fos from "@fiftyone/state";
import { Route, RouterContext, getDatasetName } from "@fiftyone/state";
import { isElectron } from "@fiftyone/utilities";
import { RootDatasets_query$key } from "./__generated__/RootDatasets_query.graphql";
import { RootGA_query$key } from "./__generated__/RootGA_query.graphql";
import { RootNav_query$key } from "./__generated__/RootNav_query.graphql";
import { isElectron } from "@fiftyone/utilities";
import * as fos from "@fiftyone/state";
import { getDatasetName, Route, RouterContext } from "@fiftyone/state";
import { RootQuery } from "./__generated__/RootQuery.graphql";

import DatasetSelector from "../components/DatasetSelector";
import { useColorScheme, IconButton } from "@mui/material";
import { DarkMode, LightMode } from "@mui/icons-material";
import { IconButton, useColorScheme } from "@mui/material";
import DatasetSelector from "../components/DatasetSelector";

const rootQuery = graphql`
query RootQuery($search: String = "", $count: Int, $cursor: String) {
Expand Down Expand Up @@ -120,7 +120,7 @@ export const useGA = (prepared: PreloadedQuery<RootQuery>) => {
const buildType = dev ? "dev" : "prod";

ReactGA.initialize(gaConfig.app_ids[buildType], {
debug: dev,
debug: false,
gaOptions: {
storage: "none",
cookieDomain: "none",
Expand Down
16 changes: 12 additions & 4 deletions app/packages/core/src/__generated__/DatasetQuery.graphql.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 9 additions & 19 deletions app/packages/core/src/components/Actions/Patcher.tsx
Original file line number Diff line number Diff line change
@@ -1,38 +1,28 @@
import React, { useContext, useState } from "react";
import { selector, Snapshot, useRecoilCallback, useRecoilValue } from "recoil";
import { useSpring } from "@react-spring/web";
import {
useToClips,
useToPatches,
useToEvaluationPatches,
useToPatches,
} from "@fiftyone/state";

import {
CLIPS_FRAME_FIELDS,
CLIPS_SAMPLE_FIELDS,
EMBEDDED_DOCUMENT_FIELD,
getFetchFunction,
PATCHES_FIELDS,
toSnakeCase,
} from "@fiftyone/utilities";

import {
RouterContext,
useSetView,
useUnprocessedStateUpdate,
} from "@fiftyone/state";
import { useSpring } from "@react-spring/web";
import React, { useState } from "react";
import { selector, useRecoilValue } from "recoil";
import {
OBJECT_PATCHES,
EVALUATION_PATCHES,
CLIPS_VIEWS,
EVALUATION_PATCHES,
OBJECT_PATCHES,
} from "../../utils/links";

import Popout from "./Popout";
import { ActionOption } from "./Common";
import { SwitcherDiv, SwitchDiv } from "./utils";
import { useTheme } from "@fiftyone/components";
import * as fos from "@fiftyone/state";
import { State } from "@fiftyone/state";
import { ActionOption } from "./Common";
import Popout from "./Popout";
import { SwitchDiv, SwitcherDiv } from "./utils";

export const patchesFields = selector<string[]>({
key: "patchesFields",
Expand Down
Loading
Loading