mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-09 14:00:15 -04:00
* Created mock/test table and resource page to see if implementation works * Fixed typing for TagsInput * cleaned up imports * Started moving data manipulation into Table * moved data manipulation logic into Table * added useTagsHandler custom hook to consolidate getTagColor and presetOptions state into one function * Fixed type errors for RowOpenAction * Refactored ServiceIndex * Refactored user table * Updated imports and client facing routes * added documentation for table components * Added documentation for TagsHandler * small changes for cleaner code * refactored typing for tables. More work needs to be done to ensure tables are overall working properly * added todo * updated client paths with new table props * alterned handleRowUpdate to only use setData * diverted responsibility of handleRowChange to Drawer instead of Table to remove repetition * updated documentation * added sorting util function to Table.tsx to reduce repetition * Edited sorting func to be more comaptible and edited hideData to be more concise * formatting * updated imports * updated tags for all tables * removed DataPoint dependecy from User, Service, and Resource models as it was unnecesary * Added inline documentation to table components * added documentation for DataPoint model * Update package-lock.json
9 lines
183 B
TypeScript
9 lines
183 B
TypeScript
/**
|
|
* Represents metadata of the Resource, Service, and User models to be used in a table
|
|
*/
|
|
interface DataPoint {
|
|
id: number;
|
|
visible: boolean;
|
|
}
|
|
|
|
export default DataPoint; |