Compare commits

...
7 changed files with 284 additions and 230 deletions
+2
View File
@@ -256,6 +256,8 @@ class Delivery:
return {'status':'already_installed','commit':target}
refuse_drift(self.current.resolve(),installed['hashes'])
self.releases.mkdir(parents=True,exist_ok=True)
if shutil.disk_usage(self.releases).free < 5 * 1024**3:
raise RuntimeError('Insufficient free space for an isolated build; active release preserved')
release=self.releases/(target+'-'+uuid.uuid4().hex[:8]);release.mkdir(mode=0o750)
self.build(target,release)
if self.latest()!=target:
@@ -433,6 +433,10 @@
"existing_diagnostic_source_preserved": [
"app/Console/Commands/CheckDevelopmentEnvironment.php"
],
"subsequent_diagnostic_resolution": {
"commit": "9d148ca2419d2243489731287dc8019cfe117bd9",
"decision": "Retain the newer origin/main implementation, including --wait and safe transient-failure diagnostics. The installed older implementation has no unique behaviour to discard. The reconciled baseline commit remains preserved in history."
},
"generated_helper_not_committed": [
{
"path": "resources/js/wayfinder/index.ts",
+62 -10
View File
@@ -301,23 +301,42 @@
}
}
@media (min-width: 1280px) {
.tempo-header-inner {
display: flex;
min-height: 88px;
gap: 0.75rem;
/* Shared columns keep each portal area below its institutional link. */
.tempo-header-layout {
display: grid;
grid-template-columns: auto repeat(4, max-content) minmax(0, 1fr) auto;
column-gap: 0.25rem;
max-width: 1440px;
margin-inline: auto;
padding-inline: 2rem;
}
.tempo-header-inner {
grid-column: 1 / -1;
grid-template-columns: subgrid;
min-height: 88px;
column-gap: normal;
max-width: none;
margin: 0;
padding: 0;
}
.tempo-logo-link {
margin-right: 0.75rem;
}
.tempo-header-logo {
height: 64px;
}
.tempo-header[data-expanded] .tempo-primary-navigation,
.tempo-primary-navigation {
display: block;
flex: 1;
display: grid;
grid-area: 1 / 2 / 2 / 6;
grid-template-columns: subgrid;
border: 0;
}
.tempo-primary-navigation > ul {
justify-content: center;
gap: 0.25rem;
display: grid;
grid-column: 1 / -1;
grid-template-columns: subgrid;
gap: normal;
padding: 0;
}
.tempo-nav-trigger {
@@ -332,6 +351,8 @@
}
.tempo-header-extras {
display: flex;
grid-area: 1 / 6;
justify-self: end;
flex-shrink: 0;
padding: 0 0.75rem;
border-top: 0;
@@ -347,16 +368,47 @@
.tempo-header-toggle {
display: none;
}
.tempo-header-actions {
grid-area: 1 / 7;
}
.tempo-section-bar {
display: grid;
grid-column: 1 / -1;
grid-template-columns: subgrid;
}
.tempo-section-inner {
padding-inline: 2rem;
grid-column: 1 / -1;
grid-template-columns: subgrid;
gap: normal;
max-width: none;
margin: 0;
padding-inline: 0;
}
.tempo-section-navigation {
display: grid;
grid-area: 1 / 2 / 2 / 5;
grid-template-columns: subgrid;
}
.tempo-section-navigation > ul {
display: grid;
grid-column: 1 / -1;
grid-template-columns: subgrid;
gap: normal;
}
.tempo-section-navigation .tempo-nav-trigger {
padding-inline: 1.25rem;
padding-inline: 0.625rem;
}
.tempo-primary-navigation .tempo-nav-trigger,
.tempo-section-navigation .tempo-nav-trigger {
justify-content: flex-start;
}
.tempo-interest-button {
padding-inline: 0.85rem;
font-size: 0.8125rem;
}
.tempo-section-inner .tempo-interest-button {
grid-area: 1 / 6 / 2 / -1;
}
}
.tempo-header :is(a, button):focus-visible {
outline: 2px solid #fff;
@@ -127,6 +127,7 @@ export function PortalGroupedMenu() {
}
}}
>
<div className="tempo-header-layout">
<div className="tempo-header-inner">
<Link
href="/"
@@ -166,7 +167,10 @@ export function PortalGroupedMenu() {
aria-label={`${t('Revista Tempo')} — ${t('Abre num novo separador')}`}
>
{t('Revista Tempo')}
<ArrowUpRight size={14} aria-hidden="true" />
<ArrowUpRight
size={14}
aria-hidden="true"
/>
</a>
</li>
{[
@@ -183,7 +187,8 @@ export function PortalGroupedMenu() {
: undefined
}
data-current-group={
url.split('?')[0] === href || undefined
url.split('?')[0] === href ||
undefined
}
>
{t(label)}
@@ -207,7 +212,8 @@ export function PortalGroupedMenu() {
<DropdownMenuTrigger className="tempo-login-button">
<UserRound size={16} aria-hidden="true" />
<span className="max-w-24 truncate">
{props.auth.user.name || t('A minha área')}
{props.auth.user.name ||
t('A minha área')}
</span>
<ChevronDown size={12} aria-hidden="true" />
</DropdownMenuTrigger>
@@ -234,9 +240,14 @@ export function PortalGroupedMenu() {
data-test="portal-logout-button"
onClick={() => router.flushAll()}
onStart={() => setLoggingOut(true)}
onFinish={() => setLoggingOut(false)}
onFinish={() =>
setLoggingOut(false)
}
>
<LogOut size={16} aria-hidden="true" />
<LogOut
size={16}
aria-hidden="true"
/>
{loggingOut
? 'A terminar sessão…'
: t('Terminar sessão')}
@@ -331,7 +342,9 @@ export function PortalGroupedMenu() {
collisionPadding={12}
className="tempo-dropdown max-h-[min(75vh,36rem)] w-72 max-w-[calc(100vw-1.5rem)] overflow-y-auto p-2"
>
{items(group.children ?? [])}
{items(
group.children ?? [],
)}
</DropdownMenuContent>
</DropdownMenu>
</li>
@@ -346,6 +359,7 @@ export function PortalGroupedMenu() {
</Link>
</div>
</div>
</div>
</header>
);
}
+1 -1
View File
@@ -180,7 +180,7 @@ function Hero({
onClick={() => onNavigate('opportunities')}
className="inline-flex items-center gap-2 rounded-lg bg-amber-400 px-5 py-3 font-bold text-[#0B2038] hover:bg-amber-300"
>
Explorar oportunidades <ArrowRight size={16} />
Consultar oportunidades <ArrowRight size={16} />
</button>
<a
href="/simulador-fiscal"
-19
View File
@@ -5,7 +5,6 @@ import { AboutStory } from '@/components/institutional-source/AboutStory';
import { MissionVision } from '@/components/institutional-source/MissionVision';
import { CompanyValues } from '@/components/institutional-source/CompanyValues';
import BackButton from '@/components/institutional-source/BackButton';
import { AdvertisementSlot } from '@/components/institutional-source/source-advertisement-slot';
const AboutPage: React.FC = () => {
const [loading, setLoading] = useState(true);
@@ -45,29 +44,11 @@ const AboutPage: React.FC = () => {
</div>
</header>
<AdvertisementSlot
page="about"
position="top"
slot="about_top"
limit={1}
fallbackToUnslotted
className=""
/>
<div className="text-white">
<AboutStory />
<MissionVision />
<CompanyValues />
</div>
<AdvertisementSlot
page="about"
position="bottom"
slot="about_bottom"
limit={2}
fallbackToUnslotted
className="py-4"
/>
</div>
);
};
@@ -127,7 +127,8 @@ void test('business plan values in the dossier equal the existing simulator fore
expected.totalProfitBeforeTax,
);
assert.equal(numeric(row('Caixa final projectada')), expected.endingCash);
assert.equal(row('Reconciliação do financiamento'), expected.fundingStatus);
assert.equal(expected.fundingStatus, 'surplus');
assert.equal(row('Reconciliação do financiamento'), 'Fontes superiores aos usos previstos');
});
void test('an attached simulator execution keeps its exact snapshot result, explanation and version', () => {