Commit Graph

66 Commits

Author SHA1 Message Date
AmirReza Jamali 5aa6111460 fix(tenders): Hide empty submission URL and adjust section spacing
The "Submission Url" section on the tender details page was being rendered even when the URL was null or empty, leading to a visually broken component.

This commit wraps the "Submission Url" section in a conditional check to ensure it only renders when a URL is present.

Additionally, a `gap-2` utility has been added to the flex containers to improve the visual separation between detail sections.
2025-09-18 16:55:53 +03:30
AmirReza Jamali e1898bf259 feat(submissions): Implement submissions page with paginated table
This commit introduces a new page for users to view their submissions in a structured and paginated table. This allows users to easily track their submission history and access key details.

The main changes include:
- A new page at `/submissions` to display the submissions list.
- A `SubmissionsTable` component to render submission data, including title, country, status, and a link to the submission URL.
- Integration of `react-paginate` to handle navigation through large sets of data.
- A new `useSubmissions` custom hook using TanStack Query for efficient, paginated data fetching from the API.
- Addition of the `currency-symbol-map` dependency to display prices with the correct currency symbol.
2025-09-18 16:52:46 +03:30
Sina Nakhostin 2f2114eba9 Merge pull request 'refactor(logo): Update main logo SVG to use currentColor' (#29) from required-field-stars into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_panel/pulls/29
Reviewed-by: Sina Nakhostin <s.nakhostin@ravanertebat.com>
2025-09-17 11:17:21 +03:30
AmirReza Jamali 4fb1a931c5 refactor(logo): Update main logo SVG to use currentColor
The main logo SVG has been replaced with an updated version.

The previous logo had hardcoded fill colors, making it difficult to adapt to different color schemes, such as light and dark modes.

The new SVG uses `fill="currentColor"`, which allows its color to be controlled via the parent element's CSS `color` property. This makes the logo easily themeable and more flexible for use throughout the application.
2025-09-16 18:31:33 +03:30
AmirReza Jamali 2fa774b6bd feat(companies): implement companies page with data table
This commit introduces a new "Companies" page to the dashboard, providing a comprehensive view of company data in a sortable and paginated table.

Key changes include:
- A new page at `/companies` to display the data table.
- A new API route `/api/companies` that serves mock company data.
- A `CompaniesTable` component built with `react-table` featuring sorting, pagination, and search functionality.
- Reusable `TablePagination` and `TableActions` components to support the table.
- The `moment` library has been added as a dependency to format dates within the table.
- A new `CrossIcon` has been added for UI controls.
- The `InputGroup` component is enhanced with an `autoComplete` prop.
- A link to the new "Companies" page has been added to the sidebar navigation.
2025-09-16 16:01:59 +03:30
AmirReza Jamali feac2ddcb9 fixed .env file 2025-09-09 17:20:04 +03:30
AmirReza Jamali 274b48007d build: Allow .env.production to be committed
Modify the .gitignore file to explicitly un-ignore the `.env.production` file.

This allows the production environment configuration to be version-controlled, ensuring it is available for build and deployment processes.
2025-09-09 16:57:28 +03:30
Sina Nakhostin a7c60df3b8 Merge pull request 'Fixed build issues' (#28) from drone-and-docker into develop
Reviewed-on: https://repo.ravanertebat.com/TM/tm_panel/pulls/28
Reviewed-by: Sina Nakhostin <s.nakhostin@ravanertebat.com>
2025-09-09 14:06:21 +03:30
AmirReza Jamali 6298acd14d Merge remote-tracking branch 'origin/develop' into drone-and-docker 2025-09-09 13:34:24 +03:30
AmirReza Jamali 83bd4394fc Fixed build issues 2025-09-09 13:32:58 +03:30
n.nakhostin d030bb59b6 Add Dockerfile for multi-stage build setup with Node.js 2025-09-09 12:21:24 +03:30
n.nakhostin c8c1490ceb Update drone configuration to trigger builds on 'main' and 'develop' branches 2025-09-09 12:18:48 +03:30
Nima Nakhsotin ff888e6226 Merge pull request 'Add: drone and docker files' (#27) from drone-and-docker into dev
Reviewed-on: https://repo.ravanertebat.com/TM/tm_panel/pulls/27
Reviewed-by: Nima Nakhsotin <n.nakhostin@ravanertebat.com>
2025-09-09 12:14:49 +03:30
AmirReza Jamali d73a64fe52 Fix: node version & install packages only once 2025-09-09 11:49:41 +03:30
AmirReza Jamali 4a2e2adf6b Add: drone and docker files 2025-09-09 11:45:37 +03:30
AmirReza Jamali 1d4ccb3575 Initial commit for new panel 2025-09-09 11:20:26 +03:30