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

feat/add focus mode #110

Open
Undeadlol1 opened this issue Nov 6, 2020 · 3 comments · Fixed by #129 or #158
Open

feat/add focus mode #110

Undeadlol1 opened this issue Nov 6, 2020 · 3 comments · Fixed by #129 or #158
Labels
enhancement New feature or request

Comments

@Undeadlol1
Copy link
Owner

Undeadlol1 commented Nov 6, 2020

Focus mode is a new screen that allows users to focus only on a limited amount of tasks.
The main feature is ability to watch closely what we feel about tasks at hand.

Usage scenario:

  1. Users is redirected to Focus Mode Screen (after clicking on bottom navigation bar button?)
  2. User inserts task text into text field (or picks a task in dropdown select menu - this is not yet decided)
  3. Each time user creates/selects a task a pop up menu appears that asks a user what does he feel about the task
  4. If user selects positive smiley face add task to tasks list. If not - prompt him to rework his list. (how? Not entirely sure ATM)

ink

@Undeadlol1 Undeadlol1 moved this from To do to In progress in v0.2 Code health, stale tasks and focus mode Nov 9, 2020
@Undeadlol1 Undeadlol1 linked a pull request Nov 9, 2020 that will close this issue
8 tasks
@Undeadlol1 Undeadlol1 mentioned this issue Nov 9, 2020
8 tasks
v0.2 Code health, stale tasks and focus mode automation moved this from In progress to Done Nov 16, 2020
@Undeadlol1 Undeadlol1 reopened this Nov 16, 2020
v0.2 Code health, stale tasks and focus mode automation moved this from Done to In progress Nov 16, 2020
@Undeadlol1 Undeadlol1 mentioned this issue Nov 16, 2020
5 tasks
v0.2 Code health, stale tasks and focus mode automation moved this from In progress to Done Nov 17, 2020
@Undeadlol1 Undeadlol1 reopened this Nov 17, 2020
v0.2 Code health, stale tasks and focus mode automation moved this from Done to In progress Nov 17, 2020
@Undeadlol1 Undeadlol1 mentioned this issue Nov 18, 2020
2 tasks
@Undeadlol1 Undeadlol1 added the enhancement New feature or request label Nov 20, 2020
@Undeadlol1
Copy link
Owner Author

Undeadlol1 commented Nov 20, 2020

Since persisting tasks to DB gives me a headache lets avoid it for the time being.
Lets save this list locally, in memory. Or is it a bad idea because feature will be unusable on mobile? Because website garbage collected when phone is not used for a while?

So what is the best way to persist tasks?

Localstorage:

  1. Add FocusModeTasksList
  2. Store simple array in local storage

Using Firestore "tasks" collection:

  1. Add "isFocusedOn" and "isCreatedDuringFocusMode" to Task type
  2. Add {isFocusedOn: false} to fetching function of main tasks

Using specific firestore collection:

  1. add "FocusModeTasks" collection

@Undeadlol1
Copy link
Owner Author

Undeadlol1 commented Nov 20, 2020

TODO:

  • rework slider into using single emoji instead of 1
  • add isInFocusMode (or isFocused) to Task
  • add {isCreatedInFocusMode: false} to activeTasks in Router
  • add "isCreatedInFocusMode" property to Task
  • add "useFocusModeTasks" hook
  • add upsertTask({isCreatedInFocusMode}) to autocomplete

@Undeadlol1 Undeadlol1 pinned this issue Nov 20, 2020
@Undeadlol1
Copy link
Owner Author

Note. How to check that tasks list was in any way updated (updated name, subtask added or updated etc):

Turn array of objects into a hashmap. If hash has changed in any way then force user to interact with the slider.

Undeadlol1 added a commit that referenced this issue Nov 21, 2020
* feat: add simple way to add tasks to focus page

* fix: remove unused function

* refactor: leveling > Leveling

* feat: add sidebar link to focus page

* style: 🎨 Leveling

* Rename leveling.ts to Leveling.ts
@Undeadlol1 Undeadlol1 unpinned this issue Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging a pull request may close this issue.

1 participant