Skip to content
This repository has been archived by the owner on Nov 15, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into renovate/eslint-monorepo
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanawesome authored Nov 4, 2024
2 parents 7dd6748 + adce6ee commit 1ec0884
Show file tree
Hide file tree
Showing 47 changed files with 1,007 additions and 1,212 deletions.
5 changes: 5 additions & 0 deletions .changeset/long-cobras-peel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pathfinder-ide/react': patch
---

Fix compatibility issue with `graphql-sse`
5 changes: 5 additions & 0 deletions .changeset/ten-carrots-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@pathfinder-ide/react': patch
---

Rollback SchemaDocumentation UI changes
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@types/node": "22.8.1",
"@types/node": "22.8.7",
"husky": "^8.0.3",
"lint-staged": "^15.1.0",
"prettier": "3.3.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/compass/compass.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const Compass = () => {
// local state to control whether we should show the query or mutation tab
const [selectedTabIndex, setSelectedTabIndex] = useState<number>(0);

const activeDetailsPane = useSchemaDocumentationStore.use.activeDetailsPane();
const activeTertiaryPane = useSchemaDocumentationStore.use.activeTertiaryPane();

const schema = useSchemaStore.use.schema();

Expand Down Expand Up @@ -107,7 +107,7 @@ export const Compass = () => {

return (
<div className={compassClass}>
{activeDetailsPane ? (
{activeTertiaryPane ? (
<QuickDocs />
) : (
<Tabs
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const DetailsActions = ({
showActions = false,
type,
}: DetailsActionsProps) => {
const { setActiveDetailsPane } = useSchemaDocumentationStore.getState();
const { setActiveTertiaryPane } = useSchemaDocumentationStore.getState();

return (
<div
Expand All @@ -37,7 +37,7 @@ export const DetailsActions = ({
<div className={detailsActionsControlsClass}>
<IconButton
action={() => {
setActiveDetailsPane({ destinationPane: type });
setActiveTertiaryPane({ destinationPane: type });
}}
iconName="Docs"
title="View Quick Docs"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { DetailsPane, useSchemaDocumentationStore } from '../../../schema-documentation';
import { TertiaryPane, useSchemaDocumentationStore } from '../../../schema-documentation';

import { quickDocsClass } from './quick-docs.css';

export const QuickDocs = () => {
const activeDetailsPane = useSchemaDocumentationStore.use.activeDetailsPane();
const activeTertiaryPane = useSchemaDocumentationStore.use.activeTertiaryPane();

return (
<div
className={quickDocsClass({
dialogActive: !!activeDetailsPane,
dialogActive: !!activeTertiaryPane,
})}
>
{activeDetailsPane && <DetailsPane pane={activeDetailsPane['pane']} />}
{activeTertiaryPane && <TertiaryPane pane={activeTertiaryPane['pane']} />}
</div>
);
};
6 changes: 3 additions & 3 deletions packages/react/src/reference/reference.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ const NavButton = ({
}) => {
const title = `View ${panesMap[paneName]}`;

const clearDetailsPaneStack =
useSchemaDocumentationStore.getState().clearDetailsPaneStack;
const clearTertiaryPaneStack =
useSchemaDocumentationStore.getState().clearTertiaryPaneStack;

return (
<button
Expand All @@ -60,7 +60,7 @@ const NavButton = ({
isActive: visiblePane === paneName,
})}
onClick={() => {
clearDetailsPaneStack();
clearTertiaryPaneStack();
return setVisiblePane(paneName);
}}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,16 @@ import { returnTypeButtonClass, scalarArgumentNameClass } from '../../shared.sty

export const ArgumentsList = ({
args,
resetDetailsPaneOnClick,
resetTertiaryPaneOnClick,
showBorder = false,
showDescription = false,
}: {
args: readonly GraphQLArgument[];
resetDetailsPaneOnClick: boolean;
resetTertiaryPaneOnClick: boolean;
showBorder?: boolean;
showDescription?: boolean;
}) => {
const { setActiveDetailsPane } = useSchemaDocumentationStore.getState();
const { setActiveTertiaryPane } = useSchemaDocumentationStore.getState();

if (args.length < 1) {
return null;
Expand All @@ -48,9 +48,9 @@ export const ArgumentsList = ({
<button
className={returnTypeButtonClass}
onClick={() =>
setActiveDetailsPane({
setActiveTertiaryPane({
destinationPane: unwrapType(a.type),
reset: resetDetailsPaneOnClick,
reset: resetTertiaryPaneOnClick,
})
}
>
Expand Down

This file was deleted.

25 changes: 0 additions & 25 deletions packages/react/src/schema-documentation/components/breadcrumbs.tsx

This file was deleted.

163 changes: 0 additions & 163 deletions packages/react/src/schema-documentation/components/details-pane.css.ts

This file was deleted.

Loading

0 comments on commit 1ec0884

Please sign in to comment.