Skip to content

Commit

Permalink
V3 Release (#89)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryansrofe authored May 14, 2024
1 parent 74ce524 commit 390685e
Show file tree
Hide file tree
Showing 10 changed files with 179 additions and 95 deletions.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# FigLog Change Log

## 3.0.0 (05-09-2024)

New editing flow, user must save changes
User can edit the start dates for logs
User can hide and show avatars
Added Nearform_Commerce branding
Prettier integration
Figma API update
Cleanup and documentation and README

## 2.0.0 (02-09-2024)

User can add changelog types
User can add links to logs
Switch to Lucide icons
Cleanup and documentation and README

## 1.0.0 (09-29-2023)

README update
Expand Down
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ We hope FigLog becomes a useful tool for you as a way of documenting the evoluti

## Features

- 🕹️ Optional component status, name, description, version, log types, and branding
- 👫 Multiplayer collaboration with user name and avatar
- 🗓️ Automatic date handling (including log edits)
- 💅 6 status types
- 🏷️ 7 log types **(New!)**
- 🔗 26 link types **(New!)**
- 🕹️ Customizable name, description, version, and branding
- 👫 Multiplayer collaboration with optional avatars
- 🗓️ Automatic date capture and handling **(Now Editable)**
- 💅 Multiple status types to define stages
- 🏷️ 7 log types for easier organization
- 🔗 26 link types with automatic branding support
- 🔒 Enhanced security for added control **(New!)**

## Usage

Expand Down
Binary file modified example.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "figlog",
"version": "1.0.0",
"version": "3.0.0",
"repository": "https://github.com/FormidableLabs/figlog.git",
"devDependencies": {
"@figma/plugin-typings": "^1.92.0",
Expand Down
6 changes: 1 addition & 5 deletions widget-src/components/ChangeLogList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { PADDING } from '../utilities/Styles';
import { ChangeLogRow } from './ChangeLogRow';

const { widget } = figma;
const { AutoLayout, useEffect } = widget;
const { AutoLayout } = widget;

interface ChangeLogListProps {
changeLogIds: string[];
Expand All @@ -26,10 +26,6 @@ export const ChangeLogList = ({
showAvatars,
isLocked,
}: ChangeLogListProps) => {
useEffect(() => {
// console.log('ChangeLogs', changeLogs.entries());
});

return (
<AutoLayout
name="ChangeLog"
Expand Down
41 changes: 38 additions & 3 deletions widget-src/components/Footer.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { LogoFigLog } from '../svgs/LogoFigLog';
import { LogoNearform } from '../svgs/LogoNearform';
import { LogoNearformCommerce } from '../svgs/LogoNearformCommerce';
import { COLOR, GAP, FONT, RADIUS, SPACE, PADDING } from '../utilities/Styles';

const { widget, openExternal } = figma;
const { AutoLayout, Rectangle, SVG, Text } = widget;

const figLogVersion = '3'; // use "#.## beta" format to track beta versions

export const Footer = () => (
<AutoLayout
name="Footer"
Expand Down Expand Up @@ -50,8 +52,41 @@ export const Footer = () => (
fontSize={FONT.size.lg}
fontWeight={FONT.weight.light}
>
| Evolution Tracker
|
</Text>
<AutoLayout
name="FigLog Version"
overflow="visible"
direction="vertical"
spacing={2}
padding={{
vertical: 5,
horizontal: PADDING.none,
}}
verticalAlignItems="center"
>
<Text
name="Evolution Tracker"
fill={COLOR.black}
lineHeight={FONT.lineHeight.xs}
fontFamily={FONT.family}
fontSize={FONT.size.sm}
fontWeight={FONT.weight.regular}
>
Evolution Tracker
</Text>
<Text
name="Version"
fill={COLOR.black}
lineHeight={4}
fontFamily={FONT.family}
fontSize={5}
fontWeight={FONT.weight.regular}
>
{' '}
version {figLogVersion}
</Text>
</AutoLayout>
</AutoLayout>
</AutoLayout>
<AutoLayout
Expand All @@ -63,7 +98,7 @@ export const Footer = () => (
openExternal('https://commerce.nearform.com/');
}}
>
<SVG name="Nearform_Commerce Logo" height={16} width={174} src={LogoNearform} />
<SVG name="Nearform_Commerce Logo" height={16} width={36} src={LogoNearformCommerce} />
</AutoLayout>
</AutoLayout>
</AutoLayout>
Expand Down
16 changes: 2 additions & 14 deletions widget-src/components/log/LinkList.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { LinkType } from '../../types/LinkTypes';
import { GAP } from '../../utilities/Styles';
import { Link } from './Link';

const { widget } = figma;
const { AutoLayout } = widget;

interface LinkListProps {
links?: Array<LinkType>;
editing?: boolean;
Expand All @@ -15,15 +11,7 @@ export const LinkList = ({ links, editing = false, deleteLink }: LinkListProps)
return (
<>
{!!links && links.length > 0 && (
<AutoLayout
name="Log Links"
overflow="visible"
width="fill-parent"
height="hug-contents"
direction="horizontal"
wrap
spacing={GAP.sm}
>
<>
{links.map(link => (
<Link
label={!!link.label ? link.label : 'Link'}
Expand All @@ -34,7 +22,7 @@ export const LinkList = ({ links, editing = false, deleteLink }: LinkListProps)
deleteLink={() => (!!deleteLink ? deleteLink(link.key) : null)}
/>
))}
</AutoLayout>
</>
)}
</>
);
Expand Down
38 changes: 24 additions & 14 deletions widget-src/components/log/LogDisplay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ export const ChangeLogDisplay = ({
: false,
},
},
links: changeLog.state?.updates?.links ? changeLog.state?.updates?.links : changeLog.links,
links: changeLog.state?.updates?.links ? changeLog.state?.updates?.links : [],
link: {
label: changeLog.state?.updates?.link?.label ? changeLog.state?.updates?.link?.label : '',
url: changeLog.state?.updates?.link?.url ? changeLog.state?.updates?.link?.url : '',
icon: changeLog.state?.updates?.link?.icon ? changeLog.state?.updates?.link?.icon : '',
key: changeLog.state?.updates?.link?.key ? changeLog.state?.updates?.link?.key : '',
},
type: changeLog.state?.updates?.type ? changeLog.state?.updates?.type : changeLog.type,
change: changeLog.state?.updates?.change ? changeLog.state?.updates?.change : '',
change: changeLog.state?.updates?.change ? changeLog.state?.updates?.change : changeLog.change,
linkFormError: {
label: changeLog.state?.updates?.linkFormError?.label
? changeLog.state?.updates?.linkFormError?.label
Expand All @@ -148,19 +148,29 @@ export const ChangeLogDisplay = ({
)}
</AutoLayout>
</AutoLayout>
<AutoLayout name="Changes" overflow="visible" width="fill-parent">
<Text
name="Change"
fill={COLOR.black}
lineHeight={FONT.lineHeight.lg}
fontFamily={FONT.family}
width={'fill-parent'}
>
{changeLog.change || ''}
</Text>
</AutoLayout>
{!!changeLog.change && changeLog.change !== '' && (
<AutoLayout name="Changes" overflow="visible" width="fill-parent">
<Text
name="Change"
fill={COLOR.black}
lineHeight={FONT.lineHeight.lg}
fontFamily={FONT.family}
width={'fill-parent'}
>
{changeLog.change || ''}
</Text>
</AutoLayout>
)}
{!!changeLog.links && changeLog.links.length > 0 && (
<AutoLayout name="Links" width="fill-parent" horizontalAlignItems="end" direction="vertical">
<AutoLayout
name="Links"
overflow="visible"
width="fill-parent"
height="hug-contents"
direction="horizontal"
wrap
spacing={GAP.sm}
>
<LinkList links={changeLog.links} />
</AutoLayout>
)}
Expand Down
Loading

0 comments on commit 390685e

Please sign in to comment.