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

fix: change open-event to eventyay for small screens #3626

Closed
wants to merge 3 commits into from
Closed

fix: change open-event to eventyay for small screens #3626

wants to merge 3 commits into from

Conversation

himanshu010
Copy link
Member

@himanshu010 himanshu010 commented Nov 16, 2019

Fixes #3620

Short description of what this resolves:

change open-event to eventyay for small screens in navbar
screenshot :
Screenshot (37)

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

@auto-label auto-label bot added the fix label Nov 16, 2019
@@ -48,7 +48,7 @@
<i class="large content icon"></i>
</a>
{{#link-to 'index' class='item' activeClass=''}}
<div class="ui header small text">{{config.appName}}</div>
<div class="ui header small text">eventyay</div>
Copy link
Member

@iamareebjamal iamareebjamal Nov 16, 2019

Choose a reason for hiding this comment

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

Revert this and change eventyay to {{config.appName}} wherever found in the project

Copy link
Member Author

@himanshu010 himanshu010 Nov 17, 2019

Choose a reason for hiding this comment

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

Revert this and change eventyay to {{config.appName}} wherever found in the project

Okk i will work on this.
But since we always have to show eventyay there, i think that there is nothing wrong in directly writing eventyay.

Copy link
Member

Choose a reason for hiding this comment

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

since we always have to show eventyay there

Who said that?

Copy link
Member

Choose a reason for hiding this comment

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

This is not eventyay repository, this is open-event-frontend, eventyay is an instance of open-event.

Same difference as Chromium vs Chrome.

Copy link
Member Author

Choose a reason for hiding this comment

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

okk

This is not eventyay repository, this is open-event-frontend, eventyay is an instance of open-event.

Same difference as Chromium vs Chrome.

okk

Copy link
Member

Choose a reason for hiding this comment

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

Revert this and change eventyay to {{config.appName}} wherever found in the project

Okk i will work on this.
But since we always have to show eventyay there, i think that there is nothing wrong in directly writing eventyay.

We want to show app name here which is entered in admin panel.
Make it settings.appName

@himanshu010
Copy link
Member Author

@kushthedude changed eventyay

@@ -48,7 +48,7 @@
<i class="large content icon"></i>
</a>
{{#link-to 'index' class='item' activeClass=''}}
<div class="ui header small text">{{config.appName}}</div>
Copy link
Member

Choose a reason for hiding this comment

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

Use config please. Settings is asynchronous so it'll take time to show up

Copy link
Member

Choose a reason for hiding this comment

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

We are using settings for various importing the name and tagline for the appName and various other input we need.
Also setting is globally injected into app as services, So it should not make much of a difference.

Copy link
Member

Choose a reason for hiding this comment

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

Also setting is globally injected into app as services, So it should not make much of a difference.

I don't know any of that. I know that an AJAX request is made for that. This thinking has lead to how slow the app is.

And if settings are meant to be used here, why is there an option of config.appName?

@iamareebjamal
Copy link
Member

Also, this is not where you need to change anything, You need to replace hardcoded eventyay to config.appName

@kushthedude
Copy link
Member

kushthedude commented Nov 18, 2019 via email

@iamareebjamal
Copy link
Member

https://github.com/fossasia/open-event-frontend/search?q=config.appName&unscoped_q=config.appName

@kushthedude
Copy link
Member

https://github.com/fossasia/open-event-frontend/search?q=config.appName&unscoped_q=config.appName

I see. Interesting thing to note is already config.appName is used in mobile row. Why is the open event getting shown in place kf eventyay

@himanshu010
Copy link
Member Author

@iamareebjamal changed config.appname from 'open-event' to eventyay

@@ -10,7 +10,7 @@ function getSentryServer(dsn, withProtocol = true) {

module.exports = function(environment) {
let ENV = {
appName : process.env.APP_NAME || 'Open Event',
appName : process.env.APP_NAME || 'eventyay',
Copy link
Member

Choose a reason for hiding this comment

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

Why are you going in completely opposite direction and making it even worse? Read the repository name. eventyay is an instance. Open Event is the project. I don't understand how to make it more clear

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Why are you going in completely opposite direction and making it even worse? Read the repository name. eventyay is an instance. Open Event is the project. I don't understand how to make it more clear

@iamareebjamal So you are saying that open event is written there intentionally and you want me to change existing eventyay to config.appname i.e. 'Open Event'
Screenshot (70)_LI

Copy link
Member

Choose a reason for hiding this comment

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

Absolutely!

@himanshu010
Copy link
Member Author

@iamareebjamal
settings.appname is writing 'eventyay' there
changed it to config.appname

@@ -1,7 +1,7 @@
<div class="mobile hidden row">
<div class="ui menu">
{{#link-to 'index' class='header item' activeClass=''}}
<h3>{{settings.appName}}</h3>
<h3>{{config.appName}}</h3>
Copy link
Member

Choose a reason for hiding this comment

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

Why are you changing Mobile Hidden Row, Change the name in Mobile Row to settings.appName . That's it.
@iamareebjamal Talking about the global injection of settings that can be handled later once this PR is done.

@kushthedude
Copy link
Member

Stale ?

@kushthedude
Copy link
Member

Please feel free to reopen when you have addressed the requested change.
Thank You

@snitin315
Copy link
Member

@himanshu010 , if you approve I would like to work on this issue.

@himanshu010
Copy link
Member Author

@kushthedude #3715 is my new pull request

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

Successfully merging this pull request may close these issues.

Some things are not visible on small screen
4 participants