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

Changed the app logo (favicon) #103 and Dark/light Switch added #74 #110

Closed
wants to merge 2 commits into from

Conversation

Scharfcsh
Copy link

@Scharfcsh Scharfcsh commented Oct 15, 2024

#103
Replaced the default favicon.ico in "frontend/src/app" logo to icon.png(it's the same image given ZebusezLogo.png).
And deleted vercels and next defaults icons.

Zamijenjen default favicon.ico u logotipu "frontend/src/app" u icon.png (to je ista slika data ZebusezLogo.png).
I obrisane vercele i sljedeće zadane ikone.

Screenshot 2024-10-15 134148

#74 Dodan je prekidač za svjetlo/tamno

Screenshot 2024-10-16 130702
Screenshot 2024-10-16 130724
Screenshot 2024-10-16 130749
Screenshot 2024-10-16 130807
@bambooch

@Scharfcsh Scharfcsh changed the title Changed the app logo (favicon) #103 Changed the app logo (favicon) #103 and Dark/light Switch added #74 Oct 16, 2024
Copy link
Collaborator

@bambooch bambooch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for opening a PR!

First of all kudos to translating some stuff into bosnian, but just for future reference we all understand english :D Also thanks for taking time to try to tackle all these issues.

Now to the feedback. There are a few general points and code specific ones you can find in the code sections below.

  1. The image below shows my result after spinning up your PR. The default mode is light (no problem there) but the integration of the other components (for example the footer) or the datepicker text isn't complete. Be sure to watch out for merging of Convert datepicker to shadcn/ui component #108 and Convert station selection comboboxes to shadcn/ui #109 (should happen in the next hour or so) so then it won't be necessary to style that MUI date picker text that is in your version. This light mode is unnacceptable of course so changes are required at least for that.

2, Please create a new branch on your fork when opening a PR so maintainers and other contributors can add commits to the PR. This will also enable the possibility of doing 3.

  1. Opening a 1 PR for two existing issues isn't best practice since I can't merge only the icon for example. Opening two PRs would be much better.

All in all, I'd suggest you scratch this PR and open new ones while implementing the feedback I left for you in this, as well as in the code comments below.

The image referenced by 1.

image

Once more, thanks for taking the time to make a contribution! Looking forward to the corrections! Let me know if you need further guidance.

@@ -1,6 +1,8 @@

node_modules
.env
.env.production
.env.local
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are unecessary because of line 30 below

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the changes to this file all seem to be related to code formating

we don't have a strict ruleset for formatting yet but just for your reference this would ideally go into another commit instead of this one which points to just an icon change

no changes needed

@@ -4,6 +4,7 @@ import { Providers } from "./providers";
import Footer from "./components/Footer";
import { Toaster } from "./components/ui/toaster";


Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why the extra line here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's because of my IDEs formatter , and I completely missed out that part. I'll keep that in mind from now on.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the second commit I see a complete replacement of the file which doesn't at all indicate what specifically was changed, formatting specific parts is not problematic like in the previous commit but this is now more difficult to review since everything is marked as changed..

Copy link
Author

@Scharfcsh Scharfcsh Oct 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shadcn documentation suggested to use <ThemeProvider> and keep children inside it.
So I wrapped <Provider> inside <themeProvider>.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the same comment as the 2nd comment for RouteSearch.tsx

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you for feedback. I will make sure to avoid these unnecessary changes.

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.

2 participants