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

Chore/bit of love to backoffice #128

Merged
merged 11 commits into from
Dec 2, 2024
Merged

Conversation

alexeh
Copy link
Collaborator

@alexeh alexeh commented Dec 2, 2024

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 the CountryResource.

Dashboard and Branding:

  • admin/components/dashboard.tsx: Added a new Dashboard component to provide a welcome screen for the admin panel.
  • admin/index.ts: Integrated the Dashboard component and updated branding settings to reflect the company name "Blue Carbon Cost". [1] [2]

Resource Management:

Visibility Enhancements:

  • Various resource files (e.g., 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.

Copy link

vercel bot commented Dec 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tnc-blue-carbon-cost-tool-ghps ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 2, 2024 5:38am

@alexeh alexeh marked this pull request as ready for review December 2, 2024 06:11
@alexeh alexeh merged commit 8fb31d8 into dev Dec 2, 2024
4 checks passed
@alexeh alexeh deleted the chore/bit-of-love-to-backoffice branch December 2, 2024 06:11
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