GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Remove Vuetify from Studio] Offline alert bar in Settings · Issue #5123 · learningequality/studio

[Remove Vuetify from Studio] Offline alert bar in Settings #5123

New issue
Copy link
New issue
Copy link
Closed
Closed
[Remove Vuetify from Studio] Offline alert bar in Settings#5123
Copy link
Assignees
AadarshM07
Labels
DEV: frontendcommunity-contribution-in-progresshelp wantedOpen source contributors welcome

Description

@MisRob
MisRob
opened on Jun 18, 2025
Issue body actions

🙂 Looking for an issue? Welcome! This issue is open for contribution. If this is the first time you’re requesting an issue, please:

  • Read Contributing guidelines carefully. Pay extra attention to Using generative AI. Pull requests and comments that don’t follow the guidelines won’t be answered.
  • Confirm that you’ve read the guidelines in your comment.

Sub-issue of #5060.

Complexity: Medium

Summary

Migrate the offline alert bar in Settings from Vuetify to Kolibri Design System.

Image

shared/views/OfflineText that is built with Vuetify components is used for the banner. To remove this dependency from SettingsIndex, create a new shared/views/StudioOfflineAlert component that doesn't use Vuetify. Then use StudioOfflineAlert in SettingsIndex instead of OfflineText. Do not modify shared/views/OfflineText or how it's used in other areas of the codebase.

StudioOfflineAlert requirements

  • Expected usage example:
// SettingsIndex.vue

<StudioOfflineAlert :offset="112" />
  • Visually same output as OfflineText
  • Sticky behavior is same
  • offset prop is same
  • Internal logic related to offline mapped state and libraryMode is same
  • Other than above, implementation doesn't map exactly to that of OfflineText, and is limited only to logic that is needed in Settings:
    • No need for indicator and offlineText props and related logic
    • Shows as bar by default so toolbar prop is not needed
  • Use KTransition in component-vertical-slide-out-in mode for transition.
  • Use token.surface for bar background color
  • OfflineText has several markup, a11y, and visual problems. Avoid them in StudioOfflineAlert by ensuring:
    • It renders as <div>, not <nav>
    • On all screen sizes, alert text doesn't overflow the bar area
    • On all screen sizes, it is positioned below the main navigation without any gap
    • Announce appearance and disappearance of the alert to screen reader users via useKLiveRegion. When the alert appears, send polite message You seem to be offline. Your changes will be saved once your connection is back. When the alert disappears, send polite message You are back online. Messages need to be translated.

How to get there

  • Login as [email protected] with password a
  • Go to Settings
  • Turn on / off offline mode in browser development tools

Guidance

  • Read the project this issue is part of

Out of Scope

  • Do not refactor any other areas of the codebase
  • Do not modify OfflineText

Expected UI/UX changes

  • Except bugfixes listed above that will be resolved by the new component, none.

Acceptance criteria

General

  • The specification above is followed.
  • Except for "Expected UI/UX changes," there are no functional or visual differences in user experience.
  • All user interactions are manually tested with no regressions.
  • Pull request includes screenshots.

a11y and i18n

See the project's "Guidance" for useful references.

  • Implementation meets a11y standards
  • All components are LTR and RTL compliant
  • All user-facing strings are translated properly
  • The notranslate class been added to elements that shouldn't be translated by Google Chrome's automatic translation feature (e.g. user-generated text)
  • Mobile experience is reasonable

Unit tests

  • If there is a unit test suite already, it is meaningfully updated (even if tests don't fail)
  • If there is no unit test suite, a new one is created. Do not use obsolete @vue/test-utils approach. Instead, use Vue Testing Library.

Activity

  1. MisRob
    added a parent issue on Jun 18, 2025
    • Open-Source Community Project: Remove Vuetify from Studio in favor of Kolibri Design System #5060
  2. MisRob
    added
    DEV: frontend
    help wantedOpen source contributors welcome
    on Jun 18, 2025
  3. AadarshM07 commented on Jun 18, 2025

    @AadarshM07
    AadarshM07
    on Jun 18, 2025
    Contributor
    More actions

    Hey @MisRob ,
    I would really like to work on this. Can you assign this to me?

  4. MisRob commented on Jun 18, 2025

    @MisRob
    MisRob
    on Jun 18, 2025
    MemberAuthor
    More actions

    Hi @AadarshM07, happy to. Please try to follow all guidance carefully and let me know if you had any questions.

    Reacted by Aadarsh Mahesh K
  5. MisRob
    assigned
    AadarshM07
    on Jun 18, 2025
  6. learning-equality-bot
    added
    community-contribution-in-progress
    on Jun 18, 2025
  7. MisRob commented on Jul 2, 2025

    @MisRob
    MisRob
    on Jul 2, 2025
    MemberAuthor
    More actions

    Hi @AadarshM07, do you still plan to work on this?

  8. AadarshM07 commented on Jul 2, 2025

    @AadarshM07
    AadarshM07
    on Jul 2, 2025
    Contributor
    More actions

    Hey @MisRob , Apologies for the delay, I was occupied with sem-exams over the past few weeks. Now that they're over, I'm looking into this and will raise a PR soon

  9. MisRob commented on Jul 2, 2025

    @MisRob
    MisRob
    on Jul 2, 2025
    MemberAuthor
    More actions

    It's okay @AadarshM07, just checking-in. Thanks for letting me know.

    Reacted by Aadarsh Mahesh K
  10. AadarshM07 commented on Jul 6, 2025

    @AadarshM07
    AadarshM07
    on Jul 6, 2025
    Contributor
    More actions

    Hi @MisRob , As per the spec, token.surface needs to be used as the background color. However, I’m not sure how to access token.surface properly within the component’s scoped CSS. I checked the documentation, but I couldn’t find a clear example. could you please guide me or point to a reference where it's implemented?

  11. AlexVelezLl commented on Jul 7, 2025

    @AlexVelezLl
    AlexVelezLl
    on Jul 7, 2025
    Member
    More actions

    Hi @AadarshM07! Unfortunatelly right now we aren't able to access design tokens in the component's style block. What we do with styles depending on these tokens is to add them as inline styles directly in the template (e.g. here), or we can also create computed properties for this (e.g. here) :). Hope this helps

  12. AadarshM07 commented on Jul 7, 2025

    @AadarshM07
    AadarshM07
    on Jul 7, 2025
    Contributor
    More actions

    Got it, thank you!

    Reacted by Alex Velez
  13. MisRob commented on Jul 25, 2025

    @MisRob
    MisRob
    on Jul 25, 2025
    MemberAuthor
    More actions

    Closed by #5162

  14. MisRob
    closed this as completedon Jul 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @AadarshM07
    AadarshM07

Labels

DEV: frontendcommunity-contribution-in-progresshelp wantedOpen source contributors welcome

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.