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

Implementation of filters in custom search modal. #1560

Open
wants to merge 31 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
21ec770
Add custom component for search modal
vivekjain23 May 15, 2024
7475323
Add styles for custom search modal
vivekjain23 May 15, 2024
3e05305
Add list of filters for custom search based on facet tags
vivekjain23 May 15, 2024
058ce2f
Add context for search
vivekjain23 May 15, 2024
eb4a6cd
Refactor styles for custom search filter dropdown
vivekjain23 May 17, 2024
b4141e8
Refactor custom search modal
vivekjain23 May 17, 2024
6507c3b
Remove unwanted swizzle component
vivekjain23 May 17, 2024
9e87bb4
Add custom search filter page
vivekjain23 May 17, 2024
5e2c99e
Update list of filters for custom search based on facet tags
vivekjain23 May 17, 2024
4f2aa50
Refactor context for search modal and page
vivekjain23 May 17, 2024
85422c1
lint fix
vivekjain23 May 17, 2024
12110e0
Fix custom dropdown filter name
vivekjain23 May 23, 2024
8e853e2
Refractor custom dropdown filter
vivekjain23 May 23, 2024
607b2df
Update styles for custom dropdown filter
vivekjain23 May 23, 2024
b52cbd5
Add filter constants for custom dropdown filter
vivekjain23 May 23, 2024
5cc1abf
Fix footer alignment in search page
vivekjain23 Jun 6, 2024
ccf24d2
Fix linting errors
vivekjain23 Jun 7, 2024
5829d3b
Fix formatting
vivekjain23 Jun 7, 2024
550bf08
Fix styling
vivekjain23 Jun 12, 2024
c0e589e
Fix filter alignment
vivekjain23 Jun 14, 2024
68aeef9
Merge branch 'main' into feature/search-filters
Dr-Electron Jul 2, 2024
6c24de4
Fix filter build issue
vivekjain23 Jul 4, 2024
9ab4943
Add swizzle version and info
vivekjain23 Jul 5, 2024
31482b1
Add swizzle version and info
vivekjain23 Jul 5, 2024
d3510b6
Update filter select logic
vivekjain23 Jul 22, 2024
fbdf425
Remove unwanted console logs
vivekjain23 Jul 22, 2024
1ddf1d7
Remove search filter from search modal
vivekjain23 Jul 30, 2024
492f1c6
Remove unneeded swizzles
Dr-Electron Aug 5, 2024
a6f1379
Revert footer changes
Dr-Electron Aug 5, 2024
fa062f3
Remove unused dep
Dr-Electron Aug 5, 2024
ff8d16d
Revert change
Dr-Electron Aug 5, 2024
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
Prev Previous commit
Next Next commit
Fix linting errors
  • Loading branch information
vivekjain23 committed Jun 7, 2024
commit ccf24d2b9b9329481d75a7306f5421345988f526
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -57,6 +57,7 @@
"humanize-duration": "^3.30.0",
"infima": "^0.2.0-alpha.43",
"plugin-image-zoom": "flexanalytics/plugin-image-zoom",
"prop-types": "^15.8.1",
"raw-loader": "^4.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
11 changes: 10 additions & 1 deletion src/theme/Layout/Provider/index.js
vivekjain23 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import { composeProviders } from '@docusaurus/theme-common';
import {
ColorModeProvider,
@@ -8,6 +9,7 @@ import {
NavbarProvider,
PluginHtmlClassNameProvider,
} from '@docusaurus/theme-common/internal';

const Provider = composeProviders([
ColorModeProvider,
AnnouncementBarProvider,
@@ -16,6 +18,13 @@ const Provider = composeProviders([
PluginHtmlClassNameProvider,
NavbarProvider,
]);
export default function LayoutProvider({ children }) {

function LayoutProvider({ children }) {
return <Provider>{children}</Provider>;
}

LayoutProvider.propTypes = {
children: PropTypes.node.isRequired,
};

export default LayoutProvider;
13 changes: 13 additions & 0 deletions src/theme/Layout/index.js
vivekjain23 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import clsx from 'clsx';
import ErrorBoundary from '@docusaurus/ErrorBoundary';
import {
@@ -14,6 +15,7 @@ import Footer from '@theme/Footer';
import LayoutProvider from '@theme/Layout/Provider';
import ErrorPageContent from '@theme/ErrorPageContent';
import styles from './styles.module.css';

export default function Layout(props) {
const {
children,
@@ -23,7 +25,9 @@ export default function Layout(props) {
title,
description,
} = props;

useKeyboardNavigation();

return (
<LayoutProvider>
<PageMetadata title={title} description={description} />
@@ -51,3 +55,12 @@ export default function Layout(props) {
</LayoutProvider>
);
}

Layout.propTypes = {
children: PropTypes.node.isRequired,
noFooter: PropTypes.bool,
wrapperClassName: PropTypes.string,
footerStyleProps: PropTypes.object,
title: PropTypes.string,
description: PropTypes.string,
};
1 change: 1 addition & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
@@ -2867,6 +2867,7 @@ __metadata:
infima: ^0.2.0-alpha.43
plugin-image-zoom: flexanalytics/plugin-image-zoom
prettier: ^2.8.8
prop-types: ^15.8.1
raw-loader: ^4.0.2
react: 18.2.0
react-dom: 18.2.0
Loading