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

Plan out and implement customizable application table views #48

Closed
2 tasks done
andrewtavis opened this issue Jul 27, 2024 · 14 comments
Closed
2 tasks done

Plan out and implement customizable application table views #48

andrewtavis opened this issue Jul 27, 2024 · 14 comments
Assignees
Labels
feature New feature or request help wanted Extra attention is needed

Comments

@andrewtavis
Copy link
Member

andrewtavis commented Jul 27, 2024

Terms

Description

One thing that's needed to improve the menu is that we create table views that allow for customization based on passed arguments. This issue will be a larger one, but will allow for many small issues to be made where individual menu components are added in :) Looking at the About tab from the Figma designs as shown below:

About Scribe - Light

We'd need customizable cells that can have a custom icon to the left, an icon to the left that's either a right chevron, an external link icon or a counterclockwise circle, and we should also consider that we need text to the left of the right icons in some instances for menu options.

Contribution

Happy to discuss what's needed and help implement/review! 😊

@andrewtavis andrewtavis added feature New feature or request help wanted Extra attention is needed labels Jul 27, 2024
@angrezichatterbox
Copy link
Member

I implement those customizable cells where the icon is on the left and an icon on right with text in middle . Right ? .

@andrewtavis
Copy link
Member Author

Yes exactly, @angrezichatterbox :) It would be great if we can easily create table view cells like the ones we already have that the needed icons. It makes sense to have a common cell with options, correct? Thank you!

@angrezichatterbox
Copy link
Member

angrezichatterbox commented Jul 29, 2024

Ya, it makes sense. So I should create a view that can be reused with the input being the left and right icons and the title.

@andrewtavis
Copy link
Member Author

That'll work for the start. We'll likely need to add things to it eventually, but that's fine for now 😊

Thanks, @angrezichatterbox!

@angrezichatterbox
Copy link
Member

angrezichatterbox commented Jul 31, 2024

Screenshot 2024-07-31 at 4 13 31 PM

I have tried the reusable component in my personal app for testing. This is what I have so far. I have created a model that takes in 3 variables. Two images and a third button image. The button could be individually added to navigate to whatever it is prescribed to do.
Is this what had to be done or I have to do something else as well.

@andrewtavis
Copy link
Member Author

Ideally the entire field should be a button, @angrezichatterbox, and then the third option is an icon like the first :) Would that work?

@angrezichatterbox
Copy link
Member

Ideally the entire field should be a button, @angrezichatterbox, and then the third option is an icon like the first :) Would that work?

Ya that would work and it is much easier to implement as well.

How exactly should I proceed with this in my hand. Should I implement these views in the about page? Or Should I push these implementations once its perfect for a pr.

@andrewtavis
Copy link
Member Author

You can push whenever you'd like feedback, @angrezichatterbox :) Happy to take an intermediary look at it as well! As you see fit 😊

@angrezichatterbox
Copy link
Member

angrezichatterbox commented Aug 2, 2024

Screenshot 2024-08-02 at 6 21 44 PM

This is what I have implemented so far. The data class could take in 2 icons and a text. We could also pass it a URL, activity or function. Depending on what is passed it executes it accordingly like opening a URL navigating to a new page or executing a function. Do you think I should consider anything else while implementing this? Any suggestions to make it better?

@andrewtavis
Copy link
Member Author

Wow this is amazing, @angrezichatterbox 🤩 Only thing would be let's make the external link icons similar to the one in the designs. I find the one in the screenshot to be a bit busy.

Thanks so much!

@angrezichatterbox
Copy link
Member

Screenshot 2024-08-03 at 12 05 06 PM Screenshot 2024-08-03 at 12 04 58 PM

This is how the app looks currently in light and dark mode respectively. I have added functionality to the button according to how Scribe-iOS works. The buttons that are supposed to go to new pages will currently give a Toast message that no action is defined. Should I change any of the icons I have used in this. Any suggestion to make it better?

@andrewtavis
Copy link
Member Author

No, this is perfect, @angrezichatterbox 😊 Thanks so much for all the work here! We can merge this in and then maybe you can make the issues for the needed actions? :)

@angrezichatterbox
Copy link
Member

I have made a pull request.

@andrewtavis
Copy link
Member Author

Closed via #50 🚀 Thank you, @angrezichatterbox! Really amazing to see one of the pages look so polished already! 🤩 I'll reach out about things on Matrix :)

@github-project-automation github-project-automation bot moved this from Todo to Done in Scribe Board Aug 3, 2024
andrewtavis added a commit that referenced this issue Nov 16, 2024
c916c4d Update xcstrings and de/sv strings given new localizations
0a58b1c Merge pull request #75 from weblate/weblate-scribe-scribe-i18n
6b43bfd Translated using Weblate (Swedish)
f193e49 Translated using Weblate (German)
4f60287 Translated using Weblate (Swedish)
1422f5e Convert Korean JSON to xcstrings and Android values
718ab45 Update all xcstrings and strings files given new localizations
8c13530 Merge pull request #73 from yerimmii/ko-json
bc78915 Create ko.json
3f2a3de Minor edit to .gitignore for spacing
e40d892 Merge pull request #72 from axif0/bangla
1afc6ea Creating Bangla localization
23c56ed Merge pull request #70 from KesharwaniArpita/ArpitaContributionsMarathi
d49ed68 Create string.xml
7dc4b73 Create mr.json (Marathi)
6bc6502 Merge pull request #69 from axif0/work
933237d Update pr_maintainer_checklist.yaml
fa75400 Merge pull request #68 from OmarAI2003/MSA-internationalization
329ad53 Translate from en to ar
c81e3a1 Add Arabic translation file (ar.json) for localization support
45bce87 Merge pull request #66 from OmarAI2003/improve-android-convert-str-to-json
b774027 Minor spacing and removing permissions error
a3eeda1 Merge pull request #67 from weblate/weblate-scribe-scribe-i18n
c67255b Translated using Weblate (Spanish)
7054971 fix: add check for missing values_directory
a90a040 Error handling for file read and write operations
9295291 Use a single variable for the 'jsons' folder path and add error handling for missing 'jsons' folder.
5e85b16 Merge pull request #64 from OmarAI2003/improve-android-convert-jsons-to-strings
94482ef Added docstrings to Android string conversion functions
2a7b35b for the recently supported language: adding the 'hi' language folder generated by the script to prevent 'directory not found' errors when testing the reverse conversion (JSON to strings).
13a4849 small fix to the lang_dir
e5ca964 Refactor: Pre-load language JSON files before generating strings.xml files
f8ffe63 Use a single variable for the 'jsons' folder path and add error handling for missing 'jsons' folder.
7dbeaa1 Merge pull request #62 from OmarAI2003/improve-convert-jsons-to-xcstrings
a3e5fbf Minor edits to script spacing and comments
5fb2fc5 Merge pull request #63 from KesharwaniArpita/ArpitaContributionsHindi
fd91955 Create hi.json
9fcc0de fix: update inline comments to start with lowercase as per style guide.
8925a4b Rename variable for improved clarity
aee58c0 Add error handling for missing base language file
d41c8eb Remove automatic creation of the 'jsons' folder
d811de7 Optimize performance by pre-loading language JSON files
81da648 Refactor: Use a single variable for the 'jsons' folder path and ensure it exists.
f354bb4 Fix file handling: Use context managers to ensure safe reading and writing of files.
13d52f2 Merge pull request #58 from OmarAI2003/improve-convert-xcstrings-to-jsons
8b13ee6 Fix to en.json being written rather than en-US + minor edits
2a7e03d Merge pull request #61 from weblate/weblate-scribe-scribe-i18n
f0abf87 Translated using Weblate (French)
6c4acae Merge pull request #60 from OmarAI2003/fix-typo-in-readme.md
d30380a Revert: Move Localizable.xcstrings back to original location
46a68da moved Localizable.xcstrings again where it was as andrew told me
d426a4b Fix typo in README: Changed 'an tools' to 'tools'
0d48009  made the changes as per the feedback and added Localizable.xcstrings to 'jsons' directory
42e76dd Improve language handling and ensure directory creation
b1ccff7 Refactor: Use context manager for writing JSON files to ensure proper file handling.
5b97d83 Add JSON loading error handling in convert_xcstrings_to_jsons.py
32b8f70 Improve file handling in convert_xcstrings_to_jsons.py
7536be6 Update app menu headings to not include second word caps
c286cf2 Merge pull request #50 from weblate/weblate-scribe-scribe-i18n
3038710 Translated using Weblate (Spanish)
b80ddc7 Translated using Weblate (Spanish)
faf7ce3 Various fixes of strings and adding conjugate keys
1eb7d47 Minor update to readme headers
04574f8 Remove unused keys and fix colon spacing
8492a7a Make sure that application names are not localized
0ac6710 Merge pull request #48 from weblate/weblate-scribe-scribe-i18n
80708cb Translated using Weblate (Spanish)
dd15564 Merge pull request #47 from weblate/weblate-scribe-scribe-i18n
f05f74d Translated using Weblate (Spanish)

git-subtree-dir: app/src/main/assets/i18n
git-subtree-split: c916c4d563c2cf2ba8735494a76e97a6a1c912c2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request help wanted Extra attention is needed
Projects
Archived in project
Development

No branches or pull requests

2 participants