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

Add app bar documentation #108

Merged
merged 3 commits into from
Oct 13, 2020
Merged

Conversation

khangmach
Copy link
Contributor

  • Adds documentation
  • Adds support graphics

- Adds documentation
- Adds support graphics
Fix wording
<h3>Form bars</h3>
<p>Form bars allows users to dismiss a full-screen form and land on the previous page</p>
<DocsShow>
<img class="modal-img" src="./form-1.png">
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we have specifications on when to use black color vs purple? Or is this something we're looking to deprecate? It looks like there's a spec for the content renderer without its black app bar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided during documentation phase that black is just for pages with editing functionality (single-task pages)

</DocsShow>

<h3>Bottom bars</h3>
<p>Bottom bars are placed on pages that house editing, content selection, or multi-step processes. They may contain buttons that allow the user to submit specific action(s) or continue with the process. Bottom bars can also contain contextual information and error messaging relevant to the task</p>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it'd be helpful to specify when we should and shouldn't use a bottom bar, and also what type of metadata is and isn't allowed here. I remember you mentioned there's specific kind of metadata that would go on the left side of the bottom bar vs the metadata that would appear right next to the submit/cancel buttons

Copy link
Contributor Author

@khangmach khangmach Sep 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We decided that further bottom bar specifications would be housed in the single task page pattern doc (on the way). This is why I generalized it here as "contextual information". See more here: https://docs.google.com/document/d/1wQa3MitsbjLnF4_POvXO6v2X-dGKru52RmIkOZHzkko/edit#heading=h.og8271ldbw4c

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can a few layout pointers in the layout section. But as for "when to use", they should only be used on single task pages

<template v-slot:do>
<img src="./exception-4.png">
<p class="do-dont">
For resource pages in the Learn app, use a back link at the top of the page instead of an app bar
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this tracked as an issue? I know this is what we want to move towards, but we should make sure it describes the current, or soon to be, state of things

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be a tracked issue once I finalize all the documentation related to it. Will comment out in the meantime

Copy link
Contributor

@indirectlylit indirectlylit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

watch out for naming discrepancy: "topbars" versus "app bars"

docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
docs/pages/appbars/index.vue Outdated Show resolved Hide resolved
@indirectlylit
Copy link
Contributor

I'm not sure what happened, but somehow all the feedback comments were marked as 'resolved'

@khangmach
Copy link
Contributor Author

@indirectlylit I resolve comments while I work on the code. It helps me keep track of changes I need to make. I haven't committed my changes yet as I was still working on this last night.

- Updates verbiage
- Adds responveiness notes
- Incorporate Devon's text changes
- More consistency with appbar/topbar distinctions
@indirectlylit
Copy link
Contributor

Ah I see, that makes sense. Note though that this will be confusing for collaborators who see their comments preemptively resolved.

One strategy some devs use is to push commits to github more incrementally/granularly, so the change and the resolution happen simultaneously.

Copy link
Contributor

@indirectlylit indirectlylit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good! thanks for making the changes

@indirectlylit indirectlylit merged commit 91e8274 into learningequality:v0.2.x Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants