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

Bugfixes and UI improvements #65

Merged
merged 8 commits into from
Dec 12, 2024

Conversation

ElemarJR
Copy link
Contributor

No description provided.

- Introduced `next.config.js` to enable MDX support, allowing the use of Markdown and MDX files in the Next.js application.
- Created type definitions for MDX files in `frontend/mdx.d.ts`.
- Updated `package.json` to include necessary MDX dependencies: `@mdx-js/loader`, `@mdx-js/react`, and `@next/mdx`.
- Implemented a new changelog page under `/admnistrative/changelog` to display changelog entries using React Markdown.
- Added a hit refresh page under `/admnistrative/hit-refresh` to allow users to refresh system caches.
- Removed the outdated inconsistency finder page to streamline the application.
- Added a new changelog entry for the recent updates in `frontend/src/content/changelog/2024-12-10.mdx`.
- Created a utility function in `frontend/src/utils/mdx.ts` to read and parse changelog entries from MDX files.
- Updated `next.config.mjs` to optimize client build by ignoring `async_hooks` for non-server environments and added `reactStrictMode: false`.
- Removed the unused `App.tsx` file to streamline the application structure.
- Enhanced `layout.tsx` to disable auto-refresh on tab visibility changes, improving user experience.

These changes improve build performance and application responsiveness.
- Updated import path for `compute_timesheet` in `cases.py` to reflect new directory structure.
- Revised title in `2024-12-10.mdx` changelog entry for improved clarity.
- Enhanced changelog content to highlight the removal of page reloads during navigation, improving user experience.
- Introduced new operational summaries module, including `staleliness` query and associated GraphQL schema.
- Updated `queries.py` to integrate operational summaries into the main query structure.
- Enhanced `schema.graphql` to include the `staleliness` field in the Query type.
- Implemented `resolve_staliness` function to process and categorize case data based on staleness criteria.
- Added new GraphQL types for `Staleliness`, `StalelinessCase`, and `StalenessWorker` to support the new functionality.
- Updated frontend query to fetch `slug` for cases in the operational summaries.

These changes enhance the API's capabilities by providing insights into case staleness, improving data accessibility for users.
…r Links

- Updated the Staleliness page to utilize the new GraphQL query structure, fetching case data directly from the `staleliness` field.
- Renamed section IDs for clarity and consistency.
- Removed the deprecated `categorizeCases` function, simplifying the data handling process.
- Enhanced the rendering of worker names by adding links to their profiles, improving user navigation.
- Updated the changelog to reflect these changes and highlight the new functionality.

These updates streamline the data flow and enhance the user experience on the Staleliness page.
- Added `staleliness` field to the GraphQL `Worker` type in `schema.graphql`.
- Implemented `resolve_consultant_or_engineer_staleliness` function in `consultants_engineers.py` to compute staleness based on worker data.
- Updated import statements in `__init__.py` to include the new staleliness resolver.
- Refactored `compute_staleliness` function in `staleliness.py` for improved logic and added a new resolver for API integration.

These changes improve the API's capability to assess and return staleness metrics for workers, enhancing data accessibility and usability.
- Introduced a new `CaseStatusOverview` component to display cases categorized as "Up to Date", "Stale in One Week", "Stale", and "No Description".
- Updated GraphQL queries to include `staleliness` data for consultants and engineers.
- Enhanced the changelog to reflect the addition of the new feature and improvements in user navigation.
- Refactored the changelog page for better layout and readability.

These changes improve the user experience by providing a clear overview of case statuses for each consultant.
- Updated import paths to use the new UI components from "@/components/ui/table".
- Introduced sorting functionality for both regular and pre-contracted cases, allowing users to sort by weekly approved hours, total approved hours, total actual hours, and total difference.
- Redesigned the layout to include a "Pre-Contracted" section for better organization of case data.
- Removed deprecated code and streamlined the rendering of case tables for improved performance and readability.
- Added a new changelog entry to document these changes and improvements in user experience.
@ElemarJR ElemarJR merged commit 15d68be into eximiaco-labs:main Dec 12, 2024
1 check passed
@ElemarJR ElemarJR deleted the real_average_ticket branch December 12, 2024 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant