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

modified " help us improve" link #485

Conversation

satti-hari-krishna-reddy
Copy link
Contributor

@satti-hari-krishna-reddy satti-hari-krishna-reddy commented Jan 18, 2024

reference #405

the version number just below help us improve link is actually directing to https://github.com/apertium/apertium-html-tools
but i think many users wont even recognise that it is a clickable tag , most of them click on help us improve ,but that is opening AboutModal instead which isnt that helpful to report any issues .

@satti-hari-krishna-reddy
Copy link
Contributor Author

satti-hari-krishna-reddy commented Jan 18, 2024

in eng.json <a data-toggle='modal' data-target='#contactModal' data-text='Help_Improve' data-keyboard='true' data-dismiss='modal' style='cursor: pointer'>contact us</a> this is trying to trigger the contact modal when clicked on it but ,when we clicked on it nothing is happening . iam not sure why but i believe that there is no element with id contactModal in the dom is the reason why contactModal is not getting opened ?

@satti-hari-krishna-reddy
Copy link
Contributor Author

to make things simple i made contact us to direct to https://wiki.apertium.org/wiki/Contact

@satti-hari-krishna-reddy
Copy link
Contributor Author

@sushain97

what are your thoughts on this , does these changes make sense ?

Screenshot (20)

@sushain97
Copy link
Member

I don't really think it makes sense to have the version number open an 'About Apertium' modal... I'd see what @unhammer thinks though since he opened the initial ticket.

@satti-hari-krishna-reddy
Copy link
Contributor Author

Ayo, my bad on the confusion in my pull request. It looks like there was a bit of a mix-up in understanding my changes. I should've explained things better. Let me give you a clearer picture:

Before

  • Help us improve link is opening AboutModal .There is a link under "contact us", but it's the same colour as the other text and also the link is not working when clicked.
  • the version number just below Help us improve is an anchor tag directing to https://github.com/apertium/apertium-html-tools when clicked.

After

@unhammer
Copy link
Member

unhammer commented Jan 19, 2024

Having "contact us" goto wiki/contact is an improvement.

But I wouldn't want "Help us improve" to go to html-tools – typically people have suggestions for translation improvements. A better (but still not ideal) link would be https://wiki.apertium.org/wiki/Contributing


A better solution might be to send them to the issues page of the language pair they're currently looking at, e.g. if I'm at
https://apertium.org/index.html#?dir=spa-cat&q=Mi%20aerodeslizador%20est%C3%A1%20lleno%20de%20anguilas
and want to improve the translation, then I should get sent to

https://github.com/apertium/apertium-spa-cat/issues/new?title=Suggested+translation+improvement&body=SOURCE:%20Mi%20aerodeslizador%20est%C3%A1%20lleno%20de%20anguilas%0A%0AGOT:%20El%20meu%20aerolliscador%20est%C3%A0%20ple%20d%27anguiles%0A%0AEXPECTED:%20[YOUR%20TRANSLATION%20SUGGESTION%20GOES%20HERE]

(try that link that to see what it looks like, c.f. https://stackoverflow.com/a/34147022 we might want labels too)

@coveralls
Copy link

coveralls commented Mar 10, 2024

Pull Request Test Coverage Report for Build 8222512008

Details

  • 27 of 28 (96.43%) changed or added relevant lines in 5 files are covered.
  • 1 unchanged line in 1 file lost coverage.
  • Overall coverage decreased (-0.08%) to 97.566%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/util/initialTextValues.tsx 13 14 92.86%
Files with Coverage Reduction New Missed Lines %
src/components/footer/index.tsx 1 98.28%
Totals Coverage Status
Change from base Build 8032731524: -0.08%
Covered Lines: 1401
Relevant Lines: 1418

💛 - Coveralls

@satti-hari-krishna-reddy satti-hari-krishna-reddy marked this pull request as ready for review March 10, 2024 13:54
@satti-hari-krishna-reddy
Copy link
Contributor Author

hey iam back , college work has been busy

@satti-hari-krishna-reddy
Copy link
Contributor Author

@sushain97, I've worked on bringing tgtText and srcText into the Footer component to achieve what unhammer suggested. It's also related to #482, and I need your help figuring out the best way. While attempting with React Context, I couldn't find the right way to fit it into the current code, so I created a new file. Also, due to changes in the help_improve button, tests checking that behavior have been removed for now. Any thoughts on the best approach would be super helpful.

@sushain97
Copy link
Member

Let's first resolve the merge conflicts that now exist.

@satti-hari-krishna-reddy
Copy link
Contributor Author

closing this and continuing at #498

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.

4 participants