* Extracted all visible texts
* Unit test import
* Removed conflicting import
* Removed unit tests that are no longer valid
* Added tests
* Renamed string
* Fixed string
* Added strings descriptions
* Converted string to templates
* multiAccount functionnality
* remove sharedpreferences usages
* start fixing tests to work with changes
* remove test of removed functionality
* more fiddling with tests
* fix instance insert being broken
* clean up some more preferences usage
* close db
* try to fix a bunch of issues
* move db close
* add instance to user drawer item
* remove rule that is no longer needed
* correct mock server to fix test
* removed unused stuff
* fix domains not being validated correctly
* update test
* Delete q
* Move image filter application to a thread
* remove unused imports
* remove unused strings
* remove unused strings
* fix buttons (sometimes)
* solve some linter issues, fix saturation brightness contrast not being shown properly
* remove unused strings
* add tests for drawer
* remove unused imports, other linter suggestions
* fix broken auto linter fix
* utility functions to censor and decensor a post image
* added Text warning about sensitive content
* adapt layout based on Sensitive attribute, censor and decensor
* try to perform clicks on sensitive image
* small refactor of status for sensitive layout
* testing censor Matrices functions
* perform test on sensitive post
* modified so second post is sensitive
* hide sensitiveWarning from albums for now
* hide totaly the image
* perform visibility check on sensitive warning textView
* deleted tests using activityScenario.onActivity as they return true on assert(false)
* commented dummy test for matrix censoring
* implemented sensitive layout for multiple pictures posts
* remove diplay check before click
* now testing visibility of textView
* deleted faulty lines i hope
* bring back dummy check for matrices
* everything is now sensitive, testing on tab post
* implemented matcher for second item
* implemented tests for tabs and classic sensitive layout using custom matcher Second
* cleaning in JSON values, put sensitive true on posts
* hide sensitive posts behind red triangle
* centered background triangle
* corrected indentation
* extracted sensitive string in string.xml
* first draft of dark mode, still needs some work
* changed dark mode colors
* fixed more buttons in dark mode
* Ran linter and fixed a few things
* mades things more kotlin-like
* added night mode selector in settings, but doesn't seem to work
* WIP Theme settings
* Fix callback not getting called (not registered)
* added theme test
* removed useless strings
* Fix dark mode not being applied
* Our app isn't called ThemedApplication and fixed fix
* changed default theme for API versions lower than 29
* WIP splashscreen nightmode
* Added custom splashscreen
* added night mode for splashscreen
* removed useless night values
* adapted icons for dark mode
* fixed light mode colors
* fixed a few light mode color bugs
* fixed bad login button
* fixed search tabs color
* fixed weird text input in post creation
* removed hardcoded strings in settings test
* removed unnecessary margin in login activity
* replace getIntrumentation.context with getInstrumentation.targetContext in settings test
Co-authored-by: Matthieu De Beule <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* Refactor profile as Activity
* Profile info in drawer + tests
* Fixed usernames and post scroll
* Updated username test
* Default avatar drawer
* Fixed avatar drawer
* Correction getUserName
* Fixed get username
* Small refactors for codeclimate
* Uncomment test
* adapted test to new modifications made on this branch
* added timestamp and 'from domain' for people who aren't on our domain
* added abbreviated timestamp for feed posts
* changed timestamp text color
* added share notification clicking
* fixed search
* Fixed broken test
* refactored notification clicks a bit
* fixed accounts in test
* popup menu xml and longclicklistener on postfragment
* modularize popup menu code and added listener on homefeed
* fixed position
* image download implemented
* added download state messages
* added test and applied some lint cleanup suggestions
* added functionality to albums
* added test for album
* Changed Post interaction icons and added click feedback
* added reblog and unreblog api implementations
* Use fancy animated buttons
* WIP reposter
* WIP reblog button
* renamed ViewHolder => PostViewHolder
* activated reblogger in feed
* added custom html parser, still need to fix clickable links
* added parsed HTML in notifications
* fixed mention click
* added tests for reblog and clickable mentions
* adapted unit tests to work with new html parser
* changed incoherent comment
* made hashtags slightly less useless
* removed unit test that were no longer valid
* removed useless test
* trying to fix tests
* fixing tests
* trying to improve coverage a little
* removed unused code to improve coverage
* changed cast to type converter
* added failure responses to help coverage
* added mock server response for reblogging
* fixed broken json
* trying to fix a broken test
* added handling of multiple images in a post
* Tweak tests
* Typo in test
* Add scrolls to make tests pass on small screens
* fixed old JSON in mockserver
* fixed linter issue
* merged with master again
* added test for albums
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
* Changed Post interaction icons and added click feedback
* added reblog and unreblog api implementations
* Use fancy animated buttons
* WIP reposter
* WIP reblog button
* renamed ViewHolder => PostViewHolder
* activated reblogger in feed
* added custom html parser, still need to fix clickable links
* added parsed HTML in notifications
* fixed mention click
* added tests for reblog and clickable mentions
* adapted unit tests to work with new html parser
* changed incoherent comment
* made hashtags slightly less useless
* removed unit test that were no longer valid
* removed useless test
* trying to fix tests
* fixing tests
* trying to improve coverage a little
* removed unused code to improve coverage
* changed cast to type converter
* added failure responses to help coverage
* added mock server response for reblogging
* fixed broken json
* trying to fix a broken test
* Tweak tests
* Typo in test
* Add scrolls to make tests pass on small screens
* fixed old JSON in mockserver
* fixed linter issue
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
Comment and like buttons added + a few UI tweaks
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* layout changes
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* Add tests
* delete test for now
* Adapt test to changes (no more profile from drawer)
* Add unit test for api
* Add test for profile, refactor to allow testing, add exception to security policy to allow tests
* Adapt test to new situation
* Fix typo due to change
* refactor somewhat
* added a feed test
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* WIP posts
* WIP posts
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* added a feed test
* added a working feed test
* fixed broken test
* merged with master
* added a max height for images and made profile pictures round
* Added a default image for the post
* created a PostActivity to look a single posts
* fixed buggy postActivity
* Complete overhall of the feed UI
* removed test that didn't please Travis
* removed legacy test
* changed feedAdapter init location (outside of network callback)
* changed the feed from public timeline to home timeline
* Refactored myProfile page
* Converted profile picture to round image
* restored feed test
* I can like a post, but unlike is still a WIP
* Liking kind of works now and added tests
* fixed an error, now we can unlike as well
* fixed travis constraint error
* Display user's posts on profile page
* moved test to Mock server tests
* fixed test
* last resort debugging
* Changed fixed size of profile posts
* last resort debugging
* last resort debugging
* last resort debugging
* made post_activity profilepic round
* Total refactor of profile posts
* still have a weird bug with the comments: input is always null (WIP)
* still trying to fix coments
* removed annoying side margins in the home feed
* trying to fix comments
* fixed null comment
* converted all posts back to statuses and got rid of post
* Refactored recycler view
* Merged with my-profile
* Posts displayed on profile page
* Added links to profile activity where needed
* fixed comment posting
* finished implementing comments, but api is buggy so none are visible
* removed useless space in profile page
* fixed ci config bug
* trying to trigger ci hook (github was down last time)
* updated tests with master tests
* added tests for the comments
* added tests for the comments
* added first() matcher to fix comment test
* still trying to fix comment tests' null progress bar
* getting rid of that null progress bar
* added comment test
* fixed merge error
* added like button test
* added more post tests
* took pr coments into account
* added back an old test
* added mockServer response for comment test and fixed comment null pointer bug
* changed notification UI to better separate notifications
* added mockserver response for likes and corrected like toggling error
* added a test for posting comments
* fixed typo in test
* a gift for code climate
* refactored stuff
* fixed broken imports
* comment refactored as xml
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
Co-authored-by: mjaillot <marie.jaillot@epfl.ch>
* Refactored myProfile page
* Total refactor of profile posts
* Merged with my-profile
* Posts displayed on profile page
* Added links to profile activity where needed
* Removed MyProfileTest with swipes
* Tests ProfileActivity from Notifications
* Add test, fix progressbar being null
* Add notification fragment to notification tab
* First functional-ish version of notifications
* Fix test failing due to profile requesting multiple times (?)
* Test notifications list
* Move resource that was in the wrong place for some reason
* Improve fallback image, add new drawable for it, add a margin
* Only show image thumbnail when there is one
* Go to post activity on click
* Add pull to refresh
* Refactor somewhat
* Test other notification too
* Test opening post
* add icons for various things (heart, follow, share, image fallback)
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* rebased from master
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* rebased from master
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* fixed another merge problem
* trying my best to merge
* removed drawable definition in activity_post.xml
* implements swipe motion
add a new class to implement swipe motion
add the swipe right from home page to display settings
passed the homepage in a fragment
* transform profile activity into fragment
transformed profile activity and layout into fragment
linked it with a swipe motion
* Implement swipeable tabs
* Ask for login on first start, add API endpoints, change profile to show the user's profile
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* layout changes
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* Add tests
* delete test for now
* Adapt test to changes (no more profile from drawer)
* Add unit test for api
* Add test for profile, refactor to allow testing, add exception to security policy to allow tests
* Adapt test to new situation
* Fix typo due to change
* refactor somewhat
* added a feed test
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* WIP posts
* trying to add images
* WIP posts
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* WIP posts
* WIP posts
* WIP posts
* WIP posts
* trying to add images
* trying to add images
* trying to add images
* trying to add images
* Got posts working and linked them to the profile
* Got posts working and linked them to the profile
* added tests for Post
* layout changes
* layout changes
* moved a test file
* refactoring
* refactoring
* refactoring
* refactoring
* removed wrong annotation in unit test
* removed an import that was breaking the build
* removed an import that was breaking the build
* removed tests that broke from merge, will override with master
* removed tests that broke from merge, will override with master
* added UI test for the post activity
* fixed merging errors
* trying my best to merge
* removed drawable definition in activity_post.xml
* Started converting Post to a fragment
* got a working feed
* WI
* removed non-valid test
* rebase on other branch
* moved the feed to the home page
* added a feed test
* added a working feed test
* fixed broken test
* merged with master
* added a max height for images and made profile pictures round
* Added a default image for the post
* created a PostActivity to look a single posts
* fixed buggy postActivity
* Complete overhall of the feed UI
* removed test that didn't please Travis
* removed legacy test
* changed feedAdapter init location (outside of network callback)
Co-authored-by: Matthieu <61561059+Wv5twkFEKh54vo4tta9yu7dHa3@users.noreply.github.com>
Co-authored-by: Ulysse Widmer <ulysse.widmer@epfl.ch>