Skip to content

Add Image select dropdown for Device Images#23

Closed
hartmans wants to merge 3 commits into
mainfrom
images_dropdown
Closed

Add Image select dropdown for Device Images#23
hartmans wants to merge 3 commits into
mainfrom
images_dropdown

Conversation

@hartmans
Copy link
Copy Markdown
Collaborator

This is AI generated code. I think we're going to need to make a number of usability improvements in a short period of time so I'm okay with that.
It took about 20 minutes to generate, and that's probably the turn around time we want to be looking at right now. But it definitely is worth a pass to improve css styling if necessary.

I do notice one architectural problem with the approach. It introduces a dependency between features/devices and features/images, which we probably do not want.
Long term we want something on the frontend like a model store so that the UI parts of the frontend can access data models for other aspects to do this sort of cross-concern usability.
I don't think we have time to build that before we start asking people at Hackathon2 to use the code.

If you accept this code (or code with a similar defficiency), open a bug on the architectural issue, as well as any other temporary deficiencies you want to clean up later.

Provide a dropdown for device selection rather than  requiring users to enter the image ID.

This implementation is architecturally impure in that it introduces dependencies between the devices feature and the images feature.
Fixing this requires a more central model store in the frontend.
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.

3 participants