Coder Social home page Coder Social logo

spikeysanju / einsen Goto Github PK

View Code? Open in Web Editor NEW
901.0 9.0 79.0 4.44 MB

🎯 Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.

License: Apache License 2.0

Kotlin 99.98% Shell 0.02%
android kotlin jetpack-compose android-development android-architecture android-ui stateflow kotlin-coroutines mvvm-android room-persistence-library room-database jetpack-android hilt-android datastore-android declarative-ui ui-toolkit ui-components coroutines-flow hacktoberfest

einsen's Introduction

GitHub Cards Preview

Build (Android) GitHub license ktlint

GitHub stars GitHub stars GitHub stars GitHub follow Twitter Follow

🎯 Einsen

Einsen is a prioritization app that uses Eisenhower matrix technique as workflow to prioritize a list of tasks & built to Demonstrate use of Jetpack Compose with Modern Android Architecture Components & MVVM Architecture.

Try latest Einsen app apk from below πŸ‘‡

Einsen


🎨 UI Design

Click to View Einsen app Design from below πŸ‘‡

Einsen Figma Design Einsen FigJam Design


🌞 Day Mode

Dashboard All Tasks Task Details
Add Task Emoji Empty State

🌚 We Support Dark Mode Too

Dashboard All Tasks Task Details
Add Task Emoji Empty State

πŸ›  Built With

  • Kotlin - First class and official programming language for Android development.
  • Jetpack Compose - Jetpack Compose is Android’s modern toolkit for building native UI.
  • Coroutines - A coroutine is a concurrency design pattern that you can use on Android to simplify code that executes asynchronously.
  • Flow - A flow is an asynchronous version of a Sequence, a type of collection whose values are lazily produced.
  • Jetpack DataStore - Jetpack DataStore is a data storage solution that allows you to store key-value pairs or typed objects with protocol buffers. DataStore uses Kotlin coroutines and Flow to store data asynchronously, consistently, and transactionally.
  • Android Architecture Components - Collection of libraries that help you design robust, testable, and maintainable apps.
    • Stateflow - StateFlow is a state-holder observable flow that emits the current and new state updates to its collectors.
    • Flow - A flow is an asynchronous version of a Sequence, a type of collection whose values are lazily produced.
    • ViewModel - Stores UI-related data that isn"t destroyed on UI changes.
    • Jetpack Compose Navigation - The Navigation component provides support for Jetpack Compose applications.
    • DataStore - Jetpack DataStore is a data storage solution that allows you to store key-value pairs or typed objects with protocol buffers. DataStore uses Kotlin coroutines and Flow to store data asynchronously, consistently, and transactionally.
  • Material Components for Android
    • Modular and customizable Material Design UI components for Android.
  • Accompanist
    • A collection of extension libraries for Jetpack Compose.
  • Figma - Figma is a vector graphics editor and prototyping tool which is primarily web-based.

πŸ“¦ Package Structure

dev.spikeysanju.einsen
β”œβ”€β”€ app                   # Application class
β”œβ”€β”€ components            # All resuable components for this app
β”œβ”€β”€ data                  # For data handling
β”‚   β”œβ”€β”€ local               # Local Persistence Database. Room (SQLite) database
β”‚   β”‚   β”œβ”€β”€ Dao               # Data Access Object for Room
β”‚   β”‚   └── Database          # Database Instance
β”‚   └── datastore
β”‚       └── ThemePref         # Datastore Theme Preference 
β”œβ”€β”€ di                        # Hilt DI Modules
β”œβ”€β”€ model                     # Model class for [Task] & [Emoji]
β”œβ”€β”€ navigation                # For navigation handling
β”‚   β”œβ”€β”€ Routes                # All unique navigation routes of this app
β”‚   └── NavGraph              # Single source for Navigation Routes of this app
β”œβ”€β”€ repository                # Used to handle all data operations
β”œβ”€β”€ ui.theme                  # Theme setup for this app
β”œβ”€β”€ utils                     # Extension functions
β”œβ”€β”€ view                      # All composables screens root folder
β”‚   β”œβ”€β”€ add                   # Add Task Screen
β”‚   β”œβ”€β”€ edit_task             # Edit Task Screen
β”‚   β”œβ”€β”€ dashboard             # Dashboard Screen
β”‚   β”œβ”€β”€ all_task              # All Task Screen
β”‚   β”œβ”€β”€ task_details          # Task Details Screen
β”‚   β”œβ”€β”€ emoji                 # Choose Emoji Screen
β”‚   β”œβ”€β”€ webview               # WebView Screen
β”‚   β”œβ”€β”€ animation             # Animation Placeholders for State handling(Loading, Error, Empty etc.)
β”‚   β”œβ”€β”€ about                 # About Screen
β”‚   └── viewmodel             # ViewModel 
└── MainActivity.kt           # MainActivity 


