ampleorganics / blaze.vue Goto Github PK
View Code? Open in Web Editor NEWAmple Organics Component Library
Home Page: https://blaze-vue.netlify.com
License: MIT License
Ample Organics Component Library
Home Page: https://blaze-vue.netlify.com
License: MIT License
We need a component that can be used for general text styles. For example sake, here is how Polaris handles it: https://polaris.shopify.com/components/titles-and-text/text-style#navigation
link
: for making the button look like a link but with the same padding/sizing as a button.
text-only
: for removing all padding, borders, etc.
.ao-form-control
was used only cause that's what the webapp uses, which is just a bootstrap remenant. We should change this to be .ao-input / .ao-select / .ao-textarea throughout the component and any instances of its use... OR SHOULD WE? Let's talk.
For tables with less padding. Something like:
.ao-table--condensed {
/deep/ td {
padding: $spacer-micro !important;
}
problem: search like inputs tend to not have a label by design, and instead use placeholder to identify what to do
solution: make the label prop no longer required
Ex.
.u-text-right
for right-aligning text.u-text-xs
, u-text-lg
.u-margin-b-0
Component: ao-input
Problem: trying to use date as a type and their is a warning saying the validator has failed
possible solutions:
date
as a part of the validationsCommon request by customers
Should be 'app-header' or 'primary-header' or something.
right now you need to pass in a default prop that sets the default,
problem is that it's not reactive so if default changes or should be re rendered based on another outside influence it does not work well
Solution:
either way it's likely going to be destructive on our current code base so a migration plan must be set when upgrading
inputs/selects (ex. in a PO/SO table)
buttons (ie. actions on a row item)
The app alert style looks too different from the current AO app alert style.
The sort icon will often break onto another line and appear under its respective th
text. This should be easily solved with flexbox.
We should add the ability to give elements an on-hover tooltip. Pretty standard in today's webapp landscape and would be incredibly helpful for our clients.
Uses:
I don't know if we could use a singular tool to successfully satisfy both these needs, we should explore.
AC
Currently our grid just keeps squishing. It's not responsive out of the box.
Unless we are willing to commit to declaring a size value on mobile for every grid item, we need some default behaviour.
Inputs should have a min-width of, oh, say 60px.
Open to discussion on this.
Doing so would require refactoring - we would have to add a vertically-centered
prop (or similar) to tables, which would have to be applied to the wholesale PO/SO line-item tables.
get a warning on current chrome (Chrome 65) that /deep/ is being deprecated,
not sure if it's the deep syntax
Possible Solution: use >>>
which also is deep
edit: this may be a non issue O_O
problem: when focused or active the highlight colour is a standard blue and not the ample green
solution: change it
Small versions of the input and the buttons should be more compact than they are now. It's not much of a shift currently. This is tied in to better styling for nested table components (#65)
Currently we have a slot to pass in the title, which opens the door to getting creative with the DOM element in which said title is in. We should enforce an h1
or something
Inputs don't have any 'destructive' like computed classes that would be useful in showing errors/validations
errors in input component @busheikin
TESTS ARE BROKEN AHHHHHH
Similar to the toolbar in the card header. A place for buttons to be right-aligned and sectioned off
CI is great
tests lint errors all that jazz
note: standard yarn lint fixes the issues so figure out how to make it not automatically lint
answer isssss --no-fix
Already I see inconsistent DOM elements being passed into this slot, h1, h2, h3... it should be locked the fuck down.
Current webapp style is that links are not underlined until hover. We should keep it that way.
We often use 'alerts', in the bootstrap sense - ie. a contextually coloured card with text that gives the user some kind of message. It's more like a 'callout' so maybe that is a better term.
problem: certain elements font-family's are set to system-ui or other things,
solution: add a rule in the reset SCSS that sets font-family/font property to 'inherit'
known HTML elements includ : selection, option, input, textarea
comment below if you find any others
Tabs provide more options for content navigation, and are currently in use in the webapp.
Examples:
https://polaris.shopify.com/components/navigation/tabs#navigation
https://getbootstrap.com/docs/4.0/components/navs/#tabs
Glyphicons are weak
Since the parameters of the grid are being declared on each app, they are prone to being inconsistent from one to the other. Say we change the gutter width. Or the breakpoints. Now we have to go and change that in every app?
where a prop makes it a radio-style checkbox?
scrapped
The height of an ao-button is controlled by a min-height attribute.
Small buttons get a smaller height, but it is being set by a height attribute, so it has no effect and the height isn't actually changing.
ie. make the text smaller
More comprehensive in terms of components, from my perspective
Open to discussion
Currently when we put an input in a table, it takes up quite a bit of real estate with no real reason. So far the application for inputs in cells has been for Sales Orders and Purchase orders, which already have many columns so real estate is precious. For the Sales Order create view I created some styles (below) to condense the inputs, which I think is good.
(Also, the form group margin bottom is removed which I believe makes sense as well)
/deep/ .ao-table .ao-form-group {
margin-bottom: 0 !important;
input {
padding: $spacer-micro !important;
height: $input-height-sm !important;
font-size: $font-size-sm;
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.