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

Dynamically pull in different palettes #36

Open
dpalay opened this issue Jul 13, 2020 · 3 comments
Open

Dynamically pull in different palettes #36

dpalay opened this issue Jul 13, 2020 · 3 comments

Comments

@dpalay
Copy link

dpalay commented Jul 13, 2020

getAll(): Observable<Palette[]> {

Instead of listing all the csvs here, would it be easier to have the beadcolors project generate a simple txt file that lists all the csvs in the project, then this code would just reference the txt file and dynamically iterate through the listed files? Then adding new palettes (which, granted, probably won't be that common) wouldn't require any modification here.

@dpalay
Copy link
Author

dpalay commented Jul 13, 2020

Tagging @maxcleme since you didn't get the notifications last time :)

@maxcleme
Copy link
Owner

@dpalay thanks for the mention, it works now, I got the notification 😂

Totally agree with you, to be honest I though I might had time to develop the API for beadcolors first, then we could easily have an endpoint to list all the available palettes and use it here instead of loading static csv in the application.

Sadly this obviously is not done yet. Using your approach would make it straightforward, however if I had to develop new features for Beadcolors (something else than adding/updating palette), I would better invest my time in the API.

Moreover, adding new palettes here (while waiting for the API) is a very small PR. I'm going to integrate the new one asap :)

@maxcleme
Copy link
Owner

@dpalay Both new palettes has been added.

However I would be glad to keep this issue open since it is not "properly fixed" I would say.

I would also remind me that I have to work on the beadcolors API to tackle this.

Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants