question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Context

EDIT: No more borrowing PageRoot - let’s make a new component altogether.

In order to begin updating Kolibri’s many plugins and uses of CoreBase, we must establish a new component built to our new ideals that we can start implementing without regressions.

My suggestion is to take create a new component for this purpose. This will give us a component that accommodates the following suggestions:

  • The GlobalSnackbar component should be loaded into every page. This means that the GlobalSnackbar can show itself anytime it sees the correct Vuex state.
  • The Core Vuex store’s error state property is universally how we will decide if the user should see one of either an AuthMessage error message or a general AppError message.
  • The UpdateNotification component should be available on every page (and, naturally, rendered under the correct circumstances)
  • Renders, otherwise, only a default slot, into which any implementing page in the app can display what they need to.

Acceptance Criteria

  • Create a new root component, include it in the apiSpec
  • Move the four aforementioned components to the new component. The error components should follow a similar logical flow as in CoreBase. The other two components need be loaded into the app.
  • The component should render the default slot when there are no errors.
  • Unit tests covering conditions for showing error messages vs router view

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
nucleogenesiscommented, Feb 16, 2022

Thanks Misha - I closed the issue mostly because I didn’t want to have it assigned to someone during the sprint planning before I fully grokked your comments.

I will update the router-view requirement to instead suggest a default slot.

In follow-up issues, then, such as “remove CoreBase from LearnIndex” the requirements will have the router-view put into that slot.

1reaction
MisRobcommented, Feb 15, 2022

@nucleogenesis Although the reasoning behind touches on more aspects of the high-level architecture, in terms of this particular issue it was basically all related to the last requirement only, so if that makes sense, I think it’d be also fine to just remove

Renders, otherwise, only a RouterView, into which any implementing page in the app can route their behavior through.

and maybe mention a bit about how we will use this component from other components instead. Whatever will work for you, just wanted to note that I don’t think that the whole issue doesn’t make sense.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Core Base | Scheduling and Booking Website
We provide various individual venues with different styles, let the impossible be possible. Create the most valuable and unique moments with your loved...
Read more >
Sustainable Basics - COREBASE
We stand for fair and sustainably produced basics made from controlled organic cotton. Good for the planet and for the people involved in...
Read more >
Project Cece - New: Corebase Shop here -->... | Facebook
COREBASE offers high-quality and sustainably produced basics. The brand is young and self-developed, from the selection of the raw cotton, the yarn up...
Read more >
A Game of Thrones LCG 1st Edition Core Base Set NEW ...
Lot of 5 Bleach Base Set 1st Edition Trading Card Booster Packs New Sealed. $19.99. Free shipping · A Game of Thrones LCG...
Read more >
Core Base - Trimtex Sport
Core Base shirt men's ... Core Base Tights Men`s ... Yes, I wish to receive occasional emails about special offers, new products and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found