-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pulling develop into staging #831
Conversation
ktun95
commented
Aug 26, 2024
- style(DictyNews.tsx): restructure DictyNews component to improve readability and maintainability
- feat(Featured.tsx): add support for disabled state in FeaturedLink component
- chore(Featured.tsx): remove unused Tooltip import and styles
- fix(Featured.tsx): add reloadDocument prop to Link component to enable reloading the document when clicked
- feat(stock-center): add VITE_LOGTO_ENDPOINT to .env.staging for logging purposes
- feat(user): add new user edit and show pages
- fix(ui-dsc): fix type assertion for data properties in StrainDetailsCard component
- refactor(StrainDetailsCardHeader.tsx): remove unused 'inStock' property and replace with 'cartData.in_stock' for consistency
- refactor(state.ts): prevent duplicate cart items using functions from fp-ts/Array and fp-ts/Eq
- fix(AvailableDisplay.tsx): fix removeFromCart function call to pass the correct argument
- style(useCartItemProperties.ts): remove unnecessary blank line
- refactor(ui-dsc): rename CartItem type to StrainCartItem for clarity and consistency
- refactor(StrainDetailsCard.tsx): remove unnecessary in_stock variable and inStock prop
- feat(cartState.ts): separate cart state and order state into separate files
- chore: update import paths in components to reflect new file structure
- refactor(types.ts): rename StrainCartItem type to CatalogCartItem for better clarity
- feat(ui-dsc): add getCatalogItemDescriptor utility function for extracting item descriptor
- feat(ui-dsc): add type definitions for VITE_APP_STOCKCENTER_URL environment variable
- feat(OrderSummaryPdf.tsx): add getCatalogItemDescriptor function import for improved item display in order summary
- style(PaymentPage.tsx): remove unnecessary console.log statement
- style(ui-dsc): fix formatting in StrainDetailsCardHeader.tsx and OrderSummaryPdf.tsx
- style(stock-center): reformat import statements for better readability
- chore(deps): bump @mui/material from 5.15.14 to 5.15.17
- chore(deps): bump eslint-plugin-react-hooks from 4.6.0 to 4.6.2
- chore(gitignore): update .gitignore to exclude E2E testing related directories
- feat(dicty-frontpage): add "@playwright/test" package to enable end-to-end testing with Playwright
- feat(yarn.lock): update playwright and fsevents dependencies to version 1.44.0 and 2.3.2 respectively
- feat(front.spec.ts): add end-to-end test file for front page with basic title check
- feat(e2e): add e2e tests for content pages and front page of the application
- feat(playwright.config.ts): add Playwright test configuration for dicty-frontpage app
- refactor(contentPage.spec.ts): rename properties tab to name and links to pages for better clarity and consistency
- feat(turbo.json): add e2e script for end-to-end testing
- feat(package.json): add e2e script for running end-to-end tests
- feat(dicty-frontpage): add e2e script to run end-to-end tests using Playwright
- chore(gitignore): update gitignore to include all directories with test results and cache folders
- chore(package.json): rename e2e script to e2e:local for clarity
- chore(dicty-frontpage): update e2e script to include BASE_URL environment variable for local testing
- feat(playwright.config.ts): use environment variable for baseURL and webServer URL to make them configurable
- chore(dicty-frontpage): update e2e:local script to use FRONTPAGE_URL environment variable
- feat(e2e): introduce BASE_URL constant to handle frontpage URL in e2e tests
- ci(pr-testing.yml): add steps to install Playwright and run E2E tests
- chore(turbo.json): rename e2e script to e2e:local for clarity
- chore(playwright.config.ts): disable WebKit browser for testing and remove commented out code
- chore(dicty-frontpage): comment out webkit configuration in playwright config
- chore(pr-testing.yml): update Playwright installation command to include dependencies
- chore(dicty-frontpage): exclude e2e tests from Vite test runner
- chore(pr-testing.yml): reorganize workflow steps for better readability and efficiency
- feat(dicty-frontpage): add ui-user package as a dependency to the project
- feat(Editor.tsx): add LinkPlugin to support linking functionality in the editor
- chore(editor-toolbar): add ts-pattern dependency to package.json
- feat(InsertLinkButton.tsx): add InsertLinkButton component for inserting links in the editor
- feat(editor-toolbar): add InsertLinkButton component to the toolbar
- style(InsertLinkButton.tsx): remove unnecessary comment and trailing whitespace
- refactor(InsertLinkButton.tsx): rename buttonRef to buttonReference for clarity and consistency
- style(InsertLinkButton.tsx): format InsertLinkButton component JSX for better readability
- fix(genome-page): update GraphQL server URL in .env.development file
- chore(next.config.mjs): add transpileModules to next.config for transpiling specific modules
- refactor(App.tsx): remove unused code related to token refresh functionality
- refactor(goannotations.tsx): update import and function names for clarity and consistency
- refactor(OntologyContainer.tsx): rename GeneQuery to GeneOntologyAnnotationQuery for clarity
- refactor(OntologyTabLayout.tsx): remove unnecessary GeneQuery import and update component props to use goas array instead of GeneQuery data
- feat(genome-page): add next-transpile-modules package to enable transpilation of specified modules in Next.js app
- feat(handlers.ts): add import statement for mockGeneOntologyAnnotationQuery from dicty-graphql-schema
- feat(package.json): update dicty-graphql-schema dependency to v1.15.0 in multiple packages
- refactor(handlers.ts): refactor Gene query handler to use ts-pattern library for better readability and maintainability
- refactor(OntologyContainer.tsx): rename 'gene' prop to 'goas' for clarity
- refactor(handlers.ts): improve code readability by formatting the mockGeneOntologyAnnotationQuery function
- feat(goannotations.tsx): implement pattern matching for result object in OntologyPageWrapper component
- style: fix various eslint issues
- style(App.tsx): remove unnecessary getTokenIntervalDelayInMS function
- chore(App.tsx): remove unused jwtDecode import to clean up code
- feat(package.json): update dicty-graphql-schema dependency to v1.16.0 in multiple packages
- feat(handlers.ts): add mockListStrainsWithGeneQuery to handle listStrainsWithGene query
- refactor(PhenotypesDataTable.tsx): update variable names for clarity and consistency
- refactor(PhenotypesContainer.tsx): rename gene prop to strains for clarity and consistency
- refactor(phenotypes.tsx): refactor PhenotypesPageWrapper to use ts-pattern for better readability and maintainability
- style(handlers.ts): format import statements for better readability
- fix(handlers.ts): update import path for mockStrainListQuery and mockStrainQuery to match new file structure
- style(handlers.ts): format import statements for better readability
- feat(handlers.ts): add mockListPublicationsWithGeneQuery to handle gene publication queries
- style(phenotypes.tsx): refactor return statement to improve code readability and maintain consistency
- style(goannotations.tsx): remove unnecessary return statement and clean up code formatting for better readability
- feat(references.tsx): replace useGeneQuery with useListPublicationsWithGeneQuery and refactor rendering logic using ts-pattern library
- refactor(PhenotypesDataTable.tsx): update strains type to match the new GraphQL schema structure
- refactor(ReferencesDataTable.tsx): update component to use new GraphQL query response structure
- refactor(PhenotypesDataTable.tsx): remove unnecessary error component and add non-null assertion to strains prop
- refactor(ReferencesContainer.tsx): rename gene prop to publications for clarity
- feat(package.json): update dicty-graphql-schema dependency to v1.17.0 in multiple packages
- fix(handlers.ts): remove unnecessary import statement for mockReferencesAda2
- chore(ReferencesDataTable.tsx): remove unused import of OtherError component
- style(ReferencesContainer.tsx): format code for better readability by aligning object properties and adding line breaks
- style(ReferencesContainer.tsx): fix formatting issue by removing unnecessary line break
- chore(deps-dev): bump @vitejs/plugin-react-swc from 3.4.0 to 3.6.0
- chore(auth): update package name to "@dictybase/auth" for better organization and clarity
- fix: update import paths to use @dictybase/auth package
- refactor(editor): change package name from "editor" to "@dictybase/editor" for better organization and namespacing
- fix(package.json): update import paths for Editor component to use @dictybase/editor
- fix(editor-toolbar): update package name to use scoped package naming convention
- fix(editor): update import path for DictybaseToolbar to use scoped package
- fix(package.json): correct typo in package name from "flex-layout-plugin" to "@dictybase/flex-layout-plugin"
- chore: update dependency for flex-layout-plugin to use scoped package name
- chore(frontpage-components): update package name to "@dictybase/ui-frontpage" for consistency
- feat: update package.json to use "@dictybase/ui-frontpage" instead of "frontpage-components"
- fix(image-plugin): change package name from "image-plugin" to "@dictybase/image-plugin"
- chore: update package.json to use scoped package name for image-plugin
- fix(package.json): correct typo in the "description" field for multiple packages
- chore(persistence-plugin): update package name to "@dictybase/persistence-plugin" for consistency
- fix(editor): update import path for persistence-plugin to use the correct package name
- chore(resizable-image): update package name to "@dictybase/resizable-image" in package.json
- chore(image-plugin): update package.json to use @dictybase/resizable-image package
- chore(table-action-plugin): update package name to include organization scope
- chore(editor): update package.json to use @dictybase/table-action-plugin package
- chore(package.json): update lint:out script paths in persistence-plugin and resizable-image packages
- fix(width-table-plugin): update package name to use scoped package naming convention
- chore: update dependency for width-table-plugin to use the correct package name
- style(InsertImageHelpers.ts): format import statements for better readability
- chore(stock-center): add lint script to package.json for linting TypeScript files
- style(user/show.tsx): format import statements for better readability
- refactor(mockGeneralInfoData.ts, mockGeneralInfoPiaA.ts): update type import from GeneralInfo to GeneGeneralInfo for better specificity
- feat(handlers.ts): add mock data and handlers for gene general information query
- feat(package.json): update dicty-graphql-schema dependency to v1.18.1 in multiple packages
- feat(genome-page): update mock handlers to use mockGeneSummaryQuery instead of mockGeneGeneralInformationQuery
- refactor(containerGenerator.tsx): rename GeneQuery to GeneGeneralInformationQuery for better clarity
- refactor(panelGenerator.tsx): export additional functions and types for better modularity and reusability
- feat(GeneralInfoPanel.tsx): refactor GeneralInfoPanel component to use GeneSummaryQuery and improve data handling and display
- refactor(GeneralInfoPanel.tsx): remove unused imports and clean up code for better readability
- feat(SummaryContainer.tsx): update import statement for GeneSummaryQuery to reflect changes in the dicty-graphql-schema
- refactor(genome-page): update gene query function to useGeneSummaryQuery for better clarity
- style(SummaryContainer.tsx): remove unnecessary line breaks and fix formatting in SummaryContainer component
- feat(dependency-graph): add dependency graph for project modules
- refactor: fix eslint errors
- fix(package.json): update jotai dependency version to ^2.0.0 in multiple packages
- feat(ColorPicker.test.tsx): add unit test for ColorPicker component to ensure correct rendering of buttons based on color options array
- feat(tests): add mock for @logto/react module in setup file for testing purposes
- refactor(cartState.ts): rename reduce function to concatW for better clarity and consistency
- feat(CartList.tsx): add isFullAtom to manage cart fullness state and update CartList component to use it
- feat(CartList.test.tsx): add support for creating a custom store in the test to set initial values for cartAtom
- feat(ImageComponent.tsx): add imageDimensionStore to manage image dimensions state
- feat(CartHandler.test.tsx): add support for creating a Jotai store in tests to manage state
- fix(useSearchStoreWithAtom.ts): fix import statement for focusAtom from jotai-optics package
- fix(tests): fix formatting in CartHandler.test.tsx, CartList.test.tsx, and setup.ts
- feat(handlers.ts): add gene ontology annotation data to gene summary query responses
- feat(package.json): update dicty-graphql-schema dependency to v1.18.2 in multiple packages
- feat(GoaPanelContent.tsx): update data type for the 'data' prop to be more specific
- refactor(GoaPanelContent.tsx): rename data prop to goa for clarity and consistency
- refactor(GoaPanel.tsx): update dataFilter function parameter to use NonNullable type for better type safety
- feat(SummaryContainer.tsx): add GoaPanel component to display Gene Ontology Annotations
- feat(handlers.ts): add mockProductInfo and mockProductInfoPiaA for gene product information in handlers
- feat(package.json): update dicty-graphql-schema dependency to v1.19.1 in multiple packages
- fix(tests): update test files to use mockOntologyData and mockPhenotypesData for better data consistency
- feat(SummaryContainer.tsx): add ProductInfoPanel to display gene product information
- feat(ProductInfoPanel.tsx): update variable names and refactor code for better readability and maintainability
- refactor(GeneralInfoPanel.tsx): remove the order property from PanelRowData type
- refactor(ProductInfoPanel.tsx): refactor ProductInfoPanel component to use fp-ts Option monad for better error handling and readability
- style: reformat code for better readability
- feat(GeneralInfoPanel.tsx): add fp-ts Option monads for safer handling of nullable values
- chore(ProductInfoPanel.tsx): remove unused import 'Do' from fp-ts library
- refactor(GoaPanel.tsx): remove unused import of GoAnnotation from dicty-graphql-schema
- feat(package.json): update dicty-graphql-schema dependency to v1.20.0 in multiple packages
- refactor(panelGenerator.tsx): update type casting from AssociatedSequences to NameWithLink array
- feat(AssociatedSequencePanel.tsx): refactor AssociatedSequencePanel component to use fp-ts Option monad for safer handling of data
- feat(SummaryContainer.tsx): add AssociatedSequencePanel to display associated sequences in the summary page
- feat(handlers.ts): add mockAssociatedData to handlers for associatedSequences field
- fix(PhenotypesContainer.tsx): make strains prop non-nullable to prevent potential runtime errors
- refactor(AssociatedSequencePanel.tsx): remove unnecessary console.log statement and simplify function structure
- refactor(ProductInfoPanel.tsx): refactor the displayItems object creation for better readability and maintainability
- feat: add NotFoundError component to finalRoutes to handle 404 errors more gracefully
- chore(dependency-graph.md): add new dependencies dicty-image and ui-common to the dependency graph
- chore(dicty-frontpage): remove unused dependencies @dictybase/ui-common and @dictybase/editor
- feat(dicty-frontpage): move @dictybase/auth and @dictybase/ui-frontpage
- chore(ui-common): remove dicty-graphql-schema dependency from package.json
- chore(ui-common): remove dicty-graphql-schema dependency from package.json
- feat(ui-common): add type definitions for ImportMetaEnv and ImportMeta interfaces
- feat(EditEditor.tsx): refactor onSave function to use fp-ts TaskEither for better error handling and readability
- refactor(EditView.tsx): change token prop to getAccessToken function for better abstraction and flexibility
- refactor(EditablePages): replace useTokenAndUser hook with useLogto for improved functionality and readability
- chore(EditablePages/Edit.tsx): remove unnecessary console.log statement
- feat(edit.tsx): refactor authentication logic to use @logto/react library for improved security and user experience
- feat(edit.tsx): add Logto authentication functionality to improve user authentication process
- feat(AddPageEditor.tsx): refactor handleSaveClick function to use fp-ts TaskEither for better error handling and readability
- refactor(AddPageView.tsx): change token prop to getAccessToken function for better abstraction and flexibility
- feat(AddPage.tsx): add Logto integration to fetch user info and access token dynamically
- feat(addpage.tsx): refactor authentication logic to use @logto/react library for improved user authentication handling
- feat(package.json): update dicty-graphql-schema dependency to v1.21.0 in multiple packages
- refactor(handlers.ts): remove unused mockProductInfo, mockProductInfoPiaA, and mockAssociatedData imports
- refactor(GeneralInfoPanel.tsx): rename 'alt_protein_names' to 'synonyms' for clarity
- refactor(SummaryContainer.tsx): remove unused listGeneProductInformation and associatedSequences variables
- chore(AddPage.tsx): remove unused import of useTokenAndUser from auth module
- refactor(Layout.tsx): comment out unused switch cases and tab links for better code readability
- refactor(SummaryContainer.tsx): remove commented out code related to unused functions for cleaner codebase
- feat(package.json): update dicty-graphql-schema dependency to v1.22.0 in multiple packages
- feat(package.json): update dicty-graphql-schema dependency to v1.22.1 in multiple packages
- feat(handlers.ts): add listPublicationsWithGene data to mock handlers for genome page
- chore(containerGenerator.tsx): remove unused containerGenerator file
- refactor(panelGenerator.tsx): remove unused imports and commented out code for better code cleanliness and readability
- refactor(ReferencesPanel.tsx): rename GeneQuery to GeneSummaryQuery and update variable names for clarity
- style(ReferencesContainer.tsx): remove unnecessary whitespace in ReferencesContainer component
- feat(SummaryContainer.tsx): replace ProductInfoPanel and AssociatedSequencePanel with ReferencesPanel for displaying gene publications
- style(panelGenerator.tsx): remove commented out code and unnecessary whitespace for better code readability
- style(SummaryContainer.tsx): remove unnecessary whitespace and align code for better readability
- refactor(Layout.tsx): remove commented-out code and update tab values based on subroute
- fix(pubLinkGenerator.ts): update publication link generation to use NEXT_PUBLIC_PUBLICATION_URL environment variable
- feat(genome-page): add new environment variables for stock center and publication URLs
- fix(PhenotypeRow.tsx): update strain link to use NEXT_PUBLIC_STOCKCENTER_URL environment variable
- fix(publication): update dev script to include port flag for Next.js development server
- fix(ReferencesPanel.tsx): update publication URL to use NEXT_PUBLIC_PUBLICATION_URL environment variable
- style(PhenotypeRow.tsx): improve code readability by formatting JSX elements for strain link
- feat(turbo.json): add NEXT_PUBLIC_PUBLICATION_URL environment variable
- refactor(PublicationsView.tsx): reorganize sorting functions and remove unused code for better code readability and maintainability
- refactor(PublicationsView.tsx): reorganize sorting functions and add new sorting options for publications
- ci(ci.yml): upgrade codecov-action to v4 and add token for authentication
- ci(ci.yml): update Docker workflow actions to use main branch and simplify image specification
- fix(Dockerfile.frontpage): pin turbo version to 1.13.3 to ensure consistent builds
- feat(Dockerfile.publication): pin turbo version to 1.13.3 to ensure consistent builds
- fix(Dockerfile.stock-center): pin turbo version to 1.13.3 to ensure consistent builds
- feat(genome-page): add new environment variables for logging to different API endpoints
- chore(next.config.mjs): update transpileModules array to include "@logto/react" package
- feat(additional.d.ts): add new environment variables for logging to API resources
- build(genome-page): update dependencies in package.json
- feat(AppProviders.tsx): add LogtoProvider to integrate logging functionality into the app
- chore(genome-page): remove unused test, component, and mock files related to CommunityAnnotations, Orthologs, and Wiki components
- chore(WikiDisplay.tsx, AssociatedSequencePanel.tsx, LinksPanel.tsx, ProductInfoPanel.tsx): Remove unused files and components
- feat(genome-page): update environment variables in .env.production file for production deployment
- feat(genome-page): add .env.staging file with environment variables for staging environment setup
- chore: remove unused files
- feat(additional.d.ts): add NEXT_PUBLIC_FRONTPAGE_URL and NEXT_PUBLIC_STOCKCENTER_URL to ProcessEnv interface
- build(next.config.mjs): update transpileModules list to include new dictybase modules
- feat(package.json): add "@dictybase/auth" dependency to genome-page app
- chore(package.json): add 'genomepage' filter to the dev script for improved development workflow
- refactor(dragHandlers.ts): move TRANSPARENT_IMAGE constant declaration inside onDragStart function
- refactor(Footer.tsx): remove unnecessary data manipulation and simplify code structure
- chore(footerData.ts): remove unused footerData file
- feat(authFooterData.ts): add support for creating footer items with custom URLs for front page and stock center
- refactor(footer): remove unused export statement for "footerData" module
- refactor(defaultIconItems.tsx): refactor defaultIconItems array into a function createDefaultIconItems to improve code readability and maintainability
- refactor(headerLinks.ts): refactor functions to create icon items and header icons for better code organization and readability
- chore(vite.environment.d.ts): update type definitions for Vite environment variables
- refactor(HeaderWithAuth.tsx): refactor HeaderWithAuth component to use frontPageUrl and basename instead of clientRouter and homePath
- feat(FooterWithAuth.tsx): refactor FooterWithAuth component to use dynamically generated footer items based on frontPageUrl and stockCenterUrl
- chore(FooterWithAuth.tsx): remove unused import of 'pipe' function from fp-ts library
- refactor(Protected.tsx): refactor conditional routing logic into a separate function for better readability and maintainability
- chore(viteEnvironment.d.ts): add typings for Vite environment variables to improve type safety
- feat(user/show.tsx): add useEffect hook to fetch user information and display loading component while fetching
- fix(genome-page): update NEXT_PUBLIC_BASENAME value to include a leading slash for correct URL path
- feat(DscApp.tsx): add frontPageUrl and stockCenterUrl props to HeaderWithAuth and FooterWithAuth components
- feat(FrontPageApp.tsx): add frontPageUrl and stockCenterUrl props to HeaderWithAuth and FooterWithAuth components
- refactor(HeaderWithAuth.tsx): reorganize import statements for better readability
- refactor(const.ts): refactor callbackPath and homePath functions into getCallbackPath and getHomePath functions for improved readability and maintainability
- feat(HeaderWithAuth.tsx): add functions getCallbackPath and getHomePath to improve code readability and maintainability
- refactor(App.tsx): update imports and components to use new auth components from @dictybase/auth
- refactor(LogoutButton.tsx): remove unused imports and props from LogoutButton component
- feat(editor): add components for adding, editing, and viewing pages
- feat(timeSince.ts): add a utility function to calculate time elapsed since a given date
- chore(ui-common): delete editor files
- chore(ui-common): remove outdated test files related to EditablePages components and timeSince utility
- chore(ui-common): remove unused content mock file
- refactor(timeSince.ts): remove unused imports and clean up code for better readability and maintainability
- build(ui-common): update dependency for "@dictybase/editor" to "dicty-graphql-schema" from GitHub
- feat(dicty-frontpage): add @dictybase/editor as a new dependency
- chore(EditablePages): update import paths for AddPage, Edit, Editable, and Show components to use components from @dictybase/editor instead of @dictybase/ui-common
- chore(stock-center): update imports for AddPageView, EditView, EditableView, and ContentView components to use the new location in @dictybase/editor package
- feat(LogoContainer.tsx, Header.tsx, Logo.tsx): update LogoContainer, Header, and Logo components to accept frontPageUrl prop
- feat(tests): add unit tests for ContentView, EditButton, EditableView, and timeSince functions
- feat(editor): add content mock data for testing purposes
- feat(editor): add vitest configuration file for testing setup
- chore(editor): add test scripts and vitest as a development dependency
- feat(editor): add setup file for editor package to configure testing environment
- feat(tests): pass frontPageUrl prop to Header, Logo, and Links components for better customization
- feat(viteEnvironment.d.ts): add type definitions for VITE_APP_LOGTO_API_SECOND_RESOURCE environment variable
- feat(editor): add new exports for EditablePages components and EditableContentToolbar
- fix(package.json): update versions of @apollo/client and apollo3-cache-persist in multiple apps
- chore(auth): remove unused useRole module to declutter the codebase
- refactor(HeaderWithAuth.tsx): restructure HeaderWithAuth component to pass frontPageUrl prop to Header component
- refactor(auth): remove unused useRole module
- feat(stock-center): update imports to use new components from @dictybase/editor package
- chore(ErrorBoundary.tsx, NotFoundError.tsx, NotFoundErrorAuth.tsx, OtherError.tsx): update image source URLs to use a centralized storage location
- chore(ui-common): remove sad-dicty.png image file
- refactor(ui-common): remove unused EditablePages components
- chore(UnAuthorized.tsx): remove unused local image import and replace it with a remote image URL
- refactor(next.config.mjs): remove unused dependencies to optimize build process
- chore(auth): remove sad-dicty.png image file
- style(_app.tsx): reformat indentation for better code readability
- test(ReferencesContainer.test.tsx): update import and prop name to mockReferencesData
- test(BlastContainer.test.tsx): remove unnecessary import and update test to render BlastContainer without passing gene prop
- test(Footer.test.tsx): update test data in Footer component test to use a local testData variable
- feat(turbo.json): add new environment variables related to logging to turbo.json
- chore: update import statements for mock data to match new data structure and improve readability
- fix(package.json): update dependencies versions for consistency and compatibility
- feat(genome-page): add jest setup file to set NEXT_PUBLIC_PUBLICATION_URL
- feat(genome-page): add setupFiles configuration to jest.config.js for setting up environment before tests
- refactor: clean up test files
- refactor(editor): update import paths for Editor component in various files
- test(pubLinkGenerator.test.ts, SummaryContainer.test.tsx): fix formatting issues in test files
- chore(package.json): update @types/react version to "17.*" in multiple packages
- chore(package.json): remove jwt-decode dependency from multiple apps
- chore(mockServiceWorker.js): update Mock Service Worker version from 1.2.1 to 1.3.2
- chore(dicty-image): remove unnecessary devDependencies and update package.json formatting
- chore(package.json): remove unnecessary @types/jest dependency from data-access and footer packages
- chore: update dependency versions in multiple packages
- chore(package.json): remove unused react-test-renderer dependency from dicty-frontpage and genome-page apps
- chore(package.json): remove lint-staged configuration from genome-page and publication apps
- build(deps): bump braces from 3.0.2 to 3.0.3
- build(deps): bump ws from 7.5.9 to 7.5.10
- chore(package.json): update vitest dependency version to 1.x in multiple packages
- test(SearchPhenotypeListItem.test.tsx): refactor test to improve readability and maintainability
- refactor(vite.config.ts): remove unnecessary import and mergeConfig function calls
- feat(index, pages, routes, themes, tsconfig, vite.config): add new files for app structure
- feat(plopfile.js): add new templates and copies for Vite based dictybase applications
- feat(AppProviders.txt): replace useCreateApolloClient with useGraphqlClient from @dictybase/data-access
- chore(package.json): update versions of devDependencies and dependencies to use wildcard for minor versions
- refactor(package.hbs): update versions of devDependencies and dependencies in package.json template
- chore(useCreateApolloClient): remove unused Apollo client creation hook
- chore(package.hbs): remove e2e:local script as it is no longer needed
- chore(plopfile.js): remove unused useCreateApolloClient hook template
- chore: update lock file
- feat(AppProviders.tsx): add LogtoProvider to handle logging and user authentication
- feat(App.tsx): add authentication support to Header, Navbar, and Footer components
- chore(publication): update tsconfig.json with additional compiler options and file inclusions
- chore(publication): update dependency from "@dictybase/navbar" to "@dictybase/auth"
- chore(next.config.js): add transpile modules for new packages and update existing ones
- chore(footerItems): remove unused footerItems file and related code from genome-page and publication apps
- feat(additional.d.ts): add global type declarations for environment variables related to the application configuration
- chore(publication): remove unused NEXT_PUBLIC_FOOTER_JSON and NEXT_PUBLIC_NAVBAR_JSON environment variables
- chore(next.config.js): remove unused "@dictybase/image-plugin" module from transpile list
- chore(next.config.mjs): remove unused "@dictybase/image-plugin" module from transpileModules list
- style(OtherError.tsx): replace FontAwesomeIcon with ErrorIcon component for consistency and better performance
- refactor(news): refactor News component to use ts-pattern for better pattern matching and error handling
- feat(news): add NewsView component to display news data in a separate component
- chore(frontpage): remove Tweets component and its test file
- chore(package.json): update dicty-graphql-schema version to v1.23.0 in multiple packages
- feat(PublicationsView.tsx): refactor shuffle function to improve readability and maintainability
- feat(mockNewsData.ts): add mock data generation function for news content
- feat(package.json): update dicty-graphql-schema dependency to v1.23.1 in multiple packages
- fix(news): import P from ts-pattern to use pattern matching in the code
- feat(dicty-frontpage): add date-fns package to dependencies for date manipulation functionality
- chore(mockNewsData.ts): remove unused mockNewsData file
- feat(mockNews): add function generateMockNews to create mock news data for testing purposes
- chore(frontpage): remove unused mock handlers for private and public routes
- refactor(handlers.ts): refactor handlers array to include a new mockListContentByNamespaceQuery function
- refactor(index.tsx): simplify import statement for worker in mock environment
- feat(news/index.tsx): add NewsItem component to display individual news items with updated_at date and content
- feat(news): add new edit and index pages for news items
- chore(package.json): remove test app package.json file
- chore(dicty-frontpage): update .env.mock file with new environment variables for the frontpage app
- feat(useAuthorizedCreateContent): add a new utility function useAuthorizedCreateContent to handle authorized content creation
- refactor(index.tsx): extract authorizedRoles array to a separate constant for better readability and maintainability
- feat(news/index.tsx): add Grid component to NewsView to display NewsItem components in a grid layout
- feat(news): add CreateNewsToolbar component and refactor CreateNews component for better organization and readability
- chore(frontpage): remove PrivateRoute and ProtectedRoute components
- style(news): replace Grid, Box, and Theme imports with Container in create.tsx
- style(news): reformat JSX code for better readability and maintainability
- style(UnAuthorized.tsx): fix typo in text from "UnAuthorized" to "Unauthorized"
- style(Editor.tsx): remove unused imports and clean up code formatting
- style(useEditorStyles.ts): refactor useEditorAreaStyles and useEditorPlaceholderStyles to improve code readability and maintainability
- feat(news): add new EditableNews component to display and edit news items
- refactor(namespace.ts): rename NAMESPACE constant to NEWS_NAMESPACE for clarity
- style(superuser.ts): change isActive property to is_active for consistency and readability
- refactor(useAuthorizedCreateContent.ts): refactor authorizedCreateContent function to return a task instead of calling it directly
- feat(useAuthorizedUpdateContent): add a new utility function useAuthorizedUpdateContent to handle authorized content updates
- refactor(news page): remove unused imports and comments, refactor NewsShow component for better readability and maintainability
- feat(handlers.ts): add mock handlers for createContentMutation, contentBySlugQuery, and updateContentMutation
- feat(edit.tsx): add CreateNewsToolbar component and UpdateNewsProperties type for better organization and readability
- fix(news): change id property to name in NewsItemProperties interface and related components for better readability and semantics
- feat(news show): add new NewsShow component to display news content based on slug
- refactor(news show component): rename NewsShow component to ShowNews for better readability and consistency
- feat(news): replace hardcoded namespace string with NEWS_NAMESPACE constant for consistency
- feat(frontpage): add new editable news page component for content management
- feat(package.json): update dicty-graphql-schema dependency to v1.24.0 in multiple packages
- chore: update lock file
- feat(useAuthorizedDeleteContent): add a new utility function for deleting content with authorization support
- feat(ActionBar.tsx, UpdateButton.tsx): add new components ActionBar and UpdateButton for frontpage app
- refactor(ActionBar.tsx): refactor children rendering logic using fp-ts functions
- style(ActionBar.tsx): refactor ActionBar component to wrap children in a Grid item
- feat(CreateButton.tsx): add CreateButton component for creating and saving content
- feat(handlers.ts): add mockDeleteContentMutation to handle deletion of content
- refactor(news show component): rename ShowNews component to Show for better clarity and consistency
- refactor(news edit page): remove unused imports and styles, refactor toolbar component into ActionBar component
- feat(news): add new ActionBar component to EditableView for editing news content
- feat(news/create.tsx): replace custom CreateNewsToolbar with ActionBar component for improved readability and maintainability
- refactor(Editor.tsx): remove unused imports and variables, simplify toolbar rendering logic
- fix(routes.tsx): replace NotFoundError component with OtherError component for consistency
- refactor(handlers.ts): refactor mockListContentByNamespaceQuery to fetch data from database instead of generating mock data
- refactor(news/editable.tsx): fix destructuring syntax for contentBySlug object
- feat(news show.tsx): replace ContentView component with Editor component for displaying news content
- feat(news): add RoleRedirect component to handle authorization logic for different user roles
- refactor(news): refactor RoleRedirect component to use the new useAuthorization hook and authorizedRoles array
- feat(news): add a new News page component to display news items with date, content, and read more link
- fix(editable.tsx): change id property to name in NewsItemProperties interface and EditableNewsItem component to improve clarity and consistency
- style(news/editable.tsx): reformat destructured props for EditableNewsItem component
- feat(news): add NEWS_NAMESPACE constant to improve code readability and maintainability
- style(news): update Typography component to use variant "h2" for better visual hierarchy
- fix(useAuthorizedDeleteContent.tsx): update error message from "Could not update content" to "Could not delete content" for accuracy
- feat(DeleteButton.tsx): add DeleteButton component to allow users to delete content
- feat(news): add fetch policy "cache-and-network" to improve data fetching behavior
- feat(news): add DeleteButton component to EditableView for deleting news items
- refactor(news): reorder match patterns to prioritize content
- feat(news): add NewsListActionBar component to NewsView for improved user interaction
- fix(news/create.tsx): fix navigate function call to correctly redirect to the /news/editable path
- feat(NewsListActionBar.tsx): add a new component NewsListActionBar to display a toolbar with a create button
- feat(utils): add ordByDate utility function for sorting dates in fp-ts library
- feat(news): add sorting functionality to display news items by newest first
- fix(ordByDate.ts): fix incorrect ordering logic in dateCompare function
- style(ordByDate.ts): add comment to clarify that ordByDate function orders dates by newest first
- style(news/editable.tsx): change grid container direction to column for better alignment
- style(news/show.tsx): reorder Grid props
- style(news): increase spacing between items in Grid container from 4 to 7 for better visual separation
- style(NewsListActionBar.tsx): replace IconButton with Button component for better user experience
- style(news): update text in ActionBar component to improve clarity and consistency
- feat(news): add functionality to navigate back to the news page from the editable page
- feat(news): refactor NewsItem and EditableNewsItem components to display a preview of the content
- feat(DictyNews.tsx): refactor NewsList component to dynamically render content based on fetched data
- feat(ui-frontpage): rename frontpage-components to ui-frontpage
- chore(package.json): remove date-fns dependency from dicty-frontpage and add it to ui-frontpage for consistency
- fix(DictyNews.tsx): update link destination from "/" to "/news" for More News button
- feat(DictyNews.tsx): add date formatting using date-fns library for improved readability
- fix: update import path for useAuthorizedCreateContent, useAuthorizedDeleteContent, and useAuthorizedUpdateContent to match new file structure
- feat(newsCreate.test.tsx): add unit tests for the Create component in the news section
- feat(dicty-frontpage): add 'test' script to run vitest for testing purposes
- test(setupTests.js): add mock for @logto/react to provide a dummy implementation of useLogto
- feat(newsRead.test.tsx): add unit tests for the Show component to ensure proper rendering and behavior
- fix(news components): export EditableView component to be used in other files
- feat(newsReadEditable.test.tsx): add unit tests for Editable component rendering and error handling
- feat(EditableView.test.tsx): add unit tests for EditableView component
- test(newsCreate.test.tsx): refactor routing setup to use createMemoryRouter for better test isolation
- feat(newsUpdate.test.tsx): add unit tests for the news update functionality
- test: update test descriptions
- feat(newsReadEditable.test.tsx): add support for userEvent library to enable user interactions in tests
- test(newsUpdate.test.tsx): add MockedProvider from @apollo/client/testing to enable mocking Apollo Client in tests
- feat(tests): add unit tests for EditView, NewsItem, and NewsView components
- feat(news/show.tsx): add export for ACCESS constant from auth module
- feat(news/edit.tsx): export EditView component for reusability
- style(UpdateButton.tsx): improve button styling by changing variant and color
- feat(timeSince.ts): add a utility function to calculate time elapsed since a given date in various time units
- feat(EditablePages): add EditableView component for displaying and editing content with an editable action bar
- feat(EditablePages): add EditView component to allow users to edit content with an interactive editor
- feat(ui-common): add ActionBar component to the ui-common package
- chore(news): remove duplicate import of ActionBar component in edit.tsx and editable.tsx files
- style(news/editable.tsx): fix indentation and formatting issues in EditableNewsItem component
- refactor(Editable/Edit.tsx): update import paths for EditView and EditableView components
- feat(handlers.ts): add fp-ts function pipe and startsWith to improve code readability and maintainability
- feat(ShowView.tsx): add a new React component ShowView for rendering editable content pages
- refactor(Show.tsx): rename ContentView component to ShowView for better clarity and consistency
- fix(handlers.ts): add condition to skip mockCreateContentMutation if namespace is not "news"
- style(CreateButton.tsx): improve button styling for better user experience
- feat(AddPageView.tsx): add a new component AddPageView to allow users to create editable pages
- refactor(AddPage.tsx): update prop name from 'slug' to 'name' for better clarity
- refactor(AddPage.tsx): remove unused imports and state variables to clean up the code
- refactor(Edit.tsx): remove unused imports and code related to user authentication
- feat(hooks): add new hooks for authorized create, update, and delete content operations
- feat(UpdateButton.tsx): add a new component UpdateButton to handle updating content in the application
- feat(CreateButton.tsx): add CreateButton component to allow users to save content
- feat(components): add new components AddPageView, EditView, EditableView, and ShowView for stock-center app
- refactor(pages): remove unused imports and components, and replace them with new EditView, EditableView, and ShowView components
- feat(timeSince.ts): add a new utility function to calculate time elapsed since a given date
- feat(stock-center): refactor components to use Container from @material-ui/core for better styling consistency
- docs(news-component): remove unused news component files and dependencies
- feat(editor): remove unnecessary files related to editing and adding pages
- feat(handlers.ts): add filtering logic to retrieve only news content from listContentByNamespace
- style(news): improve button styling in EditView and EditableView components
- style(DeleteButton.tsx): add makeStyles hook to style the Delete button for better visual consistency
- feat(EmptyNewsView.tsx): add EmptyNewsView component to display a message when there are no news items
- feat(news/show.tsx): add EmptyNewsView component to display when there are no news items available
- style(news/create.tsx): improve button styling for cancel button
- refactor(editor): reorganize exports in index.ts for better organization and readability
- refactor(editor): remove headlessEditor export from index.ts
- feat(DictyNews.tsx): introduce EmptyNewsList component to display a message when there are no news items
- style(ActionBar.tsx): change descriptionElement prop to be optional for better flexibility
- feat(EmptyNewsViewAuth.tsx): add EmptyNewsViewAuth component to display a message when there are no news items
- style(NewsListActionBar.tsx): refactor Grid component formatting for better readability
- feat(news): add EmptyNewsViewAuth component to display when there are no news items in the list
- style(DictyNews.tsx): change Grid container direction to column for better readability and maintainability
- refactor(news): refactor NewsItem component in editable.tsx and show.tsx to use truncateString utility function
- feat(truncateString.ts): add utility function to truncate a string to a specified length
- chore(dicty-frontpage): remove unused "news-component" dependency from package.json
- chore(tests): remove unused test files ContentView.test.tsx, EditButton.test.tsx, and EditableView.test.tsx
- style(publicationBody.tsx): refactor title rendering to use dangerouslySetInnerHTML for better security
- refactor(Abstract.tsx): simplify abstract rendering logic using fp-ts library functions
- feat(parseTags.ts): add utility function to parse tags in a given text
- feat(parseFormattedStringToDOMElements.ts): add function to parse formatted string into DOM elements
- feat(parseFormattedStringToDOMElements.ts): add support for additional HTML tags and improve parsing functionality
- feat(Abstract.tsx, PublicationBody.tsx): add parseFormattedStringToDOMElements function to parse and render formatted strings as DOM elements
- chore(parseTags.ts): remove unused file parseTags.ts
- refactor(parseFormattedStringToDOMElements.ts): refactor regex creation function for better readability and maintainability
- feat(parseFormattedStringToDomElements): add function to parse formatted string into DOM elements
- fix(components): rename parseFormattedStringToDOMElements to parseFormattedStringToDomElements for consistency
- feat(DeleteDialog.tsx): add DeleteDialog component for displaying a confirmation dialog before deleting content
- feat(DeleteDialogButton.tsx): add DeleteDialogButton component for displaying a delete button with confirmation dialog
- style(NewsListActionBar.tsx): remove commented out styles to clean up code
- feat(dicty-frontpage): add state management file state.ts to handle contentIdAtom using jotai and fp-ts/Option
- refactor(useAuthorizedDeleteContent.tsx): modify useAuthorizedDeleteContent function to accept an Option type for contentId parameter
- feat(DeleteButton.tsx): refactor DeleteButton component to use jotai for state management
- feat(frontpage): replace DeleteButton component with DeleteDialogButton component for improved user experience
- feat(tests): add tests for DeleteDialog and DeleteDialogButton components
- style(DeleteDialog.tsx): remove Typography component from DeleteDialog title for a cleaner and more consistent design
- test(DeleteDialogButton.test.tsx): add RouterProvider and MockedProvider to test setup for better integration testing
- feat(DeleteDialog.test.tsx): add support for routing in DeleteDialog tests using createMemoryRouter
- test(EditableView.test.tsx): remove unnecessary test case for delete functionality
- chore(newsReadEditable.test.tsx): remove unused userEvent.setup() function call
- chore(yarn.lock): remove slugify package from yarn.lock file
- build(deps): bump eslint-plugin-react from 7.33.2 to 7.34.3
- build(deps-dev): bump @types/jest from 29.5.11 to 29.5.12
- build(deps): bump react-hook-form from 7.46.2 to 7.52.1
- style(news show.tsx): add missing imports for Typography, pipe, parseISO, and format to improve code readability
- feat(news/editable.tsx): add functionality to display and format the last updated date of news articles
- docs(dependency-graph.md): add new dependency from A to J in the flowchart
- style(news/editable.tsx): improve layout by using Grid component for better structure
- feat(edit.tsx): add updated_at field to EditViewProperties to display last updated date
- style(ActionBar.tsx): remove marginBottom style property to improve consistency and spacing in the UI
- feat(EditView/EditableView.test.tsx): add updated_at prop to EditView and EditableView components
- feat(EditView/EditableView.test.tsx): update updated_at prop value to a specific date string for consistent testing
- refactor(handlers.ts): refactor the newsContent variable assignment for better readability
- build(deps): bump yjs from 13.6.8 to 13.6.18
- feat(google-analytics): add google-analytics package with initialization function and setup for testing
- chore(frontpage): remove unused index and types files from the routes directory
- fix(pages): update import paths for ACCESS constant to use @dictybase/auth
- fix(pages): fix duplicate import statements in addpage.tsx, edit.tsx, editable.tsx, notfound.tsx, notfoundauth.tsx, and show.tsx files
- style(DeleteDialog.test.tsx): remove unnecessary prop values in DeleteDialog component
- style(NewsItem.test.tsx): rename newsItemProps to newsItemProperties for better readability
- fix(DeleteButton.tsx): fix import order to group related imports together
- feat(initializeGoogleAnalytics.ts): add support for handling page visibility changes to track page views accurately
- feat(FrontPageApp.tsx): add Google Analytics tracking using useGoogleAnalytics hook
- refactor(useGoogleAnalytics.tsx): refactor useGoogleAnalytics hook to use useEffect directly and simplify logic
- style(useAuthorizedDeleteContent.tsx): add a trailing comma to the fromOption import statement for consistency
- style(front.spec.ts): fix indentation and whitespace inconsistencies
- style(Frontpage): fix indentation and line breaks in LatestPapersView.tsx
- feat(dicty-frontpage): add support for Google Analytics tracking ID in Vite environment variables
- chore(package.json): fix missing newline at end of file in multiple package.json files
- chore(package.json): update devDependencies versions for testing libraries and vitest
- feat(dicty-frontpage): add @dictybase/google-analytics package to dependencies
- chore(GoogleAnalyticsWrapper.tsx): remove GoogleAnalyticsWrapper component
- style(useGoogleAnalytics.tsx): improve code formatting for better readability
- style(routes.tsx): remove trailing comma in route definition to adhere to coding style guidelines
- style(NewsItem.test.tsx, NewsView.test.tsx): update test descriptions to use placeholder syntax for dynamic values
- fix: remove unused imports
- chore(Wrapper.tsx): remove unused Wrapper component from the styleguide
- refactor(news page): remove unnecessary console.log statement
- feat(contentPage.spec.ts): refactor contentPage.spec.ts to use functional programming with fp-ts library for better code readability and maintainability
- fix(playwright.config.ts): increase timeout value from 15 seconds to 60 seconds for better test stability
- style(contentPage.spec.ts): refactor import statements to improve code readability
- feat(turbo.json): add FRONTPAGE_URL environment variable to e2e:local script
- style(useGoogleAnalytics.tsx): add eslint-disable-next-line comment to ignore console error
- chore(package.json): update lint:out script to output linting results to google-analytics.json file
- chore(dicty-frontpage): add lint and lint:out scripts for linting with ESLint
- refactor(useGoogleAnalytics.tsx): rename DEPLOY_ENV to VITE_DEPLOY_ENV for consistency
- feat(useGoogleAnalytics.test.tsx): add unit tests for useGoogleAnalytics hook to ensure proper functionality
- feat(initializeGoogleAnalytics.test.ts): add unit tests for initializeGoogleAnalytics function
- refactor(google-analytics): remove unnecessary cleanup function and imports
- feat(vitest.config.ts): move vitest configuration file for Google Analytics package
- chore(google-analytics): update devDependencies in package.json
- test(useGoogleAnalytics.test.tsx): update Google Analytics tracking ID in test file
- feat(useGoogleAnalytics.tsx): add custom hook to initialize Google Analytics based on environment variables
- feat(useGoogleAnalytics.test.tsx): add unit tests for useGoogleAnalytics hook to ensure proper functionality
- feat(DscApp.tsx): add Google Analytics hook to track user interactions
- feat(stock-center): add @dictybase/google-analytics package to dependencies in package.json
- style(initializeGoogleAnalytics.ts): update function parameter name from 'arguments' to 'arguments_' for clarity
- feat(genome-page): add @dictybase/google-analytics as a dependency
- chore(next.config.mjs): reorganize the transpileModules array for better readability and maintainability
- refactor(useGoogleAnalytics.tsx): refactor useGoogleAnalytics hook to simplify and improve error handling
- feat(publication): add "@dictybase/google-analytics" package as a dependency
- refactor(useGoogleAnalytics.tsx): refactor useGoogleAnalytics hook to simplify and improve error handling
- feat(App.tsx): add Google Analytics hook to track user interactions
- refactor(next.config.js): reorganize the order of transpiled modules for better readability and maintainability
- chore(package.json): remove react-ga dependency from dicty-frontpage and genome-page apps
- feat(ui): add unique key prop to list items in LatestPapersView, Featured, RecentPlasmidItems, and RecentStrainItems components
- test(useGoogleAnalytics.test.tsx): remove unnecessary empty line at the end of the file
- build(deps): bump jotai-optics from 0.3.1 to 0.3.2
- build(deps-dev): bump @vitejs/plugin-react-swc from 3.6.0 to 3.7.0
- build(deps): bump react-hook-form from 7.52.1 to 7.52.2
- feat(ci.yml): transition from Docker build to composite deployment workflows
- ci(ci.yml): update job dependencies to ensure correct deployment order
- feat(.github/workflows/staging.yml): transition from Docker build to composite deployment workflow
- refactor(ci.yml): streamline deployment jobs into a single job for multiple apps
- refactor(staging.yml): streamline deployment jobs into a single job for multiple apps
- feat(Dockerfile.frontpage): update base images for Node and Golang
- feat(docker): update base images in Dockerfiles to newer versions
- build(deps): bump @types/uuid from 9.0.5 to 9.0.8
- build(deps): bump @fontsource/roboto from 5.0.8 to 5.0.14
- refactor(DictyNews.tsx): use name variable for single news url
- feat(utils): add truncateString utility function for truncating strings with ellipsis
- feat(DictyNews.tsx): add functionality to truncate preview text to 300 characters for better UI readability
- build(deps-dev): bump jsdom from 22.1.0 to 24.1.1
- fix(useAuthorization.ts): use self defined loading state
- feat: add unit tests for useAuthorization hook
- test: Implement tests for useAuthorization hook to verify user role authorization logic
- test: Fix authorization tests to handle loading state and await rendering results
- test: Update authorization tests to use async/await for consistency
- test: add checks for "LOADING" text in authorization tests
- test: Add checks for "LOADING" text in authorization tests
- test(useAuthorization.test.tsx): remove duplicate imports of render and screen from @testing-library/react
- test: add unit tests for authentication module
- test: add unit tests for firstLast, upperFirst, and nameToUpperInitial functions
- test: update tests to use consistent line endings and formatting
- test: update firstLast test suite to handle arrays of strings as input
- test: update tests for firstLast and upperFirst functions to improve readability and correctness
- refactor(auth): export firstLast and upperFirst functions along with existing functions for better modularity
- feat(tests): add unit tests for firstLast, nameToUpperInitial, and upperFirst functions in functional module
- test: add test to verify fetchUserInfo is not called when isAuthenticated is false
- chore(auth): remove index.test.ts file from tests directory
- feat(DictyNews.tsx): reorganize files
- refactor: separate DictyNews components into individual files for improved modularity and maintainability
- refactor(ui-frontpage): optimize imports and update makeStyles usage in DictyNews components
- feat(ui-frontpage): add components for displaying authorized news list and more news link
- fix(ui-frontpage): update link paths in MoreNewsLink and NewsList components for consistency
- refactor(ui-frontpage): reorganize exports in index.ts for better code organization
- feat(dicty-frontpage): add DictyNewsWithAuth component for displaying news based on user authorization
- refactor(Front.tsx): remove unused imports and update DictyNews component to DictyNewsWithAuth
…agement This commit adds a new editable news page component to the frontpage application. The component fetches content by slug using a GraphQL query and displays an editable view of the news content. It also handles loading states and errors gracefully. Additionally, roles and access permissions are defined for the component.
… in multiple packages The dicty-graphql-schema dependency has been updated to version v1.24.0 in multiple packages to incorporate the latest changes and improvements provided by the updated version. This ensures that the packages are using the most recent features and fixes available in the dicty-graphql-schema library.
yarn.lock has been updated to reflect the update of dicty-graphql-schema from v1.23.1 to v1.24.0
…ting content with authorization support This commit introduces a new utility function called useAuthorizedDeleteContent, which allows for deleting content with proper authorization support. The function handles getting the access token, making the delete request, and returning the result. This utility function enhances the application by providing a clean and reusable way to delete content with proper authorization checks.
…nd UpdateButton for frontpage app The ActionBar component provides a styled toolbar for displaying information and actions on the frontpage. It includes styling for labels, icons, and text. The UpdateButton component allows users to save content updates with a button click, handling error and success states. These new components enhance the user interface and functionality of the frontpage app.
…s functions The rendering logic for the children in the ActionBar component has been refactored to use fp-ts functions like pipe, Array.isArray, and match. This change improves the readability and maintainability of the code by leveraging functional programming concepts.
…n a Grid item The ActionBar component has been refactored to wrap the children in a Grid item, improving the structure and layout of the component. This change enhances the readability and maintainability of the code by clearly defining the layout of the children elements within the component.
…aving content The CreateButton component is added to the project to provide a button that allows users to create and save content. This component includes functionality to handle updating content, saving it, and navigating to the appropriate page after the save operation is completed.
…f content The mockDeleteContentMutation function is added to handle the deletion of content. It receives the content ID from the request variables, deletes the content from the database, and returns a success message if the deletion is successful. This addition enhances the mock handlers by providing support for content deletion functionality.
…better clarity and consistency The ShowNews component has been renamed to Show to improve clarity and consistency within the codebase. This change makes the component name more descriptive and aligns with naming conventions for components.
…toolbar component into ActionBar component The changes involve removing unused imports and styles, refactoring the toolbar component into the ActionBar component for better organization and readability. Additionally, the UpdateButton and ActionBar components are added to enhance the functionality and user experience of the news edit page.
…ews content The changes introduce a new ActionBar component to the EditableView, allowing users to edit news content more easily. Additionally, the EditableNews component is renamed to Editable to improve clarity and maintain consistency with naming conventions.
…r component for improved readability and maintainability The CreateNews component has been renamed to Create to provide a clearer and more consistent naming convention. The custom CreateNewsToolbar component has been replaced with the ActionBar component to enhance the readability and maintainability of the code. This change simplifies the structure and improves the overall organization of the news creation functionality.
…oolbar rendering logic The commit removes unused imports and variables to clean up the codebase. It also simplifies the toolbar rendering logic by removing unnecessary conditional checks and reducing complexity in the Editor component.
…onent for consistency The NotFoundError component is replaced with the OtherError component to maintain consistency with the naming conventions used in the application. This change ensures that error handling components are uniform throughout the codebase.
…tch data from database instead of generating mock data The mockListContentByNamespaceQuery function has been refactored to fetch data from the database instead of generating mock data using the generateMockNews function. This change ensures that the mock data returned is more realistic and reflects the actual data stored in the database.
…ug object The changes were made to fix the destructuring syntax for the contentBySlug object in order to correctly access the content property. This ensures that the content is properly extracted and passed to the EditableView component.
…ent for displaying news content The ContentView component is replaced with the Editor component to improve the editing experience for displaying news content. This change enhances the functionality and user interface of the news display page.
…for different user roles The RoleRedirect component is added to manage authorization logic based on different user roles. It checks if the user is authorized and loading, and then redirects the user to the appropriate page based on their role. This component enhances the user experience by providing dynamic routing based on the user's authorization status.
…horization hook and authorizedRoles array The RoleRedirect component has been refactored to use the useAuthorization hook and the authorizedRoles array. This change improves code readability and maintainability by centralizing the authorization logic and roles in one place.
…date, content, and read more link The changes introduce a new News page component that displays news items with their respective updated dates, content, and a link to read more. The component fetches news content from a GraphQL query and renders each news item using the NewsItem component. The NewsView component organizes and displays the list of news items in a container with a header. The News component fetches news content based on a specific namespace and handles loading, error, and data states accordingly.
…nterface and EditableNewsItem component to improve clarity and consistency The id property was changed to name in the NewsItemProperties interface and the EditableNewsItem component to provide a more descriptive and consistent naming convention. This change enhances the readability and maintainability of the codebase.
…sItem component The props for the EditableNewsItem component have been reformatted to improve readability and maintain consistency in the codebase. Destructuring the props in a more structured manner enhances code clarity and makes it easier to understand the component's interface.
…nd maintainability The NEWS_NAMESPACE constant is added to the editable.tsx and show.tsx files in order to improve code readability and maintainability. By using a constant instead of hardcoding the namespace value, the code becomes more self-explanatory and easier to update in the future if needed.
…er visual hierarchy The Typography component in the EditableNewsItem and NewsItem components has been updated to use the "h2" variant for better visual hierarchy and consistency in styling across the application. This change improves the readability and structure of the news items displayed on the front page.
… not update content" to "Could not delete content" for accuracy The error message was updated to accurately reflect the action being performed, which is deleting content. This change ensures that the error message aligns with the actual operation being carried out, improving clarity and accuracy in the application.
…delete content The DeleteButton component has been added to the project, providing users with the ability to delete content. This component includes functionality to handle the deletion process, including error and success states, and redirects users to the "/news/editable" page after deletion.
…hing behavior By adding the fetch policy "cache-and-network" to the useListContentByNamespaceQuery hook in both the EditableNews and News components, we are enhancing the data fetching behavior. This change allows the components to first check the cache for data and then fetch from the network if needed, providing a smoother user experience with potentially faster data retrieval.
…ews items The EditableView component now includes a DeleteButton component, allowing users to delete news items directly from the news editing view. This enhancement provides a more streamlined user experience by enabling users to perform delete actions without navigating away from the editing interface.
The match conditions in the News list components were reordered to prioritize showing content if it present. This fixes the issue of the loader component briefly rendering while refetching data.
…uthorization logic
…nd screen from @testing-library/react The duplicate imports of render and screen from @testing-library/react have been removed to improve code readability and maintainability.
…readability and correctness
…existing functions for better modularity By exporting the firstLast and upperFirst functions along with the existing functions, the codebase becomes more modular and allows for better reusability of these utility functions in other parts of the application.
…perFirst functions in functional module The commit adds unit tests for the firstLast, nameToUpperInitial, and upperFirst functions in the functional module. These tests ensure that the functions behave as expected and return the correct results for different input scenarios.
The index.test.ts file was deleted as part of a cleanup process. This file contained test cases for functions related to string manipulation, which are no longer needed in the project.
The DictyNews.tsx file has been moved into the /news directory for better organization.
…roved modularity and maintainability
…in DictyNews components The imports in DictyNews.tsx have been optimized to only import necessary components from "@material-ui/core". The makeStyles usage in DictyNews and DictyNewsTitle components has been updated to use a simpler syntax without passing the theme argument. This improves code readability and maintainability.
…t and more news link The changes introduce new components for displaying authorized news list and a link to view more news. The AuthorizedDictyNews component is added to render the authorized news list with styling and logic to handle different states of the fetched news content. The AuthorizedMoreNewsLink component is included to provide a link for users to access more news content. These additions enhance the user experience by allowing users to easily navigate and view news content on the front page of the UI.
…ponents for consistency The link paths in the MoreNewsLink and NewsList components have been updated to ensure consistency. In MoreNewsLink, the link path has been changed from "/news" to "/news/show", and in NewsList, the link path has been updated from `/news/${name}` to `/news/${name}/show`. This change ensures that all links related to news display follow the same pattern for better user experience and navigation.
…e organization The exports in the index.ts file have been reorganized to improve code organization and maintainability. The DictyNews component has been moved to a separate news directory for better categorization.
… news based on user authorization The new DictyNewsWithAuth component is added to the Frontpage feature in order to display news based on user authorization. It uses the useAuthorization hook from @dictybase/auth to check if the user is authorized to view content based on the authorizedRoles array. The component conditionally renders either the AuthorizedDictyNews or DictyNews component based on the user's authorization status.
…nent to DictyNewsWithAuth The commit removes unused imports from the Front.tsx file to clean up the codebase. Additionally, it updates the usage of the DictyNews component to DictyNewsWithAuth for authentication purposes.
Bumps [@fortawesome/react-fontawesome](https://github.com/FortAwesome/react-fontawesome) from 0.2.0 to 0.2.2. - [Release notes](https://github.com/FortAwesome/react-fontawesome/releases) - [Changelog](https://github.com/FortAwesome/react-fontawesome/blob/0.2.x/CHANGELOG.md) - [Commits](FortAwesome/react-fontawesome@0.2.0...0.2.2) --- updated-dependencies: - dependency-name: "@fortawesome/react-fontawesome" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]>
…esome/react-fontawesome-0.2.2 build(deps): bump @fortawesome/react-fontawesome from 0.2.0 to 0.2.2
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8. - [Release notes](https://github.com/micromatch/micromatch/releases) - [Changelog](https://github.com/micromatch/micromatch/blob/4.0.8/CHANGELOG.md) - [Commits](micromatch/micromatch@4.0.5...4.0.8) --- updated-dependencies: - dependency-name: micromatch dependency-type: indirect ... Signed-off-by: dependabot[bot] <[email protected]>
…atch-4.0.8 build(deps): bump micromatch from 4.0.5 to 4.0.8
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|