Commit Graph

81 Commits

Author SHA1 Message Date
mgabdev abd4a831a2 Added floating action button to ui/index
hide on search, post, getting-started, if no user
2019-07-18 00:22:19 -04:00
mgabdev b163726651 Removed floating action button from columns area 2019-07-18 00:17:36 -04:00
Rob Colbert 7cea08ce35 Merge branch 'bugfix/hidden-poll-results-light-theme' into 'develop'
CSS updates

See merge request gab/social/gab-social!13
2019-07-17 23:07:57 +00:00
mgabdev 4ee4d7c8e8 Merge branch 'feature/updating_page_scroll' of https://code.gab.com/gab/social/gab-social into develop 2019-07-17 19:05:39 -04:00
mgabdev a8bc9be5e7 Updated scrollable_list to use documentElement for (primary/only) scrolling functionality
added infinite scrolling, updated intersection observer, updates all components that send onScroll, onScrollTop props, removed div ref/setRef to this.node, removed all references to this.node
2019-07-17 19:03:25 -04:00
mgabdev a6e80559ad Added onScroll props to status_list
(previously removed, adding back now)
2019-07-17 19:00:31 -04:00
mgabdev dea606b62d Added timeline scrollTop action, added to status_list_container, scrollable_list
(previously removed, adding back now)
2019-07-17 18:59:50 -04:00
mgabdev d978734bce Removed unnecessary scrollContainer in status, account_gallery
document scrolls, not individual containers/components
simply removed the wrapping <ScrollContainer /> and updated indentation
2019-07-17 18:57:44 -04:00
mgabdev c466fc6b86 Added missing isLoading prop to ScrollableList 2019-07-17 18:55:28 -04:00
mgabdev 08f3f5f6ec Updated scrollable_list intersectionObserverWrapper
removed root, uses the document/window to scroll so no options are needed
2019-07-17 18:54:48 -04:00
mgabdev 399891f25e Updated floatingActionButton to only show if someone is logged in 2019-07-17 18:54:02 -04:00
mgabdev 2aa38d53ea Updated timeline_queue_button_header
fixes: #27
put queue header in dom but hide if no count
if count, animate in so it doesn't jump the feed
2019-07-17 18:53:09 -04:00
mgabdev 2eea427148 Removed focus of compose/cw after submit or spoiler change
fixes: #21
2019-07-17 18:49:52 -04:00
mgabdev 5ca9ea500d Removed unused redirect after compose submit
route: /posts/new no longer exists
2019-07-17 18:46:42 -04:00
Dank Gabs e3e98084e7 Merge branch 'develop' into bugfix/hidden-poll-results-light-theme 2019-07-16 16:54:41 -04:00
mgabdev 45754503ca Updated notification badge number formatter
fixes: #44
2019-07-16 14:50:37 -04:00
mgabdev 17af572ec9 Fixed status/repost functionality to show status if owned by given username
fixes: #47
2019-07-16 14:41:36 -04:00
Dank Gabs 062353cfd6 Comment out the "groups" button until ready to reveal. 2019-07-16 00:10:14 -04:00
Dank Gabs eed65d2d04 Changed the method of adding main navigation icons.
Created a png sprite sized @2x based on largest usage (for retina).
This will fix some rendering issues caused by using svg images.
It will allow adding depth and more color / shading if we choose later.
2019-07-16 00:07:51 -04:00
mgabdev 1c8273e9e6 Removed unused imports 2019-07-12 16:29:17 -04:00
mgabdev 8f13fe0515 Removed unused PublicTimeline component
now that this functionality is within the CommunityTimeline component from: dfb8d53
2019-07-12 16:27:59 -04:00
mgabdev dfb8d53785 Updated CommunityTimeline to add option for "all federated" content
added a toggle for showing only gab (off) or all fediverse content (on)
2019-07-12 16:26:06 -04:00
mgabdev ee433f57fb Removed unused import in unauthorized_modal 2019-07-12 16:10:24 -04:00
mgabdev 4e9b22640c Updated compose_form to account for if compose modal open
fixes #9
since there are multiple compose_form on the page (on top of timeline = shouldCondense) and within the modal when replying. if isModalOpen and is the compose form that's on top of timeline then dont set the ref so we can set the cursor on the textarea of the compose modal after the existing reply content.
2019-07-12 12:22:05 -04:00
mgabdev 1e68c5d4fe Added empty message to pinned statuses page 2019-07-12 00:08:50 -04:00
mgabdev 9795c1139c Updated nextProps withReplies for account timeline
fixes #12
2019-07-12 00:08:26 -04:00
mgabdev 092bc3898c Added empty message to account_gallery media page 2019-07-12 00:07:11 -04:00
mgabdev 45dcd5a1ab Updated timeline/notification dequeue to be in componentDidMount 2019-07-11 17:31:04 -04:00
mgabdev 4043355b01 Merge branch 'feature/adding_queued_timeline' of https://code.gab.com/gab/social/gab-social into develop 2019-07-11 12:18:37 -04:00
mgabdev a7f2837a37 Added TimelineQueueButtonHeader to status_list
updated render return to add timeline queue button header before scrollable list
added handleDequeueTimeline action with totalQueuedItemsCount props
2019-07-11 12:14:27 -04:00
mgabdev a41e6f2876 Added queue functionality status_list_container for status timelines
added totalQueuedItemsCount to props per timeline
added dequeueTimeline action with timeline onLoadMore for expanding/dequeueing
2019-07-11 12:13:32 -04:00
mgabdev ebc44ed743 Added timeline dequeue functionality to onSubmitCompose action
when a status is composed and there's queued statuses, it attempts to dequeue those statuses with optional dequeueArgs
2019-07-11 12:10:46 -04:00
mgabdev 0356e21747 Added redux functionality for queueing/dequeueing timelines
using streaming.js, when a status comes in to the current page, it queues up using updateTimelineQueue action, it then goes to the reducer to add "queuedItems" to state (up to max:40) and to tally up all count in that timeilne state "totalQueuedItemsCount".

the dequeueTimeline action takes in a "timelineId", "expandFunc", and "optionalExpandArgs". when clicking on the "click to load more" it passes in the timelineId (e.g. "home", "community", etc.) and the "handleLoadMore" function from the timeline component. if within the range of the max: 40, it pushes them to the dom, if over the max: 40 it clears the timeline and refreshes the page/timeline to show the most recent 20 statuses. Then, it resets the "queuedItems" and "totalQueuedItemsCount" in timeline state.

if no expandFunc is added, and timeline is "home" or "community" it expands those timelines with "optionalExpandArgs". Otherwise, it queues up to any other timeline (e.g. "hashtags", etc.)
2019-07-11 12:09:41 -04:00
mgabdev c8e8618f64 Added notification queueing functionality
updated streaming functionality to load notifications into a queue (if currently on notitications page) and to display TimelineQueueButtonHeader with outstanding notification count. (if not on notifications page, it behaves as normal, adding/updating notification state). Max 40 are saved to queuedNotifications state and all are tallied into the totalQueuedNotificationsCount state. On click of TimelineQueueButtonHeader it dequeues the queuedNotifications and loads on page if <= max, otherwise it refreshes the page and shows latest 20 (default count) and clears/resets the state for queuedNotifications and totalQueuedNotificationsCount.
2019-07-11 00:02:18 -04:00
mgabdev 6ad747a609 Added TimelineQueueButtonHeader component, styles
button at top of feeds to show "click to load more"
2019-07-10 23:54:19 -04:00
mgabdev f10878ceaa Removed unused column param actions 2019-07-10 14:22:18 -04:00
mgabdev 6b5b0dc162 Removed unused hashtag timeilne column settings
non visible functionality to change visiblility of filtering hashtags on hashtag timeline
2019-07-10 14:21:24 -04:00
mgabdev 038e7db5b9 Removed unused columnId throughout app 2019-07-10 14:20:31 -04:00
mgabdev a385210c09 Removed unused import in scrollable_list 2019-07-10 14:17:07 -04:00
Dank Gabs e1a00a26b1 Removed username from property files used on mention button within the app. 2019-07-09 14:40:28 -04:00
Dank Gabs 1c5fd06b8c Merge branch 'develop' into bugfix/patch-fix-mention-button-mobile 2019-07-09 14:34:39 -04:00
Dank Gabs b15a1f0951 Removing the username from the mention button.
Gab has some very long usernames which will break the button.
2019-07-09 14:25:11 -04:00
mgabdev 22eaad1846 Added functionality to notifications page to scroll top on component mount
clears notification badge (unread count) on page open
2019-07-09 00:19:03 -04:00
mgabdev 451e5eaca0 Updated community/home timeilne to use new HomeColumnHeader
removed duplicate components from home_timeline that is now in home_page like compose, avatar, etc.
removed unused imports
2019-07-08 23:59:11 -04:00
mgabdev 41895b12ab Added home_column_header
includes custom tabs for home, all buttons to switch between home page and all/community page
2019-07-08 23:56:11 -04:00
mgabdev 2c047a1126 Fixed issue with key warning/error log 2019-07-08 23:52:18 -04:00
mgabdev de2126bd60 Removed unused imports 2019-07-08 23:51:08 -04:00
mgabdev cf83aa58c3 Added all/community timeline route 2019-07-08 23:50:57 -04:00
mgabdev 899be5b4f0 Removed home layout in ui/index
unused now that we have HomePage
2019-07-08 23:50:30 -04:00
mgabdev c7b70b77c5 Updated home route to use HomePage instead of home layout 2019-07-08 23:50:12 -04:00