Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pulling feat/strains-catalog into develop #437

Merged
merged 265 commits into from
Aug 22, 2023
Merged
This pull request is big! We’re only showing the most recent 250 commits.

Commits on Aug 3, 2023

  1. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    b69a51e View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    3de986b View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    49c4b89 View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    e0f18f1 View commit details
    Browse the repository at this point in the history
  5. 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).
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    d29c489 View commit details
    Browse the repository at this point in the history
  6. 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".
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    7f71b22 View commit details
    Browse the repository at this point in the history
  7. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    0c87d75 View commit details
    Browse the repository at this point in the history
  8. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    e68e365 View commit details
    Browse the repository at this point in the history
  9. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    c5a2d7c View commit details
    Browse the repository at this point in the history
  10. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    7858a05 View commit details
    Browse the repository at this point in the history
  11. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    24dae78 View commit details
    Browse the repository at this point in the history
  12. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    39c2b07 View commit details
    Browse the repository at this point in the history
  13. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    14e6319 View commit details
    Browse the repository at this point in the history
  14. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    712eff9 View commit details
    Browse the repository at this point in the history
  15. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    26d767b View commit details
    Browse the repository at this point in the history
  16. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    b9b68fb View commit details
    Browse the repository at this point in the history
  17. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    c007e50 View commit details
    Browse the repository at this point in the history
  18. refactor(StrainPhenotypeList.tsx): remove console.log statement

    The console.log statement was removed as it was no longer needed for debugging purposes.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    9f09941 View commit details
    Browse the repository at this point in the history
  19. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    2a79f02 View commit details
    Browse the repository at this point in the history
  20. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    f553f18 View commit details
    Browse the repository at this point in the history
  21. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    dd22b32 View commit details
    Browse the repository at this point in the history
  22. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    a2ea8d9 View commit details
    Browse the repository at this point in the history
  23. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    99fe0c7 View commit details
    Browse the repository at this point in the history
  24. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    94b20b9 View commit details
    Browse the repository at this point in the history
  25. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    1253c73 View commit details
    Browse the repository at this point in the history
  26. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    20f491e View commit details
    Browse the repository at this point in the history
  27. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    5164f75 View commit details
    Browse the repository at this point in the history
  28. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    3a22c8d View commit details
    Browse the repository at this point in the history
  29. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    47433bc View commit details
    Browse the repository at this point in the history
  30. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    f15e827 View commit details
    Browse the repository at this point in the history
  31. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    38ba01e View commit details
    Browse the repository at this point in the history
  32. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    0b1a756 View commit details
    Browse the repository at this point in the history
  33. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    4ad1c59 View commit details
    Browse the repository at this point in the history
  34. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    d86c0d6 View commit details
    Browse the repository at this point in the history
  35. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    70571ea View commit details
    Browse the repository at this point in the history
  36. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    da209f8 View commit details
    Browse the repository at this point in the history
  37. 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
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    7db7c95 View commit details
    Browse the repository at this point in the history
  38. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    a4097d1 View commit details
    Browse the repository at this point in the history
  39. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    681b17a View commit details
    Browse the repository at this point in the history
  40. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    c2abc2e View commit details
    Browse the repository at this point in the history
  41. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    1ed750b View commit details
    Browse the repository at this point in the history
  42. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    aa3515b View commit details
    Browse the repository at this point in the history
  43. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    04b1d80 View commit details
    Browse the repository at this point in the history
  44. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    86e2e24 View commit details
    Browse the repository at this point in the history
  45. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    e681ba6 View commit details
    Browse the repository at this point in the history
  46. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    56fe91c View commit details
    Browse the repository at this point in the history
  47. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    b1a3f89 View commit details
    Browse the repository at this point in the history
  48. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    cb94c04 View commit details
    Browse the repository at this point in the history
  49. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    c1af4d4 View commit details
    Browse the repository at this point in the history
  50. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    72a72d3 View commit details
    Browse the repository at this point in the history
  51. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    74282b7 View commit details
    Browse the repository at this point in the history
  52. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    87a67ec View commit details
    Browse the repository at this point in the history
  53. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    ca5c906 View commit details
    Browse the repository at this point in the history
  54. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    b1e49b0 View commit details
    Browse the repository at this point in the history
  55. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    88a7d9a View commit details
    Browse the repository at this point in the history
  56. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    0fd1bd8 View commit details
    Browse the repository at this point in the history
  57. 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.
    ktun95 committed Aug 3, 2023
    Configuration menu
    Copy the full SHA
    73d51da View commit details
    Browse the repository at this point in the history

Commits on Aug 7, 2023

  1. 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.
    ktun95 committed Aug 7, 2023
    Configuration menu
    Copy the full SHA
    acea474 View commit details
    Browse the repository at this point in the history

Commits on Aug 8, 2023

  1. 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.
    ktun95 committed Aug 8, 2023
    Configuration menu
    Copy the full SHA
    8f0c9d4 View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2023

  1. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    133cfd0 View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    5b0d028 View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    bd0f90a View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    2cac5ad View commit details
    Browse the repository at this point in the history
  5. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    e49ead0 View commit details
    Browse the repository at this point in the history
  6. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    5614a65 View commit details
    Browse the repository at this point in the history
  7. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    e7ad62f View commit details
    Browse the repository at this point in the history
  8. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    366a7f1 View commit details
    Browse the repository at this point in the history
  9. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    f337df6 View commit details
    Browse the repository at this point in the history
  10. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    bdab524 View commit details
    Browse the repository at this point in the history
  11. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    a7b5d6b View commit details
    Browse the repository at this point in the history
  12. 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
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    ff3c02b View commit details
    Browse the repository at this point in the history
  13. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    d05f718 View commit details
    Browse the repository at this point in the history
  14. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    a5a8e88 View commit details
    Browse the repository at this point in the history
  15. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    0a30f35 View commit details
    Browse the repository at this point in the history
  16. 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.
    ktun95 committed Aug 9, 2023
    Configuration menu
    Copy the full SHA
    3378e3d View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2023

  1. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    7ddd3a7 View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    9ba0210 View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    2fe75cb View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    8c87bcf View commit details
    Browse the repository at this point in the history
  5. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    f0d34cc View commit details
    Browse the repository at this point in the history
  6. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    38c2a57 View commit details
    Browse the repository at this point in the history
  7. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    c8b19de View commit details
    Browse the repository at this point in the history
  8. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    0420576 View commit details
    Browse the repository at this point in the history
  9. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    a245365 View commit details
    Browse the repository at this point in the history
  10. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    73d8e37 View commit details
    Browse the repository at this point in the history
  11. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    396cf98 View commit details
    Browse the repository at this point in the history
  12. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    973cf6a View commit details
    Browse the repository at this point in the history
  13. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    b9bab84 View commit details
    Browse the repository at this point in the history
  14. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    77c3bb9 View commit details
    Browse the repository at this point in the history
  15. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    2f5009c View commit details
    Browse the repository at this point in the history
  16. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    741ac01 View commit details
    Browse the repository at this point in the history
  17. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    f3391ce View commit details
    Browse the repository at this point in the history
  18. 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.
    ktun95 committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    5f8cc1f View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2023

  1. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    6e32ac6 View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    b6cb9eb View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    e87614d View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    e307251 View commit details
    Browse the repository at this point in the history
  5. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    9b3aa75 View commit details
    Browse the repository at this point in the history
  6. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    c9742c3 View commit details
    Browse the repository at this point in the history
  7. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    3a2c14a View commit details
    Browse the repository at this point in the history
  8. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    1c1feff View commit details
    Browse the repository at this point in the history
  9. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    d98de64 View commit details
    Browse the repository at this point in the history
  10. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    c236224 View commit details
    Browse the repository at this point in the history
  11. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    b964963 View commit details
    Browse the repository at this point in the history
  12. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    4845882 View commit details
    Browse the repository at this point in the history
  13. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    f32acca View commit details
    Browse the repository at this point in the history
  14. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    5fc1250 View commit details
    Browse the repository at this point in the history
  15. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    6207a94 View commit details
    Browse the repository at this point in the history
  16. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    e33cfac View commit details
    Browse the repository at this point in the history
  17. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    469fa15 View commit details
    Browse the repository at this point in the history
  18. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    72d6748 View commit details
    Browse the repository at this point in the history
  19. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    92599c6 View commit details
    Browse the repository at this point in the history
  20. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    1097cf1 View commit details
    Browse the repository at this point in the history
  21. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    126e9d3 View commit details
    Browse the repository at this point in the history
  22. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    a678423 View commit details
    Browse the repository at this point in the history
  23. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    83016ec View commit details
    Browse the repository at this point in the history
  24. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    1092ca1 View commit details
    Browse the repository at this point in the history
  25. 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.
    ktun95 committed Aug 11, 2023
    Configuration menu
    Copy the full SHA
    48c0b89 View commit details
    Browse the repository at this point in the history

Commits on Aug 14, 2023

  1. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    6c80bc6 View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    ef65a31 View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    6f7f60d View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    2e78caf View commit details
    Browse the repository at this point in the history
  5. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    04c09d7 View commit details
    Browse the repository at this point in the history
  6. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    c4a5557 View commit details
    Browse the repository at this point in the history
  7. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    7b734a6 View commit details
    Browse the repository at this point in the history
  8. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    3540eda View commit details
    Browse the repository at this point in the history
  9. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    678b69a View commit details
    Browse the repository at this point in the history
  10. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    ffea6ad View commit details
    Browse the repository at this point in the history
  11. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    9630be5 View commit details
    Browse the repository at this point in the history
  12. 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
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    c4b3812 View commit details
    Browse the repository at this point in the history
  13. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    2f8a0ce View commit details
    Browse the repository at this point in the history
  14. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    5b8c41c View commit details
    Browse the repository at this point in the history
  15. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    896bd17 View commit details
    Browse the repository at this point in the history
  16. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    46fb6e7 View commit details
    Browse the repository at this point in the history
  17. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    69b6ab3 View commit details
    Browse the repository at this point in the history
  18. 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.
    ktun95 committed Aug 14, 2023
    Configuration menu
    Copy the full SHA
    bfe4556 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2023

  1. 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.
    ktun95 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    cfc3b7b View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    26de284 View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    2c56243 View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    7c48809 View commit details
    Browse the repository at this point in the history
  5. 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".
    ktun95 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    eed2a30 View commit details
    Browse the repository at this point in the history
  6. 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.
    ktun95 committed Aug 16, 2023
    Configuration menu
    Copy the full SHA
    a39f24a View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2023

  1. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    1e16612 View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    c15277e View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    bec4e4f View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    a4a2465 View commit details
    Browse the repository at this point in the history
  5. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    b76bb71 View commit details
    Browse the repository at this point in the history
  6. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    1c4af87 View commit details
    Browse the repository at this point in the history
  7. feat(ui-dsc): move CatalogListWrapper and CatalogTableDisplay files

    These files were moved into the catalog folder to improve code organization.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    37080b2 View commit details
    Browse the repository at this point in the history
  8. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    1aa8665 View commit details
    Browse the repository at this point in the history
  9. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    142a5f3 View commit details
    Browse the repository at this point in the history
  10. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    6e0f388 View commit details
    Browse the repository at this point in the history
  11. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    3f7e53d View commit details
    Browse the repository at this point in the history
  12. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    4888467 View commit details
    Browse the repository at this point in the history
  13. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    9b015bd View commit details
    Browse the repository at this point in the history
  14. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    bc5dfb4 View commit details
    Browse the repository at this point in the history
  15. 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.
    ktun95 committed Aug 17, 2023
    Configuration menu
    Copy the full SHA
    f66dec5 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2023

  1. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    0a47702 View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    11b2054 View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    343c268 View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    fff7c9b View commit details
    Browse the repository at this point in the history
  5. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    f6c0de9 View commit details
    Browse the repository at this point in the history
  6. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    4c56649 View commit details
    Browse the repository at this point in the history
  7. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    02ffef6 View commit details
    Browse the repository at this point in the history
  8. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    19e95c9 View commit details
    Browse the repository at this point in the history
  9. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    cefb9fa View commit details
    Browse the repository at this point in the history
  10. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    3bfa62f View commit details
    Browse the repository at this point in the history
  11. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    e350d1c View commit details
    Browse the repository at this point in the history
  12. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    e091a47 View commit details
    Browse the repository at this point in the history
  13. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    ebd566e View commit details
    Browse the repository at this point in the history
  14. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    d357e65 View commit details
    Browse the repository at this point in the history
  15. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    2385af4 View commit details
    Browse the repository at this point in the history
  16. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    bf1252a View commit details
    Browse the repository at this point in the history
  17. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    36b37ca View commit details
    Browse the repository at this point in the history
  18. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    ddf886c View commit details
    Browse the repository at this point in the history
  19. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    be98792 View commit details
    Browse the repository at this point in the history
  20. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    84872e2 View commit details
    Browse the repository at this point in the history
  21. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    b75e41f View commit details
    Browse the repository at this point in the history
  22. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    1f0b852 View commit details
    Browse the repository at this point in the history
  23. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    e84c72d View commit details
    Browse the repository at this point in the history
  24. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    af43fa2 View commit details
    Browse the repository at this point in the history
  25. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    d46ed5e View commit details
    Browse the repository at this point in the history
  26. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    8ba3466 View commit details
    Browse the repository at this point in the history
  27. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    9526d8b View commit details
    Browse the repository at this point in the history
  28. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    2aaef66 View commit details
    Browse the repository at this point in the history
  29. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    a9527ee View commit details
    Browse the repository at this point in the history
  30. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    ded74e6 View commit details
    Browse the repository at this point in the history
  31. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    547f3e0 View commit details
    Browse the repository at this point in the history
  32. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    aa328e8 View commit details
    Browse the repository at this point in the history
  33. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    0be5c42 View commit details
    Browse the repository at this point in the history
  34. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    c647bb2 View commit details
    Browse the repository at this point in the history
  35. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    3837ed2 View commit details
    Browse the repository at this point in the history
  36. 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.
    ktun95 committed Aug 21, 2023
    Configuration menu
    Copy the full SHA
    6647fb7 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2023

  1. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    9180871 View commit details
    Browse the repository at this point in the history
  2. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    83e62bb View commit details
    Browse the repository at this point in the history
  3. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    af18315 View commit details
    Browse the repository at this point in the history
  4. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    e4639d8 View commit details
    Browse the repository at this point in the history
  5. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    fd3f180 View commit details
    Browse the repository at this point in the history
  6. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    f62268c View commit details
    Browse the repository at this point in the history
  7. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    eae2a66 View commit details
    Browse the repository at this point in the history
  8. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    2336bb8 View commit details
    Browse the repository at this point in the history
  9. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    b546c61 View commit details
    Browse the repository at this point in the history
  10. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    aa02a3a View commit details
    Browse the repository at this point in the history
  11. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6a3527c View commit details
    Browse the repository at this point in the history
  12. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    d47dca1 View commit details
    Browse the repository at this point in the history
  13. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6f983cf View commit details
    Browse the repository at this point in the history
  14. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    83ec1bd View commit details
    Browse the repository at this point in the history
  15. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6578612 View commit details
    Browse the repository at this point in the history
  16. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    98e88c9 View commit details
    Browse the repository at this point in the history
  17. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6c698fe View commit details
    Browse the repository at this point in the history
  18. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    18288a3 View commit details
    Browse the repository at this point in the history
  19. 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".
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    c4899fb View commit details
    Browse the repository at this point in the history
  20. 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).
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    5ed2cad View commit details
    Browse the repository at this point in the history
  21. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    e63a6f2 View commit details
    Browse the repository at this point in the history
  22. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    0b46481 View commit details
    Browse the repository at this point in the history
  23. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    7e1757c View commit details
    Browse the repository at this point in the history
  24. 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".
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    502580c View commit details
    Browse the repository at this point in the history
  25. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    fc9da25 View commit details
    Browse the repository at this point in the history
  26. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    f1bf3a8 View commit details
    Browse the repository at this point in the history
  27. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    fdfe2ef View commit details
    Browse the repository at this point in the history
  28. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    c2dffb9 View commit details
    Browse the repository at this point in the history
  29. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    b0cfa94 View commit details
    Browse the repository at this point in the history
  30. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6114ebf View commit details
    Browse the repository at this point in the history
  31. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    bf345cd View commit details
    Browse the repository at this point in the history
  32. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6904740 View commit details
    Browse the repository at this point in the history
  33. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    4e2fbb3 View commit details
    Browse the repository at this point in the history
  34. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    ab4e11a View commit details
    Browse the repository at this point in the history
  35. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    41c771b View commit details
    Browse the repository at this point in the history
  36. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    a0e0946 View commit details
    Browse the repository at this point in the history
  37. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    6f409db View commit details
    Browse the repository at this point in the history
  38. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    4a30a5e View commit details
    Browse the repository at this point in the history
  39. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    8d05ea5 View commit details
    Browse the repository at this point in the history
  40. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    26741f5 View commit details
    Browse the repository at this point in the history
  41. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    db2380d View commit details
    Browse the repository at this point in the history
  42. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    2dc21c0 View commit details
    Browse the repository at this point in the history
  43. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    4dd6813 View commit details
    Browse the repository at this point in the history
  44. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    cf88773 View commit details
    Browse the repository at this point in the history
  45. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    fc4e7a7 View commit details
    Browse the repository at this point in the history
  46. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    0bebe5c View commit details
    Browse the repository at this point in the history
  47. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    73f364e View commit details
    Browse the repository at this point in the history
  48. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    f27fe1e View commit details
    Browse the repository at this point in the history
  49. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    42b2678 View commit details
    Browse the repository at this point in the history
  50. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    d6fabc5 View commit details
    Browse the repository at this point in the history
  51. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    76b1704 View commit details
    Browse the repository at this point in the history
  52. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    f9ff70f View commit details
    Browse the repository at this point in the history
  53. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    8b10c86 View commit details
    Browse the repository at this point in the history
  54. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    b852e93 View commit details
    Browse the repository at this point in the history
  55. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    623213a View commit details
    Browse the repository at this point in the history
  56. chore(App.test.tsx): remove unused test file

    The file App.test.tsx was removed as it was no longer needed.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    3629301 View commit details
    Browse the repository at this point in the history
  57. 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.
    ktun95 committed Aug 22, 2023
    Configuration menu
    Copy the full SHA
    c05ed13 View commit details
    Browse the repository at this point in the history