Rainbow website + base data #1
No reviewers
Labels
No labels
state: blocked
state: changes-requested
state: completed
state: inactive
state: in-progress
state: refused
state: review-required
type: backlog
type: bug
type: chore
type: docs
type: duplicate
type: feature
type: other
type: refactor
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Fabcorp/Fabcorp-Website!1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "notbrioche"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Nice ! You already did a very good job as a POC.
To go further I suggest you trying to add like a controller to avoid directly using the json and to prepare the architecture to maybe later use a DB to store our projects so by moving the json logic back to a controller it will be easier to then replace the JSON with a DB without modifying Project.vue file.
Also in Project.vue file, I suggest you add a v-if p.url so that the visit button don't show when no url is provided.
Last thing in Project.vue could be to display "Contributor" instead of "Contributors" if there is only one but as I said it's not that important.
In both App.vue and RainbowSelector.vue, try replacing variable name "c" with something more meaningful because it took me some time to understand what was behind that c variable
When all of that is done fell free to add the commits to the PR, I'll review everything and eventually close the WIP and merge it to main.
BTW : I'm not talking about style for now but it will also need some work but you're right to first focus on building a POC then adding the enhancements.
Edited : Also, don't you think the color showed should only be the one that at least one project uses ? Like instead of having them directly wrote in the code, we should display the ones assigned to at least one project I think. (Another reason to do a controller with the project kappa)
Sure, will do the modifications !
I just didn't clearly understood your edited part. Do you mind rephrasing it ?
Yes sure, let me rewrite that in a more understandable way.
So what I was saying is instead of having the rainbow selector displaying every color possible even if some colors don't have projects associated with them, it could be better to work the other way and building the rainbow for only the colors that are in projects source.
Let me give you an example : if we have 5 projects, 1 blue, 1 red, 2 orange and 1 black. The RainbowSelector should only have 4 colors avalaible (blue, red, orange and black) instead of the full rainbow. So that when you click on a color, you at least have one project showed and not just none like for now if we click on purple for example which hasn't any projects assigned to it.
I don't know if it was a better explaination but feel free to ask me for more detail or just to tell me your opinion on that modifciation and how do you see the RainbowSelector evolving in the futur.
I see, I'll think of a way to make it. Not quite sure of how will the result look like.
The main goal was to have a selector for all the projects and that's it.
yeah I see, keep it as you think it's best. You definitly know better than me what was your goal by making this RainbowSelector and I trust you for that.
WIP: Rainbow website + base datato Rainbow website + base data