πŸ—Ό Architecture

This app uses MVVM (Model View View-Model) architecture.

🧰 Build-tool

You need to have Android Studio Beta 3 (BumbleBee) or above to build this project.

Beta-studio


πŸ’¬ Frequently Asked Questions

When was project Einsen started?

🎯 I started working on this idea 6 months before founding Einsen app (April 2021). The idea was exploring mental models + productivity tips to achieve your goals. I tried to test the idea with Productivity & Time Management Trackers . So I built initial MVP..

Where can I find the research process for Einsen app?

πŸ“ The biggest lesson I learned while designing this was that, I need to be focused & working relentlessly on the same project, to get the right flow of thought & complete it. Each iteration led to more insights on improving the design, solving problems for users. You can find the link for πŸ“ Design Process here & 🎨 Figma Designs here

What is the future goals of this project Einsen?

πŸ¦„ For each week I will be implementing some new cool features for this application. Here are some of the amazing features you will come to expect from this platform πŸ‘‡

  • Due Date for each task
  • Recurring task
  • Pomodoro timer for each task
  • Task Template as per user preference
  • Calendar based task management
  • Project management
  • Statistics for completed task
  • Introducing new mental model templates like Eisenhower

🀝 Contribute

If you want to contribute to this app, you're always welcome! See Contributing Guidelines.


πŸ“© Contact

I know that first and foremost you are looking for a tool to solve your problems, but if you enjoy it that much, why not tell us? We would love to hear from you πŸ˜‰

DM me at πŸ‘‡


❀️ Show your Support

I love it when people use my tool and we’d love to make it even better. If you like this tool and want to support me in developing more free tools for you, I’d really appreciate a donation. Feel free to buy me a cup of coffee πŸ˜„. Thanks!

Buy Me A Coffee Patron Link PayPal Link


πŸ”– License

    Apache 2.0 License


    Copyright 2021 Spikey sanju

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

einsen's People

Contributors

kasem-sm avatar spikeysanju avatar tittojose avatar yogeshpaliyal avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

einsen's Issues

Duplicate Emoji Search Results

Describe the bug
When searching for Emoji it returns multiple duplicate Emoji's

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'Add Task Screen'
  2. Click on 'Emoji Picker'
  3. Search for Emoji
  4. See error

Expected behavior
Search results should not contain Duplicate Emoji's

Smartphone Details (please complete the following information):

  • Poco F1
  • Android 11

Additional context
We can fix this error by adding distinct() filter on EmojiResults in ViewModel

πŸ”₯ Utmost Refactoring

The goal of this issue is to refactor all the entire app across all modules & make Easy to use & understand the code with idiomatic and type-safe DSL to ensure a high level of readability.

Setup Multiple Theme & DataStore

Currently in this application I'm planning to add multiple theme instead of day and night mode.

It will have following themes πŸ‘‡

Blue Green Gray Oliver Purple Red
HOME-BLUE HOME-DEEP GREEN HOME-GRAY HOME-OLIVER HOME-PURPLE HOME-RED

Add Splash Screen

The goal of this issue is to create a Splash Screen for this app.

cannot import properties of EinsenColors.kt

Einsen_issue
Describe the bug
unable to call properties of EinsenColors.kt (like EinsenColors.white) in other files. i can call the EinsenColor file but not its properties

Screenshots
Einsen_issue

** Smartphone Details (please complete the following information):**
none

Additional context
none

F-Droid

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I'm always frustrated when I open F-Droid and don't see Einsen there.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Get Einsen included in F-Droid! Submit the app!

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

There is no alternative! This is the only known way to install apps. Everyone saying there are other ways lies.

Additional context
Add any other context or screenshots about the feature request here.

β†’ https://f-droid.org/en/contribute/

Update Navigation Transition animation

The goal of this feature request is to improve the onscreen navigation animation of this app. Currently we're using default animation which looks really odd.

Add Proper Input Validation

Currently for input validation it's not validating the inputs properly. So I need implement workaround solution for this.

Add Community Profile

The goal of this issue is to add the following md files πŸ‘‡

  • Code of Conduct
  • Contributing
  • License

