-
Notifications
You must be signed in to change notification settings - Fork 3
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
initial react + UI #1
Conversation
pretty basic UI allows to display the overlay, editor in bottom and script for generating css files from local storage setup
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Check indentation
- Use CapitalCase for files that export classes (and components)
Co-authored-by: Harjot Singh <contact@harjot.me>
refactor: moved writing to storage script
|
If any of the value from storage is deleted then everything should reset
Change default exports for components and create a color picker component
So by default it is locked, if you look at the slider it says "N/A". so once you edit horizontal it just splits the two.... if you want I can just have vertical and horizontal will change accordingly? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Really good work! We can get this merged in and get it deployed.
I need to look at the UI, but we can sort that out later.
Code Improvements:
-
I see that you could drastically cut down the code required, if you can figure out how to leverage the
DynamicComponent
strategy, which is basically a component factory for settings. See the comment inlayoutEditor.js
for more detail. -
Namespace CSS classes. So if your file is called
LayoutEditor.js
and it has a root CSS class called.layout-editor
(which I highly recommend doing for most components), then make sure all CSS declarations (except in exceptional circumstances) are namespaced, so that they only affect the page -
CSS classes should always be lowercase
hello-world
and nothelloWorld
. It just tends to be the universal convention. -
Any files that export a React class or component should be
CamelCase
, and corresponding CSS files should match case. -
Make use of whitespace! It's not evil lol, segregate your JSX just like you would when you think about sentences. Optimise your code for reading :)
Other things that we need to get done at some point (let's file some issues):
-
GitHub action builds => build app and store in separate branch (I think we have one other repo that does this, maybe link that)
-
Set up GH pages, choose subdomain and point it here
-
Set up correct linting
-
Maybe even write some unit tests, dum dum dummm, but it's kinda gonna be a drag now 😂
-
Maybe even extend this to build presenter themes too (but let's make sure in doing this, we don't duplicate much code at all)
Default Changes
General Changes
ThoughtsCan we use custom colors for Overlay/Window/Text swatch ? And if so, can they be different for text pop-up compared to the overlay/window ones? ClosingVery good progress @saihaj ! Great work so far, two thumbs up 👍 👍 |
Co-Authored-By: Harjot Singh <contact@harjot.me>
Uses shabadOS-bot and commit message will be the head message. We can change it to something generic if needed or add semver.
I think I took care of most of the things. Linting job is WIP right now. Also, on refreshing the page preview settings are saved but not rendered, need to fix that. This will be taken care once I fix the bug I mentioned above.
This is already matching it by default that is why it is showing
I think this is the default value. This is currently what it has
CSS issue I think. @bhajneet you might want to take a look at this once it is merged.
So we don't want the user to select a color?
We won't need this if we take care of #4. We can also tackle as a feat in a new issue (if needed).I would prefer #4 over this
What type of tests should I write?
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good work. I've opened up issues for any remaining work
@@ -0,0 +1,53 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to update this, probably with one similar to mobile (and also update desktop too). shabados/presenter#487
run: npm run build | ||
|
||
- name: Deploy to GH Pages | ||
uses: crazy-max/ghaction-github-pages@v1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice find!
pretty basic UI allows to display the overlay, editor in bottom and script for generating css files from local storage setup