list: Supplied override code removes create/show/edit buttons
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start with the supplied ListGuesser.tsx lines 27-40 and AdminGuesser.tsx lines 52-57, then compare the overriding implementation discussed in #63. Reproduce the override on API Platform 3.4.4 and verify that overriding one resource preserves the create, show, and edit buttons without requiring definitions for every resource.
Written by the indexing model from the issue text.
Description
API Platform version(s) affected: 3.4.4
Description
When using the override code provided, the buttons for create/show/edit disappear.
https://github.com/api-platform/admin/blob/47e05b0734d97bdfa8c23d660b3ef3d53c434d05/src/ListGuesser.tsx#L27-L40
Also, having to define all resources in order to override just one seems really silly.
https://github.com/api-platform/admin/blob/47e05b0734d97bdfa8c23d660b3ef3d53c434d05/src/AdminGuesser.tsx#L52-L57
The overriding implementation by #63 no longer works. Is there a better way to do this?
- Dominant language
- TypeScript
- Stars
- 516
- Forks
- 134
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from api-platform/admin
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
api-platform/admin#616 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 64/100
api-platform/admin#660 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 50/100
api-platform/admin#659 · 1 reaction ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
api-platform/admin#631 · 6 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
api-platform/admin#626 · 1 comment · 1 reaction ·
All issues in api-platform/admin
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
safetrustcr/dApp-SafeTrust#426 ·
-
area:workflow bug ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
fil-donadoni/tolaria#4409 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Fission-AI/OpenSpec#1960 ·
-
Add dependabot Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
corsairdev/corsair#1764 ·