Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
OVERALL: (HUMAN MADE COMMENT)
I have added countryCode joint columns in each entity so that the backoffice can properly filter by the related resource, without adding custom actions in each entity, which I believe would be way worse than this.
Also, I removed filtering for decimal columns as the underlying pg driver treats this as string so that the adapter runs a ILIKE query which blows the search. We might consider another approach to handle this
This pull request includes significant updates to the admin panel, focusing on the introduction of a new dashboard, enhancements to resource visibility, and the addition of new resources. The most important changes include the creation of a new
Dashboard
component, updates to resource properties for better visibility, and the addition of theCountryResource
.Dashboard and Branding:
admin/components/dashboard.tsx
: Added a newDashboard
component to provide a welcome screen for the admin panel.admin/index.ts
: Integrated theDashboard
component and updated branding settings to reflect the company name "Blue Carbon Cost". [1] [2]Resource Management:
admin/index.ts
: Replaced theCountry
entity with the newCountryResource
and added it to the resources list. [1] [2]admin/resources/countries/country.resource.ts
: Created theCountryResource
with specific properties and sorting options.Visibility Enhancements:
baseline-reassesment.resource.ts
,blue-carbon-project-planning.resource.ts
,carbon-estandard-fees.resource.ts
, etc.): Updated properties to improve visibility settings for list, show, filter, and edit views. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14]Dependency Updates:
admin/package.json
: Added the@adminjs/design-system
dependency to support the new dashboard design.