diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b715932..9cc54107 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ ### 🎨 Enhancements - [#441](https://github.com/estruyf/vscode-front-matter/issues/441): Show input descriptions for snippet and data forms +- [#442](https://github.com/estruyf/vscode-front-matter/issues/442): Hide sidebar on data view when data file is selecte + show dropdown of data files - [#798](https://github.com/estruyf/vscode-front-matter/issues/798): Changed dialog to slide-over for the snippet forms - [#799](https://github.com/estruyf/vscode-front-matter/issues/799): Added `frontMatter.logging` setting to define the logging output. Options are `info`, `warn`, `error`, and `verbose`. Default is `info`. - [#800](https://github.com/estruyf/vscode-front-matter/issues/800): Add colors for the Front Matter CMS output diff --git a/src/dashboardWebView/components/DataView/DataView.tsx b/src/dashboardWebView/components/DataView/DataView.tsx index 4ce2e7b0..8d95bd72 100644 --- a/src/dashboardWebView/components/DataView/DataView.tsx +++ b/src/dashboardWebView/components/DataView/DataView.tsx @@ -21,6 +21,9 @@ import { GeneralCommands, TelemetryEvent, WEBSITE_LINKS } from '../../../constan import { NavigationItem } from '../Layout'; import * as l10n from '@vscode/l10n'; import { LocalizationKey } from '../../../localization'; +import { DropdownMenu, DropdownMenuContent } from '../../../components/shadcn/Dropdown'; +import { MenuButton, MenuItem } from '../Menu'; +import { Transition } from '@headlessui/react'; export interface IDataViewProps { } @@ -168,38 +171,71 @@ export const DataView: React.FunctionComponent = (
- {settings?.dataFiles && settings.dataFiles.length > 0 ? ( -
-
- -
+ + + )} +
+ -
+
{selectedData ? ( <> {!selectedData.singleEntry && (