Disabled forced dark mode

The goal of this issue is to fix the forced dark mode on Poco F1 MIUI 12 by setting flag on Application theme.

Add work manager to insert all emoji's to Room DB

The goal of this feature request is to fix the performance issue caused on Add/Edit Task composable screen. Whenever users try to navigate to the Add/Edit task screen there's a huge lag because of loading all Emoji's.

Since loading all emoji's is really expensive & memory intensive process. The best workaround solution for this to Insert all the Emoji on Application start to Room DB using Workmanager Api (with OneTimeWorkRequest)

Task Details CTA

In task details screen add the following features πŸ‘‡

  • Add Favourite Button
  • Bottom CTA
  • Category Chip
Expected Behaviour
ADD TASK - FILLED

Always provide a Modifier Parameter

Is your feature request related to a problem? Please describe.
According to latest blog from Chris Banes. It's better to always provide a Modifier to Composable.

Link to blog - https://chris.banes.dev/always-provide-a-modifier/

Describe the solution you'd like
Any composable you write which emits layout (even a simple Box), should have a modifier: Modifier parameter, which is then used in the layout.

Sample code from the blog

/**
 * This now has a modifier parameter, allowing callers
 * to customize the layout, behavior and more!
 */
@Composable
private fun HeaderText(
    text: String,
    modifier: Modifier = Modifier,
) {
    Text(
        modifier = modifier,
        // ...
    )
}

Emoji chooser bottom sheet search option

Its hard to select task related emoji
Currently user has to scroll through all emojis and find the related one.

Search input field in AllEmojiScreen
In the search field user will enter the search term, which can queried against description or aliases from emoji list.
This way user can select emojis related to task.

Auto fill Urgency and Importance

When we add task from specific section, urgency and importance should be pre filled based on that section.

Like : If i click add task from Do it now section then urgency and importance should be 5/5, respectively.

Add Pomodoro Timer for Each Task

Is your feature request related to a problem? Please describe.
The goal of this issue is to add Pomodoro timer for each task. So that it will be easier for user to complete the multiple list of task with regular interval.

Describe the solution you'd like
So my approach would be like showing the Pomodoro timer on the first visible task(Task with upcoming due date). So that we can save some space on all task screen.

Things to add πŸ‘‡

  1. Pomodoro Timer with reset button
  2. Delete, Complete & Move to Top Task button
  3. Show overall time to complete the All task.

Additional context
Below I'm attaching reference for the Einsen with Pomodoro Timer Design

Minimal Detailed
image image

I personally like the first version (Minimal). It looks more prominent & it makes sense. But my only concern is will user know how to complete the task especially one below the top big card?.

To fix this above issue we can implement swipe Left or Right to Complete or Delete the task?

Fix Text Input Field Error

The goal of this issue is to add current value param to the TextInput Composable which helps TextFields to hold the current value. For ex - Edit Task Screen.

Notification Reminder for Task

The goal of this feature request is to Add Notification Reminder for the task. Current implementation doesn't have that feature yet.

Wrong Urgency and Importance values

Describe the bug
Urgency and Importance fields have incorrect values assigned to them while creating and editing tasks. It is less than it should be.

To Reproduce
Steps to reproduce the behavior:

  1. Create new Task and fill in "Title", "Description" and "Category" fields.
  2. Set "Urgency" and "Importance" to 5.
  3. Save Task.
  4. Go to Task edit mode.
  5. Set "Urgency" and "Importance" to 0.

Expected behavior
Urgency and Importance to be equal to 5 before editing; equal to 0 after editing.

Screenshots

Β 

Smartphone Details

  • Device: Samsung Galaxy S8
  • OS: Android 9
  • App: v1.0.0-alpha01(1)

Additional context
All Urgency and Importance values are less then should be:

Expected value Real value
0 0.0 or 1.528324E-9/5
1 0.8
2 1.6
3 2.4
4 3.2
5 4.0

Edit Task doesn't work properly

To reproduce this issue whenever user edit's a task & clicks save button. For Urgency & Important the values are always updated as 0

Add TabBar

Currently we're showing only task. But it will be much better if we show the actually states for task like ⬇️

  • Todo βœ‹
  • Doing ⏳
  • Done βœ…

"All task" should be "All tasks"

Describe the bug
Just incorrect grammar

To Reproduce
Steps to reproduce the behavior:
Open app, says, "All task"

Expected behavior
Open app, says, "All tasks"

Screenshots
Github home page.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.