-
Notifications
You must be signed in to change notification settings - Fork 1
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
Pulling feat/strains-catalog into develop #437
Commits on Aug 3, 2023
-
test(GenesDisplay.test.tsx): add unit tests for GenesDisplay component
This commit adds unit tests for the GenesDisplay component. The first test checks if the component renders the correct number of LinkTags based on the provided genes array. It also checks if the LinkTags have the correct text content. The second test checks if no LinkTags are rendered when the genes array is empty. These tests ensure that the GenesDisplay component behaves as expected and displays the correct information.
Configuration menu - View commit details
-
Copy full SHA for b69a51e - Browse repository at this point
Copy the full SHA b69a51eView commit details -
feat(ui-dsc): add LinkTag component
The LinkTag component is added to the catalog directory in the ui-dsc package. This component is a tag-style display for showing links. It takes in two properties: item (the item to link to) and route (the subroute to use, such as publication or gene). The component renders a Button component with a link to the specified route and item. It also includes an external link icon from the FontAwesomeIcon component.
Configuration menu - View commit details
-
Copy full SHA for 3de986b - Browse repository at this point
Copy the full SHA 3de986bView commit details -
feat(ui-dsc): add ts-pattern package as a dependency
The ts-pattern package is added as a dependency to the ui-dsc package. This package provides a set of utilities for working with patterns and pattern matching in TypeScript.
Configuration menu - View commit details
-
Copy full SHA for 49c4b89 - Browse repository at this point
Copy the full SHA 49c4b89View commit details -
feat(ui-dsc): add StrainPhenotypeListItem component and its tests
The StrainPhenotypeListItem component is added to the ui-dsc package. This component renders a list item for displaying information about a strain's phenotype. It includes the strain's label, associated genes, and a link to a publication if available. The component also has tests to ensure that the expected list items are included and that publications are not displayed when not passed as a prop.
Configuration menu - View commit details
-
Copy full SHA for e0f18f1 - Browse repository at this point
Copy the full SHA e0f18f1View commit details -
feat(ui-dsc): add StrainPhenotypeListHeader component
The StrainPhenotypeListHeader component is added to the catalog directory in the ui-dsc package. This component represents the list of headers at the top of the phenotype display. It includes four columns: Phenotype, Notes, Assay & Environment, and Reference(s).
Configuration menu - View commit details
-
Copy full SHA for d29c489 - Browse repository at this point
Copy the full SHA d29c489View commit details -
test(StrainPhenotypeListHeader): add unit test for rendering StrainPh…
…enotypeListHeader component This commit adds a new unit test file, `StrainPhenotypeListHeader.test.tsx`, which tests the rendering of the `StrainPhenotypeListHeader` component. The test verifies that the component renders the expected text for "Phenotype", "Notes", and "Assay".
Configuration menu - View commit details
-
Copy full SHA for 7f71b22 - Browse repository at this point
Copy the full SHA 7f71b22View commit details -
feat(ui-dsc): add mockStrain.ts file
This commit adds the mockStrain.ts file to the ui-dsc package. This file contains mock data for the Strain type, including examples of available strains, unavailable strains, strains with phenotypes, strains from the Genome Wide Dictyostelium Insertion bank (GWDI), and catalog available strains. The mock data is used for testing and development purposes. The mockStrain.ts file provides a convenient way to generate realistic and consistent mock data for the Strain type, which helps in simulating different scenarios and testing various functionalities of the application.
Configuration menu - View commit details
-
Copy full SHA for 0c87d75 - Browse repository at this point
Copy the full SHA 0c87d75View commit details -
feat(ui-dsc): add DetailsHeader component to catalog module
The DetailsHeader component is added to the catalog module in the ui-dsc package. This component is used as the header at the top of every stock details page. It displays the name and ID of the stock, and includes a copy icon for the ID.
Configuration menu - View commit details
-
Copy full SHA for e68e365 - Browse repository at this point
Copy the full SHA e68e365View commit details -
feat(ui-dsc): add DetailsLoader component for displaying loading scre…
…en while fetching stock data The DetailsLoader component is added to the catalog directory in the ui-dsc package. This component is used to display a loading screen while fetching stock data. It uses the Skeleton component from the react-loading-skeleton library to show placeholders for the content that is being loaded.
Configuration menu - View commit details
-
Copy full SHA for c5a2d7c - Browse repository at this point
Copy the full SHA c5a2d7cView commit details -
feat(ui-dsc): add styles for catalog component
This commit adds a new file `styles.tsx` in the `catalog` directory of the `ui-dsc` package. The file contains styles for the catalog component. The styles include CSS properties for various elements such as card headers, details, list items, IDs, copy icons, and error messages. The `makeStyles` function from `@material-ui/core/styles` is used to define the styles.
Configuration menu - View commit details
-
Copy full SHA for 7858a05 - Browse repository at this point
Copy the full SHA 7858a05View commit details -
feat(ui-dsc): add phenotypeStyles.tsx to catalog folder
The phenotypeStyles.tsx file is added to the catalog folder in the ui-dsc package. This file contains the makeStyles function from the @material-ui/core/styles library, along with styles for various elements such as paper, row, item, listHeaders, list, and button. These styles are used for the phenotype catalog component in the UI.
Configuration menu - View commit details
-
Copy full SHA for 24dae78 - Browse repository at this point
Copy the full SHA 24dae78View commit details -
test(ui-dsc): add unit tests for SearchPhenotypeListItem component
The new file `SearchPhenotypeListItem.test.tsx` contains unit tests for the `SearchPhenotypeListItem` component. The tests ensure that the component renders the expected list items, including the strain descriptor, associated genes, and publication link. It also includes a test to verify that the component does not include publications when not passed as a prop. These tests help ensure the correctness and reliability of the component.
Configuration menu - View commit details
-
Copy full SHA for 39c2b07 - Browse repository at this point
Copy the full SHA 39c2b07View commit details -
feat(ui-dsc): add SearchPhenotypeListItem component to display search…
… results for phenotypes The SearchPhenotypeListItem component is added to the ui-dsc package. This component is responsible for rendering a single item in the search results for phenotypes. It displays information about a strain, including its label, associated genes, and a publication. The component also includes styling using Material-UI.
Configuration menu - View commit details
-
Copy full SHA for 14e6319 - Browse repository at this point
Copy the full SHA 14e6319View commit details -
feat(StrainPhenotypeListItem.tsx): copy correct file from dicty-stock…
…-center repo Previously, the incorrect file was copied from the dicty-stock-center repository and renamed StrainPhenotypeListItem. This commit brings in the correct file associated withe displaying the strain phenotype details in the StrainDetailsContainer.
Configuration menu - View commit details
-
Copy full SHA for 712eff9 - Browse repository at this point
Copy the full SHA 712eff9View commit details -
test(ui-dsc): add test for rendering phenotype links in alphabetical …
…order This commit adds a new test file, StrainPhenotypeList.test.tsx, which tests the rendering of phenotype links in alphabetical order. The test cases include different phenotypes and their expected indices in the rendered list. The test uses the render function from @testing-library/react and the MemoryRouter component from react-router-dom to render the StrainPhenotypeList component with the provided phenotypes. It then checks if the rendered phenotype links match the expected indices.
Configuration menu - View commit details
-
Copy full SHA for 26d767b - Browse repository at this point
Copy the full SHA 26d767bView commit details -
feat(ui-dsc): add StrainPhenotypeList component
The StrainPhenotypeList component is added to the ui-dsc package. This component provides a list of phenotypes for a given strain. It uses the Material-UI Paper component for styling and renders a header component (StrainPhenotypeListHeader) and a list of phenotype items (StrainPhenotypeListItem). The phenotypes are sorted alphabetically by phenotype name using the fp-ts library.
Configuration menu - View commit details
-
Copy full SHA for b9b68fb - Browse repository at this point
Copy the full SHA b9b68fbView commit details -
test(StrainPhenotypeListItem): add unit test for StrainPhenotypeListI…
…tem component This commit adds a new unit test file for the StrainPhenotypeListItem component. The test ensures that the component renders correctly by checking if the expected elements and data are present in the rendered output.
Configuration menu - View commit details
-
Copy full SHA for c007e50 - Browse repository at this point
Copy the full SHA c007e50View commit details -
refactor(StrainPhenotypeList.tsx): remove console.log statement
The console.log statement was removed as it was no longer needed for debugging purposes.
Configuration menu - View commit details
-
Copy full SHA for 9f09941 - Browse repository at this point
Copy the full SHA 9f09941View commit details -
feat(ui-dsc): add fp-ts dependency
The fp-ts dependency is added to the package.json file in the ui-dsc package. This dependency is required for some functional programming utilities and types used in the codebase.
Configuration menu - View commit details
-
Copy full SHA for 2a79f02 - Browse repository at this point
Copy the full SHA 2a79f02View commit details -
refactor(AddToCartDialogContent.tsx): rename 'name' property to 'labe…
…l' in data array The 'name' property in the data array has been renamed to 'label' to improve clarity and consistency with the naming conventions. This change ensures that the property name accurately reflects its purpose, which is to represent the label or name of an item.
Configuration menu - View commit details
-
Copy full SHA for f553f18 - Browse repository at this point
Copy the full SHA f553f18View commit details -
feat(ui-dsc): add AddToCartDialog component
The AddToCartDialog component is added to the catalog package in the ui-dsc package. This component is responsible for displaying a dialog box when an item is added to the cart. It receives various properties such as the strain data, functions to handle checked items, show/hide the dialog, and toggle hover state. The dialog box includes a title, content, and actions.
Configuration menu - View commit details
-
Copy full SHA for dd22b32 - Browse repository at this point
Copy the full SHA dd22b32View commit details -
test(AddToCartDialog.test.tsx): add unit test for close button functi…
…onality This commit adds a new unit test for the close button functionality in the AddToCartDialog component. The test verifies that the setCheckedItems and setShowDialog functions are called when the "View Cart" button is clicked.
Configuration menu - View commit details
-
Copy full SHA for a2ea8d9 - Browse repository at this point
Copy the full SHA a2ea8d9View commit details -
test(AddToCartDialog.test.tsx): add test for setHover function
The test case now includes a test for the setHover function. This ensures that the setHoverSpy function is called once when clicking the close button.
Configuration menu - View commit details
-
Copy full SHA for 99fe0c7 - Browse repository at this point
Copy the full SHA 99fe0c7View commit details -
feat(mockPhenotype.ts): add mock data for phenotypes
This commit adds a new file `mockPhenotype.ts` which contains an array of mock data for phenotypes. Each phenotype object includes properties such as phenotype, note, assay, environment, and publication. This mock data will be used for testing and development purposes.
Configuration menu - View commit details
-
Copy full SHA for 94b20b9 - Browse repository at this point
Copy the full SHA 94b20b9View commit details -
chore(Strains.md): update StrainDetailsContainer and add new components
The StrainDetailsContainer component now includes a conditional render, indicating that it will render different components based on the stockType. Additionally, two new components, DetailsListItem and PhenotypeList, have been added to the diagram. This update improves the clarity and accuracy of the diagram by reflecting the changes made to the code.
Configuration menu - View commit details
-
Copy full SHA for 1253c73 - Browse repository at this point
Copy the full SHA 1253c73View commit details -
feat(ui-dsc): add fees module and update types export
The fees module is added to the ui-dsc package, which exports an object containing different fee values. This module will be used to calculate fees in the application. In addition, the types export in the types.ts file is updated to include an alias for the StrainItem type as CartItem. This provides more clarity and consistency when using the types in the codebase.
Configuration menu - View commit details
-
Copy full SHA for 20f491e - Browse repository at this point
Copy the full SHA 20f491eView commit details -
refactor(OutlinedDropdown.tsx): change export statement to named export
The export statement for the OutlinedDropdown component is changed from default export to named export. This improves consistency with the codebase and allows for better import syntax when using the component in other files.
Configuration menu - View commit details
-
Copy full SHA for 5164f75 - Browse repository at this point
Copy the full SHA 5164f75View commit details -
test(ui-dsc): add test for OutlinedDropdown component
This commit adds a new test file `OutlinedDropdown.test.tsx` to test the functionality of the `OutlinedDropdown` component. The test verifies that the `handleChange` function is called when a menu item is clicked. It also tests that the dropdown renders correctly with the provided label, dropdown values, and initial input value.
Configuration menu - View commit details
-
Copy full SHA for 3a22c8d - Browse repository at this point
Copy the full SHA 3a22c8dView commit details -
feat(ui-dsc): add SecondaryButton component
The SecondaryButton component is added to the catalog in the ui-dsc package. This component is a customized button that uses the secondary color from the Material-UI theme. It has a different background color and hover effect compared to the default button.
Configuration menu - View commit details
-
Copy full SHA for 47433bc - Browse repository at this point
Copy the full SHA 47433bcView commit details -
feat(ui-dsc): add useGenotypes hook for separating genotype data
The useGenotypes hook is added to the ui-dsc package. This hook takes in a string of genotypes and separates them into drug resistances and non-drug resistances. The drug resistances are determined based on a predefined set of resistance markers. This hook provides a convenient way to handle and categorize genotype data in the UI.
Configuration menu - View commit details
-
Copy full SHA for f15e827 - Browse repository at this point
Copy the full SHA f15e827View commit details -
test(useGenotypes): add test for separating drug resistances and non-…
…drug resistances This test ensures that the useGenotypes hook correctly separates drug resistances and non-drug resistances from a given list of genotypes. It verifies that the drug resistances are correctly identified and returned in an array, while the non-drug resistances are also correctly identified and returned in a separate array.
Configuration menu - View commit details
-
Copy full SHA for 38ba01e - Browse repository at this point
Copy the full SHA 38ba01eView commit details -
feat(GenotypesDisplay.tsx): add GenotypesDisplay component
The GenotypesDisplay component is added to the catalog directory in the ui-dsc package. This component is responsible for organizing genotypes with non-drug resistances italicized and drug resistances at the end. It takes a list of genotypes in string format as a prop and renders the formatted genotypes accordingly. The component uses the useGenotypes hook to separate the non-drug resistances and drug resistances. The non-drug resistances are rendered in an italicized span, while the drug resistances are rendered as regular text.
Configuration menu - View commit details
-
Copy full SHA for 0b1a756 - Browse repository at this point
Copy the full SHA 0b1a756View commit details -
test(GenotypesDisplay.test.tsx): add unit tests for GenotypesDisplay …
…component The added unit tests ensure that the GenotypesDisplay component correctly renders the genotypes and drug resistances. The first test checks if the genotypes are rendered in italics and in the correct order. The second test checks if the comma at the end is not included when there are no drug resistances. These tests improve the reliability and correctness of the GenotypesDisplay component.
Configuration menu - View commit details
-
Copy full SHA for 4ad1c59 - Browse repository at this point
Copy the full SHA 4ad1c59View commit details -
feat(StrainDetailsContainerComponentTree): add component tree diagram…
… for StrainDetailsContainer This commit adds a new file, StrainDetailsContainerComponentTree.md, which contains a Mermaid diagram representing the component tree for the StrainDetailsContainer component in the stock-center app. The diagram shows the relationships between the StrainDetailsContainer component and its child components, including StrainDetailsCard, Availability, AddToCartDialog, DetailsListItems, and PhenotypeList. The diagram also includes a conditional render for the StrainDetailsCard component. The diagram uses the state classDef to highlight the D3 component.
Configuration menu - View commit details
-
Copy full SHA for d86c0d6 - Browse repository at this point
Copy the full SHA d86c0d6View commit details -
feat(AvailableDisplay.tsx): add AvailableDisplay component
The AvailableDisplay component is added to the project. This component is responsible for displaying the available quantity of an item and allowing the user to add it to the cart. It also handles the logic for updating the quantity and showing a dialog when an item is added to the cart.
Configuration menu - View commit details
-
Copy full SHA for 70571ea - Browse repository at this point
Copy the full SHA 70571eaView commit details -
test(AvailableDisplay.test.tsx): add test for displaying capacity ful…
…l message This commit adds a new test case to the AvailableDisplay component. The test checks if the capacity full message is displayed when the number of items in the cart reaches the maximum limit of 12. The test sets up the initial state of the cart with 10 items and a maximum limit of 12. It then simulates adding 2 more items to the cart and verifies that the capacity full message is rendered on the screen.
Configuration menu - View commit details
-
Copy full SHA for da209f8 - Browse repository at this point
Copy the full SHA da209f8View commit details -
feat(state.ts): add support for adding items to the cart and checking…
… if the cart is full - Import the `Scalars` type from "dicty-graphql-schema" to be used later. - Import the `pipe` function from "fp-ts/function" and the `partitionMap` and `reduce` functions from "fp-ts/Array". - Import the `left` and `right` functions from "fp-ts/Either". - Add a `maxItems` property to the `Cart` type to keep track of the maximum number of items allowed in the cart. - Initialize the `maxItems` property to 12 in the `initialCart` object. - Create a new atom `maxItemsAtom` to get the value of `maxItems` from the `cartAtom`. - Create a new atom `isFullAtom` to check if the cart is full by comparing the sum of the
Configuration menu - View commit details
-
Copy full SHA for 7db7c95 - Browse repository at this point
Copy the full SHA 7db7c95View commit details -
refactor(state.ts): remove unused import and type declaration
The import statement for the unused `Scalars` type from "dicty-graphql-schema" has been removed. This improves code readability and eliminates unnecessary dependencies.
Configuration menu - View commit details
-
Copy full SHA for a4097d1 - Browse repository at this point
Copy the full SHA a4097d1View commit details -
feat(testData.ts): move test data for UI component
This commit moves the file `testData.ts` to the /mocks folder. The file contains an array of test items that will be used for testing purposes in the UI component. The test items include an ID, summary, label, quantity, and fee.
Configuration menu - View commit details
-
Copy full SHA for 681b17a - Browse repository at this point
Copy the full SHA 681b17aView commit details -
feat(ui-dsc): move OutlinedDropdown component
The OutlinedDropdown component is moved from the /src/common folder to the /src folder. This component provides an outlined dropdown box that displays a list of given values. It accepts properties such as handleChange (a function called when selecting a dropdown option), dropdownValues (an array of values to display in the dropdown), inputValue (the initial value for the dropdown), and label (the input label). The component uses Material-UI components such as FormControl, InputLabel, OutlinedInput, MenuItem, and Select to create the dropdown functionality.
Configuration menu - View commit details
-
Copy full SHA for c2abc2e - Browse repository at this point
Copy the full SHA c2abc2eView commit details -
chore(CartTotalCard.test.tsx): update import path for testItems
The import path for testItems has been updated to reflect the new location in the mocks folder. This change ensures that the test is using the correct data for testing the CartTotalCard component.
Configuration menu - View commit details
-
Copy full SHA for 1ed750b - Browse repository at this point
Copy the full SHA 1ed750bView commit details -
fix(OutlinedDropdown.test.tsx): fix import path for OutlinedDropdown …
…component The import path for the OutlinedDropdown component was incorrect. It has been fixed to import from the correct location "../OutlinedDropdown" instead of "../common/OutlinedDropdown". This ensures that the correct component is imported and used in the test file.
Configuration menu - View commit details
-
Copy full SHA for aa3515b - Browse repository at this point
Copy the full SHA aa3515bView commit details -
feat(ui-dsc): add new components OutlinedDropdown, SecondaryButton, a…
…nd AddToCartDialog The commit adds three new components to the ui-dsc package: OutlinedDropdown, SecondaryButton, and AddToCartDialog. These components provide additional functionality and options for the UI.
Configuration menu - View commit details
-
Copy full SHA for 04b1d80 - Browse repository at this point
Copy the full SHA 04b1d80View commit details -
feat(ui-dsc): add StrainDetailsCardHeader component
The StrainDetailsCardHeader component is added to the catalog directory in the ui-dsc package. This component is responsible for displaying the header at the top of the card on the strain details page. It includes tabs for switching between strain details and phenotypes, as well as displaying the availability of the strain and the number of phenotypes.
Configuration menu - View commit details
-
Copy full SHA for 86e2e24 - Browse repository at this point
Copy the full SHA 86e2e24View commit details -
test(StrainDetailsCardHeader.test.tsx): add unit tests for StrainDeta…
…ilsCardHeader component This commit adds unit tests for the StrainDetailsCardHeader component. The tests ensure that the component renders the expected tabs and that the handleChange function is called when a tab is clicked.
Configuration menu - View commit details
-
Copy full SHA for e681ba6 - Browse repository at this point
Copy the full SHA e681ba6View commit details -
test(useGenotypes): add test for separating drug resistances and non-…
…drug resistances This test verifies that the useGenotypes hook correctly separates drug resistances and non-drug resistances from a given list of genotypes. The genotypes string contains a combination of drug resistances and non-drug resistances. The test checks if the hook correctly separates the drug resistances into one array and the non-drug resistances into another array.
Configuration menu - View commit details
-
Copy full SHA for 56fe91c - Browse repository at this point
Copy the full SHA 56fe91cView commit details -
feat(ui-dsc): add TabPanel component to catalog
The TabPanel component is a simple wrapper for content inside of tab panels. It takes in the following properties: children (any content inside the tab panel), value (tab value), and index (index of the tab selected). The component is used to display the content of a specific tab based on the selected index.
Configuration menu - View commit details
-
Copy full SHA for b1a3f89 - Browse repository at this point
Copy the full SHA b1a3f89View commit details -
test(ui-dsc): add unit test for TabPanel component
A new unit test has been added for the TabPanel component in the ui-dsc package. The test ensures that the component renders the correct text content. This test helps to verify the correctness of the TabPanel component and ensures that it behaves as expected.
Configuration menu - View commit details
-
Copy full SHA for cb94c04 - Browse repository at this point
Copy the full SHA cb94c04View commit details -
feat(ui-dsc): add getDepositorName utility function
The getDepositorName utility function is added to the ui-dsc package. This function takes a Depositor object as input and returns a string representing the depositor's name. It concatenates the first name and last name if both are provided, otherwise it returns an empty string. This utility function can be used to display the depositor's name in the user interface.
Configuration menu - View commit details
-
Copy full SHA for c1af4d4 - Browse repository at this point
Copy the full SHA c1af4d4View commit details -
test(getDepositorName): add unit tests for getDepositorName function
This commit adds unit tests for the getDepositorName function in the utils/getDepositorName file. The tests ensure that the function correctly returns the full name of a depositor when provided with a valid depositor object, and an empty string when provided with an empty object.
Configuration menu - View commit details
-
Copy full SHA for 72a72d3 - Browse repository at this point
Copy the full SHA 72a72d3View commit details -
feat(ui-dsc): add StrainDetailsCard component
The StrainDetailsCard component is added to the catalog in the ui-dsc package. This component is responsible for displaying detailed information about a strain, including its descriptor, names, summary, systematic name, characteristics, genetic modification, mutagenesis method, parental strain, plasmid, associated genes, genotype, species, depositor, and references. It also includes tabs for displaying phenotype information and a header with additional functionality such as adding the strain to a cart.
Configuration menu - View commit details
-
Copy full SHA for 74282b7 - Browse repository at this point
Copy the full SHA 74282b7View commit details -
feat(ui-dsc): add StrainDetailsContainer component
The StrainDetailsContainer component is responsible for rendering the details page for an individual strain. It fetches the necessary data using the useStrainQuery hook from the dicty-graphql-schema package. The component handles loading and error states, and renders the appropriate components based on the data received. It also sets the page title and meta description using the Helmet component from react-helmet.
Configuration menu - View commit details
-
Copy full SHA for 87a67ec - Browse repository at this point
Copy the full SHA 87a67ecView commit details -
feat(types.ts): add DetailsRow type
The DetailsRow type is added to the types.ts file. It represents a row of details with properties for the ID, title, and content. This type will be used to display additional information in a row format.
Configuration menu - View commit details
-
Copy full SHA for ca5c906 - Browse repository at this point
Copy the full SHA ca5c906View commit details -
feat(StrainDetailsCardHeader.tsx): update cartData prop type and remo…
…ve Availability component The unused import and component "Availability" have been removed from StrainDetailsCardHeader.tsx. The cartData prop type has been updated to exclude the "quantity" property. The Availability component has been removed as it is no longer needed.
Configuration menu - View commit details
-
Copy full SHA for b1e49b0 - Browse repository at this point
Copy the full SHA b1e49b0View commit details -
feat(frontpage-components): export individual components from index.ts
The index.ts file in the frontpage-components package now exports individual components instead of exporting them as default. This change allows consumers of the package to import specific components directly, improving code readability and reducing the need for unnecessary imports.
Configuration menu - View commit details
-
Copy full SHA for 88a7d9a - Browse repository at this point
Copy the full SHA 88a7d9aView commit details -
chore(ui-dsc): simplify tsconfig.json file
The "include" and "exclude" properties in the tsconfig.json file have been simplified to remove unnecessary line breaks and indentation. This improves readability and reduces the file size.
Configuration menu - View commit details
-
Copy full SHA for 0fd1bd8 - Browse repository at this point
Copy the full SHA 0fd1bd8View commit details -
test(StrainDetailsContainer.test.tsx): add unit test for StrainDetail…
…sContainer component The new unit test verifies that the StrainDetailsContainer component displays the expected data. It uses the MockedProvider from @apollo/client/testing to mock the GraphQL query and provide a result. The test renders the component with the necessary mocks and asserts that the loading skeleton is initially displayed. It then waits for the data to load and asserts that the strain label and depositor information are rendered correctly.
Configuration menu - View commit details
-
Copy full SHA for 73d51da - Browse repository at this point
Copy the full SHA 73d51daView commit details
Commits on Aug 7, 2023
-
chore(diagrams): add CatalogAppBar.png, StrainCatalogContainer.png, a…
…nd VIrtualizedList.png diagrams The commit adds three new diagrams: CatalogAppBar.png, StrainCatalogContainer.png, and VIrtualizedList.png. These diagrams are important for documenting and visualizing the stock center application.
Configuration menu - View commit details
-
Copy full SHA for acea474 - Browse repository at this point
Copy the full SHA acea474View commit details
Commits on Aug 8, 2023
-
refactor(strains.tsx): replace useQuery with useStrainListQuery from …
…dicty-graphql-schema The useQuery hook from @apollo/client has been replaced with the useStrainListQuery hook from dicty-graphql-schema. This change ensures compatibility with the latest version of the GraphQL schema and improves code maintainability.
Configuration menu - View commit details
-
Copy full SHA for 8f0c9d4 - Browse repository at this point
Copy the full SHA 8f0c9d4View commit details
Commits on Aug 9, 2023
-
refactor(strains.tsx): remove commented out code for unused query
The commented out code for the `useQuery` hook is removed as it is not being used and is unnecessary clutter in the codebase.
Configuration menu - View commit details
-
Copy full SHA for 133cfd0 - Browse repository at this point
Copy the full SHA 133cfd0View commit details -
feat(listStrainData.ts): add mock data generator for list strain data
The `listStrainData.ts` file is a new addition to the project. It introduces a mock data generator for generating random strain data. The `generateRandomData` function generates a random strain object with properties like `id`, `label`, `summary`, and `stock`. The `generateListStrainDataOfLength` function generates an array of random strain data of a specified length using the `generateRandomData` function. This mock data generator will be used for testing and development purposes.
Configuration menu - View commit details
-
Copy full SHA for 5b0d028 - Browse repository at this point
Copy the full SHA 5b0d028View commit details -
feat(server.js): add server.js file for the stock-center app with bas…
…ic setup and mock data The server.js file is added to the stock-center app. It sets up an Express server with basic middleware such as body-parser for JSON parsing. It also generates mock strain data and sets up a GraphQL endpoint. The server listens on port 3003 and logs a message when it starts. The ViteExpress library is used to bind the server to the app.
Configuration menu - View commit details
-
Copy full SHA for bd0f90a - Browse repository at this point
Copy the full SHA bd0f90aView commit details -
chore(diagrams): remove CatalogAppBar.png, StrainCatalogContainer.png…
…, and VIrtualizedList.png The files CatalogAppBar.png, StrainCatalogContainer.png, and VIrtualizedList.png have been deleted. These files were no longer needed and were removed to declutter the project directory.
Configuration menu - View commit details
-
Copy full SHA for 2cac5ad - Browse repository at this point
Copy the full SHA 2cac5adView commit details -
chore(stock-center): add "type" field to package.json to specify modu…
…le type feat(stock-center): add "serve" script to package.json to run the server.js file The "type" field is added to the package.json file with the value "module" to indicate that the project is using ECMAScript modules. This allows the project to use modern JavaScript features. The "serve" script is added to the package.json file to run the server.js file, which is responsible for serving the application.
Configuration menu - View commit details
-
Copy full SHA for e49ead0 - Browse repository at this point
Copy the full SHA e49ead0View commit details -
refactor(server.js): reorganize imports and update code formatting fo…
…r better readability feat(server.js): add Apollo Server for GraphQL support and define type definitions and resolvers The imports in the server.js file have been reorganized to improve readability and maintainability. The code formatting has also been updated for consistency. Additionally, Apollo Server has been added to enable GraphQL support. Type definitions and resolvers have been defined for the GraphQL schema.
Configuration menu - View commit details
-
Copy full SHA for 5614a65 - Browse repository at this point
Copy the full SHA 5614a65View commit details -
style(ui-dsc): add hover effect and responsive font size to table row…
…s in CatalogTableDisplay component The CatalogTableDisplay component now applies a hover effect to table rows, changing the background color and adding a box shadow on hover. Additionally, the font size of the table rows is now responsive, reducing in size on screens with a maximum width of 1024px.
Configuration menu - View commit details
-
Copy full SHA for e7ad62f - Browse repository at this point
Copy the full SHA e7ad62fView commit details -
feat(listStrainData.js): add mock data generator for list strain data
The `listStrainData.js` file now contains a function `generateListStrainDataOfLength` that generates mock data for a list of strains. Each strain object includes an `id`, `label`, `summary`, and `inStock` property. This generator function can be used to populate the list of strains in the application for testing or development purposes.
Configuration menu - View commit details
-
Copy full SHA for 366a7f1 - Browse repository at this point
Copy the full SHA 366a7f1View commit details -
chore(server.js): remove unused server.js file from the stock-center app
The server.js file in the stock-center app has been removed as it is no longer needed. This file was not being used and was taking up unnecessary space in the codebase.
Configuration menu - View commit details
-
Copy full SHA for f337df6 - Browse repository at this point
Copy the full SHA f337df6View commit details -
chore(stock-center): remove unused dependencies from package.json
The dependencies "@apollo/server", "cors", and "graphql" are no longer used in the stock-center application. Removing these dependencies helps to reduce the size of the application and improve maintainability.
Configuration menu - View commit details
-
Copy full SHA for bdab524 - Browse repository at this point
Copy the full SHA bdab524View commit details -
fix(types.ts): rename StrainItem to StrainCartItem for consistency an…
…d clarity The changes were made to update the import statements and type names to match the updated type name "StrainCartItem". This improves consistency and clarity in the codebase.
Configuration menu - View commit details
-
Copy full SHA for a7b5d6b - Browse repository at this point
Copy the full SHA a7b5d6bView commit details -
refactor(types.ts): define StrainItem type without PurchaseProperties
A separate type for StrainItem without the PurchaseProperties has been defined to be used where the data of the strain is used but the quantity and fee is unnecessary, such as in the CatalogTableDisplay
Configuration menu - View commit details
-
Copy full SHA for ff3c02b - Browse repository at this point
Copy the full SHA ff3c02bView commit details -
feat(CatalogTableDisplay.tsx): Add support for abbreviating strings a…
…nd handling optional values using fp-ts library refactor(CatalogTableDisplay.tsx): Refactor cellFunction to use pipe and fp-ts functions for better readability and maintainability The changes in this commit introduce support for abbreviating strings and handling optional values in the CatalogTableDisplay component. The abbreviateStringToLength function is added to abbreviate strings to a specified length. The cellFunction is refactored to use the pipe function from fp-ts and the fromNullable and getOrElse functions to handle optional values in a more functional and readable way. These changes improve the code's readability, maintainability, and make it more robust when dealing with optional values.
Configuration menu - View commit details
-
Copy full SHA for d05f718 - Browse repository at this point
Copy the full SHA d05f718View commit details -
refactor(CatalogTableDisplay.tsx): remove unused lastIndex variable a…
…nd update rowFunction to use strains.length instead The lastIndex variable was unnecessary, so it was removed. The rowFunction was updated to use strains.length instead of the lastIndex variable to determine if it is the last item. Additionally, the function name abbreviateString changed to a curried function called abbreviateStringToLength so that it could be used in a pipe.
Configuration menu - View commit details
-
Copy full SHA for a5a8e88 - Browse repository at this point
Copy the full SHA a5a8e88View commit details -
feat(ui-dsc): add unit tests for CatalogTableDisplay component and re…
…lated functions The commit adds unit tests for the CatalogTableDisplay component and its related functions: abbreviateStringToLength, cellFunction, rowFunction, and CatalogTableHeader. These tests ensure that the component and functions render the expected elements and behave correctly.
Configuration menu - View commit details
-
Copy full SHA for 0a30f35 - Browse repository at this point
Copy the full SHA 0a30f35View commit details -
test(CatalogTableDisplay): remove unused import CatalogTableDisplay
The import statement for CatalogTableDisplay is removed as it is not being used in the test file. This improves code cleanliness and removes unnecessary dependencies.
Configuration menu - View commit details
-
Copy full SHA for 3378e3d - Browse repository at this point
Copy the full SHA 3378e3dView commit details
Commits on Aug 10, 2023
-
test(CatalogTableDisplay.test.tsx): add tests for navigating to strai…
…n details page when cell label is clicked The tests were added to ensure that when the cell label is clicked, the browser navigates to the strain details page. This was achieved by rendering the necessary components and simulating a click event on the cell label. The expected behavior is that the "Strain Details" text is displayed on the page.
Configuration menu - View commit details
-
Copy full SHA for 7ddd3a7 - Browse repository at this point
Copy the full SHA 7ddd3a7View commit details -
feat(ui-dsc): add link to strain details page in CatalogTableDisplay …
…component The CatalogTableDisplay component now includes a Link component from react-router-dom to create a link to the strain details page. This allows users to click on a strain label and navigate to the corresponding strain details page for more information.
Configuration menu - View commit details
-
Copy full SHA for 9ba0210 - Browse repository at this point
Copy the full SHA 9ba0210View commit details -
feat(listStrainData.ts): add mock data generator for list strain data
The `listStrainData.ts` file now includes a function `generateListStrainDataOfLength` that generates mock data for a list of strains. The function `generateListStrainDataOfLength` takes a length parameter and returns an array of mock strain data objects. Each object includes properties such as `id`, `label`, `summary`, and `inStock`. This mock data generator will be useful for testing and development purposes.
Configuration menu - View commit details
-
Copy full SHA for 2fe75cb - Browse repository at this point
Copy the full SHA 2fe75cbView commit details -
feat(handlers.ts): add mock handlers for strain list query
The handlers.ts file is added to the mocks directory in the stock-center app. It contains a mock handler for the strain list query. The handler generates mock data for the list of strains and responds with the appropriate data structure including the strains, nextCursor, and totalCount. This allows for testing and development of the strain list functionality without relying on the actual backend API.
Configuration menu - View commit details
-
Copy full SHA for 8c87bcf - Browse repository at this point
Copy the full SHA 8c87bcfView commit details -
feat(stock-center): add browser mock for testing purposes
A new file `browser.ts` has been added to the `mocks` directory in the `stock-center` app. This file sets up a Service Worker using the `msw` library and exports it as a default export. This browser mock is intended for testing purposes and allows for mocking API requests and responses in the browser environment.
Configuration menu - View commit details
-
Copy full SHA for f0d34cc - Browse repository at this point
Copy the full SHA f0d34ccView commit details -
feat(main.tsx): add support for mock environment in development mode
The main.tsx file now includes support for a mock environment when running the application in development mode. If the VITE_APP_DEPLOY_ENV environment variable is set to "mock", the application will import and start a mock worker before rendering the main App component. This allows developers to easily test and simulate different scenarios during development.
Configuration menu - View commit details
-
Copy full SHA for 38c2a57 - Browse repository at this point
Copy the full SHA 38c2a57View commit details -
feat(mockServiceWorker.js): add mock service worker file for handling…
… requests and mocking responses The mockServiceWorker.js file is added to the public directory of the stock-center app. This file contains the implementation of a mock service worker that intercepts requests made by the client and allows for mocking responses. It also handles communication with the client and provides functionality for activating and deactivating the mocking behavior. This file is intended for development purposes only and should not be served in production.
Configuration menu - View commit details
-
Copy full SHA for c8b19de - Browse repository at this point
Copy the full SHA c8b19deView commit details -
chore(stock-center): add "mock" script and "msw" dependency to enable…
… mocking API responses The "mock" script has been added to the package.json file, which allows running the application in mock mode. This mode utilizes the "dev" script with the "--mode mock" flag. Additionally, the "msw" dependency has been added to enable mocking API responses. The "msw" configuration has been set to use the "public" directory as the worker directory.
Configuration menu - View commit details
-
Copy full SHA for 0420576 - Browse repository at this point
Copy the full SHA 0420576View commit details -
chore(stock-center): add .env.mock file for mocking deployment enviro…
…nment A new file named .env.mock has been added to the stock-center app. This file contains a single environment variable VITE_APP_DEPLOY_ENV with the value 'mock'. This file is used for mocking the deployment environment during development and testing.
Configuration menu - View commit details
-
Copy full SHA for a245365 - Browse repository at this point
Copy the full SHA a245365View commit details -
feat(stock-center): add StrainCatalog.png diagram
A new file named StrainCatalog.png has been added to the stock-center application's diagrams folder. This diagram provides visual representation of the strain catalog.
Configuration menu - View commit details
-
Copy full SHA for 73d8e37 - Browse repository at this point
Copy the full SHA 73d8e37View commit details -
feat(strains/[id].tsx): add new file for displaying strain details
A new file, [id].tsx, has been added to the strains directory. This file imports the StrainDetailsContainer component from the @dictybase/ui-dsc package and exports it as the default component for displaying strain details. This addition allows for the implementation of a page that shows detailed information about a specific strain.
Configuration menu - View commit details
-
Copy full SHA for 396cf98 - Browse repository at this point
Copy the full SHA 396cf98View commit details -
feat(strains): add StrainCatalog page component
The StrainCatalog component is added to the strains page. This component is responsible for displaying a catalog of strains. It uses various hooks and components from the @dictybase/hook-dsc, @dictybase/ui-dsc, and dicty-graphql-schema packages to handle filtering, searching, loading, and displaying the strain catalog. The component also uses the react-router-dom package to handle search parameters in the URL.
Configuration menu - View commit details
-
Copy full SHA for 973cf6a - Browse repository at this point
Copy the full SHA 973cf6aView commit details -
refactor(Editor.tsx): rename imported Toolbar component to DictybaseT…
…oolbar for clarity and consistency The imported Toolbar component has been renamed to DictybaseToolbar to improve clarity and maintain consistency with the naming conventions used in the project.
Configuration menu - View commit details
-
Copy full SHA for b9bab84 - Browse repository at this point
Copy the full SHA b9bab84View commit details -
fix(CatalogTableDisplay.tsx): fix link path to strains/{item.id} inst…
…ead of strain/{item.id} The link path in the CatalogTableDisplay component has been corrected to `/strains/${item.id}` instead of `strain/${item.id}` to ensure that the link points to the correct route.
Configuration menu - View commit details
-
Copy full SHA for 77c3bb9 - Browse repository at this point
Copy the full SHA 77c3bb9View commit details -
feat(ui-dsc): add StrainDetailsContainer component to the UI library
The StrainDetailsContainer component is added to the UI library. This component will be used to display detailed information about a specific strain in the catalog.
Configuration menu - View commit details
-
Copy full SHA for 2f5009c - Browse repository at this point
Copy the full SHA 2f5009cView commit details -
refactor(state.ts): extract currentCartQuantityAtom to improve code r…
…eadability and reusability The currentCartQuantityAtom is extracted to improve code readability and reusability. It calculates the total quantity of items in the cart by summing up the quantity of each item in the strainItemsAtom. This extracted atom can now be used in other parts of the codebase where the current cart quantity is needed.
Configuration menu - View commit details
-
Copy full SHA for 741ac01 - Browse repository at this point
Copy the full SHA 741ac01View commit details -
feat(AddToCartControl.tsx): add AddToCartControl component
The AddToCartControl component is added to the project. It provides a button that allows users to add items to the cart. The component uses the SecondaryButton component from the @dictybase/ui-dsc library. It also utilizes state atoms from the project's state management system (jotai) to handle adding items to the cart and tracking the current cart quantity.
Configuration menu - View commit details
-
Copy full SHA for f3391ce - Browse repository at this point
Copy the full SHA f3391ceView commit details -
feat(CatalogTableDisplay.tsx): add AddToCartControl component to Cata…
…logTableDisplay fix(CatalogTableDisplay.tsx): import OutlinedDropdown component correctly The CatalogTableDisplay component now includes the AddToCartControl component, which allows users to add items to their cart directly from the table. Additionally, the import statement for the OutlinedDropdown component has been fixed to ensure it is imported correctly.
Configuration menu - View commit details
-
Copy full SHA for 5f8cc1f - Browse repository at this point
Copy the full SHA 5f8cc1fView commit details
Commits on Aug 11, 2023
-
feat(UnavailableButton.tsx): add UnavailableButton component to displ…
…ay a disabled button with a tooltip when an item is not in stock The UnavailableButton component is added to the catalog directory. This component is used to display a disabled button with a tooltip when an item is not in stock. It uses Material-UI's IconButton and Tooltip components, as well as FontAwesomeIcon for the cart and slash icons. The button is disabled and has a default color. The size of the icon and the title for the tooltip can be customized through props.
Configuration menu - View commit details
-
Copy full SHA for 6e32ac6 - Browse repository at this point
Copy the full SHA 6e32ac6View commit details -
refactor(AddToCartDialogContent.tsx): change import and type declarat…
…ion to improve code readability and maintainability The import statement for the `CartItem` type has been changed to `StrainItem` to better reflect the purpose of the type. The type declaration for the `data` prop has also been updated to use the `StrainItem` type instead of the previous inline type declaration. These changes improve code readability and maintainability by using more descriptive names and reducing duplication.
Configuration menu - View commit details
-
Copy full SHA for b6cb9eb - Browse repository at this point
Copy the full SHA b6cb9ebView commit details -
refactor(AddToCartDialog.tsx): rename CartItem type to StrainItem for…
… better clarity and consistency The CartItem type has been renamed to StrainItem to provide better clarity and consistency with the naming conventions used in the codebase. This change improves the readability and maintainability of the code.
Configuration menu - View commit details
-
Copy full SHA for e87614d - Browse repository at this point
Copy the full SHA e87614dView commit details -
fix(OutlinedDropdown.tsx): change the type of the handleChange parame…
…ter from React.ChangeEvent<{ value: unknown }> to React.ChangeEvent<HTMLInputElement> to match the actual event type The handleChange function in the OutlinedDropdown component now correctly accepts an event of type React.ChangeEvent<HTMLInputElement> instead of React.ChangeEvent<{ value: unknown }>. This ensures that the event parameter matches the actual event type being passed to the function.
Configuration menu - View commit details
-
Copy full SHA for e307251 - Browse repository at this point
Copy the full SHA e307251View commit details -
feat(ui-dsc): add UnavailableButton component to the catalog module
The UnavailableButton component is added to the catalog module in order to provide a button component that represents an unavailable item in the catalog. This allows for a consistent user interface when displaying unavailable items in the catalog.
Configuration menu - View commit details
-
Copy full SHA for 9b3aa75 - Browse repository at this point
Copy the full SHA 9b3aa75View commit details -
refactor(App.tsx): remove unused imports and state related to the sho…
…pping cart feature The imports and state related to the shopping cart feature have been removed as they are no longer needed. This improves the codebase by removing unnecessary dependencies and reducing complexity.
Configuration menu - View commit details
-
Copy full SHA for c9742c3 - Browse repository at this point
Copy the full SHA c9742c3View commit details -
refactor(state.ts): remove unnecessary PurchaseProperties type from S…
…trainItem type refactor(state.ts): change StrainItem type to include PurchaseProperties to improve clarity refactor(state.ts): change addItemAtom to accept StrainCartItem instead of StrainItem for consistency refactor(state.ts): change cartItems type in OrderState to use StrainCartItem instead of StrainItem for consistency The PurchaseProperties type is no longer needed in the StrainItem type as it is not being used. The StrainItem type is updated to include the PurchaseProperties type to improve clarity and consistency. The addItemAtom is refactored to accept StrainCartItem instead of StrainItem for consistency. The cartItems type in the OrderState is changed to use StrainCartItem instead of StrainItem for consistency.
Configuration menu - View commit details
-
Copy full SHA for 3a2c14a - Browse repository at this point
Copy the full SHA 3a2c14aView commit details -
feat(AddQuantityToCart.tsx): add AddToCartControl component
The AddQuantityToCart.tsx file is a new file that adds the AddToCartControl component. This component provides functionality to add items to a cart. It includes a dropdown to select the quantity and a button to add the selected quantity to the cart. The component uses state management with Jotai to handle the selected quantity and manage the maximum number of items that can be added to the cart.
Configuration menu - View commit details
-
Copy full SHA for 1c1feff - Browse repository at this point
Copy the full SHA 1c1feffView commit details -
feat(AddToCartButton.tsx): add AddToCartButton component
The AddToCartButton component is added to the project. This component is used to display a button that allows users to add items to their shopping cart. It utilizes Material-UI and other custom components to provide a seamless user experience. The component accepts various props to customize its behavior and appearance.
Configuration menu - View commit details
-
Copy full SHA for d98de64 - Browse repository at this point
Copy the full SHA d98de64View commit details -
fix(AvailableDisplay.tsx): change type import from StrainItem to Stra…
…inCartItem to match the correct type fix(AvailableDisplay.tsx): change event parameter type from React.ChangeEvent<{ value: unknown }> to React.ChangeEvent<HTMLInputElement> to match the correct event type The type import for the CartItem has been corrected to match the correct type, which is StrainCartItem. The event parameter type in the handleChange function has been changed to React.ChangeEvent<HTMLInputElement> to match the correct event type. These changes ensure that the code is using the correct types and improves code clarity.
Configuration menu - View commit details
-
Copy full SHA for c236224 - Browse repository at this point
Copy the full SHA c236224View commit details -
fix(SubmitButton.tsx): change type name from StrainItem to StrainCart…
…Item for consistency The type name StrainItem has been changed to StrainCartItem to maintain consistency with the naming conventions used in the codebase. This change ensures that the type name accurately reflects the purpose and usage of the type.
Configuration menu - View commit details
-
Copy full SHA for b964963 - Browse repository at this point
Copy the full SHA b964963View commit details -
refactor(CatalogTableDisplay.tsx): Refactor CatalogTableDisplay
- Rename `AddToCartControl` component to `AddToCartButton` for better naming consistency. - Import `Strain` and `StrainCartItem` types from the correct modules. - Remove unused styles and hover effect on table rows. - Add "Add to Cart" column header to the table. - Refactor the `cellFunction` to use the new `StockItemCell` component and pass the necessary props. - Update the `rowFunction` to use the `StockItemCell` component and pass the correct props. - Remove unused exports. The changes were made to improve code readability and maintainability. The renaming of the component and types provides clearer semantics. Removing unused styles and hover effect simplifies the code. Adding the "Add to Cart" column header improves the table's clarity. Refactoring the `cellFunction` and `rowFunction` improves code organization and reusability.
Configuration menu - View commit details
-
Copy full SHA for 4845882 - Browse repository at this point
Copy the full SHA 4845882View commit details -
feat(AddToCartButtonHandler.tsx): add AddToCartButtonHandler component
The AddToCartButtonHandler component is added to handle the logic for displaying the AddToCartButton component. It uses the `isFullAtom` atom from the `jotai` library to determine if the cart is full or not.
Configuration menu - View commit details
-
Copy full SHA for f32acca - Browse repository at this point
Copy the full SHA f32accaView commit details -
refactor(CartList.tsx): rename StrainItem type to StrainCartItem for …
…better clarity and consistency The type StrainItem has been renamed to StrainCartItem to provide better clarity and consistency in the codebase. This change improves the understanding of the purpose of the type and ensures consistency with other naming conventions in the project.
Configuration menu - View commit details
-
Copy full SHA for 5fc1250 - Browse repository at this point
Copy the full SHA 5fc1250View commit details -
chore(AddToCartControl.tsx): remove unused AddToCartControl component
The AddToCartControl component was not being used in the application and was therefore removed to improve code cleanliness and reduce unnecessary code.
Configuration menu - View commit details
-
Copy full SHA for 6207a94 - Browse repository at this point
Copy the full SHA 6207a94View commit details -
refactor(UnavailableButton.tsx): replace FontAwesomeIcon with RemoveS…
…hoppingCartIcon from Material-UI The FontAwesomeIcon component is replaced with the RemoveShoppingCartIcon component from Material-UI. This change improves consistency within the codebase and reduces the number of external dependencies.
Configuration menu - View commit details
-
Copy full SHA for e33cfac - Browse repository at this point
Copy the full SHA e33cfacView commit details -
refactor(AddToCartButton.tsx): refactor AddToCartButton property type…
…s and handleClick - Import AddShoppingCartIcon from @material-ui/icons instead of FontAwesomeIcon to improve consistency and reduce dependencies. - Remove unused imports and variables. - Update the type of the 'data' prop to match the expected shape of the Strain object. - Modify the handleClick function to add each item to the cart with a quantity of 1 and a fee of fees.STRAIN_FEE. - Update the title and aria-label of the IconButton to improve accessibility. - Replace the FontAwesomeIcon with the AddShoppingCartIcon component. The changes were made to improve code readability, remove unused code, and improve accessibility by using appropriate icons and labels.
Configuration menu - View commit details
-
Copy full SHA for 469fa15 - Browse repository at this point
Copy the full SHA 469fa15View commit details -
refactor(AddToCartButtonHandler.tsx): refactor AddToCartButtonHandler…
… component to use ts-pattern for better readability and maintainability feat(AddToCartButtonHandler.tsx): add support for displaying an "Item is currently unavailable" message when inStock is false feat(AddToCartButtonHandler.tsx): add support for displaying a "Shopping cart is full" message when isFull is true The AddToCartButtonHandler component has been refactored to use ts-pattern, which improves the readability and maintainability of the code. It now uses pattern matching to determine which message to display based on the values of inStock and isFull. If inStock is false, an "Item is currently unavailable" message is displayed. If isFull is true, a "Shopping cart is full" message is displayed. Otherwise, the AddToCartButton component is rendered.
Configuration menu - View commit details
-
Copy full SHA for 72d6748 - Browse repository at this point
Copy the full SHA 72d6748View commit details -
feat(ui-dsc): add export for "fees" module in index.ts
The "fees" module was added to the list of exports in the index.ts file of the ui-dsc package. This allows other modules to import and use the "fees" module directly from the package.
Configuration menu - View commit details
-
Copy full SHA for 92599c6 - Browse repository at this point
Copy the full SHA 92599c6View commit details -
refactor(AddToCartButtonHandler.tsx): remove unused import and update…
… type of 'item' prop The import statement for 'useAtom' from 'jotai' is removed as it is no longer used in the component. The type of the 'item' prop is updated to only include the necessary properties from the 'Strain' type, namely 'id', 'label', 'summary', and 'inStock'. This improves the code by removing unnecessary dependencies and narrowing down the type of the prop to only what is needed.
Configuration menu - View commit details
-
Copy full SHA for 1097cf1 - Browse repository at this point
Copy the full SHA 1097cf1View commit details -
refactor(CatalogTableDisplay.tsx): refactor CatalogTableDisplay
The changes were made to improve code readability and maintainability. The component and variable names were updated for clarity and consistency. Unused imports and type declarations were removed. Unnecessary code fragments were simplified.
Configuration menu - View commit details
-
Copy full SHA for 126e9d3 - Browse repository at this point
Copy the full SHA 126e9d3View commit details -
style(CatalogTableDisplay.tsx): add styling to list headers in Catalo…
…gTableHeader component The list headers in the CatalogTableHeader component now have a bottom border, a background color, a specific font color, and a font weight of 600. Additionally, a media query has been added to reduce the font size to 0.85rem when the screen width is less than or equal to 1024px. This styling improves the visual appearance and readability of the list headers.
Configuration menu - View commit details
-
Copy full SHA for a678423 - Browse repository at this point
Copy the full SHA a678423View commit details -
fix(SearchBox.tsx): correct typo in defaultLabel variable to fix spel…
…ling error The defaultLabel variable was misspelled as "serach" instead of "search". This commit corrects the typo to fix the spelling error.
Configuration menu - View commit details
-
Copy full SHA for 83016ec - Browse repository at this point
Copy the full SHA 83016ecView commit details -
fix(components): rename addItemAtom to addItemsAtom for consistency
The `addItemAtom` variable has been renamed to `addItemsAtom` in multiple components to improve consistency and clarity in the codebase. This change ensures that the naming convention is consistent across all components and avoids confusion when working with the state management.
Configuration menu - View commit details
-
Copy full SHA for 1092ca1 - Browse repository at this point
Copy the full SHA 1092ca1View commit details -
fix(state.ts): Remove quantity property from PurchaseProperties type
The increaseQuantityIfPresent function is no longer needed as the logic can be simplified. The quantity property is removed from the PurchaseProperties type as it is not being used. The addItemAtom logic is simplified to directly add the newItem to the strainItemsAtom state and limit the number of items in the cart based on the maxItemsAtom state. The addItemsAtom is introduced to handle adding multiple items to the cart at once.
Configuration menu - View commit details
-
Copy full SHA for 48c0b89 - Browse repository at this point
Copy the full SHA 48c0b89View commit details
Commits on Aug 14, 2023
-
fix(state.ts): change parameter name from newItem to newItems in addI…
…temsAtom to improve clarity and consistency The parameter name in the addItemsAtom function has been changed from newItem to newItems to better reflect that it accepts an array of StrainCartItem objects. This change improves clarity and consistency with the rest of the codebase.
Configuration menu - View commit details
-
Copy full SHA for 6c80bc6 - Browse repository at this point
Copy the full SHA 6c80bc6View commit details -
refactor(AddToCartButton.tsx): refactor handleClick to use functional…
… programming handleClick was refactored to use functional progamming to transform the StrainItem data to concat a fee property and add the items to the cart.
Configuration menu - View commit details
-
Copy full SHA for ef65a31 - Browse repository at this point
Copy the full SHA ef65a31View commit details -
feat(RemoveFromCartButton.tsx): add RemoveFromCartButton component
The RemoveFromCartButton component is added to the project. This component is used for rendering an icon button that allows users to remove an item from the cart. It uses Material-UI's IconButton and DeleteIcon components. The component also utilizes Jotai's useSetAtom hook to update the state when the button is clicked.
Configuration menu - View commit details
-
Copy full SHA for 6f7f60d - Browse repository at this point
Copy the full SHA 6f7f60dView commit details -
refactor(AddToCartButtonHandler.tsx): extract logic into a separate h…
…ook for reusability and readability The logic for determining the availability and status of the item in the cart has been extracted into a separate hook called `useStockProperties`. This improves code reusability and readability. Additionally, the component now supports displaying a "Remove from Cart" button when the item is already in the cart, enhancing the user experience.
Configuration menu - View commit details
-
Copy full SHA for 2e78caf - Browse repository at this point
Copy the full SHA 2e78cafView commit details -
chore(eslint-config-custom): add import/no-cycle rule with ignoreExte…
…rnal option set to true The import/no-cycle rule is added to the eslint-config-custom package with the ignoreExternal option set to true. This rule helps to detect and prevent cyclic dependencies between modules, but it is configured to ignore external dependencies.
Configuration menu - View commit details
-
Copy full SHA for 04c09d7 - Browse repository at this point
Copy the full SHA 04c09d7View commit details -
refactor(CatalogTableDisplay.tsx): rename StockItemCell component to …
…cellFunction and update its usage The StockItemCell component has been renamed to cellFunction to improve clarity and consistency with other function names. The component is now used as a function instead of a component, which simplifies its usage and improves code readability.
Configuration menu - View commit details
-
Copy full SHA for c4a5557 - Browse repository at this point
Copy the full SHA c4a5557View commit details -
test(CatalogTableDisplay): fix path in Route component to remove unne…
…cessary curly braces The curly braces in the path attribute of the Route component were unnecessary and have been removed. This change improves the readability and maintainability of the code.
Configuration menu - View commit details
-
Copy full SHA for 7b734a6 - Browse repository at this point
Copy the full SHA 7b734a6View commit details -
refactor(UnavailableButton.tsx): rename Props type to Properties for …
…clarity and consistency The Props type in UnavailableButton.tsx has been renamed to Properties to improve clarity and maintain consistency with other type names in the codebase. This change helps to make the code more readable and understandable.
Configuration menu - View commit details
-
Copy full SHA for 3540eda - Browse repository at this point
Copy the full SHA 3540edaView commit details -
refactor(UnavailableButton.tsx): rename Properties type to Unavailabl…
…eButtonProperties for clarity and consistency The type Properties has been renamed to UnavailableButtonProperties to provide a more descriptive and specific name that accurately reflects its purpose. This improves code readability and maintainability.
Configuration menu - View commit details
-
Copy full SHA for 678b69a - Browse repository at this point
Copy the full SHA 678b69aView commit details -
chore(ui-dsc): update lint script to fix linting issues and run TypeS…
…cript type checking The lint script has been updated to fix linting issues automatically using the --fix flag in the eslint command. Additionally, the script now also runs TypeScript type checking using the tsc command with the --noEmit flag to ensure type correctness. This improves the code quality and catches potential errors early in the development process.
Configuration menu - View commit details
-
Copy full SHA for ffea6ad - Browse repository at this point
Copy the full SHA ffea6adView commit details -
feat(edit.tsx): add new edit page for information
A new edit page for information is added. This page allows users to edit the information using the Editor component from the "editor" library. The page is wrapped in a Container component from Material-UI and rendered inside a Paper component. The InfoPageContainer component is exported as the default export.
Configuration menu - View commit details
-
Copy full SHA for 9630be5 - Browse repository at this point
Copy the full SHA 9630be5View commit details -
chore([name].tsx): reorganize information/:name file structure
Since an additonal route (information/:name/edit) was added to the project, the file structure for the information pages were changed so the :name route is now represented by information/[name]/index.tsx
Configuration menu - View commit details
-
Copy full SHA for c4b3812 - Browse repository at this point
Copy the full SHA c4b3812View commit details -
feat(addpage.tsx): add new page for adding information
A new page called "addpage.tsx" has been added to the "information" directory in the "stock-center" app. This page includes a container component and an editor component from Material-UI. The page is used for adding information and is exported as the default component.
Configuration menu - View commit details
-
Copy full SHA for 2f8a0ce - Browse repository at this point
Copy the full SHA 2f8a0ceView commit details -
chore(StrainCatalog.png): update StrainCatalog.png diagram
The StrainCatalog.png diagram has been updated. The changes in the diagram are not visible in the diff, as it is a binary file.
Configuration menu - View commit details
-
Copy full SHA for 5b8c41c - Browse repository at this point
Copy the full SHA 5b8c41cView commit details -
chore(StrainCatalog.png): update StrainCatalog.png diagram
The StrainCatalog.png diagram has been updated. This commit updates the binary file with the new version of the diagram.
Configuration menu - View commit details
-
Copy full SHA for 896bd17 - Browse repository at this point
Copy the full SHA 896bd17View commit details -
chore(stock-center): add @dictybase/footer and @dictybase/header depe…
…ndencies The package.json file for the stock-center app has been updated to include two new dependencies: @dictybase/footer and @dictybase/header. These dependencies are necessary for the app to function properly and provide the required UI components for the footer and header sections of the app.
Configuration menu - View commit details
-
Copy full SHA for 46fb6e7 - Browse repository at this point
Copy the full SHA 46fb6e7View commit details -
feat(App.tsx): add header and footer components to the app layout
The styles for the main content and body text have been added to improve the visual appearance of the app. The header and footer components have been included to provide consistent navigation and branding throughout the app.
Configuration menu - View commit details
-
Copy full SHA for 69b6ab3 - Browse repository at this point
Copy the full SHA 69b6ab3View commit details -
refactor(listStrainData.ts): change array creation syntax
The code has been refactored to use the `new Array()` syntax instead of the spread operator `...new Array()`. This change improves code readability and consistency.
Configuration menu - View commit details
-
Copy full SHA for bfe4556 - Browse repository at this point
Copy the full SHA bfe4556View commit details
Commits on Aug 16, 2023
-
chore(stock-center): update package.json dependencies
The package.json file for the stock-center app has been updated with the following changes: - Added "@dictybase/footer" as a dependency - Added "@dictybase/header" as a dependency - Added "dicty-components-navbar" as a dependency with version 2.0.0 These changes were made to ensure that the stock-center app has the necessary dependencies to function properly and to keep the dependencies up to date.
Configuration menu - View commit details
-
Copy full SHA for cfc3b7b - Browse repository at this point
Copy the full SHA cfc3b7bView commit details -
feat(App.tsx): add Navbar component to the App component to display n…
…avigation menu The Navbar component is added to the App component to display a navigation menu. The navbarItems are formatted using the formatNavbarData function and the navTheme is applied to the Navbar component. This change enhances the user experience by providing easy navigation within the application.
Configuration menu - View commit details
-
Copy full SHA for 26de284 - Browse repository at this point
Copy the full SHA 26de284View commit details -
feat(navbarItems.ts): add navbarItems module to handle navbar data an…
…d formatting functions The `navbarItems.ts` file is a new addition to the project. It introduces a module that handles the data structure and formatting functions for the navbar items. The module exports the `navbarItems` object, which contains the data for the navbar items, as well as the `formatNavbarData` function, which converts the received navbar JSON data into the desired format for the navbar component. This module will be used to populate the navbar with the appropriate data and structure.
Configuration menu - View commit details
-
Copy full SHA for 2c56243 - Browse repository at this point
Copy the full SHA 2c56243View commit details -
feat(dictyComponentsNavBar.d.ts): add declaration for "dicty-componen…
…ts-navbar" module The new file "dictyComponentsNavBar.d.ts" is added to declare the module "dicty-components-navbar". This allows the module to be imported and used in the application.
Configuration menu - View commit details
-
Copy full SHA for 7c48809 - Browse repository at this point
Copy the full SHA 7c48809View commit details -
feat(themes.ts): add theme configuration for navigation, footer, and …
…header components The themes.ts file is added to the stock-center application to provide theme configuration for the navigation, footer, and header components. The primary color is set to "#004080" and the secondary color is set to "#001b53" for the navigation and header components. The primary color is also used for the footer component, while the secondary color is set to "#ebe97a" and the text color is set to "#d8d8d8".
Configuration menu - View commit details
-
Copy full SHA for eed2a30 - Browse repository at this point
Copy the full SHA eed2a30View commit details -
fix(listStrainData.ts): fix generateListStrainDataOfLength function t…
…o correctly generate an array of length with random data The generateListStrainDataOfLength function now correctly generates an array of the specified length by using the fill method before mapping over it to generate random data for each element. This ensures that the resulting array has the correct length and contains the expected random data.
Configuration menu - View commit details
-
Copy full SHA for a39f24a - Browse repository at this point
Copy the full SHA a39f24aView commit details
Commits on Aug 17, 2023
-
feat(catalog): add AppBarHelp component and HelpDialog component
The AppBarHelp component is added to handle the display of the appbar help feature in the catalog page. It includes a help icon button that opens a HelpDialog component when clicked. The HelpDialog component displays the content of the help dialog box, including instructions on how to browse the stock catalogs and search for items. These components are added to enhance the user experience by providing a help feature that provides guidance on how to use the catalog page effectively.
Configuration menu - View commit details
-
Copy full SHA for 1e16612 - Browse repository at this point
Copy the full SHA 1e16612View commit details -
refactor(strains): update layout and add new components for improved …
…user experience The layout of the Strain Catalog page has been updated to include a new CatalogHeader component, which displays the title "Strain Catalog". Additionally, a Grid container has been added to align the FilterDropdown and SearchBox components. The SearchBox component now has a flexGrow style property to allow it to expand and fill the available space. Finally, an AppBarHelp component has been added to provide additional assistance to users. These changes aim to improve the overall user experience of the Strain Catalog page.
Configuration menu - View commit details
-
Copy full SHA for c15277e - Browse repository at this point
Copy the full SHA c15277eView commit details -
refactor(FilterDropdown.tsx): remove unnecessary border styles and bo…
…rderRadius The border styles and borderRadius properties were removed from the useStyles hook in the FilterDropdown component. These styles were unnecessary and did not contribute to the functionality or appearance of the component. Removing them simplifies the code and improves readability.
Configuration menu - View commit details
-
Copy full SHA for bec4e4f - Browse repository at this point
Copy the full SHA bec4e4fView commit details -
feat(ui-dsc): add CatalogHeader component to display the title of the…
… catalog page The CatalogHeader component is added to the ui-dsc package. This component is responsible for displaying the title of the catalog page. It receives a "title" prop which can be either "Strain Catalog" or "Plasmid Catalog". The component uses Material-UI's Typography component to render the title in an h1 heading style. The component also applies some custom styling using makeStyles hook from Material-UI to set the color and margin of the notice and title elements.
Configuration menu - View commit details
-
Copy full SHA for a4a2465 - Browse repository at this point
Copy the full SHA a4a2465View commit details -
fix(useSearchWithRouter.tsx): change input size from "small" to "medi…
…um" and remove helper text to improve user experience The input size is changed from "small" to "medium" to provide a better visual experience for the user. The helper text is removed to simplify the input field and reduce clutter.
Configuration menu - View commit details
-
Copy full SHA for b76bb71 - Browse repository at this point
Copy the full SHA b76bb71View commit details -
chore(ui-dsc): reorganize exports in index.ts for better organization…
… and maintainability The exports in the `index.ts` file of the `ui-dsc` package have been reorganized to improve organization and maintainability. The `CatalogTableDisplay`, `CatalogListWrapper`, and `AppBarHelp` components have been moved to the appropriate location within the file, alongside other related components. This change helps to keep related components together and makes it easier to find and manage them in the future.
Configuration menu - View commit details
-
Copy full SHA for 1c4af87 - Browse repository at this point
Copy the full SHA 1c4af87View commit details -
feat(ui-dsc): move CatalogListWrapper and CatalogTableDisplay files
These files were moved into the catalog folder to improve code organization.
Configuration menu - View commit details
-
Copy full SHA for 37080b2 - Browse repository at this point
Copy the full SHA 37080b2View commit details -
chore(stock-center): rename "mock" script to "dev:mock"
The "mock" script has been renamed to "dev:mock" to better reflect its purpose of running the application in mock mode during development. This change improves clarity and consistency in the naming of scripts in the package.json file.
Configuration menu - View commit details
-
Copy full SHA for 1aa8665 - Browse repository at this point
Copy the full SHA 1aa8665View commit details -
feat(mocks): add mockStrainQuery handler and import availableStrain f…
…rom ui-dsc The mockStrainQuery handler is added to the list of handlers in the mocks/handlers.ts file. This handler allows for mocking the response of a GraphQL query for a single strain. The availableStrain object is imported from the ui-dsc package to be used as the mocked strain data. In the ui-dsc package, the export of mockStrain is added to the index.ts file. This allows other modules to import and use the mockStrain function for testing or mocking purposes.
Configuration menu - View commit details
-
Copy full SHA for 142a5f3 - Browse repository at this point
Copy the full SHA 142a5f3View commit details -
refactor(AddToCartButton.tsx): separate AddToCartDialog
The AddToCartDialog component has been separated from the AddToCartButton to avoid a bug where the dialog does not appear when a users adds a strain to the cart. When a strain is added to the cart, the AddToCartButton is unmounted and the RemoveFromCart button is rendered in its place. Consequently, the AddToCartDialog did not appear since it was a child of the AddToCartButton. The unused variables and props (setHover, setCheckedItems) have been removed from the AddToCartButton component. The setShowDialog prop has been updated to use the setShowDialog prop passed from the parent component. This improves code readability and removes unnecessary code.
Configuration menu - View commit details
-
Copy full SHA for 6e0f388 - Browse repository at this point
Copy the full SHA 6e0f388View commit details -
chore(strains/[id].tsx): add eslint-disable-next-line comment for pre…
…fer-export-from rule The eslint-disable-next-line comment is added to disable the prefer-export-from rule for the default export in the strains/[id].tsx file. This is done to suppress the linting error and allow the code to pass the linting checks.
Configuration menu - View commit details
-
Copy full SHA for 3f7e53d - Browse repository at this point
Copy the full SHA 3f7e53dView commit details -
fix(AddToCartButtonHandler.tsx): import AddToCartDialog component and…
… add dialog functionality The AddToCartButtonHandler component now imports and uses the AddToCartDialog component from the "@dictybase/ui-dsc" library. This allows the user to open a dialog when adding an item to the cart. The dialog functionality is controlled by the useState hook, with the showDialog state variable and setShowDialog function.
Configuration menu - View commit details
-
Copy full SHA for 4888467 - Browse repository at this point
Copy the full SHA 4888467View commit details -
test(HelpDialog.test.tsx): add unit tests for HelpDialog component
The new file HelpDialog.test.tsx contains unit tests for the HelpDialog component. The first test checks if the help dialog content is rendered when the dialog box is open. The second test checks if the help dialog can be closed by clicking the close button and verifies that the dialog is removed from the screen. These tests ensure that the HelpDialog component functions correctly and provides the expected behavior to the user.
Configuration menu - View commit details
-
Copy full SHA for 9b015bd - Browse repository at this point
Copy the full SHA 9b015bdView commit details -
test(ui-dsc): add unit tests for AppBarHelp component
The new file `AppBarHelp.test.tsx` contains unit tests for the `AppBarHelp` component. The tests ensure that the component renders a button with the title "Catalog Help" and that clicking the button triggers the `mockSetHelpDialogOpen` function. These tests help to verify the functionality and behavior of the `AppBarHelp` component.
Configuration menu - View commit details
-
Copy full SHA for bc5dfb4 - Browse repository at this point
Copy the full SHA bc5dfb4View commit details -
chore(stock-center): update package name from "stock-catalog-list" to…
… "stock-center" The package name has been changed from "stock-catalog-list" to "stock-center" to better reflect the purpose of the application. The "lint:out" script has been updated to output the eslint results to the "stock-center.json" file instead of the previous "stock-catalog-list.json" file.
Configuration menu - View commit details
-
Copy full SHA for f66dec5 - Browse repository at this point
Copy the full SHA f66dec5View commit details
Commits on Aug 21, 2023
-
feat(homeStyles.ts): add styles for the home component
The `homeStyles.ts` file is added to the `ui-dsc` package. It contains styles for the home component, including styles for the panel, SOP link, header, list, intro, and column. These styles are defined using the `makeStyles` function from `@material-ui/core/styles` and are customizable based on the `panelBackground` property.
Configuration menu - View commit details
-
Copy full SHA for 0a47702 - Browse repository at this point
Copy the full SHA 0a47702View commit details -
chore(strains/[id].tsx): disable eslint rule for prefer-export-from a…
…nd import/no-default-export The eslint rule for prefer-export-from and import/no-default-export has been disabled in the strains/[id].tsx file. This change was made to allow the usage of default export in this specific file.
Configuration menu - View commit details
-
Copy full SHA for 11b2054 - Browse repository at this point
Copy the full SHA 11b2054View commit details -
feat(ui-dsc): add LinkList component to generate a list of links
The LinkList component is added to the ui-dsc package. It generates a list of links based on the passed-in array of LinkItem objects. The component takes two properties: list, which is an array of LinkItem objects, and bgColor, which specifies the color of the panel background (either gray or blue). The component renders a div with a panel class, and if the list contains an item with the name "Phenotype Ontology", it adds a Typography component with the text "Download / View" as a header. The list of links is rendered as an unordered list with each link item rendered as a list item. The type of link is determined based on the properties of the LinkItem object. If routerAware is true, the link is rendered as a Link component from react-router-dom. If newWindow is true, the link is rendered as an anchor tag with the target attribute set to "_blank". Otherwise, the link is rendered as a regular anchor tag.
Configuration menu - View commit details
-
Copy full SHA for 343c268 - Browse repository at this point
Copy the full SHA 343c268View commit details -
feat(ui-dsc): add new slideshow images for mutant DG1071, DG1120, DG1…
…109, and DG1036 New slideshow images have been added for mutant DG1071, DG1120, DG1109, and DG1036. These images are in the avif, png, and webp formats, providing support for different browsers and optimizing image loading.
Configuration menu - View commit details
-
Copy full SHA for fff7c9b - Browse repository at this point
Copy the full SHA fff7c9bView commit details -
feat(Slideshow.tsx): add Slideshow component for displaying an image …
…slideshow carousel with curated dicty photos The Slideshow component is a carousel that displays a slideshow of curated dicty photos. It uses the react-responsive-carousel library for the carousel functionality. The component imports the necessary images and their corresponding avif and webp formats. It also imports the DictyImage component from the common/components/DictyImage module to handle the rendering of the images with support for next-generation image formats. The Slideshow component is designed to be used in the home page of the application.
Configuration menu - View commit details
-
Copy full SHA for f6c0de9 - Browse repository at this point
Copy the full SHA f6c0de9View commit details -
chore(ui-dsc): remove CartTotalRowV2 component and its import references
The CartTotalRowV2 component and its import references have been removed from the codebase. This is likely done to clean up unused code and improve maintainability.
Configuration menu - View commit details
-
Copy full SHA for 4c56649 - Browse repository at this point
Copy the full SHA 4c56649View commit details -
test(LinkList.test.tsx): add tests for LinkList component
This commit adds two tests for the LinkList component. The first test checks if the component displays the "Download" header correctly. The second test checks if the component renders the correct number of list items. These tests ensure that the LinkList component functions as expected and provides the correct visual output.
Configuration menu - View commit details
-
Copy full SHA for 02ffef6 - Browse repository at this point
Copy the full SHA 02ffef6View commit details -
feat(ui-dsc): add linkLists module to provide arrays of links for dif…
…ferent sections The linkLists module is added to provide arrays of links for different sections of the application. This allows for easy management and customization of the links displayed in the UI. The module exports four arrays: downloadLinks, infoLinks, materialsLinks, and miscLinks, each containing objects with properties such as name, to, routerAware, and newWindow. These arrays can be used to populate the appropriate sections of the UI with the corresponding links.
Configuration menu - View commit details
-
Copy full SHA for 19e95c9 - Browse repository at this point
Copy the full SHA 19e95c9View commit details -
feat(ui-dsc): add react-responsive-carousel package as a dependency
The react-responsive-carousel package has been added as a dependency to the ui-dsc package. This package provides a carousel component that can be used in the UI.
Configuration menu - View commit details
-
Copy full SHA for cefb9fa - Browse repository at this point
Copy the full SHA cefb9faView commit details -
refactor(LinkList.tsx): remove unnecessary eslint-disable comment and…
… fix class name access in JSX The eslint-disable comment is removed as it is no longer needed. The class names in the JSX are updated to use dot notation instead of bracket notation for better readability and consistency.
Configuration menu - View commit details
-
Copy full SHA for 3bfa62f - Browse repository at this point
Copy the full SHA 3bfa62fView commit details -
feat(linkLists.ts): add link lists for download, information, materia…
…ls, and miscellaneous The file linkLists.ts is added, which contains arrays of objects representing different categories of links. These link lists are used to populate various sections of the application with relevant links. The categories include download links, information links, materials links, and miscellaneous links. This addition improves the modularity and maintainability of the code by separating the link data into distinct files.
Configuration menu - View commit details
-
Copy full SHA for e350d1c - Browse repository at this point
Copy the full SHA e350d1cView commit details -
chore(Slideshow.tsx): refactor imports and remove unused code
The imports in the Slideshow component have been refactored to use relative paths instead of absolute paths. Unused code related to the DictyImage component has been removed. The genSlide function has been updated to use the new Image component from the @dictybase/dicty-image package, which allows for displaying images in different formats (avif and webp) based on the browser's capabilities.
Configuration menu - View commit details
-
Copy full SHA for e091a47 - Browse repository at this point
Copy the full SHA e091a47View commit details -
feat(ui-dsc): add import statement for "react-loading-skeleton/dist/s…
…keleton.css" in DetailsLoader.tsx The import statement for "react-loading-skeleton/dist/skeleton.css" was added to the DetailsLoader.tsx file. This is necessary to apply the styling for the skeleton loading animation used in the component.
Configuration menu - View commit details
-
Copy full SHA for ebd566e - Browse repository at this point
Copy the full SHA ebd566eView commit details -
refactor(getDepositorName.ts): change property names in Depositor typ…
…e from camelCase to snake_case for consistency The property names in the Depositor type have been changed from camelCase (firstName, lastName) to snake_case (first_name, last_name) to maintain consistency with the naming conventions used in the codebase.
Configuration menu - View commit details
-
Copy full SHA for d357e65 - Browse repository at this point
Copy the full SHA d357e65View commit details -
refactor(homeStyles.ts): simplify the makeStyles function by removing…
… unnecessary type parameter and destructuring the HomeStylesProperties object in the function signature The makeStyles function in homeStyles.ts has been simplified by removing the unnecessary type parameter and destructuring the HomeStylesProperties object directly in the function signature. This improves code readability and reduces complexity.
Configuration menu - View commit details
-
Copy full SHA for 2385af4 - Browse repository at this point
Copy the full SHA 2385af4View commit details -
chore(CatalogTableDisplay.test.tsx): update import path for CatalogTa…
…bleDisplay component The import path for the CatalogTableDisplay component has been updated to reflect the correct location of the component in the catalog directory. This change ensures that the test file is importing the correct component for testing.
Configuration menu - View commit details
-
Copy full SHA for bf1252a - Browse repository at this point
Copy the full SHA bf1252aView commit details -
feat(ui-dsc): add HomepageColumn component to handle formatting for e…
…ach column on the homepage The HomepageColumn component is added to the ui-dsc package. This component is responsible for handling the formatting of each column on the homepage. It takes an array of components as a property and renders them in a grid layout. This component improves the modularity and reusability of the code by separating the logic for each column into its own component.
Configuration menu - View commit details
-
Copy full SHA for 36b37ca - Browse repository at this point
Copy the full SHA 36b37caView commit details -
fix(StrainDetailsCardHeader.tsx): fix import path for AvailableDispla…
…y component The import path for the AvailableDisplay component was incorrect. It has been updated to the correct path "stock-center/src/components/AvailableDisplay". This ensures that the component is imported correctly and can be used in the file.
Configuration menu - View commit details
-
Copy full SHA for ddf886c - Browse repository at this point
Copy the full SHA ddf886cView commit details -
refactor(StrainDetailsCard.tsx): change property names in strainRowsG…
…enerator function to snake_case for consistency and readability The property names in the strainRowsGenerator function have been changed from camelCase to snake_case to improve consistency and readability throughout the codebase. This change ensures that the property names follow a consistent naming convention.
Configuration menu - View commit details
-
Copy full SHA for be98792 - Browse repository at this point
Copy the full SHA be98792View commit details -
refactor(PublicationDisplay.tsx): change variable name from pubDate t…
…o pub_date and lastName to last_name for consistency and readability The variable names pubDate and lastName have been changed to pub_date and last_name respectively to improve consistency and readability in the PublicationDisplay component.
Configuration menu - View commit details
-
Copy full SHA for 84872e2 - Browse repository at this point
Copy the full SHA 84872e2View commit details -
fix(CatalogTableDisplay.tsx): fix import path for AddToCartButtonHand…
…ler component The import path for the AddToCartButtonHandler component has been fixed to "stock-center/src/components/AddToCartButtonHandler" to ensure the correct component is imported. Additionally, the key value for the TableRow component containing the LinearProgress component has been changed to "linear-progress" to provide a unique key value.
Configuration menu - View commit details
-
Copy full SHA for b75e41f - Browse repository at this point
Copy the full SHA b75e41fView commit details -
fix(LoadingDisplay.tsx): fix the issue where the Skeleton components …
…were not being rendered correctly The issue was that the Skeleton components were not being rendered correctly because the array was not being filled with values. This was fixed by using the `fill` method on the array to populate it with zeros before mapping over it to render the Skeleton components.
Configuration menu - View commit details
-
Copy full SHA for 1f0b852 - Browse repository at this point
Copy the full SHA 1f0b852View commit details -
feat(ui-dsc): add new components for the home page
Added the following components for the home page: - LinkList - Slideshow - homeStyles - HomepageColumn These components are now available for use in the home page to enhance the user experience and provide additional functionality.
Configuration menu - View commit details
-
Copy full SHA for e84c72d - Browse repository at this point
Copy the full SHA e84c72dView commit details -
fix(useConfigureStrainCatalogSearchGraphql.ts): change filter propert…
…y name from strainType to strain_type to match GraphQL schema The eslint rule for camelcase is disabled in this file to allow the use of snake_case for the filter property name. The filter property name is changed from strainType to strain_type to align with the naming convention used in the GraphQL schema. This ensures consistency and compatibility with the GraphQL API.
Configuration menu - View commit details
-
Copy full SHA for af43fa2 - Browse repository at this point
Copy the full SHA af43fa2View commit details -
fix(graphql_config.ts): update property names in graphqlFilter object…
… to match the API schema The eslint rule for camelcase is disabled in the graphql_config.ts file. This is done to allow the use of snake_case property names in the graphqlFilter object. The property names in the graphqlFilter object are updated to match the corresponding property names in the API schema. This ensures that the GraphQL queries are correctly filtered based on the selected strain types.
Configuration menu - View commit details
-
Copy full SHA for d46ed5e - Browse repository at this point
Copy the full SHA d46ed5eView commit details -
feat(ui-dsc): add declaration file for asset file types
A new declaration file `assets.d.ts` has been added to the `ui-dsc` package. This file declares module definitions for the file types `webp`, `avif`, `png`, and `jpg`. This allows TypeScript to recognize and import these file types without any compilation errors.
Configuration menu - View commit details
-
Copy full SHA for 8ba3466 - Browse repository at this point
Copy the full SHA 8ba3466View commit details -
fix(dicty-graphql-schema): revert field name to snake case
Multi-word field names were mistakenly converted from snake case to camel case. This commit reverts the field names to ensure compatibility with the backend.
Configuration menu - View commit details
-
Copy full SHA for 9526d8b - Browse repository at this point
Copy the full SHA 9526d8bView commit details -
chore(stock-center): update GraphQL server URL in .env.development file
The GraphQL server URL in the .env.development file has been updated from "https://siddgraphql.dictybase.dev/graphql" to "https://graphql.dictybase.dev/graphql". This change ensures that the stock-center app is using the correct GraphQL server for development purposes.
Configuration menu - View commit details
-
Copy full SHA for 2aaef66 - Browse repository at this point
Copy the full SHA 2aaef66View commit details -
chore(App.tsx): remove explicit route for root path
The route for the root path ("/") has been removed as the route is now being dynamically generated.
Configuration menu - View commit details
-
Copy full SHA for a9527ee - Browse repository at this point
Copy the full SHA a9527eeView commit details -
fix(routes.tsx): fix regular expression in parsePath function to corr…
…ectly replace all occurrences of '/src/pages/', '/index', 'index', and '.tsx' in the path string The regular expression in the parsePath function was not correctly replacing all occurrences of '/src/pages/', '/index', 'index', and '.tsx' in the path string. This fix ensures that all occurrences are replaced as intended.
Configuration menu - View commit details
-
Copy full SHA for ded74e6 - Browse repository at this point
Copy the full SHA ded74e6View commit details -
test(LinkList.test.tsx): fix import path for downloadLinks
The import path for the `downloadLinks` module was incorrect. It has been fixed to import from the correct path `stock-center/src/linkLists` instead of `../linkLists`. This ensures that the `downloadLinks` module is imported correctly and the test can run successfully.
Configuration menu - View commit details
-
Copy full SHA for 547f3e0 - Browse repository at this point
Copy the full SHA 547f3e0View commit details -
refactor(FilterDropdown.tsx): remove disableUnderline prop from Selec…
…t component The disableUnderline prop is removed from the Select component because it has no affect on the component and is recognized by react.
Configuration menu - View commit details
-
Copy full SHA for aa328e8 - Browse repository at this point
Copy the full SHA aa328e8View commit details -
feat(index.tsx): add homepage component for Dicty Stock Center (DSC)
The index.tsx file in the pages directory is added to introduce the homepage component for the Dicty Stock Center (DSC) application. This component includes various UI elements such as Grid, Typography, Helmet, and LinkList from the @dictybase/ui-dsc package. It also imports link lists for download, information, materials, and miscellaneous links. The component is wrapped in a Helmet component to set the page title and meta description. The component is exported as the default export.
Configuration menu - View commit details
-
Copy full SHA for 0be5c42 - Browse repository at this point
Copy the full SHA 0be5c42View commit details -
fix(App.tsx): change import.meta.env.REACT_APP_GRAPHQL_SERVER to impo…
…rt.meta.env.VITE_APP_GRAPHQL_SERVER to match Vite environment variable naming convention The import.meta.env.REACT_APP_GRAPHQL_SERVER variable is changed to import.meta.env.VITE_APP_GRAPHQL_SERVER to align with the Vite environment variable naming convention. This ensures consistency and compatibility with the Vite build tool.
Configuration menu - View commit details
-
Copy full SHA for c647bb2 - Browse repository at this point
Copy the full SHA c647bb2View commit details -
refactor(useSearchWithRouter.tsx): remove unused 'help' prop and comm…
…ented out code The 'help' prop and the commented out code related to it have been removed from the 'useSearchWithRouter' function. This improves code cleanliness and removes unnecessary code clutter. The helper text was removed from the component to improve the visuals of the catalog page.
Configuration menu - View commit details
-
Copy full SHA for 3837ed2 - Browse repository at this point
Copy the full SHA 3837ed2View commit details -
refactor(StrainDetailsCard.tsx): change type casting from using the a…
…rray syntax to using the generic Array type for publications, genes, and genotypes variables The type casting for the publications, genes, and genotypes variables has been updated to use the generic Array type instead of the array syntax. This improves readability and consistency with the rest of the codebase.
Configuration menu - View commit details
-
Copy full SHA for 6647fb7 - Browse repository at this point
Copy the full SHA 6647fb7View commit details
Commits on Aug 22, 2023
-
feat(useCartItemProperties.ts): add custom hook for retrieving proper…
…ties of a cart item The useCartItemProperties hook is added to the project. This hook takes in a cart item object and returns the following properties: isFull, in_stock, and isInCart. These properties are used to determine the state of the cart item in the application.
Configuration menu - View commit details
-
Copy full SHA for 9180871 - Browse repository at this point
Copy the full SHA 9180871View commit details -
refactor(AddToCartButtonHandler.tsx): remove unused imports and funct…
…ion, extract hook logic to useCartItemProperties The commit removes unused imports and the useStockProperties function, as they are no longer needed. The logic from useStockProperties is extracted into a new hook called useCartItemProperties, which is now used in AddToCartButtonHandler. This improves code organization and removes unnecessary code.
Configuration menu - View commit details
-
Copy full SHA for 83e62bb - Browse repository at this point
Copy the full SHA 83e62bbView commit details -
feat(AvailableDisplay.tsx): add functionality to remove item from car…
…t and update UI accordingly The unused import of the OutlinedDropdown component has been removed to clean up the code. The AvailableDisplay component now has the ability to remove an item from the cart by clicking the "Remove From Cart" button. The UI is updated accordingly to show the "Remove From Cart" button when an item is already in the cart, and the "Add to Cart" button when the item is not in the cart.
Configuration menu - View commit details
-
Copy full SHA for af18315 - Browse repository at this point
Copy the full SHA af18315View commit details -
refactor(state.ts): remove unused imports and update StrainItem type …
…to include "in_stock" property The commit removes the unused imports "partitionMap" and "Eleft" and "Eright" from the fp-ts/Array and fp-ts/Either modules respectively. Additionally, the StrainItem type is updated to include the "in_stock" property, which was missing before. This change ensures that the StrainItem type accurately represents the properties of a Strain object.
Configuration menu - View commit details
-
Copy full SHA for e4639d8 - Browse repository at this point
Copy the full SHA e4639d8View commit details -
fix(CatalogTableDisplay.tsx): change "inStock" to "in_stock" in strai…
…ns and cellFunctionItem interfaces The property "inStock" in the strains and cellFunctionItem interfaces has been changed to "in_stock" to match the naming convention used in the Strain interface. This improves consistency and readability in the codebase.
Configuration menu - View commit details
-
Copy full SHA for fd3f180 - Browse repository at this point
Copy the full SHA fd3f180View commit details -
fix(ui-dsc): update type definition for cartData in StrainDetailsCard…
…Header component The type definition for the `cartData` prop in the `StrainDetailsCardHeader` component has been updated to use the `CartItem` type instead of `Omit<CartItem, "quantity">`. This change ensures that the `cartData` prop correctly represents the data for the stock item.
Configuration menu - View commit details
-
Copy full SHA for f62268c - Browse repository at this point
Copy the full SHA f62268cView commit details -
fix(BreadcrumbsLink.tsx): change nonClickableRoutes from an array to …
…a Set to improve performance and readability The nonClickableRoutes variable is now a Set instead of an array. This change improves performance when checking if a pathname is in the nonClickableRoutes set. It also enhances code readability by clearly indicating that nonClickableRoutes is a collection of unique values.
Configuration menu - View commit details
-
Copy full SHA for eae2a66 - Browse repository at this point
Copy the full SHA eae2a66View commit details -
fix(Breadcrumbs.tsx): fix linting error by adding eslint-disable-next…
…-line comment The code now includes an eslint-disable-next-line comment to suppress the linting error caused by the use of the replaceAll() method. This allows the code to run without any linting issues.
Configuration menu - View commit details
-
Copy full SHA for 2336bb8 - Browse repository at this point
Copy the full SHA 2336bb8View commit details -
chore(AddQuantityToCart.tsx): remove unused component AddToCartControl
The AddToCartControl component was removed as it was no longer being used in the application. This helps to clean up the codebase and remove unnecessary code.
Configuration menu - View commit details
-
Copy full SHA for b546c61 - Browse repository at this point
Copy the full SHA b546c61View commit details -
chore(index.tsx): comment out unused import statements for infoLinks …
…and miscLinks The import statements for infoLinks and miscLinks are commented out as they are currently unused in the code. This helps improve code readability and reduces clutter.
Configuration menu - View commit details
-
Copy full SHA for aa02a3a - Browse repository at this point
Copy the full SHA aa02a3aView commit details -
refactor(CatalogTableDisplay.tsx): Rename the rowFunction component t…
…o Rows The rowFunction component has been renamed to Rows to follow React component naming conventions. Since the function calls a hook, it should be a React component and therefore follow the convention of having the first letter capitalized.
Configuration menu - View commit details
-
Copy full SHA for 6a3527c - Browse repository at this point
Copy the full SHA 6a3527cView commit details -
chore(json-plugin): remove unused "test" script from package.json
The "test" script was removed from the package.json file as it was not being used.
Configuration menu - View commit details
-
Copy full SHA for d47dca1 - Browse repository at this point
Copy the full SHA d47dca1View commit details -
test(AvailableDisplay.test.tsx): refactor test to remove unnecessary …
…code and improve readability The test for the AvailableDisplay component has been refactored to remove unnecessary code and improve readability. The test now focuses on displaying the capacity full message when reaching 12 items in the cart. The test no longer uses the Provider component from jotai and instead directly renders the AvailableDisplay component within a MemoryRouter. The test no longer interacts with the dropdown and listbox elements, as they are not relevant to the test case.
Configuration menu - View commit details
-
Copy full SHA for 6f983cf - Browse repository at this point
Copy the full SHA 6f983cfView commit details -
chore(dicty-frontpage): remove "test" script from package.json
The "test" script has been removed from the package.json file as it is no longer needed.
Configuration menu - View commit details
-
Copy full SHA for 83ec1bd - Browse repository at this point
Copy the full SHA 83ec1bdView commit details -
fix(CartItem.tsx): remove multiplication of fee by quantity in fee ca…
…lculation The multiplication of the fee by the quantity was removed in the fee calculation for each cart item. This change ensures that the fee is displayed correctly without being multiplied by the quantity.
Configuration menu - View commit details
-
Copy full SHA for 6578612 - Browse repository at this point
Copy the full SHA 6578612View commit details -
refactor(getCartTotal.ts): remove unnecessary multiplication in map f…
…unction The multiplication of item.quantity is removed from the map function as it is not needed. The map function now only converts the fee value to a number. This simplifies the logic and improves readability.
Configuration menu - View commit details
-
Copy full SHA for 98e88c9 - Browse repository at this point
Copy the full SHA 98e88c9View commit details -
refactor(types.ts): remove quantity property from PurchaseProperties …
…type The quantity property is no longer needed in the PurchaseProperties type. This change simplifies the type and removes unnecessary code.
Configuration menu - View commit details
-
Copy full SHA for 6c698fe - Browse repository at this point
Copy the full SHA 6c698feView commit details -
fix(AddToCartButtonHandler.tsx): fix variable name from inStock to in…
…_stock The variable name inStock is changed to in_stock to match the naming convention of the Strain type. This improves consistency and readability in the code.
Configuration menu - View commit details
-
Copy full SHA for 18288a3 - Browse repository at this point
Copy the full SHA 18288a3View commit details -
fix(AddToCartButton.tsx): remove unused imports and variables, update…
… property names The commit removes the unused import and variable for AddToCartDialog and the setCheckedItems and setHover functions. It also updates the property names in the Properties type to match the changes in the Strain schema, specifically changing "inStock" to "in_stock".
Configuration menu - View commit details
-
Copy full SHA for c4899fb - Browse repository at this point
Copy the full SHA c4899fbView commit details -
chore(InfoPageViewToolbar.tsx): comment out unused import and variable
The import statement for ErrorNotification and the error variable are commented out as they are not being used in the code. Additionally, the property names in the fullName variable are corrected to match the actual property names in the user object (first_name and last_name).
Configuration menu - View commit details
-
Copy full SHA for 5ed2cad - Browse repository at this point
Copy the full SHA 5ed2cadView commit details -
chore(dicty-graphql-schema): add naming conventions for TypeDefinitio…
…n and FieldDefinition The naming conventions for TypeDefinition and FieldDefinition have been added to the eslint configuration. TypeDefinition should follow PascalCase and FieldDefinition should follow snake_case. This ensures consistent naming conventions throughout the GraphQL schema.
Configuration menu - View commit details
-
Copy full SHA for e63a6f2 - Browse repository at this point
Copy the full SHA e63a6f2View commit details -
fix(InfoPageContainer.tsx): fix property names in InfoPageViewToolbar…
… component The property names `updatedAt` and `updatedBy` in the `InfoPageViewToolbar` component were changed to `updated_at` and `updated_by` respectively to match the corresponding property names in the `data.contentBySlug` object. This ensures that the correct data is passed to the `InfoPageViewToolbar` component.
Configuration menu - View commit details
-
Copy full SHA for 0b46481 - Browse repository at this point
Copy the full SHA 0b46481View commit details -
chore(graphql): remove unnecessary newline at end of file in stocks.g…
…raphql The first change removes an unnecessary newline at the end of the file stocks.graphql, improving code cleanliness. The second change formats the listStrains query in query.graphql by adding line breaks and indentation, making it easier to read and understand.
Configuration menu - View commit details
-
Copy full SHA for 7e1757c - Browse repository at this point
Copy the full SHA 7e1757cView commit details -
chore(dicty-graphql-schema): update eslint rules in package.json
The "@graphql-eslint/naming-convention" rule is turned off to allow for more flexibility in naming conventions. The "@graphql-eslint/require-description" rule is also turned off to avoid enforcing descriptions for all GraphQL types and fields. Additionally, the "@graphql-eslint/no-typename-prefix" rule is turned off to allow for the use of typename prefixes. The "@graphql-eslint/strict-id-in-types" rule is updated to include additional accepted ID names and types. Finally, the list of accepted types in the "@graphql-eslint/enum-value-should-be-camel-case" rule is updated to include "DeleteContent", "DeletePermission", "DeleteRole", "DeleteStock", and "DeleteUser".
Configuration menu - View commit details
-
Copy full SHA for 502580c - Browse repository at this point
Copy the full SHA 502580cView commit details -
chore(news-component): update import/export statements
The eslint rules were updated to enforce named exports. This commit makes the corresponsing changes to the imports/exports in the news-component package.
Configuration menu - View commit details
-
Copy full SHA for fc9da25 - Browse repository at this point
Copy the full SHA fc9da25View commit details -
refactor(news-component): change export statements to use wildcard (*…
…) instead of individual exports The export statements in the index.ts file of the news-component package have been refactored to use wildcard (*) instead of individual exports. This change simplifies the code and makes it easier to add or remove components in the future without modifying the index.ts file.
Configuration menu - View commit details
-
Copy full SHA for f1bf3a8 - Browse repository at this point
Copy the full SHA f1bf3a8View commit details -
chore(ui-dsc): add fontawesome dependencies
The package.json file for the ui-dsc package has been updated to include the following dependencies: - @fortawesome/fontawesome-svg-core@^6.3.0 - @fortawesome/free-solid-svg-icons@^6.3.0 - @fortawesome/react-fontawesome@^0.2.0 These dependencies are added to support the usage of FontAwesome icons in the UI components of the application.
Configuration menu - View commit details
-
Copy full SHA for fdfe2ef - Browse repository at this point
Copy the full SHA fdfe2efView commit details -
chore(CartIcon.tsx): update import statement for shopping cart icon
The import statement for the shopping cart icon has been updated to use the `faShoppingCart` icon from the `@fortawesome/free-solid-svg-icons` package. This change ensures that the correct icon is used for the shopping cart.
Configuration menu - View commit details
-
Copy full SHA for c2dffb9 - Browse repository at this point
Copy the full SHA c2dffb9View commit details -
feat(ui-dsc): add import for faExternalLinkAlt icon from @fortawesome…
…/free-solid-svg-icons The import statement for the faExternalLinkAlt icon from the @fortawesome/free-solid-svg-icons package is added to the PublicationDisplay component. This allows the component to use the faExternalLinkAlt icon from the FontAwesomeIcon component.
Configuration menu - View commit details
-
Copy full SHA for b0cfa94 - Browse repository at this point
Copy the full SHA b0cfa94View commit details -
feat(ui-dsc): add CartIcon component to the UI library
The CartIcon component is added to the UI library, providing a reusable component for displaying a cart icon. This enhances the UI library by providing more options for displaying cart-related elements.
Configuration menu - View commit details
-
Copy full SHA for 6114ebf - Browse repository at this point
Copy the full SHA 6114ebfView commit details -
test(ui-dsc): add unit tests for CartIcon component
Added unit tests for the CartIcon component to ensure that it correctly indicates the number of items in the cart and displays a notice if the cart is full. The tests cover scenarios where there are items in the cart, no items in the cart, and when the cart is full.
Configuration menu - View commit details
-
Copy full SHA for bf345cd - Browse repository at this point
Copy the full SHA bf345cdView commit details -
feat(BreadcrumbsLink.tsx): add BreadcrumbsLink component
The BreadcrumbsLink component is added to handle the display of breadcrumbs for routes that are not the final list item. It takes in the pathname from the URL and renders either a clickable link or non-clickable text based on the pathname. The component also includes a mapping of route names for display purposes.
Configuration menu - View commit details
-
Copy full SHA for 6904740 - Browse repository at this point
Copy the full SHA 6904740View commit details -
test(BreadcrumbsLink.test.tsx): add unit tests for BreadcrumbsLink co…
…mponent This commit adds unit tests for the BreadcrumbsLink component. The tests cover both non-clickable breadcrumbs and breadcrumb links for different paths. It ensures that the component renders the correct text content for each path and that the links are rendered correctly. It also includes a test for non-existent routes, where an empty link should be rendered.
Configuration menu - View commit details
-
Copy full SHA for 4e2fbb3 - Browse repository at this point
Copy the full SHA 4e2fbb3View commit details -
feat(Breadcrumbs.tsx): add Breadcrumbs component for displaying navig…
…ation breadcrumbs in the DSC app The Breadcrumbs component is added to the DSC app to display navigation breadcrumbs. It uses Material-UI components such as Breadcrumbs, Link, and Typography to create the breadcrumb structure. The component also includes a helper function, convertBreadcrumbTitle, to convert specific breadcrumb titles into the desired format.
Configuration menu - View commit details
-
Copy full SHA for ab4e11a - Browse repository at this point
Copy the full SHA ab4e11aView commit details -
test(Breadcrumbs.test.tsx): add unit tests for Breadcrumbs component
The Breadcrumbs component is being tested to ensure that it correctly displays the breadcrumb links based on the current route. The tests cover various subpages and edge cases, such as removing extra characters from the breadcrumb text and not rendering breadcrumbs on the homepage.
Configuration menu - View commit details
-
Copy full SHA for 41c771b - Browse repository at this point
Copy the full SHA 41c771bView commit details -
feat(HeaderRow.tsx): add HeaderRow component
The HeaderRow component is added to the project. It is a cart component that displays between the Navbar and body content on every page. It consists of a Breadcrumbs component and a CartIcon component that shows the current number of added items.
Configuration menu - View commit details
-
Copy full SHA for a0e0946 - Browse repository at this point
Copy the full SHA a0e0946View commit details -
chore(App.tsx): remove unused import and add HeaderRow component
The unused import of `Navigate` from `react-router-dom` has been removed. Additionally, a new component called `HeaderRow` has been added to the main content of the application. This component is responsible for rendering a header row in the UI.
Configuration menu - View commit details
-
Copy full SHA for 6f409db - Browse repository at this point
Copy the full SHA 6f409dbView commit details -
chore(DetailsHeaderCopyIcon.tsx): import faCopy icon from @fortawesom…
…e/free-solid-svg-icons The import statement for the copy icon has been updated to import the faCopy icon from the @fortawesome/free-solid-svg-icons package. This ensures that the correct icon is used for the copy functionality in the DetailsHeaderCopyIcon component.
Configuration menu - View commit details
-
Copy full SHA for 4a30a5e - Browse repository at this point
Copy the full SHA 4a30a5eView commit details -
feat(dicty-graphql-schema): add listContent query
The listContent query is added to retrieve a list of content items with a specified limit. This allows for pagination and fetching a subset of content items at a time. The ListNewsContent query is specifically added to retrieve a list of news content items with a specified limit. This query includes the id, slug, content, name, updated_by (including first_name and last_name), and updated_at fields for each news content item.
Configuration menu - View commit details
-
Copy full SHA for 8d05ea5 - Browse repository at this point
Copy the full SHA 8d05ea5View commit details -
fix(RecentNewsPreview.tsx): fix property names in RecentNewsPreview c…
…omponent The property names in the RecentNewsPreview and RecentNewsPreviewMetadata components have been updated to match the naming conventions. The "updatedBy" property is now "updated_by" and "updatedAt" is now "updated_at". This improves consistency and readability in the codebase.
Configuration menu - View commit details
-
Copy full SHA for 26741f5 - Browse repository at this point
Copy the full SHA 26741f5View commit details -
chore(vite.config.ts): remove eslint-disable-next-line import/no-defa…
…ult-export The eslint-disable-next-line import/no-default-export comment is removed to ensure that the codebase adheres to the linting rules and promotes better code organization and maintainability.
Configuration menu - View commit details
-
Copy full SHA for db2380d - Browse repository at this point
Copy the full SHA db2380dView commit details -
feat(graphql): add deleteContentBySlug mutation to delete content by …
…slug The deleteContentBySlug mutation has been added to the GraphQL schema and generated code. This mutation allows deleting content by providing the slug as an input parameter. This provides a more convenient way to delete content based on its slug instead of its ID.
Configuration menu - View commit details
-
Copy full SHA for 2dc21c0 - Browse repository at this point
Copy the full SHA 2dc21c0View commit details -
fix(StrainDetailsContainer.test.tsx): fix property names in getByText…
… assertion The property names in the getByText assertion have been updated to match the actual property names in the test data. This ensures that the test accurately checks for the presence of the correct data in the UI.
Configuration menu - View commit details
-
Copy full SHA for 4dd6813 - Browse repository at this point
Copy the full SHA 4dd6813View commit details -
refactor(EmptyCart.tsx): remove unused import and component
The import and usage of the `CartHeader` component has been removed from the `EmptyCart` component as it is no longer needed. This improves code cleanliness and removes unnecessary dependencies.
Configuration menu - View commit details
-
Copy full SHA for cf88773 - Browse repository at this point
Copy the full SHA cf88773View commit details -
feat(cart.tsx): add CartHeader component to the cart page
The CartHeader component is added to the cart page to provide a header section for the cart. This improves the overall layout and user experience of the cart page.
Configuration menu - View commit details
-
Copy full SHA for fc4e7a7 - Browse repository at this point
Copy the full SHA fc4e7a7View commit details -
test(StrainDetailsCardHeader): add test case for in_stock property
The test case for the `in_stock` property is added to the `StrainDetailsCardHeader` component. This ensures that the component correctly handles the `in_stock` property and displays the appropriate UI based on its value.
Configuration menu - View commit details
-
Copy full SHA for 0bebe5c - Browse repository at this point
Copy the full SHA 0bebe5cView commit details -
fix(getDepositorName.test.ts): change property names from camelCase t…
…o snake_case The property names in the depositor object have been changed from camelCase (firstName, lastName) to snake_case (first_name, last_name) to align with the naming conventions used in the codebase.
Configuration menu - View commit details
-
Copy full SHA for 73f364e - Browse repository at this point
Copy the full SHA 73f364eView commit details -
refactor(PublicationDisplay.test.tsx): update property names from cam…
…elCase to snake_case The eslint rule for camelcase is disabled in the PublicationDisplay.test.tsx file to allow the use of snake_case property names. The property names in the publication object and authors array are updated from camelCase to snake_case to align with the naming conventions. This improves consistency and readability in the codebase.
Configuration menu - View commit details
-
Copy full SHA for f27fe1e - Browse repository at this point
Copy the full SHA f27fe1eView commit details -
refactor(OrderSummary.tsx): remove quantity calculation in OrderSumma…
…ry component The calculation of the total fee for each item in the OrderSummary component has been simplified. The quantity calculation has been removed as it is no longer necessary. The fee is now displayed as a fixed value without multiplication.
Configuration menu - View commit details
-
Copy full SHA for 42b2678 - Browse repository at this point
Copy the full SHA 42b2678View commit details -
fix(mockStrain.ts) fix property names
To match the field names of the graphql schema, some of the property names of the mock strains were changed from camelCase to snake_case.
Configuration menu - View commit details
-
Copy full SHA for d6fabc5 - Browse repository at this point
Copy the full SHA d6fabc5View commit details -
test(OrderSummary.test.tsx): update expected total value in test case…
… to reflect the correct total The quantity value in the test case has been updated from 2 to 1 to reflect the actual quantity of the item. The expected total value in the test case has been updated from $75.00 to $45.00 to reflect the correct total based on the updated quantity.
Configuration menu - View commit details
-
Copy full SHA for 76b1704 - Browse repository at this point
Copy the full SHA 76b1704View commit details -
fix(ui-dsc): update path in Route component to "/strains/:id" in cell…
…Function test The eslint camelcase rule is disabled in the CatalogTableDisplay.test.tsx file to allow the use of snake_case variable names. The path in the Route component is updated to "/strains/:id" in the cellFunction and rowFunction tests to match the expected route. The in_stock property is added to the testStrain object in the cellFunction test and to the testListStrains objects in the rowFunction test to reflect the updated data structure.
Configuration menu - View commit details
-
Copy full SHA for f9ff70f - Browse repository at this point
Copy the full SHA f9ff70fView commit details -
refactor(CatalogTableDisplay.tsx): remove unused rowFunction export
The rowFunction export is no longer used in the CatalogTableDisplay component, so it has been removed to improve code cleanliness and remove unnecessary exports.
Configuration menu - View commit details
-
Copy full SHA for 8b10c86 - Browse repository at this point
Copy the full SHA 8b10c86View commit details -
chore(browser.ts): remove eslint-disable-next-line import/no-default-…
…export comment The eslint-disable-next-line import/no-default-export comment is removed to ensure adherence to the linting rules and maintain code consistency.
Configuration menu - View commit details
-
Copy full SHA for b852e93 - Browse repository at this point
Copy the full SHA b852e93View commit details -
refactor(edit.tsx): remove unused import of Paper component
The import statement for the Paper component is removed as it is no longer being used in the file. This improves code cleanliness and removes unnecessary dependencies.
Configuration menu - View commit details
-
Copy full SHA for 623213a - Browse repository at this point
Copy the full SHA 623213aView commit details -
chore(App.test.tsx): remove unused test file
The file App.test.tsx was removed as it was no longer needed.
Configuration menu - View commit details
-
Copy full SHA for 3629301 - Browse repository at this point
Copy the full SHA 3629301View commit details -
chore: remove shouldFocusError option from useForm hook
The shouldFocusError option is removed from the useForm hook in both PaymentPage.tsx and ShippingPage.tsx components. This option was unnecessary and not being used, so it was removed to simplify the code and improve readability.
Configuration menu - View commit details
-
Copy full SHA for c05ed13 - Browse repository at this point
Copy the full SHA c05ed13View commit details