Skip to content

Persist settings to server #394

Description

@iloveitaly

Is there a reason we don't persist categorization preferences on the server side? I can't imagine why this wouldn't be preferred. Would be a great QOL improvement.

Activity

  1. ErikBjare commented on Jun 17, 2023

    @ErikBjare
    Member

    Tried to find the tracking issue for this, but couldn't find it.

    The plan is:

    • add a KV store to the databases
    • implement appropriate API endpoint
    • make aw-webui always check server settings first, and if not present, initialize with store browser localstore settings (upgrade) or defaults (init).

    I found this:

    What's left is adding support to aw-server-python (should be easy, just need to get the db migration right, but I just did something similar in ActivityWatch/aw-server#128), then just do the aw-webui part.

    I agree it would be a great QOL improvement, I've just personally gotten a bit lazy as it's good enough for me.

    I just added a link to this issue from the web UI: ActivityWatch/aw-webui@1f194ff

    Contributions welcome!

  2. changed the title [-]persist categorization preferences[/-] [+]Persist settings to server[/+] on Jun 17, 2023
  3. PetbkA commented on Aug 18, 2023

    @PetbkA

    v0.12.3b6 - BTW, current warning about settings storage isn't quite correct:

    These settings are only saved in your browser and will not remain if you switch browser

    Settings aren't even depend on browser but rather on cookies, 'cause if you clear them for AW site - you'll lost your settings even without switching browser

  4. ErikBjare commented on Aug 18, 2023

    @ErikBjare
    Member

    @PetbkA They are technically stored in localStorage, not cookies.

    But yes, if the user clears the site data then it is lost.

  5. ErikBjare commented on Oct 19, 2023

    @ErikBjare
    Member

    I finished this today, see ActivityWatch/aw-webui#493

    Might need some battle-testing in beta releases (releasing v0.12.3b11 later today), but seems pretty ready!

  6. ErikBjare commented on Oct 19, 2023

    @ErikBjare
    Member

    Tracking issue was here: ActivityWatch/activitywatch#348

  7. iloveitaly commented on Oct 20, 2023

    @iloveitaly
    ContributorAuthor

    Woohoo! So exciting :)

  8. beedell-roke commented on Jan 7, 2024

    @beedell-roke

    @ErikBjare, this issue is still cited in 0.12.1b5's AOSP GUI:

    Image

  9. ErikBjare commented on Jan 7, 2024

    @ErikBjare
    Member

    @RokeJulianLockhart The Android app is running an older version of the web UI and server.

    Once it gets updated (might be a while), the notice will disappear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions